Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,008 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Ambient light only? [Re: xXxGuitar511] #127950
05/07/07 09:59
05/07/07 09:59
Joined: Jun 2005
Posts: 59
M
maxxoros Offline OP
Junior Member
maxxoros  Offline OP
Junior Member
M

Joined: Jun 2005
Posts: 59
@xXxGuitar511
I do not get much your code, where mat_model come from, no info from manual.
Also I have tried and nothing happen.
But I as guess, what you are doing is set ambient color of entity to full white.But this way required much job
===
From manual
Quote:

Total Light = Ambient Light + Diffuse Light + Specular Light + Emissive Light



===========
And the ambient light only
Quote:


Ambient Light = AmbientMtl * ( PRV + EntRGB )
Where:

Parameter Description
AmbientMtl Material ambient color.
EntRGB Red, Green, Blue color of the entity when its light flag is set.
PRV Precomputed radiance color (position dependent, see below).




===
So, the engine seems do not have an ambient light, but the ambient from scene is from model only.
===
Too bad!!!!

Re: Ambient light only? [Re: maxxoros] #127951
05/07/07 12:24
05/07/07 12:24
Joined: Jun 2005
Posts: 59
M
maxxoros Offline OP
Junior Member
maxxoros  Offline OP
Junior Member
M

Joined: Jun 2005
Posts: 59
I even set ambient of model to 255,255,255, but It still receive the light

Quote:

Total Light = Ambient Light + Diffuse Light + Specular Light + Emissive Light




This syntax is right until now, and cause me a big problem

Re: Ambient light only? [Re: maxxoros] #127952
05/07/07 13:06
05/07/07 13:06
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline
Expert
fogman  Offline
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
-Go to "File" --> "Map Properties" --> "Sun"
-Set the sun values to 0, including "Azimuth" and "Elevation"
-Set the ambient to the desired value (e.g. 20,20,20)

Now in your level, on a hidden place, make a block with a shaded texture and place a static light above it. It should lit only the hidden block.

Edit: The entities will get their ambient from that block, so you should make it flat shaded and big enough.

After that, you should have a normal ambient without sunlight.

Page 2 of 2 1 2

Moderated by  HeelX, Spirit 

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