Texture problem

Hi,
i’ve a texture that must not repeat on my model…how can i do that?

http://hub.jmonkeyengine.org/javadoc/com/jme3/texture/Texture2D.html#setWrap(com.jme3.texture.Texture.WrapMode)

Ok, i’ve found wrapmode before but i can’t understand what wrapmode to use to have a texture no-repeat…

Try one that doesn’t say repeat :slight_smile: Clamp should do it.

http://hub.jmonkeyengine.org/javadoc/com/jme3/texture/Texture.WrapMode.html

Hmmm…i’ve tried all wrapmodes without luck! The texture always repeat on all sides of the cube… :-?

@gnerpo said: Hmmm...i've tried all wrapmodes without luck! The texture always repeat on all sides of the cube... :-?

Completely different issue.

If you’d explained your original problem properly then you’d have had much better luck so far. So maybe it’s time to explain exactly what you are trying to do, what you are seeing, what you’ve tried, etc… It would save everyone a lot of time instead of a one line question that can be misinterpreted.

1 Like

Ok, i would like to have a cube with texture only on the top side of the cube. How i can do that?