Question about OpenGL

TeeChart for ActiveX, COM and ASP
Post Reply
koby
Newbie
Newbie
Posts: 9
Joined: Wed May 09, 2007 12:00 am

Question about OpenGL

Post by koby » Wed Aug 08, 2007 3:41 pm

how can i set the visibility of the light(0,1,2)
in my code ?

thanks,
Koby

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Aug 09, 2007 9:46 am

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
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

koby
Newbie
Newbie
Posts: 9
Joined: Wed May 09, 2007 12:00 am

misunderstood..

Post by koby » Thu Aug 09, 2007 10:34 am

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Aug 09, 2007 10:43 am

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
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply