Terrain clips away

Posted By: TheShooter

Terrain clips away - 02/20/12 13:21

Hi,
I have some strange clipping problems with my terrain. When I move the camera around, at some point the terrain clips away.

When I just look at the terrain, it looks like this:

When I turn the camera a little bit down, it looks like this:

I attached the following action to the terrain:
Code:
action never_clip()
{
	my.clipfactor = 999999;
}



And I set this in the mainscript:
Code:
camera.clip_near = 1;



Where is the problem?

regards,
TheShooter
Posted By: Ch40zzC0d3r

Re: Terrain clips away - 02/20/12 13:34

What is with camrra.clip_far ?
Posted By: TheShooter

Re: Terrain clips away - 02/20/12 13:44

Sorry, I forgot that:
Code:
camera.clip_far = 50000;


Posted By: sivan

Re: Terrain clips away - 02/20/12 13:47

in A8, if you scale a terrain what is a part of a wmb level, it causes rendering error, but only if vertices are moved by getvertex/setvertex. more exaclty the terrain disappears randomly. I reported it last autumn, but maybe it is not your case.
it can be an entity sorting problem too.
Posted By: sivan

Re: Terrain clips away - 02/20/12 13:48

or forgetting to set clip_far grin
Posted By: TheShooter

Re: Terrain clips away - 02/20/12 16:00

When the terrain is clipped away, it still receives c_traces, and it gets still reflected in the water. I already set the clipfactor (have a look at the first post), but it gets still clipped away. But only, when I move the camera a little bit down. And just in a small area along the y axis.

What could cause that problem?

regards,
TheShooter
Posted By: TheShooter

Re: Terrain clips away - 02/21/12 14:24

*push*

Posted By: Ch40zzC0d3r

Re: Terrain clips away - 02/21/12 14:46

idk sorry, try to use a model instead of hmp file.
Posted By: TheShooter

Re: Terrain clips away - 02/21/12 17:56

I already tried this, but I get a "bad model size" error, when I use a model. I have to scale it heavely up, so it fits in my level. What a crap....
any ideas?

regards,
TheShooter
Posted By: Ch40zzC0d3r

Re: Terrain clips away - 02/21/12 19:31

Scale it in med down and change scale_x manually with code wink
Posted By: TheShooter

Re: Terrain clips away - 02/22/12 14:59

Yeeha, it works. laugh Thx!
Posted By: Ch40zzC0d3r

Re: Terrain clips away - 02/22/12 17:49

No problem grin
© 2024 lite-C Forums