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?
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 \\^_\\^
Yes, gl picking system is an option. But I would prefer the raytracing solution.
there is a code snipped floating around.. for ray-sphere intersections.. its the snipped we used in starcraft3d to select units.. it worked great..
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).