Menu

TGLTexCombineShader bug

Help
R Jakobsen
2014-02-17
2015-01-08
  • R Jakobsen

    R Jakobsen - 2014-02-17

    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

     
  • Pavel Vassiliev

    Pavel Vassiliev - 2014-03-08

    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

     
  • Pavel Vassiliev

    Pavel Vassiliev - 2014-11-25

    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

 

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.