im spliting the camera in four with this code
for (i; i < 4; i++) {
view[i].AttachNew(new csView (engine, g3d));
view[i]->GetCamera ()->SetSector (room);
view[i]->GetCamera ()->GetTransform ().SetOrigin (pos);
}
view[0]->SetRectangle(0, g2d->GetHeight() / 2, g2d->GetWidth() / 2, g2d->GetHeight() / 2);
view[1]->SetRectangle(g2d->GetWidth() / 2, g2d->GetHeight() / 2, g2d->GetWidth() / 2, g2d->GetHeight() / 2);
view[2]->SetRectangle(0, 0, g2d->GetWidth() / 2, g2d->GetHeight() / 2);
view[3]->SetRectangle(g2d->GetWidth() / 2, 0, g2d->GetWidth() / 2, g2d->GetHeight() / 2);
and im trying to look at a car
view[0]->GetCamera()->GetTransform().LookAt(car->GetMovable()->GetPosition() -
view[jug]->GetCamera()->GetTransform().GetOrigin(),
csVector3(0,1,0));
the thing is that the camera actualy reacts like its not splited and the car ends in the center of the window instead of the center of the camera view does anyone konw how to fix this?¿
thanks