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

Mesh rendering #5

Closed
2 tasks done
tejank10 opened this issue May 18, 2019 · 2 comments
Closed
2 tasks done

Mesh rendering #5

tejank10 opened this issue May 18, 2019 · 2 comments

Comments

@tejank10
Copy link

tejank10 commented May 18, 2019

Following would be required to render a mesh. It is a .obj file. It contains vertex list and .mtl file to use for material. .mtl file contains path to the texture image to be used and some attributes. We can make an object like pyglet.graphics.vertex_list to store the vertices and its attributes. This object can later be used while rendering.

  • Getting texture from an image
  • Rendering arbitrary meshes (ie vertices) with given texture
@avik-pal
Copy link
Owner

Arbitrary Mesh Rendering is available in ap/examples branch. It is not efficient but a minimal working version.

@avik-pal
Copy link
Owner

This will be handled correctly once #8 is merged. Performance is still an issue but needs to be handled separately.

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