Upload your texture to Unity and roll it

Posted by admin on February 3, 2012 in Unity3d |
This tiny Unity3d application could be aimed to help the people to imagine how the flat graphic would look when printed on a coffe mug, pencil or anything cylindric. There is a square mesh in the window centre and you can put any .jpg, or .png texture up to 4 Mb from your local filesystem onto it. After that the square turns into a rectangle of image proportions. There is the vertical slider for adjustment of the bending angle and and the knob for turning the transformation axis. The basics of mesh modifier script comes from here. The more are the proportions distant from square, the more interesting is the effect. The direct link to the application is here. Below are some screenhots.

This might also constitute a nice learning examples. The techniques used here include:
  • runtime mesh deformations
  • webplayer - browser communications
  • WWW download
  • simple server scripting
  • webplayer embedding on the webpage
The download containing the web deployment files as well the unitypackage to import into Unity Editor - is now available below. Have a fun with it!


Leave a Reply

Copyright © 2011-2021 virtualPlayground All rights reserved.
VP based on Desk Mess Mirrored v1.8.3 theme from BuyNowShop.com.