Jump to content
  • Advertisement
Sign in to follow this  
dazscott

rendering UI

This topic is 4943 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to load in a .bmp image to be rendered as a user interface over my 3d scene. I was about to use something like System.Drawing.Bitmap.FromFile(@"Ui.bmp") but is there a better way? can you convert .bmp to .x and load as a mesh?

Share this post


Link to post
Share on other sites
Advertisement
The best way is to use the sprite interface. I'm not sure what it's called in C# / .NET, but in C++ it's ID3DXSprite, and you get a sprite from D3DXCreateSprite().

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Quote:
Original post by dazscott
I want to load in a .bmp image to be rendered as a user interface over my 3d scene. I was about to use something like System.Drawing.Bitmap.FromFile(@"Ui.bmp") but is there a better way? can you convert .bmp to .x and load as a mesh?




You mean to use the BMP as an overlay (over the scene stuff on the screen)???

BTW a .x is a 3D mesh (object) and if you are thinking of loading a .x quad with your bmp as its texture, thats an overly complicated way to do it.
Look for 2D drawing methods (which now go thru the 3d interface).
You draw it last and use a transparency keycolor mode to let thru the dynamic parts.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!