Loading models

Hi all. I just installed Panda3D on my mac and am very impressed! I had some questions about loading models.

  1. I read that Panda3D can load X files, but I get the following error when I try to load them:
:loader(error): Extension of file ./assets/models/floor.x is unrecognized; cannot load.
Currently known scene file types are:
  Bam                             .bam
  Also available: .egg

Here’s how I try to load the model:

self.floor = loader.loadModel( "./assets/models/floor.x" )

Is there some module I need to install to be able to load X files?

  1. I’d like to be able to convert X files to the native egg format. I was unable to find the x2egg program in my installation of Panda3D, however. Is there any reason this file would not have installed on a mac?

Thanks again for all your help.

How did you install Panda? Using the universal binaries?, or, did you build it yourself?

If you built it yourself, then you obviously forgot to build the “pandatool” tree, besides just the “dtool” and “panda” trees. In pandatool resides the converter stuff etc.