Render outlines only

How do I render a model as outline only? For example, I want to render a box as just the 12 lines (exclude the interior triangle lines). I would like to render the 3D objects as bright green outlines, how do I do this?

1 Answer

1

You can use GL.LINES.

Regarding the box you can find the example on my page:
http://virtualplayground.d2.pl/WP/?p=147

Regarding the general case you can find a very good script here:
http://forum.unity3d.com/threads/8814-Wireframe-3D/page2
In this case you could modify the script to eliminate lines between adjacent triangles which are coplanar or inclined at small angle.