Doesn’t look like the standard toon shader package works on the iphone… or maybe I’m doing something wrong. Everything looks fine in the editor but when installed on the device, it just doesn’t show up at all. Anyone know what’s going on here or know of a package that does work?
The iPhone doesn’t support it.
wha?! lame!!
It is not called iPHONE for no reason
The iphone has no programmable graphics pipeline, just fixed function pipeline, so any shader that uses CG will not work
dreamora stomps on more dreams! :lol:
Actually, a fixed-function toon-shader is possible. Heck, the DS comes with one But, they are expensive and certainly not worth it if you want a lot of objects on the screen…moving objects. You can get the cel shader portion of the toon-shader at a lower cost. The expense is in adding the outline.
The outline can be added with a doubling of the polygons, but again this is expensive since it also adds a draw call. In any case, we do not have the access needed to make one within Unity so in the end, as usual, dreamora is correct.
That wasn’t the idea.
But sadly the iphone is not exactly a high end machine when compared to PCs.
Even those useless crap CPU to DVI adapters from Intel (GMA950 / GMA900) are magnitudes more powerfull than the iPhone and the iPhone is far less flexible due to the missing programmable pipeline support in the current devices (there are rumors and expectation that the 3rd generation devices actually might come with OpenGL ES 2.0 chips)
CedarParkDad is right, the effect can be faked up to a given point.
The best way to do it thought is not by doubling the geometry programmatically.
There are different examples who have shown that well done models that have the effect embedded work much better. For example if you are able to define an angle from which the user looks at the model, you can reduce the required outline geometry to a fraction of the whole model as you only need the phantom outline geometry for this specific camera position and direction
Hmm… interesting but it sounds costly. Think I’ll just rethink parts of the design. Thanks!
so with ES2.0 in the 3GS and Iphone 4, is there a viable solution others have stumbled upon yet?
With the OES 2.0 targeting that U3 got you should be able to use it just like that as its provided by U3
But be aware that it is a bit costly so you might want to optimize the shader for your specific purpose. Ensure to do all through good texture art that does not require any realtime
as is often the case, Dreamora to the rescue Thanks for the pointer
I’m using it on Android and it works great on an object right next to the camera, but an object a bit farther away refuses to show the outline. I turned the width to max and made it white and it barely showed up at all.
Moving the camera closer to the object didn’t help… anyone?