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 / 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

#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 / python_embed.md
Created April 24, 2020 16:56
embedding python
@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 / 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 / blender-setup.md
Last active January 8, 2020 06:44
blender-setup.md

Siggraph Highlights

A Deep Dive into Universal Scene Description and Hydra

Universal Scene Description has enjoyed a huge uptick in support, due to integration in DCC apps such as Houdini, and Apple building the RealityKit pipeline around it.

Hydra offers a render abstraction that allows evaluating many renderers

@meshula
meshula / usd.bat
Last active February 21, 2020 18:25
usd recipes
# release monolithic
cmake -G "Visual Studio 15 2017 Win64" ..\..\src\USD -DCMAKE_INSTALL_PREFIX=c:\build\usd-install -DPXR_BUILD_TESTS=OFF -DPXR_BUILD_IMAGING=OFF -DPXR_BUILD_USD_IMAGING=OFF -DPXR_BUILD_USDVIEW=OFF -DPXR_ENABLE_GL_SUPPORT=OFF -DPXR_ENABLE_PYTHON_SUPPORT=OFF -DPXR_ENABLE_HDF5_SUPPORT=OFF -DPXR_ENABLE_PTEX_SUPPORT=OFF -DPXR_BUILD_MONOLITHIC=ON -DCMAKE_SYSTEM_PREFIX_PATH="c:\src\third-party\tbb\tbb_2018.2.185\x64-windows;c:\src\third-party\boost\boost_1.66\windows-vs2017;c:\src\third-party\boost\boost_1.66\windows-vs2017\lib\Win64" -DBoost_PROGRAM_OPTIONS_LIBRARY=c:\src\third-party\boost\boost_1.66\windows-vs2017\lib\Win64\libboost_program_options-vc150-mt-x64-1_66.lib -DBoost_USE_STATIC_LIBS=ON
# simplified release monolithic
cmake -G "Visual Studio 15 2017 Win64" ..\meshula-USD -DCMAKE_INSTALL_PREFIX=c:\projects\install\
-DPXR_BUILD_TESTS=ON -DPXR_BUILD_IMAGING=OFF -DPXR_BUILD_USD_IMAGING=OFF -DPXR_BUILD_USDVIEW=OFF\
-DPXR_ENABLE_GL_SUPPORT=OFF -DPXR_ENABLE_PYTHON_SUPPORT=OFF -DPXR_ENABL