Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: How can I set the World Transform Matrix?

  1. #1
    Newbie Newbie
    Join Date
    Jun 2013
    Posts
    1

    How can I set the World Transform Matrix?

    Hi guys. I am working on my own cross platform game engine. I have written an abstract renderer that has a DirectX concrete renderer class and an OpenGL concrete renderer class.

    My generic renderer class has a function called "SetTransform( TransformType, Matrix )" which both my DirectX and OpenGL renderers need to support.

    The Transform types that I would like to support are the following

    Projection, View, World.

    DirectX supports each of these so it was pretty easy to implement. OpenGL however seems to only support
    Projection and ModelView. I don't want to have to concatenate my world and view matrices however.

    Is there any way, besides using shaders, that I can set my world and view transforms separately on in OpenGL?

    Thanks!

  2. #2
    Senior Member OpenGL Pro Aleksandar's Avatar
    Join Date
    Jul 2009
    Posts
    1,078
    Nobody prevents you to have two separate matrices (model and view). Just multiply them before submitting to OpenGL.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •