Jump to content
  • Advertisement


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

Guest Anonymous Poster

Problems with spotlights

This topic is 6924 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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.



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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!