How to do picture in picture? (Corner map)

SysRq2000

Newcomer
Joined
Aug 10, 2003
Messages
19
Location
Denmark
Hi, I'm developing a 2D game using Direct3D. I need to show a transparent map window in the corner of the main window (see attachment), so the player knows where to go... How is this done in Direct3D?

- SysRq
 

Attachments

It's up to you, really. Normally, you'd create two triangles that are Transformed and Lit already (as if doing a sprite) and draw whatever you want on a texture which would be applied to those triangles. You can set the alpha blend (and alphablendenable) to achieve a translucent effect.

-nerseus
 
Thanks

Thanks. I thought it would be something like that... But since I'm pretty new to Direct3D I would like to see some example code or a tutorial. Do you know where to find any samples related to this subject?

- SysRq
 
Back
Top