I tried the easy way of generating shadows, by using the automated shader generation. The generator as such works, as long as no shadow caster is present. When I set a light (even a simple spotlight) to a shadow caster, I get errors like this one:
:display:gsg:glgsg(error): at 384 of panda/src/glstuff/glShaderContext_src.cxx : GL error 1282
:display:gsg:glgsg(error): Could not load Cg fragment program:created-shader (arbfp1 line 67748976, char 2297339584: error:
)
From the shadow tutorials only the advanced one will run, the basic one gives similar errors as the above (and the no-shader shadow tut tells me that my hardware does not support the shadow extensions, but when I remove the check it still runs through software emulation - yeah, i’m developing on a low-end machine right now)
Any heads up will be much appreciated.
This seems like a serious problem with your video card drivers. Have you tried installing the latest version of them? Can you tell us more about your video card?
I guess the generated shader makes use of “tex2Dproj” as does the shadow.sha in the advanced shadow tutorial?
When I force the tutorial program to use that shader (instead of the no-support one) I get the same error as mentioned above.
I will have to learn shader writing anyway, but I hoped for a quick way for now.