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
    Member Contributor
    Join Date
    Jun 2012
    Posts
    75
    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.

Similar Threads

  1. make point move
    By eng.ftoom in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 02-23-2013, 09:19 AM
  2. How to select a point and move with mouse
    By apoorv in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-09-2013, 10:43 AM
  3. move throw the z axis only
    By 3DVan in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 02-04-2012, 03:55 PM
  4. Select and move the vertices point
    By ajith srikukan in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-16-2011, 09:24 AM
  5. How to move a vertexarray to another point in space?
    By BloodySmartie in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 07-10-2006, 11:31 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
  •  
Proudly hosted by Digital Ocean