Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OpenGL Shading Language



Hi,

I've got a question related to the current state (OS 10.3.6) of support for OpenGL Shading Language.

I address this list since most driver providers do not provide drivers for Apple hardware; that presumably is something which Apple is responsible for.

I recently wrote a very simple openGL shader (vertex+fragment) and successfully ran it (via JOGL, a Java binding for openGL) on a Linux machine.

The same code running on my Mac G5 with OS < 10.3.6 crashed the Java machine. However, when I updated to 10.3.6, things improved considerably; I received very comprehensive "info log" messages (via the glGetInfoLog() function); but the shader itself did not take effect. There was no error message (that I could identify) tellling me why.

So, ... I would be glad to hear from anyone who has experience using openGL shading language under 10.3.6. Are there known problems? BTW, a search of the Apple Developer site for "opengl shading language" yielded no relevant results.

Charles Gunn


******
//For those interested, the source code for the shaders: sets fragment color to gray scale proportional to
// z-coordinate of object coordinate:
// vertex shader
varying float foo;
void main()
{
foo = gl_Vertex[2];
gl_Position = ftransform();
}


// fragment shader
varying float foo;
void main()	{
    gl_FragColor = vec4(foo, foo, foo, 1.0);
}

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.