AttributeError: 'super' object has no attribute 'simplepbr'. I think I've messed it up. How do you correct it?

It’s the first time I’m using simplepbr as my models were fully black when I loaded them before using simplepbr. My code is as follows:

from panda3d.core import loadPrcFile
from direct.showbase.ShowBase import ShowBase
from import Actor
import simplepbr

class Mywin(ShowBase):
def init(self):


game = Mywin()

When I remove super(), it gives me another error which is:
AttributeError: type object ‘ShowBase’ has no attribute ‘render’

when I change it to render_node=self.render, it gives me this error:
AttributeError: ‘Mywin’ object has no attribute ‘render’

Please use code tags when posting your code.

The call you need to initialise ShowBase is super().__init__(), or ShowBase.__init__(self). The simplepbr init call is a separate call made afterwards.

Thanks a lot.I tried it. The code is executing, but my model which was black is now a little close to white, I cannot see the colors but only the shape. Is it something to do with exporting the 3D character or the textures?

I will make use of code tags in upcoming posts, sorry about that.

It may be necessary to add a light source to be able to see your materials.

Are you exporting these materials out of Blender 2.80+? If so, make sure you are using the Principled BSDF node for materials as this is the only thing supported by the Blender glTF exporter.

Yes I’m using Blender 2.82. Thank you for the suggestion. I didn’t know about this as I’m new to animation. I will try this out.

Thank you. Will try adding adding a light source.