Jump to content
  • Advertisement

Archived

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

preloader

Outline Object

This topic is 5924 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Looks nice, but i think will work only for units without level.
If I Disable Z-buf, units couldn''t be rendered correctly to camera. No matter that first drawn level or units.
HMMM???

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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!