Texture to texture blitting

Texture to texture blitting

Post by WGVu » Thu, 10 Apr 2008 03:20:01


Hello,
I'm new to DX programming and I'm trying to make a GUI for a simple 2D game
in DX9. I've followed tutorial on building a game display
( http://www.yqcomputer.com/ )
using sprites.

Now I have a question - how to merge 2 or more sprites, or better say their
texures into one single texture? Sort of like merging layers in PhotoShop or
blitting blocks of bitmap from one texture to another...

I'd like to make transitional effects between 2 screens with different
graphical elements (sprites and backgrounds) on them, use fade in/out etc.,
so I'd like to know how to merge em into single sprite to, for example,
uniformly control their transparency (alpha blending).

Thanx.
 
 
 

Texture to texture blitting

Post by legalize+j » Fri, 11 Apr 2008 01:09:41

[Please do not mail me a copy of your followup]

=?Utf-8?B?WGVu?= < XXXX@XXXXX.COM > spake the secret code
< XXXX@XXXXX.COM > thusly:


It sounds like you need to understand the texture blending cascade.
Take a look at my chapter on basic texturing:
< http://www.yqcomputer.com/ ~legalize/book/download/11-Basic%20Texturing.pdf>

Other chapters: < http://www.yqcomputer.com/ ~legalize/book/download/>
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
< http://www.yqcomputer.com/ ~legalize/book/download/index.html>

Legalize *** hood! < http://www.yqcomputer.com/ ;