Also, since i'm only wanting to render 2d images I am under the impression that I do not have to use multiple cameras to get the effect that I want. I searched the forum and found everyone saying to state the setViewPort then make your drawing calls. So i'm pretty sure i'm making a simple mistake. Thanks for any help you can give.
Code: Select all
pseudo code
setViewport to entire screen
beginScene
setViewport to right half
draw2DImage
sceneManager present to screen
setViewport to left half
draw2DImage
sceneManager present to screen
endScene
Code: Select all
// All rendering is done between begin and end
// The begin scene clears the screen with a color and also
// the depth buffer if so needed
driver->setViewPort(rect<s32>(0,0,ResX,ResY));
driver->beginScene(true, true, SColor(0, 0, 200, 200));
// Set the viewport to be the left half of the screen
driver->setViewPort(rect<s32>(0,0,ResX/2,ResY));
driver->draw2DImage(images, position2d<s32>(50,50),
rect<s32>(0,0,342,224), 0,
SColor(255,255,255,255), true);
// Now we let the scenemanager do all its drawing
smgr->drawAll();
// and let the gui evn do all of its drawing methods
guienv->drawAll();
// Set the viewport to be the right half of the screen
driver->setViewPort(rect<s32>(ResX/2,0,ResX,ResY));
driver->draw2DImage(images, position2d<s32>(164,125),
rect<s32>(349,15,385,78),0,
SColor(255,255,255,255),true);
// Now we let the scenemanager do all its drawing
smgr->drawAll();
// and let the gui evn do all of its drawing methods
guienv->drawAll();
// and we end the scene
driver->endScene();