Skip to content

Instantly share code, notes, and snippets.

@elaughli
elaughli / LetMeReadThatForYou.md
Created June 24, 2019 22:08
Reminder to read the important things that beg you to read them before asking all of your coworkers

Did you read the README?

@elaughli
elaughli / obj2usdz.mm
Created December 12, 2018 22:33
function to convert a saved obj file to USDZ in objective-c
// path to documents directory to save our usdc file
NSString* usdcPath = [documentsDirectory stringByAppendingPathComponent:@"usdcExample.usdc"];
NSURL *usdcUrl = [NSURL fileURLWithPath: usdcPath];
// path to documents directory to save our final usdz file
NSString* usdzPath = [documentsDirectory stringByAppendingPathComponent:@"usdzExample.usdz"];
NSURL *usdzUrl = [NSURL fileURLWithPath:usdzPath];
// load the .obj file at filePath as an MDLAsset
NSURL *url = [NSURL fileURLWithPath:filePath];