Other Headlight

Feb 25, 2014 at 3:28 PM
I am using an other headlight. I think it's less dazzling if a surface is normal to the direction:

``` ` var lights = new Model3DGroup();
        SpotLight spot = new SpotLight(Colors.LightGray, new Point3D(), new Vector3D(), 180, 0);          

        Binding b = new Binding("Camera.LookDirection");
        b.Source = _myViewPort;
        BindingOperations.SetBinding(spot, SpotLight.DirectionProperty, b);

        Binding bnd = new Binding("Camera.Position") ;
        bnd.Source = _myViewPort;
        BindingOperations.SetBinding(spot, SpotLight.PositionProperty, bnd);

        _myViewPort.Children.Add(new ModelVisual3D { Content = lights });``
Feb 27, 2014 at 9:59 PM
Nice approach, but isn´t the result the same?

This is an interesting topic, I have been thinking about adding some properties to control the relative position of the headlight to avoid specular reflections on such surfaces.

Also, could multiple headlights give a better lighting model?
Feb 27, 2014 at 10:00 PM
Mar 4, 2014 at 7:04 AM
Yeah, nearly the same. But I like it more. Thought I share it. Your approach with an other relative position sounds very interesting