python
from panda3d.core import *
base = ShowBase()
root = render
scene = NodePath("scene")
model = loader.loadModel("model.egg")
model.reparentTo(scene)
scene.reparentTo(root)
base.run()
python
root.removeNode()
python
from panda3d.core import *
pipeline = RenderPipeline(base)
pipeline.load_default_settings()
base.run()
python
def update_scene(task):
return Task.cont
base.taskMgr.add(update_scene, "update_scene")
base.run()