outline a model

Started by
20 comments, last by songho 18 years ago
Thanks a lot everyone, now it works great!
"We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the internet, we know this is not true." -- Professor Robert Silensky
Advertisement
Quote:Original post by Gaenor
The way i did it is similar to songho's method, but without drawing it 4 times. The process goes like this:

1. Disable color writes and draw (filled) to create a mask in the stencil buffer
2. Enable color writes, set linewidth to something big (like 7) and draw again in wireframe where the stencil is not set.

Gaenor,
This is much simpler and more efficient than what I said before. (BTW, that is an SGI example, not mine.) I could quickly test your method and it worked well. Thanks.

This topic is closed to new replies.

Advertisement