Request for a sample that shows how to do object picking with the mouse. #97
metric-tensor
started this conversation in
Ideas
Replies: 2 comments
|
The same request! Thanks! |
0 replies
|
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. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I think it would be helpful to have a sample showing mouse picking/selection.
All reactions