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 3 of 3

Thread: glrotate, gltranslate - VBO

  1. #1
    Intern Newbie
    Join Date
    Jan 2013
    Posts
    45

    glrotate, gltranslate - VBO

    Hi,

    do glrotate, gltranslate work with models that have been created using VBO's and shaders?

    Any help gratefully appreciated.

    MacSam

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Jun 2013
    Posts
    2,975
    Quote Originally Posted by macsam View Post
    do glrotate, gltranslate work with models that have been created using VBO's and shaders?
    If you're using a vertex shader, the only effect of the fixed-function matrix operations is to assign the compatibility uniforms listed in 7.4.1 of the GLSL specification (gl_ModelViewMatrix etc).

    Use of VBOs versus client-side vertex arrays versus glBegin/glEnd is unrelated to the use of shaders (beyond the fact that the core profile requires the use of both VBOs and shaders, but the fixed-function matrix operations don't exist in the core profile).

  3. #3
    Intern Newbie
    Join Date
    Jan 2013
    Posts
    45
    thanks, I will be using fragment shaders too. I have some existing vers 1.0 code on windows. I need to change the colours of the triangles after they have been created to another colour and it seems VBO's are the only way to do it which does not eat up memory each time. I would like to continue using glrotate, gltranslate and gluPerspective rather having to use the newer matrices codes.

    I program in 'C' and I suspect GLM is going to cause a problem as it looks like c++ with classes.

    MacSam

Posting Permissions

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