1.4.0: Cg program too complex for driver

I think that Panda is a much better engine than Ogre, but on this topic I would suggest you look at how you define shader programs (and all material settings) for Ogre. They have a pretty decent system for supporting multiple shader programs based on high level language (Cg,HLSL,GLSL) and shader versions supported by the card. In fact their whole material files can have multiple techniques depending on LOD or hardware support.