Jump to content
  • Advertisement
Sign in to follow this  
knobby67

OpenGL translating light attenuation values for use

This topic is 3832 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

Hi all, I'm working on using translating 3d max light parameters into opengl ones. Position and direction colour are fairly obvious. But does anyone know what I use for attenuation factors and specular? Max gives out light parameters but I have no idea what to use for attenuation? I'm guessing specular might be LIGHT_COLOUR*LIGHT_INTENS? Anyone any ideas? Thanks :) *LIGHT_SHADOWS Off *LIGHT_USELIGHT 1 *LIGHT_SPOTSHAPE Circle *LIGHT_USEGLOBAL 0 *LIGHT_ABSMAPBIAS 0 *LIGHT_OVERSHOOT 0 *LIGHT_EXCLUDELIST { *LIGHT_NUMEXCLUDED 2 *LIGHT_EXCLUDED_INCLUDE 0 *LIGHT_EXCLUDED_AFFECT_ILLUM 1 *LIGHT_EXCLUDED_AFFECT_SHADOW 1 } *LIGHT_SETTINGS { *TIMEVALUE 0 *LIGHT_COLOR 1.0000 0.8549 0.7843 *LIGHT_INTENS 0.8000 *LIGHT_ASPECT -1.0000 *LIGHT_TDIST -1.0000 *LIGHT_MAPBIAS 0.0000 *LIGHT_MAPRANGE 0.0000 *LIGHT_MAPSIZE 0 *LIGHT_RAYBIAS 0.2000 }

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!