Two 3D Charts

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
bairog
Newbie
Newbie
Posts: 72
Joined: Fri Jul 07, 2006 12:00 am
Location: Moscow, Russia
Contact:

Two 3D Charts

Post by bairog » Mon Jul 10, 2006 9:25 am

I have a chart with two 3D Surface series and I have a problem with their overlapping. I need these surfaces to overlap depending on the position (rotation and elevation of the chart) like real surfaces (looking from some positions we can see one surface closing another, from the other positions we can overlapping sufaces and from enother positions we can see both surfaces). But using Steema TeeChart I have one surface ALWAYS drawing above enother one. How can I solve this problem (it would be very good if someone helpes me with source code examples)?
Thank you.

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

Post by Narcís » Mon Jul 10, 2006 10:03 am

Hi bairog,

To achieve that you need to use OpenGL as done here:

Code: Select all

		private void Form1_Load(object sender, System.EventArgs e)
		{
			for (int x = 0; x < 10; x++)
			{
				for (int z = 0; z < 10; z++)
				{
					surface1.Add(x, x+z, z);
					surface2.Add(x, 20 - (x + z), z);
				}
			}

			tChart1.Aspect.Chart3DPercent = 100;
			teeOpenGL1.Chart = tChart1;
			teeOpenGL1.Active = true;
		}
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