Jump to content
Sign in to follow this  
drunken officer

Light in a building for the whole room

Recommended Posts

Hello all.

I created a building. Inside this building i created a lampe. With a *.rvmat file i created a light point. Yes it looks nice. But my problem is, only this point is brightly.

But i need a light which "flash" / illuminate the whole room! Like a lamp on the street.

Can somebody help me?

Share this post


Link to post
Share on other sites

try making a light point and deleting and remaking it with a script like this:

#start

~3

deleteVehicle light;

~3

light = "#lightpoint" createVehicle getpos boat1;

light setLightBrightness 0.02;

light setLightAmbient[1.0, 0.0, 0.0];

light setLightColor[1.0, 0.0, 0.0];

light lightAttachObject [boat1, [0,0,0]];

goto "start";

Edited by abdecken
solved :)

Share this post


Link to post
Share on other sites
try making a light point and deleting and remaking it with a script like this:

I have to copy this script in the rvmat or in the config?

Share this post


Link to post
Share on other sites

Maybe in your Config;

This code is from BIS own buildings

		class Reflectors
	{
		class MainLight
		{
			color[] = {0.9,0.8,0.8,1};
			ambient[] = {0.1,0.1,0.1,1};
			position = "Source_MainLight";
			direction = "Direction_MainLight";
			hitpoint = "MainLight";
			selection = "LightFlare";
			size = 5;
			brightness = 3;
			period[] = {4.6,2.4};
		};
	};

Looking at it, theres probably at least 2 named points in the MEMORY lod, Source_MainLight and Direction_MainLight

Share this post


Link to post
Share on other sites

Yeah, I guess if you put a memory point where the light should be, you can config it as a light source.

Share this post


Link to post
Share on other sites

Okay,

i found it and it works to 50%.

The "class reflectors" works and blind me, when i look into the light. When i'm under the lampe, i see my character illuminated. But on the floor / wall i see no lights! Objects i put into the building with proxy are illuminated too.

WHEN i move the object in the editor under a lamp, which is orginallys on map, i can see the light on my floors.

Class MarkerLights

shining through the walls. The walls outside are shining like a sun... :D

I try to switch to "Class CargoLights", and then everything is dark.

Can somebody help me?

Share this post


Link to post
Share on other sites

I think that no light sources other than the sun cast shadows, so I'm not sure it's possible to make it so that lights don't shine through walls.

Maybe there is a clever way to build a 'volumetric light' out of self illuminated planes and reflectors.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×