Login  Register

Re: Fail to run a depth peeling example

Posted by Martin on Feb 05, 2012; 11:08am
URL: https://forum.jogamp.org/Fail-to-run-a-depth-peeling-example-tp3715480p3717028.html

Example is now working great!!

I finally could get rid of this error by specifying in Nvidia settings to always use GPU :/ For others look here:



Before finding this, I failed with some shader errors. I report them here for other developpers that may fail to run programs with shaders on similar laptop with alternative integrated GPU.

1) Trying to load shade_fragment.glsl, I got an error saying:
"ERROR: 0:25: 'fmod' : no matching overloaded function found - implicit conversion not allowed"
for this following line:
color.rgb = (fmod(i, 2.0) == 0) ? vec3(.4,.85,.0) : vec3(1.0);
By looking on the web it seams fmod really exists and is modulo function. Thanks to a #if in the shader code, I can execute another code block instead an continue to next error :)

2) In dual_peeling_peel_fragment.glsl, I got some errors, the first one saying:
"ERROR: 0:10: '' :  extension 'ARB_draw_buffers' is not supported"

Looking at a wikipedia article let me think ARB will be supported on a very limited subset of computers: "Most non-nVidia OpenGL implementations do not provide the nVidia ARB assembly extension and do not offer any other way to access all the shader features directly in assembly, forcing the use of GLSL even for machine generated shaders where assembly would be more appropriate."

Regards,
Martin