Jump to content

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

Link to comment
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!

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...