dav74 Posted November 9, 2013 Share Posted November 9, 2013 Hi,I don't understand the texture coordinates in BabylonJS, for example : How to turn a texture of a 180 ° angle ?thank you for your help Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 9, 2013 Share Posted November 9, 2013 Hello, There are three ways to achieve your goal:- Change the uv values of your meshes- Create your texture with invertY = true (or false) BABYLON.Texture = function (url, scene, noMipmap, invertY)- Use the following properties:texture.vAng = Math.Pi; Quote Link to comment Share on other sites More sharing options...
dav74 Posted November 9, 2013 Author Share Posted November 9, 2013 Thank you for your help, but i've one question again !And sorry for this noob question !How to change the uv values of a mesh ? (if you have a tuto about this question, I'm interested !) Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted November 9, 2013 Share Posted November 9, 2013 Something like that:var arrayUv = mesh.getVerticesData(BABYLON.VertexBuffer.UVKind);// Udpate your arrayUv here (an array of (u,v) values for each vertexmesh.setVerticesData(arrayUv, BABYLON.VertexBuffer.UVKind, false); JackFalcon 1 Quote Link to comment Share on other sites More sharing options...
dav74 Posted November 9, 2013 Author Share Posted November 9, 2013 Ok thank youit's too complex for my student, they'll use blender to make that Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.