As I understand it, file extensions are not needed when loading models. Makes sense as the last thing one might want to do with a game is replace egg files with (at least) bam files and (more likely) pz files.
So I’m curious.
Replacing:
self.explosionModel = self.loader.loadModel('models/explosion.egg')
With:
self.explosionModel = self.loader.loadModel('models/explosion')
Works just fine.
Replacing:
self.world = self.loader.loadModel("models/world.bam")
With:
self.world = self.loader.loadModel("models/world")
…does not. It results in a model cannot be loaded error.
Am I doing something wrong? Or can I only drop file extensions for certain types of model?
Best Regards,
Gary