Jump to content
  • Advertisement
Sign in to follow this  
RayTracer

Decals

This topic is 4881 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

How do i create proper decals,like bullet holes and burn marks (D3D)? .I can't seem to find no info on the subject.Thanks

Share this post


Link to post
Share on other sites
Advertisement
Maybe this article helps:

http://www.flipcode.com/articles/article_decals.shtml

Share this post


Link to post
Share on other sites
i have read that article and its pretty good,but i am more intrested in decals that wrap around the geomerty of the level. how can this be achieved?

Share this post


Link to post
Share on other sites
Quote:
Original post by RayTracer
i have read that article and its pretty good,but i am more intrested in decals that wrap around the geomerty of the level. how can this be achieved?

All the implementations I've seen "cut" a decal into a number of parts based on any triangle boundaries that they cross.

A trivial implementation would probably be to draw each triangle it covers again, but with a different texture set-up; that way it'll follow any contours appropriately.

IIRC, there was a good "gem" on this in one of the GPG books. I'm at work now, so I can't find out for sure.

hth
Jack

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!