Textures are not shown as intended

Hi all,

I’m new to this forum and this is my first post :slight_smile:

I have a problem with models I export from Blender (using both, chicken and EggX2 exporters).
I’m using the standard cube. My problem is that the Texture “is applied”… but in an my script the renderer only shows the cube in only one color. I tested *.jpg, *.tga and *.png files for the texture image without noticing any differences. Here is the code I apply to the model:

cube = loader.loadModel("cube.egg")
cube.setScale(.5, .5, .5)
cube.setPos(0, 10, 0)

The texture is a 32x32 pixel image. I tested with other sizes too…

Thanks in advance :slight_smile:


to make a texture appear in panda, you need to uv-map the mesh, and apply a texture using those uv-coords.

blender supports a lot more techniques to project and unwrap textures onto objects but only uv-mapping is supported by the exporter and panda (given some exotic expections that are of no relevance here)

thanks, but I have still some questions.

How do I do that?

I switched from Orco to UV (in the tab ‘Map Input’) when I applied the texture. Is this enough?

You could read a tutorial which explains how to do UV mapping in Blender, like this.

Thanks, I think I try it after reading the tutorial.