Question

When I load any egg file as a model in Panda3D, the background's colour remains white. The colours of the texture/background doesn't appear even on using lights. Why does this happen? Also, from where can I find egg files to use as models/actors in Panda3D ? I've tried converting obj file to egg file and exporting 3ds/max files as obj too.

Was it helpful?

Solution

The problem is usually that your model file either contains no texture references at all or contains relative paths to the textures that don't resolve from the location you're loading it from.

Try opening the .egg file using a text editor (really, you can) and taking a look at the entries, if they exist at all. Make sure that the specified path to the texture files is a path that is relative to the location of the model file, or to a different location that is on the Panda3D model-path.

As for your other question, there are a bunch of low-quality art resources for use as placeholders in some obscure corner of the Panda3D site: https://www.panda3d.org/download/noversion/art-gallery.zip

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top