Sign in to follow this  

how to render multipleviews in the same picturebox

This topic is 3473 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
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
thanks ! it works fine when I render 1 scene, now i will try
with multiple views

thanks again

Share this post


Link to post
Share on other sites

This topic is 3473 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this