Jump to content
  • Advertisement
Sign in to follow this  
afsajghfd

how to render multipleviews in the same picturebox

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

Hi all, thanks to old threads I implement multipleviews in different PictureBox, but now I want to render the scenes in the same picturebox. ex: http://img152.imageshack.us/img152/7268/examplesk9.jpg for now its in two picturebox, but as I said, I would like to render this in only one picturebox. why? cause i would like to have transparency, create effects between the two views, etc. I'm using vb.net and DX9 Thanks in advance !

Share this post


Link to post
Share on other sites
Advertisement
If you only need to render to rectangular areas, you can use SetViewport to limit the current drawing area to a given rectangle. This allows you to create a "window" inside your drawing area, and render only to it.

If you want more complex effect, like a non-rectangular border, look into using the Stencil Buffer to create a stencil.

Finally, if you want blending, or other really complex effects, consider using Render To Texture to render the content to a texture, then render that texture with a second pass to perform the complex effect.

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!