I have been wanting to get some good graphics in my games, but I have been having a problem with fullscreen shaders. Here is my code:
sync on
sync rate 70
autocam off
hide mouse
make camera 1
color backdrop 1,0
//set display mode 1920,1080,32,1
set window off
maximize window
load camera effect "Shaders\Bloom.dbs",1,0
set camera effect 1,1,100
make object plain 2,2,2,1
load effect "Shaders\quad.fx",1,0
set object effect 2,1
null = make vector4(1)
set vector4 1,1920,1080,0,0
set effect constant vector 1,"ViewSize",1
null = delete vector4(1)
texture object 2,0,100
do
position camera 1,camera position x(0),camera position y(0),camera position z(0)
rotate camera 1,camera angle x(0),camera angle y(0),camera angle z(0)
position object 2,camera position x(0),camera position y(0),camera position z(0)
hide object 2
show object 1
sync camera 1
hide object 1
show object 2
sync mask %01
sync
loop
The problem is, I want to run my game in fullscreen (1920 x 1080) but when I de-comment the lines "set display mode 1920,1080,32,1" and "set window off", it is just a black screen. does anyone know why this happens, and how to fix it?
I can't think of a signature.