Page 1 of 1
Question about OpenGL
Posted: Wed Aug 08, 2007 3:41 pm
by 9535018
how can i set the visibility of the light(0,1,2)
in my code ?
thanks,
Koby
Posted: Thu Aug 09, 2007 9:46 am
by narcis
Hi Koby,
You can try using something like this:
Code: Select all
TChart1.Aspect.OpenGL.Active = True
TChart1.Aspect.OpenGL.LightPosition.X = 0
TChart1.Aspect.OpenGL.LightPosition.Y = 1
TChart1.Aspect.OpenGL.LightPosition.Z = 2
misunderstood..
Posted: Thu Aug 09, 2007 10:34 am
by 9535018
hi, i think you misunderstood me.
i want to be able to enable/disable the lights, not to set the direction.
i found that someone has asked my question before (2 years ago) and Pep told him that he will add this request to your wish list.
http://www.teechart.net/support/viewtopic.php?t=4174
have yo added this functionallity to the ActiveX ?
thanks,
koby.
Posted: Thu Aug 09, 2007 10:43 am
by narcis
Hi koby,
Ok, thanks for the information.
Yes, this has been added to TeeChart Pro v8 ActiveX, which was released last month. In v8 you can do this:
Code: Select all
With TChart1.Aspect.OpenGL
.Active = True
.Light.Visible = True
.Light1.Visible = True
.Light2.Visible = True
End With