Shadows and Skyboxes

Moderator: Event DM

Post Reply
User avatar
Nighthawk4
Assist DM
Assist DM
Posts: 25918
Joined: Fri Feb 07, 2003 8:32 pm
Timezone: GMT
DM Avatar: DruEl
Location: The Home of the Bard of Avon
Contact:

Shadows and Skyboxes

Post by Nighthawk4 » Sat Feb 19, 2005 12:08 pm

Whilst playing around with a test module of mine, I just noticed that the angle of the shadows does not match with the direction of the Sun in the Skybox. This is true for the Desert and the Rural areas. Those are the only types of area I have in this module, except for caves, which don't have a Skybox (nor much Sunlight of course).

Can this angle be adjusted, so it looks as if the Sun is casting the shadows please?
Life is never as bad as you think it is, although that doesn't help at the time.
Orleron wrote:I think it's a fun idea if you can idiot-proof it. Problem is God always builds a better idiot. :P
User avatar
Fuzz
Elder Sage
Posts: 4648
Joined: Fri Jul 04, 2003 4:36 am
Location: Kayvareh
Contact:

Post by Fuzz » Sat Feb 19, 2005 7:37 pm

There's a way to adjust the lightsource angle, I just can't remember it at the moment. For an exterior area, you want to use an area light, which is somewhere in the Area Properties window... should be a tutorial somewhere on the Bioware website.
<Sili> I've seen septic tanks with less shit in them than Fuzz.

<Ronnin> damm not even a kiss??
<Chasmania> Kiss Fuzz? I'd rather fellate a goat.

<Chasmania> there are many roads to Rome..they just picked a shit filled alley full of scabby hookers and bums.


The shape of things to come...
User avatar
Dirk Cutlass
Elder Sage
Posts: 4691
Joined: Mon Jan 27, 2003 9:42 am
Location: GMT

Post by Dirk Cutlass » Sat Feb 19, 2005 8:11 pm

*Sulks because Dirk has to run his PC on lowest graphics settings because of crappy old processor, hasn't seen a shadow or a "sky-box" in months :(*


EDIT: But at least I have broadband NH4 :P
User avatar
Nighthawk4
Assist DM
Assist DM
Posts: 25918
Joined: Fri Feb 07, 2003 8:32 pm
Timezone: GMT
DM Avatar: DruEl
Location: The Home of the Bard of Avon
Contact:

Post by Nighthawk4 » Sat Feb 19, 2005 8:59 pm

Dirk Cutlass wrote:*Sulks because Dirk has to run his PC on lowest graphics settings because of crappy old processor, hasn't seen a shadow or a "sky-box" in months :(*


EDIT: But at least I have broadband NH4 :P
*Makes note to look out for Dirk next time he is online as a DM* :twisted:
Life is never as bad as you think it is, although that doesn't help at the time.
Orleron wrote:I think it's a fun idea if you can idiot-proof it. Problem is God always builds a better idiot. :P
User avatar
Kitten
Prince of Bloated Discourse
Posts: 152
Joined: Wed Jan 05, 2005 1:09 pm
Location: Way out in space!

Post by Kitten » Tue Feb 22, 2005 12:53 am

Sky boxes are bad.

Much lag, ne?
Image
User avatar
Dirk Cutlass
Elder Sage
Posts: 4691
Joined: Mon Jan 27, 2003 9:42 am
Location: GMT

Post by Dirk Cutlass » Tue Feb 22, 2005 9:31 am

Kitten wrote:Sky boxes are bad.

Much lag, ne?
Only at your end, and only if you haven't got a fast enough graphics system, and technically it's called low frame rate. It has no impact on the server lag.
Last edited by Dirk Cutlass on Tue Feb 22, 2005 10:48 am, edited 1 time in total.
User avatar
Themicles
CoPaP Ambassador
Posts: 2673
Joined: Wed Jan 29, 2003 10:45 pm
Location: Wolverine Lake, MI
Contact:

Post by Themicles » Tue Feb 22, 2005 9:56 am

Sky boxes are bad.

Much lag, ne?
Lag = In the common internet usage: Latency. An increased amount of time that it takes data to travel between your computer and the server. A slow down of the internet traffic involved.

Frame Rate = Frames drawn per second. NTSC TV signals have a framerate of around 30 fps. Most people notice when frame rates are lower than 30. Some people can tell if they're not at least at a higher level, such as 60 fps.

Now, you can technically say that your video card is lagging behind on drawing frames. But when someone complains of "lag" it usually is accepted that they are complaining about connection quality.

Skyboxes do not cause lag. Skyboxes can potentially cause a drop in framerate, if your system is lower than even the minimum requirements of games released in the last few months.

There is a difference between lag and framerate.

An area having skyboxes enabled, when you, the client, has them disabled, will have NO EFFECT on your performance.

On the same note of this quote, others have also complained that spell VFX cause lag. They do not. They may hurt the framerate on your system, but you can control that in the graphics options.

As for Fuzz's response:
You cannot adjust the angle the light is coming from in the toolset.

As for the initial post: Yeah, I know, it drives me nuts. Kick BioWare. ;)



-Themicles
Last edited by Themicles on Tue Feb 22, 2005 9:58 am, edited 2 times in total.
A wise man does not dwell on his past. He learns from it, he grows from it, and then moves ahead into his future.

And some wise words from a wise man. :P
Orleron wrote:You have to excuse Themi. Tact, diplomacy, and softness are not his best traits, but he does not mean anything by his writing. He's a nice guy. You just get used to it after a while because he doesn't seem to learn. :)
User avatar
Serineth Swiftpaw
Apprentice Scholar
Posts: 914
Joined: Tue Dec 28, 2004 2:13 am

Post by Serineth Swiftpaw » Tue Feb 22, 2005 9:57 am

*gives Therm a round of applause* :P
Serineth "Wildmane" Swiftpaw
User avatar
Kitten
Prince of Bloated Discourse
Posts: 152
Joined: Wed Jan 05, 2005 1:09 pm
Location: Way out in space!

Post by Kitten » Tue Feb 22, 2005 1:08 pm

Quick note: I never actually said skyboxes made the server lag. A low frame rate is client side lag, being that lag literally means:
lag1 ( P ) Pronunciation Key (lg)
v. lagged, lag?ging, lags
v. intr.
To fail to keep up a pace; straggle.
To proceed or develop with comparative slowness: The electric current lags behind the voltage.
To fail, weaken, or slacken gradually; flag.
Games. To determine the order of play in billiards by successively hitting the cue ball against the end rail, the ball rebounding closest to the head rail indicating the player to shoot first.

v. tr.
To cause to hang back or fall behind.
To shoot, throw, or pitch (a coin, for example) at a mark.

n.
The act, process, or condition of lagging.
One that lags.
A condition of slowness or retardation.

The extent or duration of lagging: ?He wondered darkly at how great a lag there was between his thinking and his actions? (Thomas Wolfe).
An interval between events or phenomena considered together.
Lag is the cumulative term given to absolutely all elements of slowness when concerning game play. Lag does not = latency. Latency = latency (surprisingly).

You're right in saying it doesn't affect latency, but your definition of lag is inaccurate to its meaning as described in the dictionary.

*sticks tongue out*
Image
User avatar
Kinarr
CCC
CCC
Posts: 978
Joined: Sat Jun 26, 2004 5:39 pm
Timezone: GMT-8
Location: Oregon

Post by Kinarr » Tue Feb 22, 2005 1:48 pm

Hmm, okay, I got curious and had to look into the details.

The sky box model has fewer faces than a tree model so there shouldn't be any noticeable framerate difference. The textures are kind of big though (3 mb) so if you don't have much video memory that could be an issue.

All the sky boxes are oriented so that the apparent light source is coming from the east. So the moon, sunrise, daytime, and sunset are all from the east.

The sun model is always at the northeast corner of the area, so that's why the shadows don't line up with the apparent light source on the sky box texture.

I did a little test and moved the sun model.
http://kinarr.home.comcast.net/misc/gidy_sun.mdl
Put that file in your nwn/override folder and it will cause shadows to appear straight from the east in a 16 x 16 area, but in areas that are much bigger or smaller than that, the shadows will be off angle again.

I suppose, if one were crazy enough, you could turn off lighting in outdoor areas and make the sun into a placeable. Then you could move the sun every hour so that it tracks from east to west across the area.
If one were crazy enough to do that. :P
User avatar
Nighthawk4
Assist DM
Assist DM
Posts: 25918
Joined: Fri Feb 07, 2003 8:32 pm
Timezone: GMT
DM Avatar: DruEl
Location: The Home of the Bard of Avon
Contact:

Post by Nighthawk4 » Tue Feb 22, 2005 2:04 pm

Hey thanks Kinarr - it works. Now it looks as if the Sun is casting the shadows. Very nice.

Also thanks to Themicles for that information - fancy Bioware getting that wrong. :shock:

The Sun setting in the East is bad enough, but for the light source not to be in the correct direction to produce the shadows is crazy.
Life is never as bad as you think it is, although that doesn't help at the time.
Orleron wrote:I think it's a fun idea if you can idiot-proof it. Problem is God always builds a better idiot. :P
User avatar
Themicles
CoPaP Ambassador
Posts: 2673
Joined: Wed Jan 29, 2003 10:45 pm
Location: Wolverine Lake, MI
Contact:

Post by Themicles » Wed Feb 23, 2005 7:16 am

Actually, Kitten, lag has more definitions in the dictionaries than what you posted alone.

You also missed the entire point of my comparison.

Lag, as used by internet user, is, and has always been, most commonly used to describe bad latency between a client and a server. Lag, even per your posted definition does fit as a descriptor in place of *bad* latency.

Lag, as per commonly accepted internet slang, is used when referring to connection issues.

Frame rate, poor performance, etc, are much more preferrable when referring to the client side of things.


Why do I bother explaining?
Because other users, who don't know any better, could read your post and assume that having skyboxes on Avlis is a cause of the tremendous lag that Avlis users frequently experience. And worst case, it snowballs into a bunch of people who don't know any better running at the Avlis team with pitchforks, crying out for all skyboxes in Avlis to be disabled.

Get it? Good.

-Themicles
A wise man does not dwell on his past. He learns from it, he grows from it, and then moves ahead into his future.

And some wise words from a wise man. :P
Orleron wrote:You have to excuse Themi. Tact, diplomacy, and softness are not his best traits, but he does not mean anything by his writing. He's a nice guy. You just get used to it after a while because he doesn't seem to learn. :)
User avatar
Kitten
Prince of Bloated Discourse
Posts: 152
Joined: Wed Jan 05, 2005 1:09 pm
Location: Way out in space!

Post by Kitten » Thu Feb 24, 2005 11:05 am

BURN THE SKY BOXES! *runs around with a pitchfork*
lag2 ( P ) Pronunciation Key (lg)
n.
A barrel stave.
A strip, as of wood, that forms a part of the covering for a cylindrical object.

tr.v. lagged, lag?ging, lags
To furnish or cover with lags.
:/
Image
Post Reply