Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 959 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
complete terrain ent clipping away #447371
12/08/14 14:00
12/08/14 14:00
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline OP
User
Wjbender  Offline OP
User
W

Joined: Mar 2012
Posts: 927
cyberspace
I have 2 terrain entities created , each is 128 by 128 vertices with 256 size for each terrain cell .

the first terrain is centered at 0,0,0 .
the second terrain is centered at 0,0+first_terrain.max_y*2,0

both use the same material and textures/skins .

the second terrain is wholly clipped away at certain angles by the engine , even when I am directly on top of it ,while the first terrain remains visible .

why would my second terrain clip away completely even though my camera is right on top or near it ?

Thanks.

jb


Compulsive compiler
Re: complete terrain ent clipping away [Re: Wjbender] #447372
12/08/14 14:46
12/08/14 14:46
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
I think it is a level_ent size problem, when camera goes out of it terrain is clipped. I had something similar problem earlier.... you can set its min_x and max_x vectors manually.


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: complete terrain ent clipping away [Re: sivan] #447373
12/08/14 14:56
12/08/14 14:56
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline OP
User
Wjbender  Offline OP
User
W

Joined: Mar 2012
Posts: 927
cyberspace
I tried setting level_ent min and max to -90000 and 90000 , before , but it still happens at certain camera angles ,no matter where the camera is positioned ,it clips away at pan 19 and pan 157 also tilt -40 ..

edit : got it , added a wait (1) after each terrain was modified

Last edited by Wjbender; 12/08/14 15:01.

Compulsive compiler
Re: complete terrain ent clipping away [Re: Wjbender] #447382
12/08/14 21:02
12/08/14 21:02
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
wait(1) is our best friend grin (I laughed on last AUM interview, when read that if something does not work add some random waits grin it is so true)


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: complete terrain ent clipping away [Re: sivan] #447383
12/08/14 21:04
12/08/14 21:04
Joined: Jun 2014
Posts: 121
F
FEL Offline
Member
FEL  Offline
Member
F

Joined: Jun 2014
Posts: 121
Its a little bit sad... I mean programming is ment to not understand the code but it actually works somehow...


FEL - Lead Game Designer & Core Developer
Re: complete terrain ent clipping away [Re: FEL] #447385
12/08/14 21:25
12/08/14 21:25
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline OP
User
Wjbender  Offline OP
User
W

Joined: Mar 2012
Posts: 927
cyberspace
this one is on me , I sequenced 2 terrain's modifications within one frame , jcl said it needs a frame to update so makes sense to wait a frame for each terrain piece to do it's updates , what is difficult however is to actually figure out that some bizarre behaviour is the result of a needed wait ,not something you would always expect .

I had a smile when i started noticing that somehow what I read in aum became true in a creepy way ,in most cases the wait seems to do magical unexplainable repairs ,for instance take my recent bug report where a wait somehow made something work wich aren't suppose to work ,and turned out to not even be a frame wait problem ,but by Jupiter how it read my mind I don't know !

the wait seems to have a much bigger importance than one would expect ,there seems to be a lot linked to what happens after one frame under the correct circumstances .

the "make game" or "fix game" button must be titled "wait"



Last edited by Wjbender; 12/09/14 11:14.

Compulsive compiler

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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