Skip to content

Instantly share code, notes, and snippets.

View fire's full-sized avatar

K. S. Ernest (iFire) Lee fire

View GitHub Profile
@fire
fire / test.md
Created January 22, 2024 03:06
Proposed: Overcoming a V-Sekai limit with Documentation

Proposed: Overcoming a V-Sekai limit with Documentation

Metadata

  • Status: Proposed
  • Deciders: V-Sekai
  • Tags: V-Sekai

The Backdrop

@fire
fire / install.cmd
Last active December 31, 2023 07:19
Install the latest commands for Windows 11.
scoop install git
scoop update
scoop install sudo
scoop bucket add extras
scoop bucket add games
scoop bucket add java
scoop bucket add dorado https://github.com/chawyehsu/dorado
sudo scoop install https://gist.githubusercontent.com/fire/49648c067a79bfb9c6b41c324b5d44ba/raw/5afb90a1656c09794111766718436194bd8ecb92/listOfApps.json
clink autorun install
scoop uninstall listOfApps
# MIT LICENSE
# Authored by iFire#6518 and alexfreyre#1663
# This code ONLY apply to a mesh and simulations with ONLY the same vertex number
import bpy
#Converts a MeshCache or Cloth modifiers to ShapeKeys
frame = bpy.context.scene.frame_start
for frame in range(bpy.context.scene.frame_end + 1):
bpy.context.scene.frame_current = frame
[00:00.000 -> 00:04.080] First of all, thank you very much, TJ and
[00:02.000 -> 00:06.240] François, to give this opportunity.
[00:04.080 -> 00:08.960] My name is Kristof. I am the principal
[00:06.240 -> 00:10.480] technical artist at Remedy Entertainment,
[00:08.960 -> 00:12.560] and today we're going to talk about how
[00:10.480 -> 00:14.320] we're using USD in our next generation
[00:12.560 -> 00:15.520] game development pipelines.
[00:14.320 -> 00:17.040] I will be presenting today's
[00:15.520 -> 00:18.960] presentation, but our director of
[00:17.040 -> 00:20.480] technology, Mika Vähkala, is also in this
@fire
fire / gist:5959c3d7d6a22974f25baa6007ce48d4
Last active August 8, 2023 16:59 — forked from chinhodado/gist:6fc37def3e12ea09f785
How to use meld with Sourcetree on the Mac.
  • Install meld
  • In SourceTree, go to Tools/Options/Diff
  • In External Diff Tool, choose Custom
  • Enter /usr/local/bin/meld in Diff Command and $LOCAL $REMOTE in Arguments
  • In External Merge Tool, choose Custom
  • Enter /usr/local/bin/meld in Merge Command and $LOCAL $MERGED $REMOTE in Arguments
  • Click Ok and restart SourceTree

Efficiently handling level/world partitioning in Godot Engine (ai assisted):

Here are the updated and consistently ranked definitions with the added point:

  1. Divide the Game World into Smaller Chunks: Split the game world into manageable sections, called cells or chunks, to improve performance and resource management.

  2. Add a "Use World Partition" Property to Node2D/Node3D: Create a property that allows you to specify whether an asset should be part of the world partition system or not.

  3. Map Assets' Global Positions to World Cells: Assign each asset to its corresponding world cell based on its global position within the game world.

@fire
fire / gist:dce3576b5631b807070e
Last active June 5, 2023 04:59
HOWTO install Ubuntu to a Native ZFS Root Filesystem

These instructions are for Ubuntu. The procedure for Debian, Mint, or other distributions in the DEB family is similar but not identical.

System Requirements

  • 64-bit Ubuntu Live CD. (Not the alternate installer, and not the 32-bit installer!)
  • AMD64 or EM64T compatible computer. (ie: x86-64)
  • 8GB disk storage available.
  • 2GB memory minimum.

Computers that have less than 2GB of memory run ZFS slowly. 4GB of memory is recommended for normal performance in basic workloads. 16GB of memory is the recommended minimum for deduplication. Enabling deduplication is a permanent change that cannot be easily reverted.

/*
MIT License
Copyright (c) 2014-2022 Eron Gjoni
Copyright (c) 2019-2022 K. S. Ernest (iFire) Lee
Copyright (c) 2021 Rafael Martinez Gordillo.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
@fire
fire / 01-elementaryos-zfs.md
Last active May 5, 2022 09:46
Install Elementary Freya on ZFS root

Experimental 2015-04-25

# Create a usb disk with Elementary OS and Startup Disk Creator
# Boot it
sudo -i
apt-add-repository --yes ppa:zfs-native/stable
apt-get update
apt-get install --yes spl-dkms zfs-dkms ubuntu-zfs    

setup zfs

@fire
fire / blender
Last active April 21, 2022 14:38
$ cat /usr/local/bin/blender
#!/usr/bin/env bash
/usr/bin/flatpak run org.blender.Blender "$@"