Archived

This topic is now archived and is closed to further replies.

zodiacon

2D in DirectX 9

Recommended Posts

Does anyone know how to do 2D blits with source color keying, similar to the DirectDraw 7 method. I heard there is a new way to do it in DX9 (not using textures as it was donw in DX8.1)

Share this post


Link to post
Share on other sites
quote:
Original post by zodiacon
Does anyone know how to do 2D blits with source color keying, similar to the DirectDraw 7 method. I heard there is a new way to do it in DX9 (not using textures as it was donw in DX8.1)



Don''t think there''s a new way!? Anyone know? I really wanna know this...

/MindWipe

Share this post


Link to post
Share on other sites
quote:
Original post by MindWipe
quote:
Original post by zodiacon
Does anyone know how to do 2D blits with source color keying, similar to the DirectDraw 7 method. I heard there is a new way to do it in DX9 (not using textures as it was donw in DX8.1)



Don''t think there''s a new way!? Anyone know? I really wanna know this...

/MindWipe



IDirect3DDevice9::StretchRect

You can use alpha test to perform a keying effect (colour keying isn''t ideal anyway on modern 3D hardware).

--
Simon O''Connor
ex -Creative Asylum
Programmer &
Microsoft MVP

Share this post


Link to post
Share on other sites
quote:
Original post by S1CA
quote:
Original post by MindWipe
quote:
Original post by zodiacon
Does anyone know how to do 2D blits with source color keying, similar to the DirectDraw 7 method. I heard there is a new way to do it in DX9 (not using textures as it was donw in DX8.1)



Don''t think there''s a new way!? Anyone know? I really wanna know this...

/MindWipe



IDirect3DDevice9::StretchRect

You can use alpha test to perform a keying effect (colour keying isn''t ideal anyway on modern 3D hardware).

--
Simon O''Connor
ex -Creative Asylum
Programmer &
Microsoft MVP



Ok. Thanks, gotta look into that. Well, I think I''ll start seriously with 3D any day now.

/MindWipe

Share this post


Link to post
Share on other sites