SFTtech / SFTtech/openage

Object mouse selection by the renderer

Open
#671 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: renderer just do it lang: c++ nice new thing ☺
Dominant language
Python
Stars
14.4k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

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/

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin with the renderer work referenced by #34, #286, and #287, then read the linked OpenGL object-selection and raycasting tutorials to understand the intended approach. Done means a click at any game pixel identifies the unit or object drawn there rather than relying on its outline; no file or test is named in the issue.

Written by the indexing model from the issue text.

Assessment

Domain
computer-graphics, game-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.