Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 10:32
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (AndrewAMD, alibaba, fairtrader, ozgur, TipmyPip, Quad), 604 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 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 | 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