I took the lighted outlined toon shader and tweaked it a little for a project I am doing. After a bit I realized that the outline does not render in an orthographic camera for some reason. I checked the stock Lighted Outlined Toon Shader and it is the same; it won’t render the outlines in an orthographic camera.
Has anyone else noticed this or tweaked the shader to allow the outlines to render in orthographic mode? Also, is there any way to get ALL the outlines to render for any edge that is not “smoothed”?
Thanks!
Thanks for that part, I will test it when I get home. Anyone know about rendering all the edges which aren’t smoothed in Maya/Max?
You need to smooth all the edges for toon shading to work like that… hard edges are actually made up of separate vertices and that’s why when the mesh is extruded to create the line you get the gaps.
I still think the best way to get reliable toon shading is to create it in your 3D app by extruding the faces and flipping the normals.
I guess I will try it both ways. Is there a speed difference between using the shader and manipulating the model? What about for iPhone purposes?
Looks like some artist re-education is ahead.
The iPhone will not do shaders. Not one like this. You can, however, extrude the faces (or duplicate geometry) and flip the normals, this is what I do, it works well if your models are fairly low poly (cause you will get 2x the polys/verts).