Drawing Point3D series without perspective in FullRotation

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Christian Ziegelt
Newbie
Newbie
Posts: 12
Joined: Mon Feb 17, 2014 12:00 am

Drawing Point3D series without perspective in FullRotation

Post by Christian Ziegelt » Thu Jun 12, 2014 9:02 am

Dear all,

I'd like to draw a Point3D series like it is drawn in 2D.
Currently if I turn the chart (Rotate Tool) the points are drawn as ellipses with perspective deformation applied to them.

I'd like to see them as simple circle from all views.
Best would be to have "bubbles" or "balls" like it is 3D - but simple circles are good as well.

a few pictures to demonstrate it:

Scaling the points by depth would be OK but not necessary.

Thanks for any ideas !
Attachments
Flange2.png
Points as ellipses
Flange2.png (153.82 KiB) Viewed 9054 times
Flange1.png
View of Points like circles
Flange1.png (157.91 KiB) Viewed 9057 times

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Drawing Point3D series without perspective in FullRotation

Post by Yeray » Thu Jun 12, 2014 9:27 am

Hello,

Have you tried activating OpenGL?

Code: Select all

uses TeeOpenGL;
//...
var OpenGL1: TTeeOpenGL;
//...
  OpenGL1:=TTeeOpenGL.Create(Self);
  OpenGL1.TeePanel:=Chart1;
  OpenGL1.Active:=true;

  Series1.Pointer.Style:=psCircle;
  Series1.Pointer.Pen.Visible:=false;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Christian Ziegelt
Newbie
Newbie
Posts: 12
Joined: Mon Feb 17, 2014 12:00 am

Re: Drawing Point3D series without perspective in FullRotation

Post by Christian Ziegelt » Thu Jun 12, 2014 9:59 am

Hi Yeray,

unfortunately OpenGL has some different problems.
It was not realy looking nice (last time I looked at it) and TNearestTool for selecting a Point is not working correctly.

Currently I would like to do it with the normal 3D chart GDI+/GDI

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Drawing Point3D series without perspective in FullRotation

Post by Yeray » Thu Jun 12, 2014 12:53 pm

Hello Christian,

All the coordinates are transformed to the 3D perspective and I'm afraid it isn't straightforward to modify this process to only do a part of these calculations.
I see you own the sources, so you are free to give it a try to modify them according to your needs.
Also, this could be a good enhancement for the wish list. You can create a ticket yourself.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Christian Ziegelt
Newbie
Newbie
Posts: 12
Joined: Mon Feb 17, 2014 12:00 am

Re: Drawing Point3D series without perspective in FullRotation

Post by Christian Ziegelt » Fri Jun 13, 2014 8:11 am

Hi Yeray,

I just did as you suggested.
I did 3 modifications to 3 files - if you like I can send them to you.

Maybe you could include a property to switch this behaviour in future releases - as it helps me a lot not to modify the sources on each update.

Best regards
Christian Ziegelt

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Drawing Point3D series without perspective in FullRotation

Post by Yeray » Fri Jun 13, 2014 11:23 am

Hello Christian,

We'll be glad to take a look at your modifications and try to introduce them into the sources.
You can post the files at our upload page, and please tell us after doing it.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply