Rendering Issue

Posted By: Garrettwademan

Rendering Issue - 03/28/09 05:47

Why is this small terrain rendering sometimes, but when you pan, tilt or move the camera just a little bit, the terrain completely disappears? Is there like an engine variable that has to be set to fix this? It is a 2 sided plan, 4 verticies, and it is a .mdl file. Here are some screen shots. Screen shot 1 is when I am zoomed out away, but when I try to move the camera closer to the terrain, it completely disappears.

This is a 25X25 set of tiles for the terrain. When the engine first starts up, it opens a data file to set each of the 4 verticies of each model for height of the terrain. I am using vec_to_mesh to deform the terrain. I have tried adjusting ZNEAR, d3d_near_models and ent_fixnormals, even though I don't know to much on ent_fixnormals. When the camera moves around, I can sometimes pick up certain areas of this cluster of tiles.

Edit: If this helps, my "srv" in my debug list is 1.8 or 1.9 when everything disappears, but 0 when everything shows up correctly.


Any ideas? Thanks.




Posted By: DJBMASTER

Re: Rendering Issue - 03/28/09 20:07

have the checked the clip_near parameter on the camera? Are you sure you are not leaving the bounding box of the level?
Posted By: Garrettwademan

Re: Rendering Issue - 03/29/09 18:43

Yes, I have played with the camera.clip_near and camera.clip_far options as well. Even when I am over the terrain in the valleys the terrain disappears when I tilt, pan or move it in another direction. It is very weird. Also note that the tiles are one sided planes as models. Sometimes, I can get the camera to show half of the terrain and not the other half. I think it has to do with some type of culling. I wonder if there is a way to turn this off.
Posted By: Garrettwademan

Re: Rendering Issue - 03/30/09 01:34

Well, it seems I can't figure this one out. I have tried everything, even creating a new camera view. If anyone wants to take a stab at this, or even take a look at what is going on, you can find the game files and folder here...

www.garrettwademan.com/game.zip

Also, I have a nice formula in there to created a tiled terrain. If you are interested in it, let me know, I can get you more info.
© 2024 lite-C Forums