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
loadPrcFile(“config/config.prc”)
from direct.showbase.ShowBase import ShowBase
from direct.actor.Actor import Actor
import simplepbr
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.
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.