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: Moving Object along axis

  1. #1
    Newbie Newbie
    Join Date
    Jan 2012
    Posts
    2

    Moving Object along axis

    Hi I tried to create a circle and move it towards Y-axis using a keyboard event.
    to my surprise I am getting one more circle moving along X-axis which I did not mean to do.
    But I only move it along Y-axis.
    Any Mistake while creating this circle?




    Thank You
    Lachuk

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,117
    You need to supply some code for us to help

  3. #3
    Junior Member Regular Contributor
    Join Date
    Mar 2012
    Posts
    129
    Did you load an identity matrix after rendering the object that was supposed to be transformed? Otherwise, the translation will be applied to anything else you render afterwards.

Posting Permissions

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