Skip to content

Instantly share code, notes, and snippets.

elaughli

Block or report user

Report or block elaughli

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@elaughli
elaughli / LetMeReadThatForYou.md
Created Jun 24, 2019
Reminder to read the important things that beg you to read them before asking all of your coworkers
View LetMeReadThatForYou.md

Did you read the README?

@elaughli
elaughli / obj2usdz.mm
Created Dec 12, 2018
function to convert a saved obj file to USDZ in objective-c
View obj2usdz.mm
// 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];
You can’t perform that action at this time.