Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • *Experts*
Posted

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

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...