Bladetrick Posted March 23, 2018 Share Posted March 23, 2018 Hello again! I was playing around with some of the examples (love the playground). In this instance I was looking at a PG that created a ground and applied a dynamic texture to it. For kicks, I changed it to a Cube, but noticed that whatever I drew on the dynamic texture would show up on all 6 sides. Is there a way to make it so that if I draw a star on one side its not duplicated on the others? Thanks for your time Quote Link to comment Share on other sites More sharing options...
Guest Posted March 23, 2018 Share Posted March 23, 2018 Hey Sure you can: http://doc.babylonjs.com/how_to/createbox_per_face_textures_and_colors Bladetrick 1 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted March 23, 2018 Share Posted March 23, 2018 split up the sections of the uv. Right now each faces uv is 0,0,1,1; you would need to split them up into 6 seperate sections. so something like: var third = 1/3; [ 0,0, third,0, 0,third, third,third, third,0, third*2, 0, third,third, third*2, third*2, etc... ] as the uvs. ^^^ follow deltas instructions though its easier! Bladetrick 1 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.