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.
Two 3D Charts
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi bairog,
To achieve that you need to use OpenGL as done here:
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 |
Instructions - How to post in this forum |