Jump to content
  • Advertisement
Sign in to follow this  
harminal

How can i create two seperate d3d scenes in 2 different windows?

This topic is 2904 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 have made 2 directx scenes in 2 different windows.
The first scene renders fine but the 2nd scene doesnt even render
I know it should work because i copied the code for scene 2 to a new project and it worked fine...

So help please?

Share this post


Link to post
Share on other sites
Advertisement
Which API version do you use and what have you done so far to initialize the second window?

Share this post


Link to post
Share on other sites
Quote:
Original post by Demirug
Which API version do you use and what have you done so far to initialize the second window?


DirectX 9
I have done the normal things to initialize a scene. Set up a device and render at the onPaint event.

Share this post


Link to post
Share on other sites
Generally this is done by creating an additional swap chain for the second window. Then each frame, you render the first scene to the backbuffer created with the device and then render your second scene to the backbuffer created with the additional swap chain. Is that what you're doing?

Share this post


Link to post
Share on other sites
If they're totally independent scenes you can just make two separate devices and call it a day.

Share this post


Link to post
Share on other sites
Quote:
Original post by Promit
If they're totally independent scenes you can just make two separate devices and call it a day.


This is exactly what i did and for some reason doesnt render:(

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!