Creating an outline around a 3d mesh

Blitz3D Forums/Blitz3D Beginners Area/Creating an outline around a 3d mesh

Caff(Posted 2005) [#1]
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


Rob Farley(Posted 2005) [#2]
The code archive is your friend.

http://www.blitzbasic.com/codearcs/codearcs.php?code=446


ErikT(Posted 2005) [#3]
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.


Caff(Posted 2005) [#4]
Cheers Rob + Erik