It just doesnt work. There’s a white plane in the middle of the screen. The grey background flashes like a strobe light between brighter and dark grey. I can use the mouse to turn and zoom in etc. but the thing just doesnt work.
In the bash I get these errors:
:gobj(error): /Users/tiloprobst/Downloads/Advanced_Shader_Inputs_Demo/Advanced_Shader_Inputs_Demo/shader.sha: (5) : error C0109: Can't open include file "vtable.cg"
:gobj(error): /Users/tiloprobst/Downloads/Advanced_Shader_Inputs_Demo/Advanced_Shader_Inputs_Demo/shader.sha: (24) : error C1307: non constant expression for array size
:gobj(error): /Users/tiloprobst/Downloads/Advanced_Shader_Inputs_Demo/Advanced_Shader_Inputs_Demo/shader.sha: (99) : warning C7011: implicit cast from "float4" to "float3"
:gobj(error): /Users/tiloprobst/Downloads/Advanced_Shader_Inputs_Demo/Advanced_Shader_Inputs_Demo/shader.sha: (100) : warning C7011: implicit cast from "float4" to "float3"
:gobj(error): Shader encountered an error.
:gobj(error): /Users/tiloprobst/Downloads/Advanced_Shader_Inputs_Demo/Advanced_Shader_Inputs_Demo/shader.sha: (5) : error C0109: Can't open include file "vtable.cg"
:gobj(error): /Users/tiloprobst/Downloads/Advanced_Shader_Inputs_Demo/Advanced_Shader_Inputs_Demo/shader.sha: (24) : error C1307: non constant expression for array size
:gobj(error): /Users/tiloprobst/Downloads/Advanced_Shader_Inputs_Demo/Advanced_Shader_Inputs_Demo/shader.sha: (99) : warning C7011: implicit cast from "float4" to "float3"
:gobj(error): /Users/tiloprobst/Downloads/Advanced_Shader_Inputs_Demo/Advanced_Shader_Inputs_Demo/shader.sha: (100) : warning C7011: implicit cast from "float4" to "float3"
The flocking Ralph demo crashes and gives me this error:
DirectStart: Starting the game.
Known pipe types:
osxGraphicsPipe
(all display modules loaded.)
Traceback (most recent call last):
File "/Users/tiloprobst/Downloads/Advanced-Shader-Inputs/Tut-AdvacedShaderInputs.py", line 175, in <module>
w = World()
File "/Users/tiloprobst/Downloads/Advanced-Shader-Inputs/Tut-AdvacedShaderInputs.py", line 37, in __init__
"Profile gp4vp is not supported by the hardware."
AssertionError: Profile gp4vp is not supported by the hardware.
The drivers of your graphics card have nothing to do with your OS.
Try to set to false basic-shaders-only in your Config.prc file. That could fix the problem. Otherwise just go on your graphics card vendor website and download updated drivers for your model.
Oh really? On the Mac it does. Drivers are only provided through Apple’s OS updates. I can not just go on the NVidia website and get new drivers!
I guess I should be more precise. The noise/sphere demo does generally work, but there is a grey flickering. The whole screen just flickers in grey tones. I can’t provide screenshots of that. I could make a video, yeah.
The instancing/flocking Ralph demo crashes with the errors mentioned above.
File "/Users/tiloprobst/Downloads/Advanced-Shader-Inputs/Tut-AdvacedShaderInputs.py", line 175, in <module>
w = World()
File "/Users/tiloprobst/Downloads/Advanced-Shader-Inputs/Tut-AdvacedShaderInputs.py", line 37, in __init__
"Profile gp4vp is not supported by the hardware."
AssertionError: Profile gp4vp is not supported by the hardware.
If on a mac the graphics card drivers can be updated only from the Software Update (software not OS…) it doesn’t mean they are part of the OS. It does not make any sense to update the OS to get updated graphics card drivers.
By the way download the CG toolkit 2.0 it will solve the problem with the profile error.
Moreover download the OpenGL Extensions Viewer and look in the report tab if you have the extension GL_EXT_texture_array.
I deleted vtable.cg and it gave the same error you posted above and for the flickering I have no idea, there is no reason for that. You can delete
base.setBackgroundColor(0.9, 0.9, 0.9)
and see if it solves the problem. We tested it on windows and linux and we never had flickering.
EDIT:
You can still download the drivers from the NVIDIA website: nvidia.com/object/GeForce_Ma … .2f16.html
but I don’t think the drivers are your problem, the problem is that you don’t have CG 2.0 on your mac.
Well sure it doesnt make sense but thats the way it is. Driver or ROM updates hardly ever appear in Apples Software Update. Major graphics card driver updates are only in OS X releases like 10.5.x or 10.6.x. For example, websites reported that Apple together with Valve is working on the drivers and that the updates will be rolled out propably starting with 10.6.5.
The percentage of Mac users actively updating their graphics card should be in the 0 - per mille range.
Those are the drivers specifically for Mac Pros with the GF GTX 285.
My current CG toolkit version is 2.1 (February 2009). I could download newer versions but I bet you it wont change a thing.
Do you have a link for the Extension Viewer on NVidias website? Dont find it there. Google has links for v3.31, but thats not NVidia.
Updated to the latest CG kit … Error for Instanced Ralph:
Traceback (most recent call last):
File "/Applications/Panda3D_Mare_Ceti/samples/Advanced-Shader-Inputs/Tut-AdvacedShaderInputs.py", line 175, in <module>
w = World()
File "/Applications/Panda3D_Mare_Ceti/samples/Advanced-Shader-Inputs/Tut-AdvacedShaderInputs.py", line 37, in __init__
"Profile gp4vp is not supported by the hardware."
AssertionError: Profile gp4vp is not supported by the hardware.
Whatever I try, the old way doesn’t work for me. I didn’t get around to trying a CVS version, so I’m stuck with the 1.7.0 release of panda3d. The manual is very explicit how it should work:
but this:
test = Vec4(0.5,0.0,0.0,0.0)
self.tom.actor.setShaderInput("dt",test)
self.tom.actor.setShader(Shader.load("cgshader.sha"))
darn… just a minute after I posted the above, I found out that adding k_ to the parameter in the shader definition does the trick. Too bad that is not mentioned in the manual…
Also it pisses me off that GLSL is unusable atm, because that’s the way I wanted to go. The mentioning of a possible DirectX route struck the same chord with me…