Dear all,
I've got a little problem with 3D charts and GDI+:
I use a TChart in 3D mode - a few Point3D series and 3-5 surface series.
If I turn on the GDI+ mode TTeeGDIPlus.Active and .Antialias the charts start blurring when it is moved by TRotateTool. (see the pictures attached)
If I click on the graph without moving - the blur reduces by each click. After more or less 10 clicks, the blur effect ist completely gone.
Any ideas on how to solve this ?
Delphi 7 - latest TChart 2013 Version
Thanks for any help in advance.
Blurred 3D chart - GDI+ and 3D series
Blurred 3D chart - GDI+ and 3D series
- Attachments
-
- If clicking on the chart without moving, blur effect disappears
- Flange_unblurrred_after_10_times_click.jpg (122.39 KiB) Viewed 6054 times
-
- Picture from blurred chart after movement
- Flange_Blurred_by_Movement.jpg (141.83 KiB) Viewed 6032 times
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Blurred 3D chart - GDI+ and 3D series
Hi StatusPro,
Could you please attach a simple example project we can run "as-is" to reproduce the problem here?
Thanks in advance.
Could you please attach a simple example project we can run "as-is" to reproduce the problem here?
Thanks in advance.
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 |
Re: Blurred 3D chart - GDI+ and 3D series
Dear Narcis,
hope that simple example helps.
I had no time to add the "normal" Data amount. All the taper lines and multiple rings of data in 3D view.
With these it even blurrs more.
The demo does blur for me, too,
Best regards
Christian
hope that simple example helps.
I had no time to add the "normal" Data amount. All the taper lines and multiple rings of data in 3D view.
With these it even blurrs more.
The demo does blur for me, too,
Best regards
Christian
- Attachments
-
- BlurTest.zip
- (3.92 KiB) Downloaded 359 times
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Blurred 3D chart - GDI+ and 3D series
Dear Christian,
Thanks for the example project.
I started stripping it to the basics and finally found the problem is with TSurfaceSeries transparency. Disabling it in your project makes blur disappear:
Then I found the minimal amount of code to reproduce the problem:
So I have added the issue (TV52016611) to the bug list to be fixed for future releases.
Thanks for the example project.
I started stripping it to the basics and finally found the problem is with TSurfaceSeries transparency. Disabling it in your project makes blur disappear:
Code: Select all
procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
for i:=0 to ChartP.SeriesCount - 1 do
begin
if ChartP[i] is TSurfaceSeries then
(ChartP[i] as TSurfaceSeries).Transparency:=0;
end;
end;
Code: Select all
uses TeeSurfa, TeeTools, TeeGDIPlus;
procedure TForm1.FormCreate(Sender: TObject);
var Series1: TSurfaceSeries;
begin
Series1:=TSurfaceSeries.Create(Self);
Series1.FillSampleValues();
Series1.Transparency:=50;
Chart1.AddSeries(Series1);
Chart1.Canvas:=TGDIPlusCanvas.Create;
Chart1.Tools.Add(TRotateTool.Create(Self));
end;
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 |
Re: Blurred 3D chart - GDI+ and 3D series
Thanks for the help Narcis.
Unfortunately I need the transparency enabled for the surface series.
I found a short workaround for that problem - but this is taking much CPU time on small UMPCs.
I use the "OnRotate" event of the RotateTool and set TeeGDIPlus.Active to "False" and directly after to "True" again.
This way blurring stops.
Please let me know, when the problem is finally gone.
Best regards
Christian
Unfortunately I need the transparency enabled for the surface series.
I found a short workaround for that problem - but this is taking much CPU time on small UMPCs.
I use the "OnRotate" event of the RotateTool and set TeeGDIPlus.Active to "False" and directly after to "True" again.
This way blurring stops.
Please let me know, when the problem is finally gone.
Best regards
Christian
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Blurred 3D chart - GDI+ and 3D series
Hi Christian,
Thanks in advance.
Nice, thanks for sharing.I found a short workaround for that problem - but this is taking much CPU time on small UMPCs.
I use the "OnRotate" event of the RotateTool and set TeeGDIPlus.Active to "False" and directly after to "True" again.
This way blurring stops.
Please be aware at Steema Software communication channels for new release announcements and what's fixed on them.Please let me know, when the problem is finally gone.
Thanks in advance.
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 |