Hi, I got this little example code that uses 2 cameras (working fine):
#include "DarkGDK.h"
void DarkGDK ( void )
{
char text_line[256];
dbSetDisplayMode(1024, 768, 32);
dbSyncOn();
dbSyncRate(0);
dbAutoCamOff();
dbPositionCamera(0, 0, 0, -100);
dbPointCamera(0,0,0,0);
dbMakeCamera ( 1 ) ;
dbPositionCamera(1, 1000, 1000, 900);
dbPointCamera(1, 1000, 1000, 1000);
dbMakeObjectCube(1, 20);
dbPositionObject(1, 0, 0, 0);
dbColorObject(1, dbRgb(255, 0, 0));
dbMakeObjectSphere(2, 20);
dbPositionObject(2, 1000, 1000, 1000);
dbColorObject(2, dbRgb(0, 255, 0));
//Set viewports
dbSetCameraView(0, 0, 0, 512, 384);
dbSetCameraView(1, 512, 384, 1024, 768);
strcpy(text_line, "dbMakeCamera - DGDK\0");
while (LoopGDK() )
{
dbSetCursor(0,0);
dbPrint(text_line);
dbSync();
}
}
Perhaps that helps.
I also change FOV spreadly at main camera with no problems until now.