Hi all. I’ve been trying to make a simple cube show two layers of textures by following the Panda3D manual.
I used the smiley.egg.pz model that ships with Panda3D and this graph, , and it works well.
The code I use is:
from direct.showbase.ShowBase import ShowBase
from panda3d.core import *
base = ShowBase()
model = base.loader.loadModel("smiley")
model.reparentTo(base.render)
ts = TextureStage("2nd")
model.setTexture(ts, base.loader.loadTexture("Uther.png"))
base.run()
But when I build my own model using blender 2.83 LTS, and then export to gltf and egg files, the same code doesn’t work as expected.
To export egg format, I use the PEREE, which is for Blender 2.8.
The blender model looks like this, which should be very simple UV mapping (the graph has transparent background).
The exported gltf(left) and egg(right) models look like this:
I guess the transparent background of the smiley face graph makes the egg model transparent, too.
When I change model loaded in the above code, I get quite different results:
For the gltf model, the result doesn’t show the 2nd graph I want.
For the egg model, there simply isn’t anything shown in the window, no matter how I zoom in or out.
Is there something special about the egg format that allows more feature than the gltf models? And I’m not sure what I’m missing when exporting the egg file from Blender.
Here are the files I use here, if someone is able to get the correct result, please let me know what I’m doing wrong. Many thanks.
MultitextureTest.zip (279.0 KB)