thelegacy
09-03-2006 14:38:53
Hey, just a quick question. I noticed with the light exportation the the lights Attenuation isn't exported along with the light. But I also noticed in the SDK that Ogre does indeed have the capabilities.
If it can't be exported with the exporter, does anyone know an easy way to change the attenuation in the .osm file?
Sorry if this doesnt all make sense, I'm a level designer trying to help out our coder as he's a bit over worked.
void setAttenuation (Real range, Real constant, Real linear, Real quadratic)
Sets the attenuation parameters of the light source ie how it diminishes with distance. If it can't be exported with the exporter, does anyone know an easy way to change the attenuation in the .osm file?
<light name="Omni08" type="omni" on="true" CastShadows="no" intensity="1">
<position x="1471.84" y="-974.854" z="2191.46" />
<rotation x="0" y="0" z="0" w="-1" />
<scale x="1" y="1" z="1" />
<color r="1" g="1" b="1" />
<specular r="1" g="1" b="1" />Sorry if this doesnt all make sense, I'm a level designer trying to help out our coder as he's a bit over worked.