Jump to content
  • Advertisement
Sign in to follow this  
Ivan Ivanovski

Decals in XNA or DirectX9

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

Hi everybody,

 

Can some of you guys tell me how to make decals in XNA?

I was trying to tackle this problem for a while, but I haven't had any progress. 

Please help, it's getting quite depressing.

 

I want to have this as final result 

.

We already have the terrain painting. :)

 

BGH

Share this post


Link to post
Share on other sites
Advertisement

Decals are just quads that are overlaid over the object below it, usually you use projective texturing for this so that it looks like it is on top of the object below. I would start with a simple flat surface.

 

http://blog.wolfire.com/2009/06/how-to-project-decals/

 

I've seen this blog post. It's ok, but I was wandering if it is possible to get some easier way to do it, and also to use it in real time.

Share this post


Link to post
Share on other sites

Well use normal projective texturing in that case but that won't always look as pretty as that one will. But it should teach you enough tricks to overcome it's short comings.

Share this post


Link to post
Share on other sites

Basically I should render the model, which is projected on, with multiple textures,

or render the model multiple times blended on top of the original model.

I'll try it. :)

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!