Game Development Community

Rain, water and interiors.

by Lars Boldt · in Torque Game Engine · 05/09/2004 (3:05 am) · 10 replies

In the Torque demo, it doesn't rain inside the DIF buildings as far as I recall, but it does in ours, why is this?

Also, we've made a dungeon, that stretches far beneath the water level, and water shows inside the dungeon, how can we avoid this?

We wanted to create a storm, thus positioning the sun under the world is the only way to not show the sun, unless you remove it, and then your character isn't lit up. The problem is that all dif files get lit from beneath, obviously, is there a way to turn this off aswell?

Thanks

Lars

#1
05/09/2004 (3:20 am)
Hmm, wouldn't the correct approach be to tweak the color and the ambient values of the sun ??
IRL that is what happens, clouds cover the sun producing a darker, tinted effect, but the sun is always there (unless its during night that is).
#2
05/09/2004 (3:23 am)
Yes but, the problem is that the sun is infront of the clouds, it would be the other way around.
#3
05/09/2004 (3:28 am)
-Try adding portals to your .dif objects.
-The sun objeect and the sunflares are different things. You can have a sun without sunflares (so an invisible sun that emit light).
#4
05/09/2004 (3:28 am)
Not exactly sure what you mean.. I loaded up my modified copy where I've turned down alot to make it more look like evening time ... and I don't see a sun... Do you mean the lens-flare and the corona of the sun ??

Ooh, and for the rain ... check this resource out:
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=3647
#5
05/09/2004 (3:36 am)
Oh ok, let me play around with the info you guys provided before I say more things that aren't true :-)

Thanks alot!

Lars
#6
05/09/2004 (4:05 am)
Ok I got the sun working.

But I can't seem to adjust the ambient light in the scene at all, where do I do this?

I want a night effect.

I'll look into portals in DIF files, will this sort out the water in the dungeon aswell as the rain problem?

Lars
#7
05/09/2004 (5:32 am)
Lars

There is 2 differnt suns.
Fxsunlight and sun
Change the settings on the sun.
The Fxlight sun is only a visible sun ,it would not effect
the ambient light.
If you want it total black you must change the fog to.
#8
05/09/2004 (5:44 am)
I've messed around with these settings and this is what i've come up with:

Sun Color: Changes the color of the light applied to the terrain when doing a Relight-Scene. It does not change the ambience/atmosphere color.

Sun Ambience: Changes the color on shapes, like character etc.

FxSunLight Color: Changes the sun's corona colors.

Sky Fog Color - Changes the fog color.

By messing with these settings, setting them all to black, I still can't get it to look like it's night, there's still a light somewhere I haven't found, or am I wrong again? :)

Lars
#9
05/09/2004 (6:11 am)
The Trees and other objects always stay lit. I believe I read somewhere that it was because models are not "self shadowing" Not sure what that means. Other than that, I am not sure why those changes shouldn't show you some changes. Maybe the daynight resources would help:

click here for the lastes, which I am useing
#10
05/09/2004 (6:24 am)
Well the night "look" i'm after is the night look you got when using John Vanderbeck(sp?) day & night patch. Not sure which settings he used in that patch, but the scene got very dark, as it should, just a shame the sun wasn't moving correctly.

I was testing that day & night patch you linked to, but as seen in the comment section, it came with some weird errors, thus I removed it.

I seem to get alot of weird errors noone else complains about, i'm starting to think it's the nvidia drivers doing all this.

I have a GeForce FX5900 XT and a GeForce 4600Ti card, both rather expensive high-end cards, both show the same issues in all cases, so it's not related to the card in specific but has to be the drivers.

Oh well, thanks for all the info guys, guess i'll just have to wait for nvidia to fix the drivers at some point.

Lars