Skip to content
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

Slightly hack-y workaround for .DAE loading #51

Closed
wants to merge 6 commits into from
Closed

Conversation

rdeits
Copy link
Collaborator

@rdeits rdeits commented May 19, 2019

A step towards fixing JuliaRobotics/MeshCatMechanisms.jl#32

With this PR, I think .DAE MeshFile objects should work pretty well. The only issue is that it's possible for the user to try to specify a material in Julia for a .DAE MeshFile, but that specification will have no effect on what's rendered. I think the right fix is to not let users specify materials for MeshFiles anyway (as in JuliaRobotics/MeshCatMechanisms.jl#32 (comment) ), so this is OK on the meshcat javascript side.

@rdeits
Copy link
Collaborator Author

rdeits commented May 19, 2019

@tkoolen Here's the forearm .DAE file with this PR:

meshcat

@tkoolen
Copy link

tkoolen commented May 27, 2019

OK, this seems great to me. Good to merge?

@rdeits
Copy link
Collaborator Author

rdeits commented May 27, 2019

I'm actually working on a better solution right now. I'm going to do the slightly harder but more correct thing of treating a mesh file as an entire Object, not just a geometry. That requires some extra work to handle .obj files (because they annoyingly store their materials in separate files), but it will make this code more correct and should mean that, for example, Valkyrie will now show up with textures.

@rdeits
Copy link
Collaborator Author

rdeits commented May 29, 2019

Closing in favor of #54

@rdeits rdeits closed this May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants