This errors out completely:
int BFX=0;
BFX=dbLoadCameraEffect("../FX/bloom_ssaa.fx",1,FindFreeFX());
int T2=65499;//*********** MUST BE THIS NUMBER.....
dbSetCameraEffect(C2,BFX,T2);
do {
// dbPasteImage(T2,0,0);
dbText(0,0,vString(dbScreenFPS()));
dbText(0,20,vString(tp1));
Cam.RotateCamera();
DoInterface();
// Update the screen
dbSyncCamera(0);
// dbSync(1);
// dbSyncMask(1<<C2);
// dbSync(1,0);
// dbSyncMask(1<<0);
dbSyncCamera(C2);
if (dbEscapeKey()==1) PostMessage(hWnd,WM_CLOSE,0,0);
} while (windowEvent()!=WM_CLOSE);
dbCloseScreen();
This give me the picture but no bloom effect at all:
int BFX=0;
BFX=dbLoadCameraEffect("../FX/bloom_ssaa.fx",1,FindFreeFX());
int T2=65499;//*********** MUST BE THIS NUMBER.....
dbSetCameraEffect(C2,BFX,T2);
do {
dbPasteImage(T2,0,0);
dbText(0,0,vString(dbScreenFPS()));
dbText(0,20,vString(tp1));
Cam.RotateCamera();
DoInterface();
// Update the screen
// dbSyncCamera(0);
dbSync(1);
dbSyncMask(1<<C2);
dbSync(1,0);
dbSyncMask(1<<0);
// dbSyncCamera(C2);
if (dbEscapeKey()==1) PostMessage(hWnd,WM_CLOSE,0,0);
} while (windowEvent()!=WM_CLOSE);
dbCloseScreen();
These are the only two methods I know of and neither work.
If I do this I get a black screen:
int BFX=0;
BFX=dbLoadCameraEffect("../FX/bloom_ssaa.fx",1,FindFreeFX());
int T2=65499;//*********** MUST BE THIS NUMBER.....
dbSetCameraEffect(C2,BFX,T2);
do {
dbPasteImage(T2,0,0);
dbText(0,0,vString(dbScreenFPS()));
dbText(0,20,vString(tp1));
Cam.RotateCamera();
DoInterface();
// Update the screen
dbSyncCamera(0);
// dbSync(1);
// dbSyncMask(1<<C2);
// dbSync(1,0);
// dbSyncMask(1<<0);
// dbSyncCamera(C2);
if (dbEscapeKey()==1) PostMessage(hWnd,WM_CLOSE,0,0);
} while (windowEvent()!=WM_CLOSE);
dbCloseScreen();
Any ideas on how to do bloom in 2.0?
The fastest code is the code never written.