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

Create extensible SimObject that is capable of loading meshes #80

Open
zhiquanyeo opened this issue Jun 20, 2020 · 2 comments
Open

Create extensible SimObject that is capable of loading meshes #80

zhiquanyeo opened this issue Jun 20, 2020 · 2 comments

Comments

@zhiquanyeo
Copy link
Collaborator

As part of a longer term refactor, look into making a SimObject subclass that is capable of loading a custom mesh from a glTF file. Once this is done, we can port SimRobot to extend from this instead of the base SimObject.

This might entail reworking the way we add meshes to the scene as mesh loading is inherently async

@JamesWP
Copy link
Contributor

JamesWP commented Jun 20, 2020

Take a look at the solution on the object loading example in the FRUK-Simulator GitHub org.

It shows a method of creating an empty parent mesh and async adding the robot to it when it loads

@zhiquanyeo
Copy link
Collaborator Author

Yeah that's the way I have it set up in SimRobot for custom meshes. We will need to handle async loads if we try to interpret the geometry of physics bodies from a custom mesh though

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

No branches or pull requests

2 participants