#๐Ÿ”’ panda3d

9 messages ยท Page 1 of 1 (latest)

sinful ivy
#

can panda3d load a glb file ?

from direct.showbase.ShowBase import ShowBase
from math import pi, sin , cos
from direct.task import Task
from direct.actor.Actor import Actor

class MyApp(ShowBase):
def init(self):
ShowBase.init(self)

    self.scene =self.loader.loadModel("models/environment")
    
    self.scene.reparentTo(self.render)
    
    self.scene.setScale(0.25,0.25,0.25)
    
    self.scene.setPos(-8,45,0)
    
    
    self.pandaActor = Actor("models/panda-model",
                            {"walk": "models/panda-walk4"})
    self.pandaActor.setcale(0.005 ,0.005, 0.005)
    self.pandaActor.reparentTo(self.render)
    self.pandaActor.loop("walk")
    
def spinCameraTask(self,task):
    angleDegrees = task.time *6.0
    angleRadians = angleDegrees * (pi /180)
    self.camera.pos(20 * sin(angleRadians), -20 *cos(angleRadians),3)
    return Task.cont

app = MyApp()
app.run()

floral flameBOT
#

@sinful ivy

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

full whale
#

is there more to the error?

sinful ivy
#

i found the issue it was the path

#

but rn it returned me a new error

#

:Actor(warning): ct_characters_cs_go.glb is not a character!

#

does anyone know why panda3d flipps my model ?

floral flameBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.