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: Move a point with rendered axis

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2014
    Posts
    13

    Move a point with rendered axis

    Hi there,

    Suppose I have a point I want to move (translation + rotation). For now I'm just using keyboard. Do you know some tutorial to perform the same operation but with the axis that you can often see in several mesh viewers? Thanks a lot.

  2. #2
    Intern Contributor
    Join Date
    Jun 2012
    Posts
    71
    If I'm understanding it right, you're asking how to render the axis and manipulate it by clicking and dragging? If so, then you can render the set of axes as GL_LINES primitives and multiply them by the same model matrix you use for the point. (Assuming your translations/rotations are operating on the model matrix rather than the point directly.) And to do the clicking and dragging, take a look at this set of tutorials on picking. There are others out there too, of course.

Posting Permissions

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