Archived

This topic is now archived and is closed to further replies.

Guest Anonymous Poster

Problems with spotlights

Recommended Posts

The target is a 3D location the light points at. It is NOT a direction vector.

You will need to swap the y and x values for both spot location and target to match 3D Studio's coordinate system.

The falloff value is the distance the light drops off to no effect. If you don't want it to fall off make this a high value like 100000.

Chris

Chris

Share this post


Link to post
Share on other sites
Guest Anonymous Poster

I'm working on the 3dsmax plugin, and
the directional and omni lights works
well but the spotlight don't work.

i see the spolight.c and view strange
options in the

SetLightTarget( ...,6000,... ) why 6000 ?

explain me how it works

i put a plane on 0,0,0 with grid poligons

and i set:

LightPosition ( 0,400,0 )
LightTarget ( 0,0,0 );
Cone( RADIANS(45),RADIANS(90) )
Falloff( 4000 ) for example
strenght etc ... it's ok

and i don't see the effect of a spotlight

target is a direction ?
y ix z ?
x,y,z is multiplied ?

please explain me for finish the light exporting module of the 3dsmax plugin

Share this post


Link to post
Share on other sites