Recent

Author Topic: How to create 3D charts  (Read 1595 times)

mecoman

  • Newbie
  • Posts: 1
How to create 3D charts
« on: June 17, 2019, 03:09:56 pm »
Hi everyone. I need to create 3D charts. Do you know a library?
Thanks a lot, bye.

wp

  • Hero Member
  • *****
  • Posts: 11923
Re: How to create 3D charts
« Reply #1 on: June 17, 2019, 04:19:00 pm »
Not with TAChart, it is 2D only.

https://forum.lazarus.freepascal.org/index.php/topic,45683.msg323462.html#msg323462 shows an example how 3D charts could be drawn by means of OpenGL; it is not complete yet, maybe I can continue to work on it in the next days.

Otherwise, you could use a separate script-driven charting program such as gnuplot, catch its output and paint it in a TImage: https://forum.lazarus.freepascal.org/index.php/topic,23839.msg253759.html#msg253759, or https://forum.lazarus.freepascal.org/index.php/topic,40517.msg279940.html#msg279940

devEric69

  • Hero Member
  • *****
  • Posts: 648
Re: How to create 3D charts
« Reply #2 on: June 17, 2019, 05:18:26 pm »
You can read this post on 3D: https://forum.lazarus.freepascal.org/index.php/topic,45506.msg323487.html#msg323487.
The videos mentioned here, explain step by step (source code written at the same time), how to create a 3D engine.
use: Linux 64 bits (Ubuntu 20.04 LTS).
Lazarus version: 2.0.4 (svn revision: 62502M) compiled with fpc 3.0.4 - fpDebug \ Dwarf3.

 

TinyPortal © 2005-2018