Bobbysl
April 3rd, 2009, 03:42 PM
I have my directX window divided in to 4. I had a problem of only one viewport rendering and showing the new render. For that my code structure was
Begin scene
Set viewport 1
Set viewport 2
Set viewport 3
Set viewport 4
End scene
This structure only renders the 4th viewport during run time. The other three renders on to screen with the previous render still on screen
So i changed the structure to:
Begin scene
Set viewport 1
End scene
Begin scene
Set viewport 2
End scene
Begin scene
Set viewport 3
End scene
Begin scene
Set viewport 4
End scene
Using this structure the viewports work as the should. But the object on screen keeps blinking. I guess thats becaues i start and stop the rendering.
I you please tell me how to fix the problem?
Thanks
Begin scene
Set viewport 1
Set viewport 2
Set viewport 3
Set viewport 4
End scene
This structure only renders the 4th viewport during run time. The other three renders on to screen with the previous render still on screen
So i changed the structure to:
Begin scene
Set viewport 1
End scene
Begin scene
Set viewport 2
End scene
Begin scene
Set viewport 3
End scene
Begin scene
Set viewport 4
End scene
Using this structure the viewports work as the should. But the object on screen keeps blinking. I guess thats becaues i start and stop the rendering.
I you please tell me how to fix the problem?
Thanks