Ok, so I've been trying to figure out why nothing is drawn in any of the DarkShader examples from the help files, if i use any DBP commands that change the display settings in any way, such as SET DISDPLAY MODE and SET WINDOW OFF
Rem Project: BloomWithDarkShader
Rem Created: 07/11/2008 17:26:51
rem Requires: DarkSHADER
rem Init
sw = 640
sh = 480
`Set display mode sw,sh,32,0
sync on
sync rate 60
rem Make camera one our new 3D scene camera
make camera 1
color backdrop 1,0
rem Load and apply fullscreen shader to scene camera
load camera effect "shaders/Bloom.dbs",1,0
set camera effect 1,1,1
//make post process plain
quad = 10
quadfx = 5
make object plain quad,2,2,1
load effect "shaders/quad.fx",quadfx,0
set object effect quad,quadfx
//set shader parameter
null = make vector4(1)
set vector4 1,sw,sh,0,0
set effect constant vector quadfx,"ViewSize",1
null = delete vector4(1)
//texture quad
texture object quad,0,1
rem Make white cube in 3D scene
make object cube 1,100
rem Place scene camera
position camera 1,0,50,-200
point camera 1,0,0,0
do
yrotate object 1,a : inc a
hide object quad
show object 1
sync camera 1
text 0,0,"FPS: "+STR$(SCREEN FPS())
show object quad
hide object 1
sync mask %01
sync
loop
I've tried everything I can think of... It works fine, until i uncomment/add SET DISPLAY MODE or use SET WINDOW OFF.
I have no idea if this has anything to do with the way LOAD CAMERA EFFECT and SET CAMERA EFFECT work internally, since TGC didn't provide much help at all for those commands, except what was on the example page in DarkShader Help files.
Any help would be appriciated.