Hi all, I’m brand new to Panda3D. Sorry if I posted this in the wrong place. Over the past few days, I’ve made a model in 3DS Max 7, and used the unwrap UVW modifier on it to get it set up for texturing. I then made a texture which is just an image of the UVW coordinates (ie. the texture just outlines all the faces of the model) and saved it as a PNG. However, I saved it to my desktop, and loaded it into 3DS from there, which might have been a mistake? I’m new to actual game pipeline stuff. So, then I exported my mesh as an egg file. Now, on my computer, when I load the model in a small python script, it works flawlessly, and the texture is automatically loaded onto the model. This led me to believe that the texture file was packed into the egg file along with the mesh, but I guess I was wrong. I sent the egg file and the python script to a friend, and when he runs the script, all he sees is a pure white model.
So, I tried using loadTexture and setTexture to make sure the model gets textured like so:
self.plr_ship = self.loader.loadModel("cruiserB.egg") self.plr_ship.reparentTo(self.render) self.plr_ship_txtr = self.loader.loadTexture("uvw.png") self.plr_ship.setTexture(self.plr_ship_txtr)
But the model is still not textured.
Can anyone tell me why the texture loads automatically in Panda3D on my computer and what I need to do to get it to load for anyone I send it to?