Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

airjy

Transformations ine a renderer class

This topic is 5339 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to implement a renderer class which basically will be a list of triangles. Then I will sort the triangles depending of their textures and materials to limit the change of the states. The problem I have, is that I don''t know how to handle transformations. I will have a lot of translation and rotations to do (for example callin gltranslate before each vertex). That will imply to sort triangles to minimize transformations too. I have been thinking to transform vertices manually with my own vector*matrix operation when i''m going through my scene graph, but that may be slow as it will be on the cpu. I''ve been reading a lot of people speaking of renderer class, and i would like to know how to handle transofrmations

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!