zpc930 / oolongengine

Automatically exported from code.google.com/p/oolongengine
0 stars 0 forks source link

Pick Object Demo bug #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I think there is an error in the RenderScene function in Pick Object Demo.

The Raytest is done inside the for loop that draws each object.  Unless I am 
misunderstanding the 
way it should work the Raytest need only be done once.

If you move all the Raytest code outside the for loop it seems to work a bit 
better (and more like 
what is expected). 

R214

Original issue reported on code.google.com by bobby1...@gmail.com on 22 May 2010 at 11:18

GoogleCodeExporter commented 8 years ago
good point, the ray test should be outside of the for loop.
fixed it in latest trunk (and made it work with iPad/iPhone)
http://code.google.com/p/oolongengine/source/detail?r=221

Original comment by erwin.coumans on 19 Apr 2012 at 5:33