Blurred 3D chart - GDI+ and 3D series

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
StatusPro
Newbie
Newbie
Posts: 6
Joined: Fri Aug 10, 2012 12:00 am

Blurred 3D chart - GDI+ and 3D series

Post by StatusPro » Thu Jun 20, 2013 1:22 pm

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.
Attachments
Flange_unblurrred_after_10_times_click.jpg
If clicking on the chart without moving, blur effect disappears
Flange_unblurrred_after_10_times_click.jpg (122.39 KiB) Viewed 6018 times
Flange_Blurred_by_Movement.jpg
Picture from blurred chart after movement
Flange_Blurred_by_Movement.jpg (141.83 KiB) Viewed 5996 times

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

Re: Blurred 3D chart - GDI+ and 3D series

Post by Narcís » Thu Jun 20, 2013 1:33 pm

Hi StatusPro,

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
Image Image Image Image Image Image
Instructions - How to post in this forum

StatusPro
Newbie
Newbie
Posts: 6
Joined: Fri Aug 10, 2012 12:00 am

Re: Blurred 3D chart - GDI+ and 3D series

Post by StatusPro » Thu Jun 20, 2013 3:57 pm

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
Attachments
BlurTest.zip
(3.92 KiB) Downloaded 357 times

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

Re: Blurred 3D chart - GDI+ and 3D series

Post by Narcís » Fri Jun 21, 2013 9:23 am

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:

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;
Then I found the minimal amount of code to reproduce the problem:

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;
So I have added the issue (TV52016611) to the bug list to be fixed for future releases.
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

StatusPro
Newbie
Newbie
Posts: 6
Joined: Fri Aug 10, 2012 12:00 am

Re: Blurred 3D chart - GDI+ and 3D series

Post by StatusPro » Fri Jun 21, 2013 9:38 am

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

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

Re: Blurred 3D chart - GDI+ and 3D series

Post by Narcís » Fri Jun 21, 2013 10:11 am

Hi Christian,
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.
Nice, thanks for sharing.
Please let me know, when the problem is finally gone.
Please be aware at Steema Software communication channels for new release announcements and what's fixed on them.

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
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply