-
Notifications
You must be signed in to change notification settings - Fork 66
feature request: api support for loading textures from obj/mtl file #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This would be nice for getting textures drawn on e.g. Drake's flashy new Skydio quadcopter model, which has relatively complex material setup on its different parts. Would this be easy to do using (I'm happy to take a crack at it some time, just don't have a birds-eye view if that's the right strategy.) |
Yeah, that's the right thing to do. I'm happy to help out with the details! There's an example of The hardest part of this actually getting the texture file into the right format. I'm using the native object loader in Three.js, which expects that the texture files will be at some URL that it can access. Since that's annoying, I'm instead relying on the fact that you can create a data URI which includes the actual contents of the image file as base-64 encoded data. That means that texture loading just works, as long as you're willing to jump through some hoops to encode the data. The example linked above does that. In case it's helpful, the relevant Julia code that parses an |
i asked (via email)
and the response was
The text was updated successfully, but these errors were encountered: