Object mouse selection by the renderer #671
Labels
area: renderer
Concerns our graphics renderer
just do it
You can start working on this, there should be nothing left to discuss
lang: c++
Done in C++ code
nice new thing ☺
A new feature that was not there before
Uh oh!
There was an error while loading. Please reload this page.
Currently, the outline of the unit does not matter for selecting it.
We have to build the renderer (#34 #286 #287) in such a way we can tell which pixel belonged to what unit.
This allows us to click anywhere in the game and then determine what object was drawn there.
https://capnramses.github.io/opengl/raycasting.html
https://en.wikibooks.org/wiki/OpenGL_Programming/Object_selection
http://schabby.de/picking-opengl-ray-tracing/
Fixes #368
http://www.lighthouse3d.com/tutorials/opengl-selection-tutorial/
The text was updated successfully, but these errors were encountered: