Here's a tough one I've been trying to work on , Rendering to more than one window and each giving each window its own static view(camera)
the easiest way to do this is to make multiple calls to the device.present method and give each call a different window handle

public sub Render(byval WinHandle2 as intptr,byval WinHandle3 as intptr)

device.clear

device.beginscene

'geometry and scene stuff here

device.endscene

device. present

device.present(WinHandle2)

device.present(WinHandle3)

end sub

now this renders the same device.transform.view to all windows. The problem with this is when you translate / rotate the devices view the view is moved in all windows.I want to have a seperate view for each window , so I can Translate the view in one window and not effect the others.Hopefully some one can help me out with this please post if you know the answer

I see where you are headed with the multiple device suggestion , but there is one huge flaw in this. "it takes way to much processing" using multiple devices can seriously slow down your app especially with visual basic. which supposedly has a slower speed than other languages c++, J# etc.also using multiple devices which I have tried makes rendering scenes vey hard. which I actually can't even get it to render with two devices I keep getting buffer overflow or something of that nature.

using the the swap chain has the same effect as using device.present call multiple times and the view are shared by one device so translating a view in one window effects the other.I am assuming with the high tech stuff in the new directx surely they didn't leave out a way to make multiple cameras.

by the way does any one know when the release of visual basic .net 2005 is.Not the express edition the standard edition??

Here are some other failed attempts at this I tried , take a look so you don't waste your time falling into the same errors I have

'' what I tried here is to present the scene to the first window then apply a matrix to the view then present it again to the second window.When you do this the scene will render one time then show up as a blank screen. not sure why but it does. if I could get this one to work I could use different matrix's to present different views of the same world maybe some one can get that trixk to work.

see here I make new device set up the swap giving it the devices setting and present parameters then in the render function I use the swap.device.present function and device.present functio to present the scene which presents two pictures to seperate windows but if apply a matrix to either the device or the swap.device both of them are affected = in each screen maybe you see something I am doing wrong help me out here

To me it looks as though you are displaying the same image to both screens. You've applied the matrix and presenting the same to both windows. Try changing the view on the second window before you present it.

Hi I am having trouble with the supplied SwapChain example. I have two UserControls. One for the device's Present() and one for the swap chain. The rendering works for the first UserControl which the device is Presented to but the second UserControl's display is all screwy and scrambled. Is there something special I have to do?

I got it working I forgot a line of code in the sample. I wasn't using mySwapChain.Device.Present(someWindow) but trying to use mySwapChain.Present(someWindow). I dont know why that doesnt work but it doesnt.

O.k maybe there is something wrong with the way I am initilializing my main device and swap chain device perhaps the solution here is to find some one who knows how do this and have them post the entire process from initialization to rendering

if you do this then no matter which swap view is translated it affects every view port and translates them all

so what I want to do is move the camera in one view and have it not affect the camera in the other view ???? I know this requires a swapchain but I am not sure how to work the views now Perhaps some one can clear this up for me ?

Super Sweet
There is so much more to rendering to multiple views than the crappy documentation that comes with directx shows .
You seem like a very knowledgable guy on directx and visual basic can you suggest any good books may be that you think could help ? hooray once again the mystery is solved

Super Sweet
There is so much more to rendering to multiple views than the crappy documentation that comes with directx shows .
You seem like a very knowledgable guy on directx and visual basic can you suggest any good books may be that you think could help ? hooray once again the mystery is solved

One recommendation I do have and thats 3D Game Engine programming. It is written in C++ but it's not too tricky to convert into VB. Anything else that you think I can help with then drop us an email at neil_knight@hotmail.com.