Now it's wierd. When i will look behind myself i see wierd texture. And It's laggy, 26-28 FPS and i don'y see any bloom :/
Camera ID, 0&1
// make a camera and color the backdrop to 0
dbMakeCamera ( 1 );
dbColorBackdrop ( 1, 0 );
dbMakeObjectSphere ( 1, 10 );
dbLoadImage ( "media\\detail.jpg", 900);
dbTextureObject ( 1, 900 );
// load an effect for the camera
dbLoadCameraEffect ( "media\\Bloom.dbs", 1, 0 );
dbSetCameraEffect ( 1, 1, 1 );
// make a plane and set the quad effect for it
dbMakeObjectPlane ( 2, 2, 2 );
dbLoadEffect ( "media\\quad.fx", 2, 0 );
dbSetObjectEffect ( 2, 2 );
// set up properties for our quad effect
dbMakeVector4 ( 1 );
dbSetVector4 ( 1, 1.0f/dbScreenWidth ( ), 1.0f/dbScreenHeight ( ), 0, 0 );
dbSetEffectConstantVector ( 2, "InvViewSize", 1 );
dbDeleteVector4 ( 1 );
dbTextureObject ( 2, 0, 1 );
// ensure camera 1 is set to same position and rotation as camera 0
dbPositionCamera ( 1, dbCameraPositionX ( 0 ), dbCameraPositionY ( 0 ), dbCameraPositionZ ( 0 ) );
dbRotateCamera ( 1, dbCameraAngleX ( 0 ), dbCameraAngleY ( 0 ), dbCameraAngleZ ( 0 ) );
In While:
dbHideObject ( 2 );
dbShowObject ( 1 );
dbSyncCamera ( 1 );
dbPositionCamera ( 1, dbCameraPositionX ( 0 ), dbCameraPositionY ( 0 ), dbCameraPositionZ ( 0 ) );
dbRotateCamera ( 1, dbCameraAngleX ( 0 ), dbCameraAngleY ( 0 ), dbCameraAngleZ ( 0 ) );
// hide the sphere, show the quad
dbHideObject ( 1 );
dbShowObject ( 2 );