Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Konsti, AndrewAMD, 1 invisible), 1,376 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Rendering Issue #258167
03/28/09 05:47
03/28/09 05:47
Joined: Jan 2006
Posts: 245
PA
Garrettwademan Offline OP
Member
Garrettwademan  Offline OP
Member

Joined: Jan 2006
Posts: 245
PA
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.





Last edited by Garrettwademan; 03/28/09 15:51.

Current Project: Computer Repair Simulator
https://www.computer-repair-simulator.com
Re: Rendering Issue [Re: Garrettwademan] #258242
03/28/09 20:07
03/28/09 20:07
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
have the checked the clip_near parameter on the camera? Are you sure you are not leaving the bounding box of the level?

Re: Rendering Issue [Re: DJBMASTER] #258328
03/29/09 18:43
03/29/09 18:43
Joined: Jan 2006
Posts: 245
PA
Garrettwademan Offline OP
Member
Garrettwademan  Offline OP
Member

Joined: Jan 2006
Posts: 245
PA
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.


Current Project: Computer Repair Simulator
https://www.computer-repair-simulator.com
Re: Rendering Issue [Re: Garrettwademan] #258362
03/30/09 01:34
03/30/09 01:34
Joined: Jan 2006
Posts: 245
PA
Garrettwademan Offline OP
Member
Garrettwademan  Offline OP
Member

Joined: Jan 2006
Posts: 245
PA
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.


Current Project: Computer Repair Simulator
https://www.computer-repair-simulator.com

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1