Sign in to follow this  

I want a smooth walk!!!!

This topic is 4593 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi. I'm working in a "little program" that reads a heightmap in bmp format and reads the events from keyboard and mouse to let the user move. The camera works well when it's in free mode (no collision with the terrain) but when I want to walk, the movement isn't very smooth. I calculate the height of the point (x,z) where the camera is, calculating the plane that is defined by the triangle below the camera, but when the camera moves from one triangle to another there's a "crack" in the screen. It's something natural ,do you think that there's some wrong equation, or maybe there are too many or too few triangles? If it's natural how can I smooth the movement? I'd tried to use interpolation in the heights but I'm not sure how to implement this. As always, forgive(or forget) my english :(

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
This is probably becuase your terrain is too course. When you say you've tried to use interpolation on Z, what exactly do you mean? Probably some source that shows what you are trying to do would help as well.

Share this post


Link to post
Share on other sites
I think you want to create a higer level of detail for nearby polygons. This way you'll have a higher definition "grid", and smoother transitions.
You could just interpolate and not render these points, but I'm afraid this would lead to artifacts like the character floating above or sinking into your terrain.

Share this post


Link to post
Share on other sites
Quote:
Original post by Anonymous Poster
This is probably becuase your terrain is too course. When you say you've tried to use interpolation on Z, what exactly do you mean? Probably some source that shows what you are trying to do would help as well.


Yes.You're right.It was problem of the terrain. Now I smooth the terrain with a home-made function and it's sooo smooth.
The interpolation was an experiment but It didn't work at all.

Thanks!

Quote:
I think you want to create a higer level of detail for nearby polygons. This way you'll have a higher definition "grid", and smoother transitions.
You could just interpolate and not render these points, but I'm afraid this would lead to artifacts like the character floating above or sinking into your terrain.


I would love to create a LOD but I fear I don't have time...But when I finish the exams I'll try.

Thanks!

Share this post


Link to post
Share on other sites

This topic is 4593 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this