I was learning how to use Emission maps (glow maps) in Panda3d .
I tried setting an Emission color and value in the principled BSDF node.
I tried baking a map in the emission channel before exporting.
none of them seemed to work for me.
Then I tried applying the baked map from code , it didnt get applied for .glb but did for .obj files .However it doesnt have a glow effect .
The code :
from direct.showbase.ShowBase import ShowBase
from panda3d.core import TextureStage
from panda3d.core import AmbientLight
from panda3d.core import loadPrcFile
x = ShowBase()
x.set_background_color(0,0,0)
x.render.setShaderAuto()
alight = AmbientLight('alight')
alight.setColor((0, 0, 0, 1))
alnp = x.render.attachNewNode(alight)
x.render.setLight(alnp)
cube = x.loader.loadModel("CUBE.obj")
cube.reparent_to(x.render)
cube.setPos(0,-4,0)
ts = TextureStage("ts")
ts.setMode(TextureStage.MModulateGlow)
cube.setTexture(ts,x.loader.loadTexture("Baked_Light.png"))
x.run()
Your help is Appreciated