|
Re: Change brightness of sky
[Re: 3run]
#422872
05/19/13 08:15
05/19/13 08:15
|
Joined: May 2013
Posts: 23 Somewhere
Wiseguy
Newbie
|
Newbie
Joined: May 2013
Posts: 23
Somewhere
|
@3run: What the manual doesn't tell you, is that this is a pointer to an ENTITY. Basically it's a pointer to the ENTITY the engine uses to render the sky, so changing the parameters of the ENTITY will change the rendered sky.
His words are wise, his face is beard.
|
|
|
Re: Change brightness of sky
[Re: Wiseguy]
#422876
05/19/13 11:32
05/19/13 11:32
|
Joined: Aug 2002
Posts: 3,258 Mainz
oliver2s
Expert
|
Expert
Joined: Aug 2002
Posts: 3,258
Mainz
|
Set the "LIGHT" flag of the skycube and adjust the brightness via red,green,blue parameters:
ENTITY* skycube =
{
layer=2; type="sky_abend+6.tga"; flags2=SKY|CUBE|SHOW;
//Brightness of Sky:
red=20;green=20;blue=20;
}
Last edited by oliver2s; 05/19/13 17:18.
|
|
|
Re: Change brightness of sky
[Re: oliver2s]
#422879
05/19/13 15:22
05/19/13 15:22
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
If you're just up to changing the brightness the ambient parameter should do as well.
Last edited by Uhrwerk; 05/19/13 17:13. Reason: Information given was wrong. Sorry.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: Change brightness of sky
[Re: Uhrwerk]
#422880
05/19/13 15:28
05/19/13 15:28
|
Joined: Aug 2002
Posts: 3,258 Mainz
oliver2s
Expert
|
Expert
Joined: Aug 2002
Posts: 3,258
Mainz
|
If you're just up to changing the brightness the ambient parameter should do as well. No, this doesn't work. But as an alternative the material ambient can be changed. By default its "mtl_sky", but you can also assign any custom material. EDIT: btw, the LIGHT flag isn't neccessary for changing red,green,blue as I wrote in my prevoius post.
Last edited by oliver2s; 05/19/13 15:33.
|
|
|
Re: Change brightness of sky
[Re: Uhrwerk]
#422881
05/19/13 16:28
05/19/13 16:28
|
Joined: May 2009
Posts: 5,370 Caucasus
3run
Senior Expert
|
Senior Expert
Joined: May 2009
Posts: 5,370
Caucasus
|
If you're just up to changing the brightness the ambient parameter should do as well. You mean something like this? If yes, it doesn't work for me..
SkyCubeEnt.ambient = 100;
|
|
|
Re: Change brightness of sky
[Re: 3run]
#422884
05/19/13 17:12
05/19/13 17:12
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
Yes, oliver2s already corrected me. My bad. Sorry for the confusion.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
|