Negative sun values...

Negative sun values...

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Negative sun values...

Post by Forboding Angel »

Ok look, the negative sun value bug is just plain annoying and has been there since I started mapping, could you guys please, please fix it?

DO this, start a 6 - 8 player game and use either delta siege, or the map I uploaded, greenhaven remake v01. I purposely set a negative sun value on that map just to see if people had trouble with it. Yep sure enough. At least 1 or 2 people dropped when zooming out or moving the view around.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

I don't really see why a negative value (I assume in X/Z components?) can cause a crash, especially as it's only used in cross/dot products and other simple mathematical stuff, which don't crash.

Are you 100% sure it isn't another bug which accidentally correlates to the sundir being negative in this two maps (which isn't statistically significant as you may realize)?

Anyway, more info would be useful, like settings:
Does it depend on AdvSky, DynamicSky, ReflectiveWater, Dynamic water, Shadows, Shadowmapsize, does it happen with maps with skybox too? (these are the ones which use sundir in code AFAICS)

We'll do our best to fix (as always 8) ), but as this one is almost not reproducible at a time you can attach a debugger, plus it is unknown with which settings it happens, plus from a programmers viewpoint it doesn't make sense, it's hard :roll:

Also, are you sure there aren't any other maps with negative sundir components which work perfectly fine?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Post by Forboding Angel »

ya know I have never crashed on any of these maps with neg sun values, however, I run with absolute lowest settings...

Maybe it's when shadows are on. If I could get a group of people to try greenhaven remake and if they crash take screens of their settings maybe that would help.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

it could help.. if everyone has different settings it doesn't help. But if you got enough people to have all different settings besides one setting - then you know it _may_ be that setting...
Egarwaen
Posts: 1207
Joined: 27 Feb 2006, 21:19

Post by Egarwaen »

I've had it crash on these maps (the Delta Siege family, to be precise) with shadows off.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Post by Forboding Angel »

take a screen and post it here for your settings
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Post by Caydr »

I've played many long 6-10 player games on Altored Divide, and seen tons of others in the lobby - I designed it with negative sun values. I'm not saying you're crazy and there's no bug, but this alone pretty much rules out the possibility that it's the sun value alone.

Those of you who have a crash on the aforementioned maps, try AD and see if you have the same problem.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Post by Forboding Angel »

river dale has negative sun values as well.

However the square root of river dales size is roughly 16x16 and all the maps that crash are 20x20 and up (that I know of), maybe that's it? Negative sun value and large map?
User avatar
Erom
Posts: 1115
Joined: 25 Apr 2006, 05:08

Post by Erom »

Try Crossfire, IIRC (not at home) it uses -2 1 0 for sun position, but it's really small. That should let you test negative sun and small maps.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Post by Forboding Angel »

problem is that I never crash so I can't really test anything :-(
Lord JoNil
Posts: 47
Joined: 28 Dec 2005, 03:20

Post by Lord JoNil »

DigSite crashes for me.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Post by Forboding Angel »

Lord JoNil wrote:DigSite crashes for me.
there goes my small maps + negative sun don't crash theory :roll:
Post Reply

Return to “Engine”