Welcome to Fractal Forums

Fractal Software => Fragmentarium => Topic started by: Crist-JRoger on January 23, 2017, 07:57:41 PM




Title: GI refraction on Amd/Ati GPU
Post by: Crist-JRoger on January 23, 2017, 07:57:41 PM
Don't remember exactly said or not, so... houston we have a problem
Since i got AMD HD7850 all GI renders don't works properly with refraction. Now it looks like reflection  :-X please help, i tried all (AnimatedModVinz_EiffieGi2.frag, eiffieGI.frag, Kisocahedron - EiffieGi2.frag, MagGlass.frag)

(http://img07.deviantart.net/f93f/i/2017/023/0/2/2017_01_23_193834_by_c_jr-dawgo3q.jpg)

(http://img09.deviantart.net/adbe/i/2017/023/1/3/2017_01_23_194432_by_c_jr-dawgo3y.jpg)


Title: Re: GI refraction on Amd/Ati GPU
Post by: 3dickulus on January 24, 2017, 02:40:07 AM
I googled "AMD HD 7850 GLSL does not render correctly" and found some interesting stuff re:fixed pipeline
you might have to edit the #version line to...
#version 420 compatibility
...and change all occurrences of varying to in/out
the AMD 7000 series reportedly has some issues with legacy GLSL


Title: Re: GI refraction on Amd/Ati GPU
Post by: Crist-JRoger on January 24, 2017, 07:36:18 AM
I googled "AMD HD 7850 GLSL does not render correctly" and found some interesting stuff re:fixed pipeline
you might have to edit the #version line to...
#version 420 compatibility
...and change all occurrences of varying to in/out
the AMD 7000 series reportedly has some issues with legacy GLSL
Thank you! I'll try when come back to home PC. Do you have complete list of issues? Or call version corrects all?


Title: Re: GI refraction on Amd/Ati GPU
Post by: Crist-JRoger on January 24, 2017, 06:13:43 PM
Can't change all varying to in/out in 3D.frag
Code:
Could not create vertex shader: Vertex shader failed to compile with the following errors:
ERROR: 1:20: error(#421) Keyword or operator "out" usage incorrect. GLSL version number 130 is required.
ERROR: error(#273) 1 compilation errors.  No code generated
when call #version 130 or another to 420 - nothing...  :sad1:


Title: Re: GI refraction on Amd/Ati GPU
Post by: 3dickulus on January 25, 2017, 04:32:34 AM
requires the word "compatibility" so the line looks like...

#version 420 compatibility

...this is supposed to help with running some legacy glsl code, I don't have a list of issues or AMD 7000 series card to test :(

here is a tutorial about using in and out http://www.lighthouse3d.com/tutorials/glsl-tutorial/color-example/

EDIT: Varying variables provide an interface between Vertex and Fragment Shader. I think this is where the 7000 series has a problem, requiring 2 discrete variables to do the same thing.

my nVidia card reports...
Code:
Fragment shader compiled with warnings: Fragment info
-------------
0(256) : warning C7555: 'varying' is deprecated, use 'in/out' instead
0(257) : warning C7555: 'varying' is deprecated, use 'in/out' instead
0(258) : warning C7555: 'varying' is deprecated, use 'in/out' instead
...

but only warnings, no errors, it compiles and runs the shader with no visible difference.


Title: Re: GI refraction on Amd/Ati GPU
Post by: Crist-JRoger on January 25, 2017, 05:38:41 AM
#version 420 compatibility
Still nothing..  :-
And no any warnings.

GI code has no varyings. 3D.frag and BuferShader - yes.
When i change varying in 3D.frag to out i got this:
Code:
Could not create vertex shader: Vertex shader failed to compile with the following errors:
ERROR: 1:20: error(#421) Keyword or operator "out" usage incorrect. GLSL version number 130 is required.
ERROR: error(#273) 1 compilation errors.  No code generated


Title: Re: GI refraction on Amd/Ati GPU
Post by: Crist-JRoger on August 23, 2017, 11:03:44 AM
Long time no see  :D
Problem was in drivers. Solved with new Crimson.