Here is the code:
Quote: " //Create the camera
dbMakeCamera(cameraID);
//Load the bloom effect for this camera
_bloomEffect = Chaos::getFree(Chaos:
T_EFFECT);
dbLoadCameraEffect( "..\\media\\Effects\\Camera\\Bloom.dbs", _bloomEffect, 0 );
//Set this bloom effect to this camera
_bloomImage = Chaos::getFree(Chaos:
T_IMAGE);
dbSetCameraEffect(cameraID, _bloomEffect, _bloomImage);
//Make a quad for the camera effects to be rendered to
_bloomPlain = Chaos::getFree(Chaos:
T_MODEL);
dbMakeObjectPlain(_bloomPlain, 2, 2);
//Load the quad effect
_bloomPlainEffect = 2; //Chaos::getFree(Chaos:
T_EFFECT);
dbLoadEffect("Quad.fx", _bloomPlainEffect, 0 );
////Make a temp vector
dbMakeVector4( 1000 );
dbSetVector4( 1000, dbScreenWidth(), dbScreenHeight(), 0 , 0 );
dbSetEffectConstantVector(_bloomPlainEffect, "ViewSize", 1000 );
dbDeleteVector4( 1000 );"
It would appear that the line "dbSetVector4( 1000, dbScreenWidth(), dbScreenHeight(), 0 , 0 );" is the one causing the greif.
Im in vista, could this be something to do with it?
Thanks - General Reed
CPU: AMD X2 6000+ 3.0ghz GFX: NVIDIA BFG Geforce 8800GTS 640MB OC-550mhz core RAM: 2048mb