Re: Hitdetection is solved!

Patrick Scheibe <[email protected]>
Newsgroups gmane.comp.lang.haskell.hopengl
Message-ID <[email protected]>
Hi,

I got it.
After reading much stuff, the NeHe Tutorial gave me the one hint I needed.
Now it is clear to me that the whole thing is really intuitive. The first 
thought I have had from the beginning was the right one. In the selection 
mode (introduced by the getHitRecords) you have to perform all 
transformations you did by drawing the scene. My problem was that I called
loadIdentity above my glupersepective and load a identity matrix into the 
projection stack. That cleared the pickMatrix stuff.

In this case the RedBook is not really helpful for someone who never did those 
things before. One can come to the conclusion that all actions in selection 
rendermode must be performed on the projection stack.

Nonetheless all my thanks goes to Sven who gave me some important hints with 
his links to the tutorials.

Cheers
Patrick
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.