I was creating a very small and easy sample window with just three cubes in it…
#!/usr/bin/env python #coding: iso-8859-1 #Basic Panda imports import direct.directbase.DirectStart from pandac.PandaModules import * base.setBackgroundColor(0.2, 0.2, 0.5) #base.disableMouse() #Set the framerate meter base.setFrameRateMeter(True) #Camera Pos camera.setPos(0.0, -20.0, 10.0) camera.lookAt(0.0, 0.0, 0.0) #Root Node root = render.attachNewNode("Root") root.setPos(0.0, 0.0, 0.0) #Three Cubes cubes =  for x in [-3.0, 0.0, 3.0]: cube = loader.loadModelCopy("cube.egg") cube.setPos(x, 0.0, 0.0) cube.reparentTo(root) cubes += [ cube ] run()
This code, however in my machine does not work. Shows the window, the background color and the fps meter, but no cubes.
The curious thing is that if I uncomment this line of code in my script
Then everything is fine and I can see my cubes again. Not sure about it but it seems kind of odd here.
Its been a while since I’ve touched Panda. Maybe I’m doing something wrong?
Thank you very much,
Italo F. Capasso B.
Aka “Edwood Grant”