• Advertisement


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

Transformations ine a renderer class

This topic is 5106 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