I have some old code to create and display GLPolygons that worked ok, however I just upgraded to Rio and installed the latest GLScene version and the same code does not seem to work (I attached the output of my app as it works complied with previous version of GLScene and with the latest 1.8)
Hi John can you upload a simple demo for testing please, it will be more easy for me to track the problem et answer to you and i'll can made change in code if needed.
Regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you for your swift reply! Please find attached a simple project but I am not sure the plane coordinates are ok. However I would expect to see something :)
First you don't need to pass GLScene1 as parameter in surface_plane := TGLPlane.Create(GLScene1); try to just do" surface_plane := TGLPlane.Create(nil);" because after you add it in DummyCube with" GLDummyCube.AddChild(surface_plane);"
An other way is directly to do " surface_plane := TGLPlane.CreateAsChild(GLDummyCube);"
So perhaps in your original application the order of your objects are not good and if you use DummyCube as parent check visibility and Culling properties
I see, also if you use DirectOpenGL between 2 be careful to restore the openGL's States correctly after the rendering
Cheers
Last edit: Jerome.D (BeanzMaster) 2019-02-18
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, I am afraid I do not know what to check exactly, I wrote that code many years ago and until recently with GLScene 1.5 it was working ok. Would it be possible for you to modify my project to draw a simple polygon so that I can see the changes you mentioned?
Thank you very much for your time and effort.
Regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I changed the PolygonMode from fill to lines and the result I get is not what I was expecting, maybe something changed to the way a polyline should be defined?
If you check the screenshot you sent me you will see that only the 2 planes are visible, the polyline is not, that is the part that is not working. My guess is that I will have to remove the polyline and replace it with a plane or switch back to 1.5
Thank you very much for your time and effort, I really do appreciate it!
Regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I checked the demo, the triangle polygon (GLPolygon1) is not visible, only the lines are plotted (GLLines2), if you comment out lines 137 to 140 then only the points appear.
Last edit: John Ioannides 2019-02-22
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have similar problem with Delphi 10.2 and GLScene. When I choose Win32 as target platform (which I prefer) polygons are not visible. If I change target to Win64 all polygons appear.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
John,
Maybe the reason is rooted in changing some dynamic methods to virtual or declaring inlines, I really don't guess what's the matter now. Will search later.
PW
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have the same problem (Delphi XE 10.3 Rio): polygons shows correctly when compiling Win64, but nothing Win32. Just downloaded the latest version of OpenGL but nothing changed. Any suggestion?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Do you have any suggestion about resolving this ? Is there any modifications that we could apply in source ?
I cannot compile my app to Win64.
Regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi to all , this problem seems to be an kind of range overflow so
the only problem i see it's in the code of polygon itself or in vectors's formula
I don't have Delphi, only Lazarus. But with Lazarus the "\GLScene\Samples\Delphi\Demos\collisions\TriangleBox " work perfectly by compiling it in Win32 and Win64
In the Lazarus's code
In GLGeomObject unit we have
So in first try to disable ASM by activate GEOMETRY_NO_ASM and GLS_NO_ASM in GLScene.inc like this
// De-Activate assembly routines in GLVectorGeometry.pas{$DEFINEGEOMETRY_NO_ASM}// De-Activate assembly routines in other GLS units.{$DEFINEGLS_NO_ASM}
You can also try to enabled those options to help tracking bugs
Hello,
I have some old code to create and display GLPolygons that worked ok, however I just upgraded to Rio and installed the latest GLScene version and the same code does not seem to work (I attached the output of my app as it works complied with previous version of GLScene and with the latest 1.8)
poly := TGLPolygon.Create(glscene1);
// add nodes ///
..........................
poly.Division := 100;
poly.VisibilityCulling := vcObjectBased;
poly.Parts := [pptop];
poly.Material.BlendingMode := bmOpaque;
poly.Material.FrontProperties.Ambient.AsWinColor := clblack;
poly.Material.FrontProperties.Diffuse.AsWinColor := SomeColor
poly.Material.FrontProperties.Diffuse.Alpha := 0.8;//0.80;
poly.Material.PolygonMode := pmFill;
poly.Material.BackProperties.Diffuse.AsWinColor := foo^.Color;
poly.Material.BackProperties.Diffuse.Alpha := 0.30;//0.30;
poly.Material.BackProperties.Ambient.AsWinColor := clblack;
Can anyone please suggest what I should change in order to make the polygons visible?
Regards
Hi John can you upload a simple demo for testing please, it will be more easy for me to track the problem et answer to you and i'll can made change in code if needed.
Regards
Hello,
Thank you for your swift reply! Please find attached a simple project but I am not sure the plane coordinates are ok. However I would expect to see something :)
Regards
Last edit: John Ioannides 2019-02-18
Hum, It's weird because with Delphi RIO 10.3 Community Edition and the latest version of GLScene 1.8 ,with your sample all seems good (See screenshot)
What your Graphic Card model ?
Check and update the GPU driver
Hum,
First you don't need to pass GLScene1 as parameter in surface_plane := TGLPlane.Create(GLScene1); try to just do" surface_plane := TGLPlane.Create(nil);" because after you add it in DummyCube with" GLDummyCube.AddChild(surface_plane);"
An other way is directly to do " surface_plane := TGLPlane.CreateAsChild(GLDummyCube);"
So perhaps in your original application the order of your objects are not good and if you use DummyCube as parent check visibility and Culling properties
I see, also if you use DirectOpenGL between 2 be careful to restore the openGL's States correctly after the rendering
Cheers
Last edit: Jerome.D (BeanzMaster) 2019-02-18
Hello, I am afraid I do not know what to check exactly, I wrote that code many years ago and until recently with GLScene 1.5 it was working ok. Would it be possible for you to modify my project to draw a simple polygon so that I can see the changes you mentioned?
Thank you very much for your time and effort.
Regards
Hello,
I changed the PolygonMode from fill to lines and the result I get is not what I was expecting, maybe something changed to the way a polyline should be defined?
Regards
Last edit: John Ioannides 2019-02-20
Hi, like i said your little sample work perfectly on my PC without change your code.
Can you upload your whole project for can i'll test ?
What is your GPU Card ?
Regards
Hello,
If you check the screenshot you sent me you will see that only the 2 planes are visible, the polyline is not, that is the part that is not working. My guess is that I will have to remove the polyline and replace it with a plane or switch back to 1.5
Thank you very much for your time and effort, I really do appreciate it!
Regards
Hi Ok i don't understand
Try to set PolygonMode to pmLines
Check and run \GLScene\Samples\Delphi\Demos\collisions\TriangleBox tell if it work and if you see the triangle polygon.
Hello,
I checked the demo, the triangle polygon (GLPolygon1) is not visible, only the lines are plotted (GLLines2), if you comment out lines 137 to 140 then only the points appear.
Last edit: John Ioannides 2019-02-22
I have similar problem with Delphi 10.2 and GLScene. When I choose Win32 as target platform (which I prefer) polygons are not visible. If I change target to Win64 all polygons appear.
I had to roll back to 1.5 to solve this issue but it would be nice to have this issue fixed in the latest version.
Thank you for the information, perhaps I will do the same. I hope that the GLScene team will fix it.
John,
It's a weird behaviour for polygon's drawing with ok on win64 and empty in win32. The reason not found yet.
PW
John,
Maybe the reason is rooted in changing some dynamic methods to virtual or declaring inlines, I really don't guess what's the matter now. Will search later.
PW
I have the same problem and solution: on win32 polygons don't show up, but on win64 they do..
I have this issue as well. Does anyone have an approximate timeframe for a fix?
I have the same problem with different PC delphi 10.1
Same problem here. I cannot view TGLPolygon on Win32. If compile Win64 TGLPolygon shows but no transparency/blend affected, only solid TGLPolygon...
Issue is in versión 1.6 and up. 1.5 Works OK. Tested on delphi XE7 and 10.3, both fails. Tested on various Nvidia Geforce cards, all failed.
Any solution for this problem?
I have the same problem (Delphi XE 10.3 Rio): polygons shows correctly when compiling Win64, but nothing Win32. Just downloaded the latest version of OpenGL but nothing changed. Any suggestion?
Hi,
Do you have any suggestion about resolving this ? Is there any modifications that we could apply in source ?
I cannot compile my app to Win64.
Regards
Same problem here, TGLPolygons don't show in 32bits, only in 64bits.
Hi to all , this problem seems to be an kind of range overflow so
the only problem i see it's in the code of polygon itself or in vectors's formula
I don't have Delphi, only Lazarus. But with Lazarus the "\GLScene\Samples\Delphi\Demos\collisions\TriangleBox " work perfectly by compiling it in Win32 and Win64
In the Lazarus's code
In GLGeomObject unit we have
in GLNodes.pas
In GLVectorGeometry. pas
So in first try to disable ASM by activate GEOMETRY_NO_ASM and GLS_NO_ASM in GLScene.inc like this
You can also try to enabled those options to help tracking bugs
And if someone can diff those code below, it will be help
Cheers
Last edit: Jerome.D (BeanzMaster) 2020-02-26