Hi All,
I’m a huge noob when it comes to coding/panda3D/python but I know how to use computer modeling tools. I looked in the panda manual and it said if I export a .x file from blender and load it directly into panda it will work, but its not working for me.
So far this is my code:
import direct.directbase.DirectStart
enemyTurret = loader.loadModel(“models/enemyTurret”)
enemyTurret.reparentTo(render)
run()
I have made sure my model is in the right folder and everything. I even tried importing the enemyTurret.x file into blender and everything imports fine. The problem is that the program crashes with the error:
:loader(error): Couldn’t load file models/enemyTurret.egg: not found on model path (currently: “/c/Documents and Settings/Admin2/Desktop/CSA 251;/c/Panda3D-1.5.3/etc/…;/c/Panda3D-1.5.3/etc/…/models”)
Traceback (most recent call last):
File “testingModels.py”, line 4, in
enemyTurret.reparentTo(render)
AttributeError: ‘NoneType’ object has no attribute ‘reparentTo’
**** End of process output ****
This is weird considering how I load all my models out of the same folder (which enemyTurret.x is in). If anyone could give me some feedback I would greatly appreciate it. I browsed the forums and couldn’t find any similar topics, but sorry if I missed a previous thread.
Cheers,
CJ