|
-
Nov 17th, 2000, 03:49 PM
#1
Thread Starter
New Member
Using OpenGL, I've made a function to construct a terrain from a grayscale picture. Does anyone have a nice small efficient formula to calculate the height of the terrain in any given point-even between vertexes of the terrain
Here's a very crude diagram:
I hope it formats correctly...
+----+----+----+----+----+
| | | | | |
+----+----+----+----+----+
| | | | | |
+----+----+----+----+----+
| | | A | | |
+----+----+----+----+----+
| | | | | |
+----+----+----+----+----+
Each + is a vertex of the terrain with a different height.
Suppose someone is standing at point A - how do you calculate how high the character is?
Thanks,
pollier
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|