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 / usdcondam1-20220620.md
Last active June 26, 2022 22:34
usd/conda/m1/20220620

SON OF USD BUILD CLUB

Building a native Apple Silicon version of UsdView

This version of UsdView will have an Apple Silcon, Metal-native viewer, openimageio, and alembic support. It does not yet include MaterialX, OpenColorIO, or any of the other many options build_usd.py supports.

Successfully get usdview running on conda and M1 as follows:

Using the PySide6 PR by Jon Creighton

@meshula
meshula / studio-timescales.txt
Created July 28, 2022 16:49
studio-timescales.txt
rapid | hot fix animation tools
| one off pipeline hacks simulation tools
| one off task UI nodes for procedural graphs
| build systems
| rigging systems
|
|
slow | looks foundational architecture

notes from Siggraph 2022, USD Industry Council, Aaron Luk moderating

  • ifc requested by many https://en.wikipedia.org/wiki/Industry_Foundation_Classes although it sounds like many consider it to be on a ramp to obsolence

  • discussion of an "interning" schema for IoT data streams bridged via fabric or directly into usd available in usd via dynamic payload

@meshula
meshula / cli.md
Last active November 9, 2022 01:23
command line parsers for c/c++
@meshula
meshula / threetimes.md
Created September 6, 2022 17:49
threetimes.md

You need to build a system three times

  • the first time you don't know what you actually need, it's an exploration, plan to throw it away
  • the second time you think you know what you need so you over-architect, it'll be too restrictive, plan to throw it away
  • the third time you build what actually works

I like to think I came up with it at LucasArts twenty years ago, but at this point I don't know if it was generally in the zeitgeist.

@meshula
meshula / mdlmesh_normalize.swift
Created September 10, 2022 20:56
normalize an MDLMesh by using MetalKit
class PBRMesh {
var mtkMesh : MTKMesh?
var submeshes = [PBRSubmesh?]()
// create an array with 3 entries initialized to nil
// swift doesn't have fixed size object arrays
var pipeline = [PBRModel_Pipeline?](repeating: nil, count: 3)
@meshula
meshula / minimal-exr.c
Created January 5, 2023 02:59
minimal-exr.c
#include "OpenEXRCore/attributes.c"
#include "OpenEXRCore/base.c"
#include "OpenEXRCore/channel_list.c"
#include "OpenEXRCore/chunk.c"
#include "OpenEXRCore/coding.c"
#include "OpenEXRCore/context.c"
#include "OpenEXRCore/debug.c"
#include "OpenEXRCore/decoding.c"
#include "OpenEXRCore/encoding.c"
@meshula
meshula / usd-windows-2023.md
Last active January 9, 2023 20:22
usd-windows-2023.md
  • install Windows Terminal from Windows Store
  • install WSL with Ubuntu 22.04 lTS
  • start ubuntu terminal
  • sudo apt install git
  • set git to globally suppress auto-crlf, and also set your name and email address in the config
  • create a new SSH key
  • start ssh-agent
  • install visual studio 2022
  • start windows cmd terminal
  • type where python to find the monumentally inconvenient python helper
@meshula
meshula / OSKit.swift
Created January 30, 2023 20:14 — forked from nicklockwood/OSKit.swift
A lightweight approach to writing cross-platform code in SwiftUI without a lot of conditional compilation blocks
import SwiftUI
enum OSDocumentError: Error {
case unknownFileFormat
}
#if canImport(UIKit)
import UIKit