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

Add better .obj file support #3

Open
3 of 4 tasks
zakorgy opened this issue Sep 1, 2020 · 0 comments
Open
3 of 4 tasks

Add better .obj file support #3

zakorgy opened this issue Sep 1, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@zakorgy
Copy link
Owner

zakorgy commented Sep 1, 2020

  • We can emit vertex position and normal after each other, this can spare us one iteration over the vertex data
  • Since we only have 6 surface normals, we only have to write it for one cube, and reuse indices
  • Only emit surface verticies, this should help on the Renderer side as well
  • Investigate possibilities to add color data to the output .obj file

The related code is here: https://github.com/zakorgy/voxel-editor/blob/master/src/editor.rs#L161

@zakorgy zakorgy added enhancement New feature or request good first issue Good for newcomers labels Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant