TTriSurface visualization problem
Posted: Mon Apr 11, 2005 12:11 pm
Now I've tried to use TTriSurfaceSeries. But I have some problems with it (my current version of TChart Pro is 7.04)
Firstly, I set UseColorRange to true, EndColor and StartColor are set automatically after choosing "Hot" from the Gallery. I have a set of points where some points have y-coordinates 33, 100 or 110 and most of them - 0. But when I see the surface view only two triangles have red colors and all others - blue. Why are they blue? What is wrong in parameters?
Please look at the picture (http://www.ljplus.ru/img/knari/tchart_bug.GIF) , it shows my window. At the left part you can see used points, but don't be confused with coordinates: when I add points to the series inverting two coordinates, it means AddXYZ(x,delta,y); but never mind.
So, in this picture you can see some overdrawing of rectangles. I think it's a bug because I use HideTriangles property (it's true) and if I rotate the series this problem disappears. Or, maybe, I should set some additional properties?
Later I've tried to use OpenGL algorithm, the problem with overdrawing was solved, but in this mode I have additional drawing problems (look at the picture:http://www.ljplus.ru/img/knari/tchart_bug2.GIF): some stripes on the bottom part. Also this has some problems with zooming. But, and this is most important, I have the same blue color. Why? Where is the "hot" palette?
Firstly, I set UseColorRange to true, EndColor and StartColor are set automatically after choosing "Hot" from the Gallery. I have a set of points where some points have y-coordinates 33, 100 or 110 and most of them - 0. But when I see the surface view only two triangles have red colors and all others - blue. Why are they blue? What is wrong in parameters?
Please look at the picture (http://www.ljplus.ru/img/knari/tchart_bug.GIF) , it shows my window. At the left part you can see used points, but don't be confused with coordinates: when I add points to the series inverting two coordinates, it means AddXYZ(x,delta,y); but never mind.
So, in this picture you can see some overdrawing of rectangles. I think it's a bug because I use HideTriangles property (it's true) and if I rotate the series this problem disappears. Or, maybe, I should set some additional properties?
Later I've tried to use OpenGL algorithm, the problem with overdrawing was solved, but in this mode I have additional drawing problems (look at the picture:http://www.ljplus.ru/img/knari/tchart_bug2.GIF): some stripes on the bottom part. Also this has some problems with zooming. But, and this is most important, I have the same blue color. Why? Where is the "hot" palette?