I have a camera and i created a system for drawing on the screen the trace of movement of mouse.
The problem is that if i insert in the vbo directly the coords of the mouse of an 800 x 600 window like 172,12,0 ecc..... i see nothing, i must divide the original x and y by a value for see something.
i have a camera with a position of 0,0,15 and i set up a prospective projection.
Now the trace of the mouse is far away on the 15 on z is possible to use unproject or something of similar for see the drag of the mose in the real position?
ps. i use glm.
giugioMember Since 15 Jun 2008
Offline Last Active Sep 17 2015 04:10 AM
- Group Members
- Active Posts 1,177
- Profile Views 6,925
- Submitted Links 0
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown