Hey. For some reason I can’t get the shadow system to work on my game with my laptop… it keeps thowing theses errors, but the tut works just fine… Any ideas?
:display:gsg:glgsg(error): at 384 of c:\panda3d-1.7.0\panda\src\glstuff\glShader
Context_src.cxx : GL error 1282
:display:gsg:glgsg(error): Could not load Cg fragment program:created-shader (ar
bfp1 Error, line 2: invalid option specified.
Error, line 2: invalid option specified.
Error, line 55: invalid texture target.
)
:display(error): Deactivating wglGraphicsStateGuardian.
self.light = render.attachNewNode(Spotlight("Spot"))
self.light.node().setScene(render)
self.light.node().setShadowCaster(True)
self.light.node().getLens().setFov(40)
self.light.node().getLens().setNearFar(10,1000)
render.setLight(self.light)
self.alight = render.attachNewNode(AmbientLight("Ambient"))
self.alight.node().setColor(Vec4(0.2, 0.2, 0.2, 1))
render.setLight(self.alight)
# Important! Enable the shader generator.
render.setShaderAuto()
***Edit, I take that back. The Advanced shadow tut works, but the basic one doesn’t.