1 registered members (AbrahamR),
717
guests, and 4
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Everything clipped after a while. my.eflags&CLIPPED gets set
[Re: BoH_Havoc]
#421189
04/12/13 20:04
04/12/13 20:04
|
Joined: Oct 2004
Posts: 900 Lgh
rojart
User
|
User
Joined: Oct 2004
Posts: 900
Lgh
|
Hi, sometimes I use clipfactor higher than the default, maybe this will help.
my.clipfactor = 999999; // never clip this entity
|
|
|
Re: Everything clipped after a while. my.eflags&CLIPPED gets set
[Re: rojart]
#421214
04/13/13 18:05
04/13/13 18:05
|
Joined: Jun 2004
Posts: 655 to your left
BoH_Havoc
OP
User
|
OP
User
Joined: Jun 2004
Posts: 655
to your left
|
Well, we absolutely need clipping as the game might run way too slow on low end PCs if we don't use it. So setting clipfactor to a higher value won't be an option for us i guess. Also, everything runs fine at first. It's only after some time that the whole scene gets clipped away.
As far as i know, only the main camera can change eflag&CLIPPED . Or are there any other ways to change that flag? Maybe we are doing something wrong by accident and turn on clipping for the whole scene because of a bug in our code...?
Last edited by BoH_Havoc; 04/13/13 18:06.
|
|
|
Re: Everything clipped after a while. my.eflags&CLIPPED gets set
[Re: rojart]
#421218
04/13/13 19:22
04/13/13 19:22
|
Joined: Sep 2003
Posts: 6,861 Kiel (Germany)
Superku
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
|
Maybe we are doing something wrong by accident and turn on clipping for the whole scene because of a bug in our code...? I think this sadly is the reason for your problem, i.e. you overwrite some memory or something like that. Every now and then there is a "bug" or small problem where a terrain or an object gets clipped too early, but not the whole scene and esp. only after quite some time. I would ask myself some questions such as when did the problem appear the first time (/ was noticed the first time), what did you implement or change in the recent time and open some old versions (that you hopefully have) and observe if the problem appears there, too.
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual Check out my new game: Pogostuck: Rage With Your Friends
|
|
|
Re: Everything clipped after a while. my.eflags&CLIPPED gets set
[Re: rojart]
#421243
04/14/13 10:48
04/14/13 10:48
|
Joined: Jun 2004
Posts: 655 to your left
BoH_Havoc
OP
User
|
OP
User
Joined: Jun 2004
Posts: 655
to your left
|
I had the same problem with my ragdoll example some time ago. Were you using Shade-C in that example by an chance? If so, that would helps us in narrowing down the error source. If you were using Shade-C, could you try removing it from the example and see if the bug still appears? i.e. you overwrite some memory or something like that That's an option we also thought about but as there's lots and lots of code to go through we hoped there might be another (simpler) reason for this behaviour. Oh well... Oh and happy birthday!
|
|
|
Re: Everything clipped after a while. my.eflags&CLIPPED gets set
[Re: rojart]
#421282
04/14/13 17:55
04/14/13 17:55
|
Joined: Mar 2011
Posts: 3,150 Budapest
sivan
Expert
|
Expert
Joined: Mar 2011
Posts: 3,150
Budapest
|
last week, my shade-c 0.90 water disappeared when I moved camera to its edge, depending on camera angle (tile<45), but only in my editor where I used only water related things (everything else removed), and only in case of one level, when normal-map was the 1st skin. when I put there a texture and used bmap_to_normals, and 2nd and 3rd skins were added also by script, it was fine. I don't really understand it, but I hope it might help a bit...
|
|
|
Re: Everything clipped after a while. my.eflags&CLIPPED gets set
[Re: Superku]
#422031
04/30/13 17:00
04/30/13 17:00
|
Joined: Jun 2006
Posts: 2,640 Earth
Germanunkol
Expert
|
Expert
Joined: Jun 2006
Posts: 2,640
Earth
|
I really dislike the way we're having to debug this. Why is it always so much trial and error? There's an eflag being set... why can't we work backwards from there? What functions can set eflags? And why? Is there any material callback or return that will set the eflag for an entity?
Wolfgang, do you have time on Wednesday? Then we could give it a test run with all clipping disabled.
~"I never let school interfere with my education"~ -Mark Twain
|
|
|
|