Problem with terrain [Solved]

Problems building or running the engine, queries about how to use features etc.
Post Reply
User avatar
lonewolff
Ogre Magi
Posts: 1207
Joined: Wed Dec 28, 2005 12:58 am
x 6

Problem with terrain [Solved]

Post by lonewolff »

Hi Guys,

I am experiencing a problem with a terrain and a stationary plane (which I intend to use as water later on.

The plane appears to pop-up and down when moving. I am guessing this is something to do with the LOD on the terrain.

http://youtu.be/GRf5DW87EBg

Any ideas on how I could fix this would be great 8)


[edit]
Just tried setLodBias on the camera. No good.
Last edited by lonewolff on Wed Jul 30, 2014 4:30 am, edited 2 times in total.
User avatar
c6burns
Beholder
Posts: 1512
Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines
x 138

Re: Problem with terrain

Post by c6burns »

Looks more like z-fighting to me. Raise your camera's near clip distance by a multiple of 10 or 100 to check (eg. if it's 0.1 then make it 1.f or even 10.f). Lowering the far clip can be helpful but most often it's an issue of blowing all your depth precision too near to the camera.
User avatar
lonewolff
Ogre Magi
Posts: 1207
Joined: Wed Dec 28, 2005 12:58 am
x 6

Re: Problem with terrain

Post by lonewolff »

Genious!

I had near clip 0.1 and far 1000.0

So I changed near to 1.0 and that fixed the problem.

Many many thanks! :D

You have just been Kudo'sed (as I cant send chocolates throughthe internet) 8)
Post Reply