We need functionality for rendering a “wire frame box” around object in the scene. Exactly like Unity Tool works when selecting a GameObject in the “Scene” View. We use this to highlight the selected part in runtime.
Better yet, “wireframe” and “edges only” modes, kind of like used with cell shading to achieve comic like feel, would be ideal.
What is the right approach for this in Unity3D? Do we need to write custom shader?
Is possible to draw 2D graphics on the GUI?
We have need to draw simple geometries and lines on the GUI on top of the 3D view. Is this possible in Unity3D? Any tips to get started would be highly appreciated.
If I’m understanding what you’re trying to accomplish correctly this thread might get you started in the right direction. It’s an outline toon shader hack I did that “cuts out” the main geometry leaving just the outline.
This effect is exactly what we are looking for. I was expecting to use primitive box with wireframe or edges only rendermode, but your solution sounds just as valid.
One question, though as I am not 3D artist myself…
How would you create a scalable wireframe model for Unity that does not get distorted when stretched around different sized objects?