I am trying to use OpenGL 3D rendering and when I click the Activate button, the whole chart disappears. What am I doing wrong?
Thank you,
John
Activating OpenGL makes the chart disappear?...
Re: Activating OpenGL makes the chart disappear?...
Hello John,
This seems to work fine for me here with the latest TeeChart Pro v2024.41 and RAD 12.2.
Could you please specify what TeeChart and RAD Studio versions are you using?
This seems to work fine for me here with the latest TeeChart Pro v2024.41 and RAD 12.2.
Could you please specify what TeeChart and RAD Studio versions are you using?
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Activating OpenGL makes the chart disappear?...
Hi Yeray...
It is TChart Pro 2023, and RAD Studio (C++) 12.2. However, I have had this issue in previous versions as well. I usually just switch to GDI+, but I need to use lighting for this particular project. And, if I use OpenGL in Tee, then I cannot use it in the project itself. I get all types of errors (I have posted about this in the past) if I include "gl/gl.h."
Basically, I have never been able to use OpenGL.
John
It is TChart Pro 2023, and RAD Studio (C++) 12.2. However, I have had this issue in previous versions as well. I usually just switch to GDI+, but I need to use lighting for this particular project. And, if I use OpenGL in Tee, then I cannot use it in the project itself. I get all types of errors (I have posted about this in the past) if I include "gl/gl.h."
Basically, I have never been able to use OpenGL.
John
Re: Activating OpenGL makes the chart disappear?...
Hello John,
With TeeChart Pro v2024.41 and RAD 12.2, I've just created a new C++Builder project, added a
And this to the .hpp:
And it seems to work fine for me here:
I haven't tried TeeChart Pro v2023 in RAD 12.2. I assume you had to do some changes to make it compilable.
With TeeChart Pro v2024.41 and RAD 12.2, I've just created a new C++Builder project, added a
TChart
with a couple of TLineSeries
and this TButton
:Code: Select all
void __fastcall TForm1::Button1Click(TObject *Sender)
{
Chart1->Canvas = new TGLCanvas();
}
Code: Select all
#include <VCLTee.TeeGLCanvas.hpp>
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Activating OpenGL makes the chart disappear?...
I don't think this would make a difference, but the project is dynamic linked library (DLL), not an executable. I can't see how that would affect the design time, though. It just doesn't work...never has.
Re: Activating OpenGL makes the chart disappear?...
Hello,
Do you have a simple example we can run as-is to reproduce the problem here?
Thanks in advance.
Do you have a simple example we can run as-is to reproduce the problem here?
Thanks in advance.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Activating OpenGL makes the chart disappear?...
Unfortunately, my projects have many external references, so I would not be able to send you one. However, you are more than welcome to remote in if you would like. I am in the US Eastern time zone and here from 7:30 - 4:00 most weekdays. I did notice one interesting thing. I made a small DLL project and added a TChart with OpenGL and got the following information on the Renderer tab:
My project is blank:
John
My project is blank:
John
Re: Activating OpenGL makes the chart disappear?...
I figured it out. It does not like being on a PageControl's Tabsheet component set to draw Double Buffered.
Last edited by JNuzzi on Wed Sep 25, 2024 5:08 pm, edited 1 time in total.
Re: Activating OpenGL makes the chart disappear?...
Well, I finally got it showing in Design mode. However, in runtime, it went from:
In GDI+
To a flickering black and white window in OpenGL. Is this because there is OpenGL being used in the main executable (remember, this is in a DLL).
John
In GDI+
To a flickering black and white window in OpenGL. Is this because there is OpenGL being used in the main executable (remember, this is in a DLL).
John