Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, degenerate_762, ozgur), 1,311 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Change brightness of sky #422830
05/17/13 16:58
05/17/13 16:58
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline OP
Serious User
PadMalcom  Offline OP
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
I use a sky cube in my level. When I start a rain effect I want to reduce the brightness of the sky. How can I do this?

Thanks for the answers laugh

Re: Change brightness of sky [Re: PadMalcom] #422831
05/17/13 17:19
05/17/13 17:19
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
This should give you what you need:

http://www.conitec.net/beta/asky_cube_level.htm


Always learn from history, to be sure you make the same mistakes again...
Re: Change brightness of sky [Re: Uhrwerk] #422843
05/18/13 08:33
05/18/13 08:33
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
you can use sky entity alpha, if you set a proper sky colour (I recommend a nearly similar as fog colour), this blending makes sky less sharp too, so ideal for this purpose. mtl_sky does not affect all kinds of skies, as I remember sky cube is the one that is excluded only as it is drawn by the engine as 4 sprites (causing the border artifacts that you can lower by using a proper sky colour).

advertisement: of course, you can test it in real-time in my editor easily, just note the values (or use its sky system to handle easily 2 sky domes a sky cube or a sky model) laugh


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: Change brightness of sky [Re: Uhrwerk] #422870
05/19/13 07:41
05/19/13 07:41
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Originally Posted By: Uhrwerk
This should give you what you need:

http://www.conitec.net/beta/asky_cube_level.htm
Could you please go a little bit more into details? Cause, manual doesn't describe it well.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Change brightness of sky [Re: 3run] #422872
05/19/13 08:15
05/19/13 08:15
Joined: May 2013
Posts: 23
Somewhere
W
Wiseguy Offline
Newbie
Wiseguy  Offline
Newbie
W

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 Offline
Expert
oliver2s  Offline
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
Set the "LIGHT" flag of the skycube and adjust the brightness via red,green,blue parameters:

Code:
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 Offline
Expert
Uhrwerk  Offline
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 Offline
Expert
oliver2s  Offline
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
Originally Posted By: Uhrwerk
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 Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Originally Posted By: Uhrwerk
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..
Code:
SkyCubeEnt.ambient = 100;



Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
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 Offline
Expert
Uhrwerk  Offline
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...
Page 1 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | 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