Guys how can I get an image from set camera to image ? I need to save to the disk does anybody knows how to do it? Cause when I change object the set camera to image changes all the previously and new limb textures....
void setup_HDR(int lockObj)
{
dbMakeCamera(cam1);
dbSetCameraFOV(cam1,fov);
dbSetCameraRange(cam1,1,10);
dbColorBackdrop(cam1,0);
dbPositionCamera(cam1,dbObjectPositionX(lockObj),dbObjectPositionY(lockObj),dbObjectPositionZ(lockObj)-2*3.0);
dbPointCamera(cam1,dbObjectPositionX(lockObj),dbObjectPositionY(lockObj),dbObjectPositionZ(lockObj));
dbSetCameraToImage(cam1,img1,imgsize,imgsize);
if(dbLimbExist(lockObj,1) ==0)
{
dbMakeObjectPlain(101,10.0,10.0);
dbPositionObject(101,dbObjectPositionX(lockObj),dbObjectPositionY(lockObj),dbObjectPositionZ(lockObj));
dbMakeMeshFromObject(1,101);
dbAddLimb(lockObj,1,1);
dbScaleLimb(lockObj,1,135.0f,101.5f,100.0f);
dbDeleteObject(101);
}
dbTextureLimb(lockObj,1,img1);
dbSetLimbSmoothing(lockObj,1,100);
dbSetObjectTransparency(lockObj,2);
dbRotateLimb(lockObj,1,0,0,0);
HDR_updateStats(technique);
dbSetLimbEffect(lockObj,1,1);
dbColorBackdrop (1,0 ) ;
}