Archived

This topic is now archived and is closed to further replies.

preloader

Outline Object

Recommended Posts

I''m now working on outlining 3D objects after selection. The only thing i can make is to draw bigger object with transparent material. It not look''s so good. I know what outlining could be implemented with stencil buffer but still can''t understand this technics. Maybe it''s possible to make with some other methods? Or just explain how make it with stencil.

Share this post


Link to post
Share on other sites
move the vertex following his normal, don''t draw any texture but just a material. (here you have the outline)
After just draw the object but disable the z-buffer and it must work.
If you have vertex shader support, it cost nothing.

Share this post


Link to post
Share on other sites


If i draw outline without z before level, then level will cover it.
If i''ll draw it after then i''ll see outline even level geometry will cover it - as watching through walls.

Anyway not to correct ways.

Share this post


Link to post
Share on other sites
You could draw it without Z WRITING, then draw the object on top of it. you''ll have to draw it after you draw the level

This way, the level will be drawn, and Z testing is still enabled, but it won''t write to the zbuffer, so when you draw the object OVER it, it won''t interfere.

Just an idea

Josh

Share this post


Link to post
Share on other sites