Skip to content

Object mouse selection by the renderer #671

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
TheJJ opened this issue Nov 14, 2016 · 1 comment · May be fixed by #1688
Open

Object mouse selection by the renderer #671

TheJJ opened this issue Nov 14, 2016 · 1 comment · May be fixed by #1688
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

Comments

@TheJJ
Copy link
Member

TheJJ commented Nov 14, 2016

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/

@TheJJ TheJJ added lang: c++ Done in C++ code just do it You can start working on this, there should be nothing left to discuss nice new thing ☺ A new feature that was not there before area: renderer Concerns our graphics renderer labels Nov 14, 2016
@Vtec234 Vtec234 mentioned this issue Jun 30, 2018
@github-project-automation github-project-automation bot moved this to 📋 Backlog in openage renderer Sep 10, 2023
@heinezen heinezen moved this from 📋 Backlog to 🏗 In progress in openage renderer Sep 10, 2023
@heinezen heinezen linked a pull request May 19, 2025 that will close this issue
@heinezen
Copy link
Member

#1688 now implements that for targeting (but not selection)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
Status: 🏗 In progress
Development

Successfully merging a pull request may close this issue.

2 participants