Results 1 to 2 of 2

Thread: How to rotate a single object and not the scene?

  1. #1

    How to rotate a single object and not the scene?

    The entire scene can be rotated with the glRotatef function. But can rotation of a single object in the scene be implemented?

  2. #2
    Senior Member
    Join Date
    May 2008
    Posts
    100

    Re: How to rotate a single object and not the scene?

    First ensure your model view matrix is set, then glPushMatrix(), draw, rotate, glPopMatrix(). This ensure the rotation is only applied to the vertices between the push/pop.

Similar Threads

  1. Rotate a 3D object in OpenGL ES
    By mathewi9 in forum OpenGL ES general technical discussions
    Replies: 0
    Last Post: 03-25-2013, 12:56 AM
  2. How to rotate an entire scene?
    By Eymerich in forum OpenGL ES general technical discussions
    Replies: 3
    Last Post: 01-09-2008, 03:57 AM

Posting Permissions

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