About Store Forum Documentation Contact
Donations:
309$/mo



Post Reply 
more enviroments and night darker
Author Message
1991mirec Offline
Member

Post: #1
more enviroments and night darker
hi i wanted to ask if you can and how you can put more then one enviroment in one world. how to switch in between them for example every 30 seconds or something like that..

and also i have another question if there is a way to have the world darker when it is night. we have day and night cycle working correctly everything is fine sky is dark just the world is not dark enought. it s darker then in day but we would like to have it darker if it is possible.

we are using 2.0 version
thank you in advance
07-22-2013 01:18 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: more enviroments and night darker
Hi,

You can do something like that to change an environment:
Code:
EnvironmentPtr env=UID(3299983166, 1260335914, 547563169, 3657379485);
   env->set();

For the second thing, you're probably interested in changing the light intensity coming from the Sun.
Please check "Sun." members (there's light_color somewhere there)
07-22-2013 01:21 PM
Find all posts by this user Quote this message in a reply
1991mirec Offline
Member

Post: #3
RE: more enviroments and night darker
yeah thanks it works.. but for the second question i was more intrested to make the world even darker when it is night and there is no sun.. because the world is still too bright.. less then with sun but it should be even darker. thank you
07-22-2013 01:49 PM
Find all posts by this user Quote this message in a reply
AndrewBGS Offline
Member

Post: #4
RE: more enviroments and night darker
The ambient light is responsible for that.
I'm at work now so I can't give you the code, but it's probably something like D.ambinetLight(). I'm using something like 0.5 for dark nights. Anyway, that's what you have to play with to have some dark spooky nights.
07-22-2013 01:56 PM
Find all posts by this user Quote this message in a reply
1991mirec Offline
Member

Post: #5
RE: more enviroments and night darker
yeah it worked.. it was ambientcolor... and you probably meant 0.05.. but thank you very much... both of you
07-22-2013 02:03 PM
Find all posts by this user Quote this message in a reply
AndrewBGS Offline
Member

Post: #6
RE: more enviroments and night darker
Yeah, I probably did mean 0.05 grin I don't have the code with me, just what I remembered. Anyway, glad it worked. Have fun!
07-22-2013 02:10 PM
Find all posts by this user Quote this message in a reply
1991mirec Offline
Member

Post: #7
RE: more enviroments and night darker
thx again.. it was really good and fast respond this time.. i am glad you re here
07-22-2013 02:19 PM
Find all posts by this user Quote this message in a reply
Post Reply