Skip to content

Instantly share code, notes, and snippets.

View featmo's full-sized avatar

m. featmo

  • Ireland
View GitHub Profile
@featmo
featmo / linux_commodore_64.md
Created October 28, 2020 00:23 — forked from lucasw/linux_commodore_64.md
Linux Commodore 64

Use cc65 just like for NES https://gist.github.com/lucasw/53ece8eed3b99beb6215b42cc686d1a7

Emulator

vice emulator- not in ubuntu repo, need to build from source- on sourceforge:

Need some old autoconf tools (and xa65 cross assembler) to build it:

sudo apt-get install autoconf byacc flex libreadline-dev libxaw7-dev texinfo xa65
@featmo
featmo / linux_commodore_64.md
Created October 28, 2020 00:23 — forked from lucasw/linux_commodore_64.md
Linux Commodore 64

Use cc65 just like for NES https://gist.github.com/lucasw/53ece8eed3b99beb6215b42cc686d1a7

Emulator

vice emulator- not in ubuntu repo, need to build from source- on sourceforge:

Need some old autoconf tools (and xa65 cross assembler) to build it:

sudo apt-get install autoconf byacc flex libreadline-dev libxaw7-dev texinfo xa65
//Nice for-loop using reference
int v[] = {0,1,2,3,4,5,6};
for(auto &x : v)
std::cout << v[++x] << std::endl;
@featmo
featmo / frag.glsl
Last active September 4, 2024 23:02
Basic normal mapping shader
#version 330 core
/*
featmo
code example of surface shader using phong spec
*/
out vec4 fragColor;
// Vertex shader in
in VERT{
vec3 Position;
# Generic Guassian splatting
# for educational purposes
import numpy as np
from PIL import Image, ImageDraw
import matplotlib.pyplot as plt
np.set_printoptions(precision=3, suppress=True)
# basic camera psuedo-code
@featmo
featmo / splatt.py
Last active May 27, 2025 21:18
Exploration into Guassian Splatting
import numpy as np
import matplotlib.pyplot as plt
import trimesh
# helper function
def visualize_gaussian_splat(radius=100, sigma=49, alpha=1.0, epsilon=0.01, z_base=0.5):
if sigma is None:
sigma = radius / 2.5 # standard rule for Gaussian cutoff
x = np.arange(-radius, radius + 1)
@featmo
featmo / rend.py
Created June 3, 2025 23:56
Python Graphics Utility
import math
class Vec3:
'''
Vector 3\n
dot -> returns dot product scalar\n
cross -> returns cross product of vector\n
length -> returns length of vector\n
normalize -> returns normalized vector\n