Skip to content

Instantly share code, notes, and snippets.

View meshula's full-sized avatar
💭
Exploring liminal spaces

Nick Porcino meshula

💭
Exploring liminal spaces
View GitHub Profile
@meshula
meshula / install_tmux_macos_no_brew.sh
Created February 12, 2020 19:19 — forked from dxps/install_tmux_macos_no_brew.sh
Install TMUX on MacOS without Brew
#!/bin/sh
## setup _________________________________
TMUX_VER=2.9a
LIBEVENT_VER=2.1.11-stable
TEMP_COMPILE=~/tmux-temp-compile
COMMON_INSTALL_PREFIX=/opt
SYMLINK=/usr/local/bin/tmux
@meshula
meshula / install_tmux_macos_no_brew.sh
Created February 12, 2020 19:19 — forked from dxps/install_tmux_macos_no_brew.sh
Install TMUX on MacOS without Brew
#!/bin/sh
## setup _________________________________
TMUX_VER=2.9a
LIBEVENT_VER=2.1.11-stable
TEMP_COMPILE=~/tmux-temp-compile
COMMON_INSTALL_PREFIX=/opt
SYMLINK=/usr/local/bin/tmux
@meshula
meshula / letterboxShader.metal
Created February 20, 2020 03:42
letterbox and nearest resampling in a shader
kernel void
nearestKernel(texture2d<float, access::read> inTexture [[texture(AAPLTextureIndexInput)]],
texture2d<float, access::write> outTexture [[texture(AAPLTextureIndexOutput)]],
constant ResizeParams &resizeParams [[buffer(0)]],
uint2 gid [[thread_position_in_grid]])
{
int input_width = inTexture.get_width();
int input_height = inTexture.get_height();
float origin_aspect = float(input_width) / float(input_height);
@meshula
meshula / python_embed.md
Created April 24, 2020 16:56
embedding python
#import "NSImage+MTLTexture.h"
#import <Foundation/Foundation.h>
#import <Metal/MTLDevice.h>
#import <Accelerate/Accelerate.h>
@implementation NSImage(MTLTexture)
// ref: https://gist.github.com/cbirkhold/52bfdcfd2db7777b64b8
// The original gist bore the MIT license
@meshula
meshula / anecdotes.md
Last active January 17, 2023 18:27
anecdotes

I joined Apple in the summer of 2013, as part of Graphics, with a mandate of improving game related technologies, and professional production workflows.

ModelIO was started early 2014, and introduced at WWDC 2015. It's purpose was to introduce 3d asset IO, analogously to ImageIO providing import and export of a large variety of 3d file formats. Due to various concerns including ongoing negotiations with Autodesk, FBX was not part of the release.

ModelIO also contained a suite of pipeline related tools, in-memory scene organization tools, geometry transformations, and bakers of various kind such as automated distortion minimizing UV mapping, occlusion baking, and so on.

What ModelIO did not have was collaborative editing, large scale scene management, and notions of asset composition such as template assets, attribute overrides, asset variations, and the like.

Having architected the content creation pipeine at LucasArts for a decade, and from having worked as a developer and architect on ILM's proprietar

@meshula
meshula / rendezvous.txt
Created June 13, 2020 23:16
rendezvous
# Rendezvous protocol
RENDEZVOUS
Admin
ShowAdmins
[name, email, [tags], show]
Contributors
[name, email, [tags], [shows]]
@meshula
meshula / siggraph2020.md
Last active August 26, 2020 21:52
siggraph2020
@meshula
meshula / bigsur-py3-usd.md
Last active September 9, 2020 18:49
bigsur-py3-usd
virtualenv --python=/usr/local/bin/python3 usd-py3env
cp /Library/Frameworks/Python.framework/Versions/3.7/Python usd-py3env/lib/libpython3.7.dylib
source usd-py3env/bin/activate
pip install PyOpenGL
pip install PySide2
cd usd-dev;git pull
cd ../usd-py3env
python ../usd-dev/build_scripts/build_usd.py -v --generator=Xcode --no-tests --no-examples --no-tutorials --tools --no-docs --usdview --openimageio --alembic --no-hdf5 --draco --materialx --ptex --opencolorio --embree .
...
@meshula
meshula / im4ui.pyxl
Created September 10, 2020 06:43
im4ui.pxyl
let im4_items = []
let im4_order = 0
let im4_found_index = 0
let im4_search_label = ""
let im4_cursor_x = 16
let im4_selection = 0
let im4_iteration = 0
let im4_current_font = ∅
const im4_button_kind = 0