Decals in XNA or DirectX9

Started by
4 comments, last by Ivan Ivanovski 10 years, 9 months ago

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

Co-Founder of Tesseract Interactive.

Check out our project Excubitor on http://excubitorgame.com and http://www.indiedb.com/games/excubitor

Advertisement

read that article : http://www.gamedev.net/page/resources/_/technical/graphics-programming-and-theory/advanced-terrain-texture-splatting-r3287

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/

Worked on titles: CMR:DiRT2, DiRT 3, DiRT: Showdown, GRID 2, theHunter, theHunter: Primal, Mad Max, Watch Dogs: Legion

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.

Co-Founder of Tesseract Interactive.

Check out our project Excubitor on http://excubitorgame.com and http://www.indiedb.com/games/excubitor

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.

Worked on titles: CMR:DiRT2, DiRT 3, DiRT: Showdown, GRID 2, theHunter, theHunter: Primal, Mad Max, Watch Dogs: Legion

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. :)

Co-Founder of Tesseract Interactive.

Check out our project Excubitor on http://excubitorgame.com and http://www.indiedb.com/games/excubitor

This topic is closed to new replies.

Advertisement