Skip to content

Instantly share code, notes, and snippets.

View donmccurdy's full-sized avatar

Don McCurdy donmccurdy

View GitHub Profile
@donmccurdy
donmccurdy / README.md
Last active April 18, 2017 19:00
Dvorak-Qwerty Layout for Ubuntu, with an Apple keyboard.

Steps:

  1. Install xdc to remap as Qwerty when modifier keys are used.
  2. Add xmodmap config to swap Control and keys.
  3. Set up xdc and xmodmap ~/.Xmodmap to run on boot. (TODO)
@donmccurdy
donmccurdy / README.md
Last active June 24, 2017 22:41
Creating glTF assets in Maya LT and Substance Painter

In Maya LT:

  1. Merge geometries.
  2. Map UVs (automatic is pretty good).
  3. Clean up geometry.
  4. Export to FBX, for Substance Painter.
  5. Export to OBJ, for conversion to glTF.

In obj2gltf stable (not the online version, which drops UVs), convert to glTF.

@donmccurdy
donmccurdy / state_of_gltf_for_webvr_devs.md
Last active May 17, 2021 03:51
Summary of the glTF 2.0 ecosystem, as it affects WebVR devs.

State of glTF 2.0 for WebVR Devs

Date: Sept 11, 2017.

Summary of the glTF 2.0 ecosystem, as it affects WebVR devs.

Engines

  • three.js, BabylonJS, and A-Frame v0.7.0+ support glTF2.0.
  • ... and more.
@donmccurdy
donmccurdy / .block
Last active October 24, 2017 23:52
ngAutocomplete incorrect positioning
license: mit
@donmccurdy
donmccurdy / dat-api.md
Created November 29, 2017 16:46
Missing api docs for dat.gui.
@donmccurdy
donmccurdy / collada2gltf_generate.py
Created December 23, 2017 16:17
glTF-Sample-Models COLLADA regen script
#!/usr/bin/env python
import glob
from subprocess import call
import sys
import os
if len(sys.argv) > 1:
target = sys.argv[1]
collada2gltf = os.path.realpath(sys.argv[1])
@donmccurdy
donmccurdy / git-branch-cleanup.sh
Last active September 1, 2023 15:11
Clean up old Git branches.
#! /bin/bash
echo "Cleaning up git branches..."
git branch --format="%(refname:short)" | grep -v -E "master|dev" | while read branchname; do
read -n 1 -p $'\nDelete branch '"$branchname"$'? (Yn)\n' yn </dev/tty
case ${yn:0:1} in
y|Y )
git branch -D $branchname
;;
@donmccurdy
donmccurdy / gce-msdf.md
Last active January 31, 2018 16:53
compute engine msdf-gen setup

Installing and running msdf-bmfont-xml on Google Compute Engine.

New

Starting from Ubuntu 16.04 LTS image.

# install node.js
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
nvm install 8