first I want to say that I'm new to Panda3D and Python.
But I'm enjoying learning more about it day after day.
I like Panda3D and I'm confident that I like it even
more once I learned how to use it.
But since there is no offline manual it's hard to find
out what methods a class provides and how they behave
and how they must work together and what dependecies
there are between several classes and all this.
The tutorials are helpfull but can't answer all questions.
(So does the online manual.)
But that's not the point of this posting.
At the moment I have the same problem as ilikePanda3D.
I created a simple mesh with blender. A plane about
100x100 units with some height differences. Just the
mesh without material or texture.
Then I exported it as ".egg". I exported it also as ".x",
".lwo" and ".wrl" but it's the same problem with all
My Python code looks like this:
- Code: Select all
from direct.showbase import DirectObject
from pandac.PandaModules import *
from direct.interval.IntervalGlobal import *
from direct.gui.DirectGui import *
self.floorTex = loader.loadTexture("models/gras.jpg")
self.floor = loader.loadModelCopy("models/ebene.egg")
# end class World
w = World()
Without a texture my model is completly white. No problem
so far. (Except that there are no shades.)
After I inserted the loadTexture()/setTexture() in my
code the model is not white anymore but has a certain solid
color. (But it's not textured.)
And it seems the model is displayed without shading. The
same color all over the model.
The color however is influenced by the texture image. I
played around with the texture image and it looks like
Panda3D calculates an average color from all pixels color
of the texture image and assigns the resulting color to my
Where's my mistake?
Can anyone explain that behavior?