Sign in to follow this  
azjerei

"Bending" decals

Recommended Posts

I am in the midst of conceptualizing a decal system for my game, and I have ran into some problems regarding how to apply decals to the environment. The problem that I am having is that I don't want decals that go over edges and sticks out, like this:
-------....
       |
       |
The lines represent a piece of geometry, a slope, and the dots represent the part of the decal that sticks out over the edge. How would I go about bending that part down onto the slope-polygons? I am using OpenGL, and have support for multitexturing, if there is a way to map the decal onto the textures, thus creating some form of effect. I dunno... Any ides and suggestions?

Share this post


Link to post
Share on other sites
A detailed description of a working algorithm, with code, can be found in one of the first two GPG books in the article 'Applying Decals to Arbitrary Surfaces'. I based my decal system on this article and it works great. It involves some work (clipping triangles, creating the decal volume, etc.) but it's very effective.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this