"Dynamic" checkbox for a light?

Posted By: Tiles

"Dynamic" checkbox for a light? - 09/26/08 07:06

I am a bit discouraged to post this in the bugs section. Maybe also this is a feature, and not a bug.

When you insert a light in your level you can check a "Dynamic" checkbox. With this method created dynamic lights doesn't act as dynamic light though. They still act as static light.

I am told that i have to create the light with code, and not in the WED. But what is the "Dynamic" checkbox in the properties of the light good for then?

Just in case, i still use A 7.10
Posted By: jcl

Re: "Dynamic" checkbox for a light? - 09/26/08 08:02

This checkbox is supposed to place a light that's static and dynamic at the same time, i.e. it casts dynamic shadows and lights the diffuse part of a material.

You say they don't act this way? Do you have a level where this happens?
Posted By: Tiles

Re: "Dynamic" checkbox for a light? - 09/26/08 08:38

Thanks JCL.

Hmm, works in none of my levels. It's always the standard lighting. So i thought it's me doing something wrong. Am still at battling with the basics. But now i am told that the light really doesn't work, but should. That's why i ask. It`s about this case here:

http://www.coniserver.net/ubb7/ubbthreads.php?ubb=showflat&Number=229182#Post229182

I am still unsure if it is not me doing something very wrong.


Posted By: jcl

Re: "Dynamic" checkbox for a light? - 09/26/08 08:38

I just found that there's indeed something wrong in certain levels with dynamic lights placed in WED. This will be fixed. Until then, please place your lights through script.

You can place a dynamic light with this code, f.i. in the main function after loading the level:

ENTITY* light = ent_create(NULL,vector(x,y,z),NULL);
light.red = r;
light.green = g;
light.blue = b;
light.lightrange = radius;

where x,y,z,r,g,b,radius are the position, color, and range of the light.
Posted By: Tiles

Re: "Dynamic" checkbox for a light? - 09/26/08 08:41

WEEHA laugh

Vielen Dank smile
© 2024 lite-C Forums