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: Ball Rolling effect

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2003
    Posts
    6

    Ball Rolling effect

    Hi I'm trying to create the effect of a ball rolling. I have textured my ball but cannot make it rotate properly. I know it should rotate around the axis perpendicular to the ball moving direction.

    How can I make such a rotation?

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Aug 2001
    Location
    Italy
    Posts
    628

    Re: Ball Rolling effect

    First of all by understanding what is the right perpendicular axis since you got TWO.


    If you're asking how to put the ball in the correct place and then ROTATE it, i would "concatenate transforms" simply by using glTranslate / glRotate and maybe some matrix push-pop.

    Bye

Posting Permissions

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