Jump to content
  • Advertisement
Sign in to follow this  
LevyDee

Rendering multiple "worlds" using one device

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

The title is the question. I dont mean rendering to multiple view ports(I already know how to use swap chains for this), but I would like to, for instance be able to create a model viewer in one window, and at the same time have a map loaded in a different window. Is this possible with one d3d device, or do I need to create a new one?

There could be ways to "Create a new World" where you apply bounds to the size, and an offset for each objects location vector, depending on what world they belong to, but that sounds like a terrible method to achieve this affect.

Edit: Sorry about the double post =(

Share this post


Link to post
Share on other sites
Advertisement
Couldn't you change the render target before you draw your scene? like, draw the model on one render target. after you are finished with that scene, switch render targets and draw the map or whatever on that render target. Then just present the render targets in different viewports.

Actually, you probably don't have to have two different render targets. just draw the first scene on the render target, then present the render target to the viewport you want, then clear the render target, and do the same thing for the second scene or whatever

Share this post


Link to post
Share on other sites
After reading your responses, and them making 100% sense, and that I already know how to change render targets and use swap chains, I feel like a complete fool for asking this... lol(brain farts anyone?)

Feel free to delete this thread!

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.

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!