Author Topic: Shadering Chameleon V2.0 vs. Intel graphics  (Read 5849 times)

0 Members and 1 Guest are viewing this topic.

Stefan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4344
    • View Profile
Shadering Chameleon V2.0 vs. Intel graphics
« on: December 01, 2015, 10:05:28 PM »
I converted Shadering Chameleon V2.0 into GLSL hacker format, download (fixed) code here

Works fine at Shadertoy.com with Intel graphics, but not when running in GLSL hacker.
Most body parts are missing.

No problem with NVIDIA



« Last Edit: December 06, 2015, 10:16:39 PM by Stefan »


JeGX

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1890
    • View Profile
    • Geeks3D.com
Re: Shadering Chameleon V2.0 vs. Intel graphics
« Reply #1 on: December 04, 2015, 07:34:42 PM »
I'll try to check this demo later. Probably an bug in Intel desktop OpenGL driver...

Similar graphics bugs: http://www.geeks3d.com/forums/index.php/topic,3928.0.html

Stefan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4344
    • View Profile
Re: Shadering Chameleon V2.0 vs. Intel graphics
« Reply #2 on: December 06, 2015, 02:33:04 PM »
I've triple-checked with my legacy AMD APU, here only the head is missing.

btw the code for the body parts is titled inside the pixel shader.


JeGX

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1890
    • View Profile
    • Geeks3D.com
Re: Shadering Chameleon V2.0 vs. Intel graphics
« Reply #3 on: December 06, 2015, 08:52:00 PM »
The head is missing here too. But it seems you have tweaked a bit the code in the map() function (around line 197). I copied the original map()  function from Shadertoy website and the chameleon looks good with a GTX 960:



I will check the demo with the Intel HD 530 asap.

JeGX

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1890
    • View Profile
    • Geeks3D.com
Re: Shadering Chameleon V2.0 vs. Intel graphics
« Reply #4 on: December 06, 2015, 08:54:27 PM »
By the way, I added this demo to the code sample pack. Thanks Stefan for the port ;)

Stefan

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4344
    • View Profile
Re: Shadering Chameleon V2.0 vs. Intel graphics
« Reply #5 on: December 06, 2015, 10:06:26 PM »
Yes, i tried to shuffle the code to see if it makes a difference on Intel.
Then i uploaded a screwed version,

The original shader works on NVIDIA and AMD