1991mirec
Member
|
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 |
|
Esenthel
Administrator
|
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 |
|
1991mirec
Member
|
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 |
|
AndrewBGS
Member
|
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 |
|
1991mirec
Member
|
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 |
|
AndrewBGS
Member
|
RE: more enviroments and night darker
Yeah, I probably did mean 0.05 I don't have the code with me, just what I remembered. Anyway, glad it worked. Have fun!
|
|
07-22-2013 02:10 PM |
|
1991mirec
Member
|
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 |
|