Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Decals in XNA or DirectX9

4: Adsense

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   

194
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


#2 imoogiBG   Members   

3167
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   Members   

4953
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, theHunter, theHunter: Primal, Mad Max


#4 BigGiantHead   Members   

194
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   Members   

4953
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, theHunter, theHunter: Primal, Mad Max


#6 BigGiantHead   Members   

194
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.