Height Detection - OpenGL -


I am using openGL ES I have loaded a small patch of area in a ball, skybox, and program.

The terrain changes in heights at some points. The ball rolls around the area.

My question is: Can I tell that the height of the area is in the ball position? (The position of the ball is stored in a variable that can be used). Is there any type of OpenGL ES command, or even OpenCL command, can I do some research about it?

OpenGL is a rendering API, it only pulls things on the screen, and nothing else. So you will not be able to detect such collisions in such areas and surround yourself with such things.

If you've got a height map for texture (for example, you drag an XS regular grid with the Wi that is taken from the height measurement). You can simply search for your ball (or two triangles can make the ball better than the triangle) and repeat the values ​​of the respective height to get the height of the terrain in the position of the ball.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -