6 registered members (AndrewAMD, Ayumi, degenerate_762, 7th_zorro, VoroneTZ, HoopyDerFrood),
1,268
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
complete terrain ent clipping away
#447371
12/08/14 14:00
12/08/14 14:00
|
Joined: Mar 2012
Posts: 927 cyberspace
Wjbender
OP
User
|
OP
User
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: sivan]
#447373
12/08/14 14:56
12/08/14 14:56
|
Joined: Mar 2012
Posts: 927 cyberspace
Wjbender
OP
User
|
OP
User
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: sivan]
#447383
12/08/14 21:04
12/08/14 21:04
|
Joined: Jun 2014
Posts: 121
FEL
Member
|
Member
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
Wjbender
OP
User
|
OP
User
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
|
|
|
|