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

Render Asteroid and Refinery with legion architecture #50

Closed
4 tasks done
Tracked by #41
kanerogers opened this issue Aug 12, 2021 · 2 comments · Fixed by #53
Closed
4 tasks done
Tracked by #41

Render Asteroid and Refinery with legion architecture #50

kanerogers opened this issue Aug 12, 2021 · 2 comments · Fixed by #53
Assignees
Labels
rendering An issue with the rendering system

Comments

@kanerogers
Copy link
Collaborator

kanerogers commented Aug 12, 2021

Overview

Now that we've successfully ported most of our code to legion, it's time to integrate everything.

For our first pass, we'll just try rendering the Asteroid and the refinery.

TODO

  • Modify App to run the legion schedule.
  • Modify Renderer accordingly
  • Bind to SceneData
  • Modify hotham-asteroid to return the asteroid and the refinery parented to it
@kanerogers kanerogers self-assigned this Aug 12, 2021
@kanerogers kanerogers added rendering An issue with the rendering system systems labels Aug 12, 2021
@kanerogers kanerogers added this to the Deploy Phase milestone Aug 12, 2021
@kanerogers
Copy link
Collaborator Author

At the part where I was afraid things would go wrong.. and they are. 😆

In order to import a model into the game world, we create a world for each model, then try to use world.clone_from to copy from the model world into the game world. Not working for some reason..

@kanerogers
Copy link
Collaborator Author

Problem was I needed to tell the merger how to copy things. That's a bit irritating, but oh well:

merger.register_copy::<Transform>();
merger.register_copy::<Mesh>();
merger.register_copy::<TransformMatrix>();
merger.register_clone::<Skin>();
merger.register_copy::<Joint>();
merger.register_copy::<Parent>();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rendering An issue with the rendering system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant