Skip to content

Instantly share code, notes, and snippets.

@stwind
stwind / wgpu_2.ipynb
Last active April 4, 2025 09:49
wgpu_2.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
precision highp float;
uniform vec2 resolution;
uniform float time;
layout (location = 0) out vec4 outColor;
vec2 aspect(vec2 size) {
float ma = max(size.x, size.y) / min(size.x, size.y);
float a = size.x / size.y;
return vec2(ma * min(a, 1.), max(1. / a, 1.));
}
@stwind
stwind / blender_amass_crowd_volume.ipynb
Last active March 6, 2025 11:22
blender_amass_crowd_volume.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stwind
stwind / dsdfr_amass_crowd.ipynb
Last active March 10, 2025 00:39
dsdfr_amass_crowd.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stwind
stwind / blender_amass_crowd_2.ipynb
Last active March 5, 2025 05:29
blender_amass_crowd_2.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stwind
stwind / blender_amass_crowd.ipynb
Last active March 1, 2025 11:45
blender_amass_crowd.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stwind
stwind / blender_amass.ipynb
Last active February 26, 2025 09:07
blender_amass.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stwind
stwind / dsdfr_amass.ipynb
Last active March 2, 2025 10:07
dsdfr_amass.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stwind
stwind / export_mano.py
Last active February 23, 2025 08:08
smplh.ipynb
import os
import argparse
import pickle
import numpy as np
def csc_cols(m):
col_start = m.indptr[:-1]
col_end = m.indptr[1:]
@stwind
stwind / Dockerfile
Last active February 23, 2025 07:58
smpl.ipynb
FROM quay.io/pypa/manylinux2014_x86_64
RUN curl https://bootstrap.pypa.io/pip/2.7/get-pip.py | python && \
pip install opencv-python-headless==3.4.8.29 chumpy
# docker build --platform linux/x86_64 -t smpl .