Hi guys
I have been asking this question a few times before cause i need to solve this shader problem. But no real answer has been told.
I have load up a FPSC map in darkbasic, when i try to run a fullscreen shader code this happens. [img]null[/img]
In this code im using the bloom effect.
The texture disapear, there must be a way to solve this, to make the texture appear again.
heres the full code:
REM Project: Fullscreen shader using Darkshader
REM Created: 2009-05-15 11:03:55
REM
REM ***** Main Source File *****
REM
sync on
sync rate 60
make camera 1
color backdrop 1,0 `camera id, color number
Rem --LOAD--
Rem any shader can be loaded here, no need to change any other code!
load camera effect "C:ProgramThe Game CreatorsDark Basic Professional OnlineProjectsMillenium DockyardFilesEffectsbloom.dbs",1,0 `file,camera id, load texture
set camera effect 1,1,1 `camera, effect, render to image
rem make some scenery
load object "C:ProgramThe Game CreatorsDark Basic Professional OnlineProjectsMillenium DockyardFilesLevelbanktestleveluniverse.dbo",901
position object 901,-1500,-1000,2500
rem make quad for final render
make object plain 2,2,2 `image 2?
load effect "C:ProgramThe Game CreatorsDark Basic Professional OnlineProjectsMillenium DockyardFilesEffectsquad.fx",1,0
set object effect 2,1 `object number (image 2?), effect number
rem set a shader parameter
null = make vector4(1)
set vector4 1,640,480,0,0
set effect constant vector 1, "viewsize",1 `effect,?,vector
null = delete vector4(1)
rem texture quad with rendered image from above
texture object 2,0,1 `image 2,x,object 1 ?
do
position camera 1, camera position x (0),camera position y (0),camera position z (0)-1
rotate camera 1, camera angle x (0),camera angle y (0),camera angle z (0)
control camera using arrowkeys 0,1,2
rem --RENDER--
rem show scene, send TPC off to take a picture and modify it. image 1 drawn
hide object 2
show object 901
sync camera 1 `all necessary work will be handled by this command
Rem --SYNC--
rem hide scene, take image 1 (applied to object 2) and draw it to the scene
show object 2
hide object 901
sync mask %01 `ignore certain cameras
sync
loop
Please help.
Hello!