home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


Crash when calculating lightmaps

by c0rdawg on 04/16/2007 04:02, 8 messages, last message: 04/17/2007 06:25, 1447 views, last view: 04/26/2024 18:39

http://c0rdawg.homeip.net/error.png

This error occurs when I am not in edit mode, I am near water, and water refraction is on along with either reflections or caustics, or both.

Specs:
Win XP Pro SP2
Pentium 4 1.3 ghz
384 mb ram
32 mb GeForce2 MX/MX 400

I hope the only answer isn't turn off water refraction because this is the first time I've seen the awesome water effects and I'd hate to lose them...

   Board Index   

#1: ..

by eihrul on 04/16/2007 04:42

I can't seem to reproduce this at all. Can you give any more info on the circumstances under which this happens, as well as possibly a circumstance under which it ALWAYS happens?

reply to this message

#2: well...

by kurtis84 on 04/17/2007 04:20

If you just stay in edit mode when you calclight, does it not crash then too?

reply to this message

#3: Re: ..

by c0rdawg on 04/17/2007 04:58, refers to #1

Well I have figured out that the error occurs in the "Recalculating Geometry" step. When doing recompute lights at any level the light maps are generated. It is when I get to the Recalculate Geometry step that the game crashes. As expected sauerbraten also crashes when doing Optimize geometry. Also if I escape out of generating the light maps it also crashes when it gets to recalculating the geometry. As I said before this only occurs when I'm not in edit mode. Also I now believe this occurs anytime I have water refraction on and I'm near water. For example in metl4 if I stand near the water where the yellow armor is, the game crashes (when recalculating the geometry). Or in oasis if I stand near the ponds in it while recalculating the geometry, the game crashes.

I also think that if I'm looking in the general direction of water, even if a wall is in the way, the game crashes but I still have to test this some more...

reply to this message

#4: Maybe this will be helpful

by c0rdawg on 04/17/2007 05:22

Here's a clip of the whole crashing depending on which way you're looking.
http://c0rdawg.homeip.net/sauerbraten_crash.wmv

Here's a mirror if you think my site is too slow.
http://www.zippyvideos.com/1841857806899136/sauerbraten_crash/

As you can probably tell I'm on metl4. I have water reflection, refraction, and caustics on. I have shader detail on 0. And I run the command optimize geometry.

reply to this message

#5: Re: ..

by eihrul on 04/17/2007 05:33, refers to #3

Temporary workaround for this bug, make the following alias:

clfix = [calclight (if (> $numargs 0) [result $arg1] [result 0]);reflectsize $reflectsize]

Setting the reflectsize clears out the reflections after the calclight, so it doesn't try and render them with bogus geometry data on the next frame. I will make a fix for this in CVS soon, but for now the above alias should work around it for you.

reply to this message

#6: Re: ..

by eihrul on 04/17/2007 06:03, refers to #5

Okay, I made an official patch for this (including also the physics patch stuff):

calclight_patch_2007_04_16_win32_linux.tar.gz

See if that fixes it.

reply to this message

#7: Re: ..

by eihrul on 04/17/2007 06:03, refers to #6

Er, sorry, I meant:

http://sauerbraten.org/patch/calclight_patch_2007_04_16_win32_linux.tar.gz

reply to this message

#8: Thank you

by c0rdawg on 04/17/2007 06:25

It works like a charm. Thanks Eihrul.

reply to this message

   Board Index   


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
53863473 visitors requested 71638585 pages
page created in 0.017 seconds using 10 queries
hosted by Boost Digital