rogerdv at September 9th, 2003 13:03 — #1
I finished my simple isometric renderer (looks like Neverwinter view, really nice), but I still have a couple of problems. One is convrting mouse coordinates (2d screen coords) to my map coordinates. That requires some raytracing and calculation, because the view can be rotated and zoomed. Im looking for somebody with good math skills and opengl experience who can help me to implement this. Any volunteer?
ed_mack at September 9th, 2003 13:43 — #2
Ok, this isn't quite what you want I think, but you could use glRenderMode(GL_SELECT), and then set up some buffers to get the objects the mouse was over. The Red Book has a good bit of info on this I'm quite sure.
Of course, I suppose you want coords of the mouse in your virtual world \\^_\\^
noor at September 9th, 2003 15:00 — #3
rogerdv at September 9th, 2003 15:29 — #4
Yes, gl picking system is an option. But I would prefer the raytracing solution.
davepermen at September 10th, 2003 01:29 — #5
there is a code snipped floating around.. for ray-sphere intersections.. its the snipped we used in starcraft3d to select units.. it worked great..
rogerdv at September 10th, 2003 08:54 — #6
Where is that code snippet?
After carefully evaluating gl picking, I found that raytracing is the only choice. Just the map tiles overflow the name buffer (I render no less than 256 tiles).
davepermen at September 10th, 2003 18:17 — #7