How draw the line of picking?

hi:

I want draw the line of picking. I can draw the line, but when move camera, the line would move too. How can do this What transformation must apply

Sorry for my english.

Thank at all.-



Answer this question

How draw the line of picking?

  • WaveSlam

    the line from the mouse to the object that you have selected. I obtain a point source and the direction, all in world objects. The problem ocurrs when move the camera.


  • KevinInIndy

    How are you drawing the line Make sure the positions for the start and end of the line are not being updated as the camera moves. If these points are in world coordinates, transforming them with the new transformation matrix shouldn't make them appear relative to the camera unless you're unintentionally updating them with new data. Output the value of the two points on the screen and make sure they don't change as you move the camera, or use the debugger.


  • sethi.bhushan

    What is the line of picking



  • r_amarnath

    If you mean the line from the mouse to the object that you have selected then since this is a line that is always perpendicular to the screen its always going to be a single point so its kind of hard to draw it.



  • How draw the line of picking?