Positioning a texture on a trimesh

Hi there back with another question.



I’ve created a trimesh with a texture but the texture isn’t placed as it should.



basicly what i want to show is a trimesh with the following texture.







but it shows like this.







any suggestions??



thanks in advance

Make sure your setting your Texture Coordinates correctly by calling setTextureCoords(texBuf) on your TriMesh.  It looks like your top vert on your mesh is set to (0,1) or something like that.  It should be set to (0.5,1) by the looks of it.

SomethingNew said:

Make sure your setting your Texture Coordinates correctly by calling setTextureCoords(texBuf) on your TriMesh.  It looks like your top vert on your mesh is set to (0,1) or something like that.  It should be set to (0.5,1) by the looks of it.


Thanks Something :)

Fun fact a friend of mine just gave me the same answer aswell and was about to post the answer :)

thanks again  8)