hello,
I am new to panda3d as well as the server and my name is Rataloca
and i was doing a test with panda3d but the models where not loading at all
then the error came saying "AttributeError: type object ‘game’ has no attribute ‘loader’ " can anybody help me with this ? please
Here’s the code
We are glad to see you!
You must first create a class, and then access its members.
from direct.showbase.ShowBase import ShowBase
class game(ShowBase):
def __init__(self):
super().__init__()
game = game()
model = game.loader.loadModel("panda")
model.reparentTo(game.render)
game.run()
1 Like
Thanks for the solution it helps me a lot