GLSL not working under OSX

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
deets
Posts: 8
Joined: Tue Feb 17, 2009 11:00 am

GLSL not working under OSX

Post by deets »

Hi,

I tried the GLSL-example with high- and low-level shaders. The latter runs, but the former simply produces white fragments.

There are no errors during setup.

My System is a MacPro, OSX 10.5.6 with two NVIDIA GeForce 8800 GT.

Anybody got any idea why it's not working, and if not how I maybe can compile the GLSL-code to the .psh/.vsh-files that do work?

deets
abhishekdey1985
Posts: 102
Joined: Sat Jan 17, 2009 4:33 am
Location: Pune
Contact:

Post by abhishekdey1985 »

hav u properly installed ur NVIDIA drivers.
I work on "The Best Real-Time 3D Engine"
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

I thought this was because my Mac didn't support GLSL, but it seems it should. Looks like the texture isn't being passed to the fragment shader, if we ignore the texture in the shader and give it a constant value instead then the output changes.
So it looks like this is an Irrlicht bug in OSX.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
deets
Posts: 8
Joined: Tue Feb 17, 2009 11:00 am

Post by deets »

Interesting. I will have a look to see if I can spot the problem. However, I wonder how setting up those shader parameters differs between high and lowlevel - they should be the same...

thanks for the hint, hopefully I can solve that.
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

They're set in the same way using glBindTexture, but I also tried setting the texture by name and it fails in a different way, the material isn't rendered at all.
I'll mess around with this some more when I have time, but I've added it to the tracker for the moment. If you manage to fix this or otherwise make progress please post a comment or fix to that tracker item and I'll get an email.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Maybe some of the extensions are not supported by native commands under OSX, though this would create log messages. Since the material isn't rendered at all it could also be some mipmap problem, which often leads to missing textures.
Maybe someone wants to join the gDebugger beta program for OSX - check opengl.org
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Hmm, just checked the example under OSX, and it works for me as expected. I guess it has somehow been solved.
Post Reply