Solving ground position in noise generated background world? #373
-
Beta Was this translation helpful? Give feedback.
Answered by
TokisanGames
May 10, 2024
Replies: 1 comment 1 reply
-
The GPU can report normals, but it adds texture normals so it's way too jittery. But we could adapt See https://twitter.com/TokisanGames/status/1753549183183921624 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
FishOfTheNorthStar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Terrain3D::get_intersection()
uses a visual, GPU based raycaster which gives an accurate position of the ground anywhere. That could feed intoget_height()
and our dynamic collision generator when outside of regions.The GPU can report normals, but it adds texture normals so it's way too jittery. But we could adapt
get_normal()
to use 3get_intersections()
outside of regions instead.See https://twitter.com/TokisanGames/status/1753549183183921624