Continuous colored 3D surface in WPF

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
zizou5
Newbie
Newbie
Posts: 17
Joined: Mon Jun 11, 2007 12:00 am
Contact:

Continuous colored 3D surface in WPF

Post by zizou5 » Thu Dec 11, 2014 1:12 pm

Hi Steema,

Is it possible to create continuous colored 3D surface in WPF? I mean not only solid colored surface rectangles, but with color gradient depending on height (see attachment). I'm able to do this in .NET form application by enabling openGl, but not having luck in WPF.
Thanks for every advice.
Attachments
sheet flatness.png
sheet flatness.png (166.66 KiB) Viewed 12733 times

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

Re: Continuous colored 3D surface in WPF

Post by Narcís » Tue Dec 16, 2014 9:35 am

Hi zizou5,

I'm afraid not, this is an OpenGL specific functionality. What you can do is defining gradient sort of ColorRange as shown in the All Features\Welcome !\Chart styles\Extended\Contour\Palette and Color range or All Features\Welcome !\Chart styles\Extended\Surface\Wireframe and palette examples in the features demo, available at TeeChart's program group. As an alternative, you can create your custom color palette as in the example I made here.
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

zizou5
Newbie
Newbie
Posts: 17
Joined: Mon Jun 11, 2007 12:00 am
Contact:

Re: Continuous colored 3D surface in WPF

Post by zizou5 » Mon Dec 22, 2014 1:48 pm

ok, thank you for information and possible alternative tips. It would be great if this possibility appears in future teechart .NET versions :wink:

Anaesthesia
Newbie
Newbie
Posts: 22
Joined: Mon Aug 24, 2015 12:00 am

Re: Continuous colored 3D surface in WPF

Post by Anaesthesia » Tue Sep 08, 2015 7:12 pm

Can you show me some code which 'turns on' OpenGL and implements the continuously colored surface as shown above?

Anaesthesia
Newbie
Newbie
Posts: 22
Joined: Mon Aug 24, 2015 12:00 am

Re: Continuous colored 3D surface in WPF

Post by Anaesthesia » Tue Sep 08, 2015 8:32 pm

Steema.TeeChart.Drawing.GL.TeeOpenGL openGL = new Steema.TeeChart.Drawing.GL.TeeOpenGL(SurfaceChart.Chart);
openGL.Active = true;
openGL.ShadeQuality = true;

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Continuous colored 3D surface in WPF

Post by Christopher » Wed Sep 09, 2015 9:29 am

Anaesthesia wrote:Steema.TeeChart.Drawing.GL.TeeOpenGL openGL = new Steema.TeeChart.Drawing.GL.TeeOpenGL(SurfaceChart.Chart);
openGL.Active = true;
openGL.ShadeQuality = true;
Has this answered the question for you?
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply