Jump to content

Falling through Terrain


CJO Games
 Share

Go to solution Solved by Josh,

Recommended Posts

Okay, I found there was a small error in the terrain texcoord calculation, which caused heightmap lookups to be half a pixel off. This caused a mismatch between the visual and physics geometry. I will continue working on this tomorrow, but I suspect everything will work out correctly now.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

I have fixed the horizontal scaling. However, it looks like vertical scaling of terrain is not supported. Something should be done to resolve this or prevent the user from creating the situation, but I am not sure what yet...

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

  • Solution

I think I have a solution.

In the terrain loading code, if the y component of the terrain scale is not one, then it gets set to one and every terrain point's height gets multiplied by that scale value.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...