I created a model in Blender and saved it as X file format. Then I used x2egg to convert it into an egg file. When I see the model, it is visible in pview. But it isn’t when I use this code and run.
from direct.showbase.ShowBase import ShowBase class MyApp(ShowBase): def __init__(self): ShowBase.__init__(self) self.scene = self.loader.loadModel("Objects/Path_to_my_model") self.scene.reparentTo(self.render) app = MyApp() app.run()
This works when I put the ‘models/environment’(Already available Panda3D model). This means the code works, the model is visible in pview.