Hi all
rem setup screen
sync on
sync rate 60
backdrop off
hide mouse
rem make a cube
make object cube 1,10
color object 1,rgb(0,50,200)
rem load bloom effect
load camera effect "FX\post-bloom.fx",1,0
set camera effect constant float 1,"BloomThreshold",0
set camera effect constant float 1,"PreBloomBoost",2
set camera effect 0,1,65001
texture screen 65001
draw to camera
rem main loop
position camera 0,5,-20
point camera 0,0,0
do
rem rotate cube
yrotate object 1,wrapvalue(object angle y(1)+3)
rem text
text 0,300,"Please escort your weighted companion cube to the Aperture Science Emergency Intelligence Incinerator."
rem refresh screen
sync camera 0
cls 0
rem end of main loop
loop
[Project folder is attached]
First of all I'd like to point out that DBPs documentation is pathetic, and it took me quite a while to get this damn shader working. There's absolutely no information on
load camera effect or
set camera effect, in fact, DBP doesn't even know those commands exist.
With that out of the way, can anyone tell me why 2D things are drawn behind 3D objects? Sprites, images, text, 2D shapes... I'd like them all to be
in front of the object, not behind it... This also gave me a headache, because I was wondering where the hell my GUI evaporated to when I first implemented this shader o.O
Much thanks,
TheComet