Change Position of Light
Moderators: SDS, support, admin
Change Position of Light
Hi,
what is like the best way to change the position of the light source(s)?
I'm using either
or
but nothing seems to happen. Not even when I change those values for all light sources.
Whereas changing the color of the light works perferctly fine with the following line
Any ideas why?
what is like the best way to change the position of the light source(s)?
I'm using either
Code: Select all
F3DN.Navigator3D.Lights[0].Position.Translate(vec4f);
Code: Select all
F3DN.Navigator3D.Lights[0].Translate(80, 80, 80);
Whereas changing the color of the light works perferctly fine with the following line
Code: Select all
diffColor.SetColor(0, 0, 120);
F3DN.Navigator3D.Light[0].Diffuse := diffcolor
Re: Change Position of Light
Hello Mike,
The position of the light source(s) isn't changed because it is set each time when the F3DN.Navigator3D.GLDCScene.Position.OnNotifyChange event fires. You may try to suppress this behaviour by using some custom OnNotifyChange event handler.
Mikhail
The position of the light source(s) isn't changed because it is set each time when the F3DN.Navigator3D.GLDCScene.Position.OnNotifyChange event fires. You may try to suppress this behaviour by using some custom OnNotifyChange event handler.
Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support