Material .j3m textures loaded weirdly

I have a .j3m file with all of my textures in png format. I loaded the textures into jmonkey and then set my spatial to use that material. The texture didnt apply correctly on to the spatial. If i dont use a .j3m to apply the diffuse map, then the texture loads correctly, otherwise its all stretched out. How do i fix this?

Maybe you have to flip the texture?

How do i do that?

Check the checkbox or add “Flip” before your texture names

Before my filenames on the actual texture .bmp file?

Well did it work? :stuck_out_tongue: No, in the j3m.

i put it as FLIPtex.j3m, but it didnt work. Let me try again and I’ll post if i got it to work.

Inside the j3m not in the filename

Material Flip m16Texture : Common/MatDefs/Light/Lighting.j3md {

MaterialParameters {

Shininess: 2.0

DiffuseMap : Materials/m16/m16.bmp

}

}



Like that right?

1 Like

Material m16Texture : Common/MatDefs/Light/Lighting.j3md {

MaterialParameters {

Shininess: 2.0

DiffuseMap : Flip Materials/m16/m16.bmp

}

}



like that, before the texture name.

normen said:
Well did it work? :P No, in the j3m.

hamid14 said:
i put it as FLIPtex.j3m, but it didnt work. Let me try again and I'll post if i got it to work.

Momoko_Fan said:
Inside the j3m not in the filename


Guiness book :D.

I misread his post, that’s hilarious right. -_- Anyways, normen thanks for the help, it works.