glscene / GLScene

GLScene is a graphics engine based on OpenGL with VCL components for Delphi & C++ Builder.
http://www.glscene.org
Mozilla Public License 2.0
216 stars 32 forks source link

Backface culling not working properly. #16

Closed SkybuckFlying closed 4 months ago

SkybuckFlying commented 2 years ago

I found this dataset first because I was searching for JSON file format:

https://github.com/martynafford/natural-earth-geojson

It seems to be a conversion of version 4 of this github repository, but I am running into a problem:

I am trying to render polygon lines in such a way that only the front of the sphere/globe is showing, but some parts of the backside is also showing, I am not sure why this is, perhaps an issue with the input data ? or perhaps the conversion process ? or perhaps some issue with GLScene or OpenGL ?

https://youtu.be/stQoXVrZgtA

I could try and read the dbf file to see if these backface culling problems are caused by the conversion, or if this is simply part of this dataset, and I will try and use version 5.

Any advise on what you think is the problem would be great.

glscene commented 4 months ago

"I am trying to render polygon lines in such a way that only the front of the sphere/globe is showing, but some parts of the backside is also showing" if you use a multi-polygon overlay on a sphere, then don't make the sphere's surface invisible and everything should display correctly.