Menu

Texture3D: Transfer function in Shader

Help
Ronald
2020-10-18
2020-10-19
  • Ronald

    Ronald - 2020-10-18

    Hello,
    Refer to Texture3D demo, where 3D grayscale texture values can be mapped to rgb colors. As the approach in the demo works for small datasets only, I want to do this using the GLSL vertex/fragment shaders.
    However, I cannot get this to work. Refer to attached modified Texture3D, where I added a Texture1D color table and a TGLSLShader component, as well as possibility to modify Shader Code. (Shader code is automatically loaded/saved on program start/end)
    Anyone who knows how to make this work?
    Regards, Ronald
    PS updated attached project improving error handling and avoiding texture index issues.

     

    Last edit: Ronald 2020-10-18
  • Ronald

    Ronald - 2020-10-19

    Hi Jérôme,
    Thanks, I will look at zip and resources.
    Regarding converting raycasting projects to GLScene, that would be great, please let me know if I can help!
    Regards, Ronald

     

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.