reuvenDM Posted March 30, 2016 Share Posted March 30, 2016 Hi All, I'm, still a newbie (-: I've got this sprite image, i want to wrap a box created using MeshBuilder.CreateBox with it, tried using this great walk throw http://doc.babylonjs.com/tutorials/CreateBox_Per_Face_Textures_And_Colors no success change the sprite structure? do this in a different way? Thank you! Quote Link to comment Share on other sites More sharing options...
Wingnut Posted March 31, 2016 Share Posted March 31, 2016 Any success yet, rDM? Nobody is helping with the pizza box yet, eh? There's some pros at texture mapping nearby, one of them is surely working the night shift. "HEY YOU GUYS!!!" reuvenDM 1 Quote Link to comment Share on other sites More sharing options...
jerome Posted March 31, 2016 Share Posted March 31, 2016 a little playground would help us to understand what "no success" means and to try to fix it Quote Link to comment Share on other sites More sharing options...
reuvenDM Posted March 31, 2016 Author Share Posted March 31, 2016 Hi, Sorry for the late response... here's a playground: http://www.babylonjs-playground.com/#AMXAH Thanks! Quote Link to comment Share on other sites More sharing options...
jerome Posted March 31, 2016 Share Posted March 31, 2016 please have a look at your line 13 : you set each box face UV to (0,0, 1,1) what means : apply the whole texture from its lower left corner (0,0) ot its upper right corner (1,1) on each face you should have different values for each face, according to what part of your full image you want to display on each side example (not pertinent) : http://www.babylonjs-playground.com/#AMXAH#1 reuvenDM and Wingnut 2 Quote Link to comment Share on other sites More sharing options...
reuvenDM Posted April 2, 2016 Author Share Posted April 2, 2016 Haha, is see (-: Thank you jerome got it! 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.