I have a project where I have updated from an 2007 version of GLScene to the newest version (2013). There is a problem with shading, it does not shade correct and makes stripes in the shading.
Rikke, please, could you give an example without stripes in the shading if you ask "to make the existing code work again"? It's need to know where it was started before version 1.0.0.0803
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Rikke, it's not TGLTexCombineShader, because in other projects, e.g. Terrain and cg_BlendedTerrain, we the same bugs with no such class. The source of the problem somewhere in GLTerrainRenderer of GLHightData units. I've found that there is a line in GLHightData.pas made by Lin:
===
13/02/07 - LIN- Added THeightDataSource.TextureCoordinates - Called from TGLBitmapHDS and TGLHeightTileFileHDS. Many tweaks and changes to threading. (I hope I havent broken anything)===
After those changes or others for TGLHightData in that period we have gaps in terrain tiles now like on the 1) first image.
On screenshots of the same terrain meshes before in 2006
2) and after changes in 2011) 3) there are contacts between tiles that were changed from gradient junction without gaps to abrupt junction with gaps
=========================================================
So if someone knows how to connect with Lin, please, send him a request to stick tiles together and remove the gaps. It’s hard to find this bug.
Using Beyond Compare tool is unsuccessful hitherto.
PW
R Jakobsen,
Now this elusive bug that caused gaps between tiles is fixed. It was found in SafeTesselate function inGLRoamPatch unit. Updated in units. The demos work fine now, R, try it for your apps.
PW
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hmmm, yes, the gaps between tiles have disappered, and the shaded terrain demo seems to work, but in my projects new problems have been introduced. Now there are gabs between individual triangles, and the function Split in GLROAMPatch.pas produces both access violations and stack overflows. See attached images
I have a project where I have updated from an 2007 version of GLScene to the newest version (2013). There is a problem with shading, it does not shade correct and makes stripes in the shading.
The same bug is seen in the demo project: \Samples\Delphi\Demos\meshes\shadedterrain\ which can be found here https://sourceforge.net/projects/glscene/files/User%20Demos/1.0.0.0803/ShadedTerrainLab.zip/download
I am looking for help to make the exitsting code work again. Or alternativly your experience with ohter shaders or any demo projects.
Best Regards
Rikke Jakobsen
Rikke, please, could you give an example without stripes in the shading if you ask "to make the existing code work again"? It's need to know where it was started before version 1.0.0.0803
Rikke, it's not TGLTexCombineShader, because in other projects, e.g. Terrain and cg_BlendedTerrain, we the same bugs with no such class. The source of the problem somewhere in GLTerrainRenderer of GLHightData units. I've found that there is a line in GLHightData.pas made by Lin:
===
After those changes or others for TGLHightData in that period we have gaps in terrain tiles now like on the 1) first image.
On screenshots of the same terrain meshes before in 2006
2) and after changes in 2011) 3) there are contacts between tiles that were changed from gradient junction without gaps to abrupt junction with gaps
=========================================================
So if someone knows how to connect with Lin, please, send him a request to stick tiles together and remove the gaps. It’s hard to find this bug.
Using Beyond Compare tool is unsuccessful hitherto.
PW
Mesh 2006
R Jakobsen,
Now this elusive bug that caused gaps between tiles is fixed. It was found in SafeTesselate function inGLRoamPatch unit. Updated in units. The demos work fine now, R, try it for your apps.
PW
Hmmm, yes, the gaps between tiles have disappered, and the shaded terrain demo seems to work, but in my projects new problems have been introduced. Now there are gabs between individual triangles, and the function Split in GLROAMPatch.pas produces both access violations and stack overflows. See attached images