To view the experiment, go here.
This was an experiment in how doable/fun/hard it would be to paint in an iPhone/Facebook game. I spent approx 5 hours on and decided to post the results publicly. The good news is painting works. The bad news, the performance degrades very quickly which may indicate I will not be able to use this for the iPhone or even Facebook.
I used some pre-made scripts as a timesaver. I am also learning Unity so the experiment has a dual purpose. I purchased this script:
http://www.lastbastiongames.com/middleware/decal/index.shtml
and implemented it for painting using the right mouse button (if you try it, first go to full screen when you right click, press ESC to exit full screen). It works but the FPS (frames per second) gets low pretty fast. On my system it was unusable once the number of decals reached approx 400. Which isn’t much if I want to use this for painting. I still think that decal renderer is nice and am sure I will find a use for it. It just wasn’t designed to be used as a painting application.
I also used code from the Unity forums to attempt a different method:
http://forum.unity3d.com/viewtopic.php?t=15414
which worked but also had performance issues. For that one (use the left mouse button to see) it slows down significantly while you use it. At first you can slowly draw a shape and as you go it will get very jumpy.
I don’t recommend using the painting in this experiment for more than a few minutes or it could slow down your browser/computer.
There were a couple additional features I tried but they did not work today. I wanted to add a sound when the right mouse button was clicked but it would actually stop the painting from working and the sound didn’t play. The second issue was I wanted to have the painting working on a 3D model of a woman (you can see her in the background). The first method did work but the second would not work on her. In the interest of testing how it works (rather than determine how my model needs to be modified) I switched to a simple sphere and both painting methods then worked.
There is still a big question, would this actually be fun? If the painting was refined (so you don’t have to move so slowly) and the performance issues addressed I believe the answer would be yes. But without those issues fixed I can’t be 100% sure.
–Josh