Gamestudio Links
Zorro Links
Newest Posts
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 905 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
change "sun ambient" ig #305076
01/12/10 20:10
01/12/10 20:10
Joined: Sep 2009
Posts: 155
France
ayks Offline OP
Member
ayks  Offline OP
Member

Joined: Sep 2009
Posts: 155
France
Hi,
i'm trying to change the sun ambient ig.

i want to change to

tried
ambient_blue=80;
ambient_red=80;
ambient_green=80;
but i got "parameter unknown ambient_blue". :y
any solution ?

Re: change "sun ambient" ig [Re: ayks] #305080
01/12/10 20:24
01/12/10 20:24
Joined: Aug 2005
Posts: 1,185
Ukraine
Lion_Ts Offline
Serious User
Lion_Ts  Offline
Serious User

Joined: Aug 2005
Posts: 1,185
Ukraine
look into the manual:
Quote:
sun_color
The color of sunlight, default (128,128,128).

ambient_color
The basic environment lighting of an entity outside the PRV range (such as an entity in an unlit level or with no ground below), default (64,64,64).
Range:
(0,0,0) .. (255,255,255).

Type:
COLOR* (BGR)
Remarks
- The sun_color vector is multiplied by the sun brightness (sun_light) to give the final sun color.
- A7.60 Sun and ambient color are loaded from their Map Properties values of the current level when their level values are nonzero. Otherwise they stay at their default values, giving medium brightness to all objects. Loading from the level can be prevented by setting sun or ambient colors at zero in Map Properties, or by setting the compatibility variable at 6 or below.
- The sun_color is a dynamic light and can be changed anytime; the ambient_color is static and only affects a level loaded afterwards. For affecting the overall brightness, use the view.ambient parameter.


Re: change "sun ambient" ig [Re: Lion_Ts] #305089
01/12/10 21:10
01/12/10 21:10
Joined: Sep 2009
Posts: 155
France
ayks Offline OP
Member
ayks  Offline OP
Member

Joined: Sep 2009
Posts: 155
France
hmm.. ok.. i already searched in the manual but i dont often read the text.

but for this one, i just read it --
"sun color can be changed anytime"
"ambient color is static and only affects a level loaded afterwards"

guess it means that i can't change ambient color ig smirk

Re: change "sun ambient" ig [Re: ayks] #305091
01/12/10 21:19
01/12/10 21:19
Joined: Sep 2009
Posts: 155
France
ayks Offline OP
Member
ayks  Offline OP
Member

Joined: Sep 2009
Posts: 155
France
ok i just found a solution with the help of the manual, but a bit with my brain too.

Quote:
ambient
Light value (0..100, default 50) added to everything which is seen in this view. Can be used to change the overall brightness of the map.
Range:
0 .. 100 (default: 50)

Type:
var
Example:
camera.ambient = 100; // maximum brightness


tried camera.ambient = 100; => bright++
tried camera.ambient = 0; => change nothing
tried camera.ambient = -100; =>bright-- = what i needed

luck that i tried with -100, wonder why in the manual, there is "0 .. 100 (default: 50) for range" smirk

Re: change "sun ambient" ig [Re: ayks] #305094
01/12/10 21:29
01/12/10 21:29
Joined: Aug 2005
Posts: 1,185
Ukraine
Lion_Ts Offline
Serious User
Lion_Ts  Offline
Serious User

Joined: Aug 2005
Posts: 1,185
Ukraine
yes, I think so laugh
----

you can take a look for a video_gamma variable if you're experimenting with brightness

Last edited by Lion_Ts; 01/12/10 21:33. Reason: that was for a prev post, you're so fast :D
Re: change "sun ambient" ig [Re: Lion_Ts] #305097
01/12/10 21:41
01/12/10 21:41
Joined: Sep 2009
Posts: 155
France
ayks Offline OP
Member
ayks  Offline OP
Member

Joined: Sep 2009
Posts: 155
France
i just post to add a "thx for your help".


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