|
2 registered members (TipmyPip, Martin_HH),
8,012
guests, and 11
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: lighting-dynamic
[Re: DAVIDMORETON]
#295783
10/27/09 15:39
10/27/09 15:39
|
Joined: Apr 2005
Posts: 3,076 Germany, NRW
rvL_eXile

3D Artist
|

3D Artist
Joined: Apr 2005
Posts: 3,076
Germany, NRW
|
maybe its a limitation of your Engine Version (Commercial ( extra / pro)... You have to script a sulution, to "fix" this... Example... Switch all Lights on, 500quants near player, else switch lights off...
cYa Sebastian
Tutorials: [Blender]Terrain creation ENG/GER [Blender]Low Poly Tree Modeling [GIMP]Create a Texture for Terrains CLICK HERE
|
|
|
Re: lighting-dynamic
[Re: DAVIDMORETON]
#297488
11/07/09 19:24
11/07/09 19:24
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
Expert
Joined: Mar 2006
Posts: 2,503
SC, United States
|
One way to control this, is have a model for each dynamic light. Make this model a sphere that has a radius of 100 quants. For the light, have an action similar to this: note: been a while since I've used GS, so the syntax is probably off...
action d_light()
{
my.red = 200;
my.green = 200;
my.blue = 200;
my.lightrange = 0;
set(my, PASSABLE | INVISIBLE);
//
var range = 800;
var scale = range / 100;
vec_set(my.scale_x, vector(scale, scale, scale));
//
while (my)
{
if (is(my, CLIPPED))
{my.lightrange = 0;}
else
{my.lightrange = range;}
//
wait(1);
}
}
The sperical model is supposed to represent the extent of the lights range. When the model is not visible on the screen, then the light will not be visible on the screen, so the light will be turned off.
|
|
|
|