Request for a sample that shows how to do object picking with the mouse. #97
Replies: 2 comments
-
The same request! Thanks! |
Beta Was this translation helpful? Give feedback.
-
Folks, this is a graphics rendering engine. Don't confuse rendering engine with game engine. I don't plan to add any kind of entity management system and scene editor for manipulating objects, since this library is not supposed to become game engine. Anyway simple object picking can be accomplished fully on CPU and does not involve any rendering at all. Just cast a ray passing through the camera eye and a mouse cursor on projection plane transformed to world coordinates, then traverse your scene objects ordered from front to back and find first object intersecting with you mouse ray. Hope this would help. |
Beta Was this translation helpful? Give feedback.
-
I think it would be helpful to have a sample showing mouse picking/selection.
Beta Was this translation helpful? Give feedback.
All reactions