I know that Panda takes paths relative to the current working directory. I would like to know if there is any existing feature in the loader that can load models/textures/shaders, from a preset list of paths ?
e.g. loader.SetSearchPath([ “.”, “…”, “/d/dir1”])
such that if I called loader.loadModel(“models/ball.egg”)
It will try to load from ./models/ball.egg, then …/models/ball.egg then /d/dir1/models/ball.egg
If not, what is a better way to implement this ? The straight forward way is to sub-class the loader class and have my application to use this loader class. Any other good suggestions ?
I need to make it dynamic, I try:
config = ConfigVariableSearchPath(‘model-path’)
config.appendPath(morepath)
It looks like it can make a local change on my own variable but the Panda system is not affected. How to make Panda aware of my new path ?