Hey,
Just started using Panda. Very impressed. Had used ogre a couple years ago. Also an excellent tool.
Am really struck by the ease of use of Panda.
Have been flying through the tutorials.
New to python.
Anyway, trying to add a skybox. Literally copied and pasted some code I found on this forum. Just substituded my textures
The code is this
cubeMap = loader.loadCubeMap("SkyBoxes/Sky1/sky1_#.jpg")
self.spaceSkyBox = loader.loadModel('models/box.egg')
self.spaceSkyBox.setScale(100)
self.spaceSkyBox.setBin('background', 0)
self.spaceSkyBox.setDepthWrite(0)
self.spaceSkyBox.setTwoSided(True)
self.spaceSkyBox.setTexGen(TextureStage.getDefault(),TexGenAttrib.MWorldCubeMap)
self.spaceSkyBox.setTexture(cubeMap, 1)
I keep getting the following error
NameError: global name ‘TextureStage’ is not defined.
I have used the search for this forum and even googled it but have no idea what I am missing.
Any help would be greatly appreciated.
Thanks