Click or drag to resize
Reader3dsReadLightRange Property
Gets or sets a Boolean that specifies if Range for PointLight and SpotLight is read. Default value is false.

Namespace: Ab3d
Assembly: Ab3d.Reader3ds (in Ab3d.Reader3ds.dll) Version: 9.0.5590.1040
Syntax
C#
public bool ReadLightRange { get; set; }

Property Value

Type: Boolean
Remarks

ReadLightRange gets or sets a Boolean that specifies if Range for PointLight and SpotLight is read. Default value is false.

WPF 3D is using per vertex lighting. This means that lighting is calculated for each vertex and than interpolated to the pixels between vertexes. If WPF 3D would use per pixel lighting, than lighting would be calculated for each pixel. Per vertex lighting is much faster and can run on older hardware but when using PointLight and SportLight is has very big drawbacks.

For example if we have a scene with one plane that is created from 2 triangles and one PointLight that has Position and Range set so that only the center of the plane would be visible, the plane would be rendered completely black - as if no light would illuminate the plane.

Because of that problems the default value for ReadLightRanges is set to false - in this case the Range for PointLights and SpotLights is set to Infinity - it is better to show more than nothing.

See Also