Creating an outline around a 3d mesh
Blitz3D Forums/Blitz3D Beginners Area/Creating an outline around a 3d mesh
| ||
Hi everyone Imagine I am rendering a 3d mesh as a background, then in front of that I would like to place a mesh as a pickable 3d GUI object. However I would like to create a black 'outline' around the outer edges of the mesh to make it more distinguishable against the background - how should I achieve this? I imagine in involves some sort of trickery? thanks |
| ||
The code archive is your friend. http://www.blitzbasic.com/codearcs/codearcs.php?code=446 |
| ||
One trick would be to have two instances of the same mesh, one with inverted normals and textured black. Then scale the inverted one a bit larger. Aint perfect but it works. EDIT: Aw.. beaten to it. |
| ||
Cheers Rob + Erik |