Posted By: maxxoros
Ambient light only? - 05/04/07 05:31
I am working with a test scene and all the texture are baked and I am using model for the whole scene, so no need for any light source except an ambient light to cast "ambient" on all model.
However, after build, my scene is total black because there are no light to light up the scene
So, how could I add only an ambient light to my scene, I see that the light inside 3DGS is a point light only
Posted By: maxxoros
Re: Ambient light only? - 05/04/07 09:29
Some example
The in-game screenshot

And
Ambient light only (what I want)
Posted By: maxxoros
Re: Ambient light only? - 05/05/07 12:04
No one could help me

I really can not find a way to set only ambient light in A6
Posted By: Robotronic
Re: Ambient light only? - 05/05/07 12:15
What about setting the sun_light (which is directional) but using a special material for the model, which makes it non-sensitive for the sun_lights direction?
For a quick test:
A model usually gets the default material: mat_model
You can try the following instruction (also in-game):
vec_set (mat_model.diffuse_blue, vector(0,0,0));
This should remove the bright spots, while leaving the ambient intact.
If it works you could simply define a new material with the diffuse component set to zero.
Posted By: maxxoros
Re: Ambient light only? - 05/05/07 12:45
I have not tested but this method does not fit me. I have hundred object in scene and set material action for permodel is a huge and dull task..
Posted By: Joey
Re: Ambient light only? - 05/05/07 13:27
isn't there something as mat_model which applies for every model in the current level?
Posted By: xXxGuitar511
Re: Ambient light only? - 05/05/07 16:28
also try using the unlit flag if there are static lights around that might be messing it up...
Posted By: maxxoros
Re: Ambient light only? - 05/05/07 16:35
I never think this will be a big problem in A6
Posted By: maxxoros
Re: Ambient light only? - 05/06/07 18:48
Spend all day for searching a method, but fail... too bad
Posted By: xXxGuitar511
Re: Ambient light only? - 05/06/07 19:02
Ok, have another idea. In your script, call these [once] after the level has been loaded.
var fullvector[3] = 255, 255, 255;
vec_set(mat_model.diffuse_blue, fullvector);
vec_set(mat_model.ambient_blue, fullvector);
vec_set(mat_model.specular_blue, nullvector);
vec_set(mat_model.emissive_blue, nullvector);
mat_model.albedo = -100;
This should remove sun lighting. Also try setting sun_light = 0;
Posted By: maxxoros
Re: Ambient light only? - 05/07/07 09: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!!!! 
Posted By: maxxoros
Re: Ambient light only? - 05/07/07 12:24
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
Posted By: fogman
Re: Ambient light only? - 05/07/07 13:06
-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.