Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,618 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Get rid of sun? #294288
10/18/09 00:24
10/18/09 00:24
Joined: Aug 2005
Posts: 336
Connecticut
Galen Offline OP
Senior Member
Galen  Offline OP
Senior Member

Joined: Aug 2005
Posts: 336
Connecticut
I have a level made up mostly of models. The sun casts light on it from whatever combination of elevation and azimuth happens to be set in the map properties, causing the nearest side of the models to be brighter than other sides.

Unfortunately this isn't working for me and I need to get rid of the sunlight altogether. I tried setting it's rgb to all zeroes, but the sun STILL casts!!!! I tried changing the ambient as well, but no matter what I do the sun still casts from whatever direction its in.

I want to light my level with static lights ONLY and get rid of the sun because it is messing up my models (especially at 90 elevation, it completely washes out the texture of my sidewalks).

Anyone have any advice?

Thanks.

Re: Get rid of sun? [Re: Galen] #294292
10/18/09 01:05
10/18/09 01:05
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Manual:
Code:
MATERIAL* mtl_nosun ={  ambient_blue = 100;  ambient_green = 100;  ambient_red = 100;  albedo = -100;}


Albedo = -100 => no sun light reflection.


"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: Get rid of sun? [Re: Superku] #294296
10/18/09 01:57
10/18/09 01:57
Joined: Aug 2005
Posts: 336
Connecticut
Galen Offline OP
Senior Member
Galen  Offline OP
Senior Member

Joined: Aug 2005
Posts: 336
Connecticut
Thank you very much! That worked quite well.

Strangely though my model showed up darker than it should have (the white textures were gray). I set the rgb ambients to 130 and that seemed to bring the texture brightness up to normal. Do you think there's anything in the map properties or build settings that could affect the model textures this way even though albedo is turned off in my script?

Last edited by Galen; 10/18/09 02:01.
Re: Get rid of sun? [Re: Galen] #294349
10/18/09 16:07
10/18/09 16:07
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
I think the rgb settings at 128 each are default so you are able to make your objects darker.


"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

Moderated by  HeelX, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1