Sign in to follow this  

DynamicTextures on a Cube

Recommended Posts

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

Share this post

Link to post
Share on other sites

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,


as the uvs.

^^^ follow deltas instructions though its easier!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.