Jump to content
  • Advertisement

Archived

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

mickmad

D3D7 in Windowed mode

This topic is 6084 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

Hello Folks Two main questions that have tortured me while trying to make D3D run in windowed mode: 1. How do you find out the rasterised x and y location of any 3D vertex? 2. Is it feasible to draw a 2D background on a 3D display? I tried to use an auxilliary surface to load a 2d bitmap for a background. D3D requires a back surface where the D3DDEVICE7 will write all rendered stuff. My plan was to render to back surface, blit this to the auxilliary surface, then blit the auxilliary to primary surface. Result - Zip, nada, zero - nothing is displayed. The 3D graphics is rendering on the back surface ok (before using the auxilliary surface). Any comments or suggestions will be greatly appreciated. cheers

Share this post


Link to post
Share on other sites
Advertisement
I was able to mix BlitFast and 3D graphics (x files and primitives) with DX7 no problem. Make you''re you''re not clearing the Z buffer/3D Surface after you blit your background.

Many will tell you otherwise but you CAN use blitfast after beginscene or whatever the function is. Not recommended, but you can do it.

Just do everything on the backbuffer. You don''t need a second surface dedicated to 2D. You can mix 2D and 3D.

Ben

IcarusIndie.com

[The Rabbit Hole | The Labyrinth | Programming | Gang Wars | The Wall]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!