Archived

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

Rendering two or more views at once, ala 3DS MAX

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

What is the easiest way to do this? I am using the DirectX9 SDK with VS.Net and when you choose the DirectX9 Application, you are given a nice teapot rendered either full screen or windowed. I wish to split this screen so that the same teapot object is shown through two different views, while still allowing rotating, etc. This must be possible, but I don''t know really where to start with this. Any help would be greatly appreciated!!!

Share this post


Link to post
Share on other sites
I haven''t done it in DX9, but I got it working in DX8. I had made a function called Render which had parameters holding where to draw on the screen, and the location of the camera. It would simply render a surphase of the given location (from the camera) and copy the surphase to the coordinates given on the screen.

_____________________________

- Rob Loach
Current Project(s): Upgrade to .NET and learn DX 9

Share this post


Link to post
Share on other sites
look at IDirect3DDevice8::CreateAdditionalSwapChain

edit: or not, your using 9. check anyway, it might have the same funcitons

[edited by - billybob on March 24, 2003 4:12:09 PM]

Share this post


Link to post
Share on other sites
Well, it looks like the SwapChain is probably the best answer, but there is almost no good info on what I am trying to do. I am going to keep playing with the SwapChain method until I figure it out. The surface copying method sounds interesting though, is there any more info or links that you could offer me on this method? Finally, viewports also sound interesting, but I also couldn''t find much info on them. Care to elaborate or provide some linkage? Thanks again for the help so far!

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
in the sdk there is a clipping demo with 2 views, it shows it in real space(fixed camera) and then in camera space

Share this post


Link to post
Share on other sites
Are you refering to the ClipMirror demo? Its still only using one viewport in that demo.

[edited by - Catfang on March 24, 2003 5:29:52 PM]

Nevermind, I think you were talking about the Cull demo. Thanks for getting me started on this!

[edited by - Catfang on March 24, 2003 5:45:24 PM]

Share this post


Link to post
Share on other sites