Shader problem

The autoshader (a.k.a shader generator panda3d.org/manual/index.php … _Generator ) uses Cg shaders, so for that the Nvidia Cg toolkit is a must have.

  1. Panda3D also supports GLSL, but as far as I know ( and I might be wrong) Nvidia cards do use the cg toolkit for compiling GLSL shaders as well (ati/amd, intel and whatnot depend on the graphic driver to do the compiling).
    To use GLSL shaders you just need to load a GLSL shader like this:
node.setShader(Shader.load(Shader.SLGLSL, "shaders/vertex.glsl","shaders/fragment.glsl"), 1) 

or like this (if you have your vertex shader as a string called ‘vertex_shader’ and a fragment shader in a string called ‘fragment_shader’)

node.setShader(Shader.make(Shader.SLGLSL, vertex_shader, fragment_shader))
  1. If you are using the packing tools that ship with panda (packp3d and pdeploy) then I think these tools take care of packing all you need to run the game (…maybe except drivers).