Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your feedback on a survey! Each completed response supports our community and gives you a chance to win a $25 Amazon gift card!


Decals in XNA or DirectX9


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
5 replies to this topic

#1 BigGiantHead   Members   -  Reputation: 183

Like
0Likes
Like

Posted 22 July 2013 - 02:42 AM

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 http://www.youtube.com/watch?v=1vnRV-1S65I.

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


Sponsor:

#2 imoogiBG   Members   -  Reputation: 1247

Like
0Likes
Like

Posted 22 July 2013 - 05:59 AM

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



#3 NightCreature83   Crossbones+   -  Reputation: 3042

Like
0Likes
Like

Posted 22 July 2013 - 06:15 AM

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, Mad Max

#4 BigGiantHead   Members   -  Reputation: 183

Like
0Likes
Like

Posted 22 July 2013 - 08:16 AM

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


#5 NightCreature83   Crossbones+   -  Reputation: 3042

Like
1Likes
Like

Posted 22 July 2013 - 08:23 AM

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, Mad Max

#6 BigGiantHead   Members   -  Reputation: 183

Like
0Likes
Like

Posted 22 July 2013 - 09:29 AM

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





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS