hit2501 Posted October 4, 2015 Share Posted October 4, 2015 Hi. Can anybody help me?, I want to learn how to dinamically move, rotate and scale (among other tricks) the textures in a mesh imported from Blender. Any advice will be useful. Thanks Quote Link to comment Share on other sites More sharing options...
Convergence Posted October 4, 2015 Share Posted October 4, 2015 did you try playing with the .uScale, vScale, .uOffset and .vOffset properties of the texture? gaelbeltran 1 Quote Link to comment Share on other sites More sharing options...
hit2501 Posted October 4, 2015 Author Share Posted October 4, 2015 Sorry I am still a noob with babylon, can you show me please how can I apply uScale, vScale, uOffset and .vOffset? Thank you Convergence. Quote Link to comment Share on other sites More sharing options...
iiceman Posted October 4, 2015 Share Posted October 4, 2015 You could start reading here: http://doc.babylonjs.com/tutorials/04._Materials There is a section that says "More About Textures" which describes the scale and offset. Texture also has the properties uAng and vAng to set the angle of the texture, but I didn't find a tutorial for that, just the class documentation: http://doc.babylonjs.com/classes/2.2/Texture#uang-number gaelbeltran 1 Quote Link to comment Share on other sites More sharing options...
hit2501 Posted October 4, 2015 Author Share Posted October 4, 2015 Thank you iiceman, That´s what I was looking for. 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.