Skip to content
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

Object hit-testing and picking #27

Open
hnkb opened this issue Oct 5, 2019 · 0 comments
Open

Object hit-testing and picking #27

hnkb opened this issue Oct 5, 2019 · 0 comments

Comments

@hnkb
Copy link
Owner

hnkb commented Oct 5, 2019

  • For each object keep two spheres: largest (that contains object) and smallest (than is contained in object).
  • If ray is outside largest it is not a hit
  • If it is inside the smallest, it is a hit
  • Only for rays that hit one sphere and miss the other we have to increase our accuracy by more spheres/better searching

(see this)

@hnkb hnkb added this to the Advanced graphics milestone Oct 5, 2019
@hnkb hnkb changed the title Object hit-testing Object hit-testing and picking Oct 5, 2019
@hnkb hnkb added the graphics label Oct 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant