The Game Creators
The Game Creators Home Online Shop Click to Login
  Hot: Christmas CompetitionNovember NewsletterModel Pack 36DB Pro Pack 2009DGS BonanzaCharacter PackFPS Creator Bonanza;
The Game Creators
DBPro Newcomers / Fullscreen shader

Go to the first page of this board Return to the Forum Menu Post Message
7 Messages - Page   of 1   
Bookmark and Share Search the Forum

Author Message
Cyborg ART

User


Joined: Sun Jan 14th 2007
Location: Sweden - Sthlm
Posted: 6th Nov 2009 08:34           | link | toggle

How do I apply a fullscreenshader?
I want to use the cartoon fullscreen shader from Dark Shader.

Is there any simple command like "set fullscreenshader" or similliar?

Gratefull for any help

Back to top
www.cyborgart.110mb.com
Report this message as abusive
Cyborg ART

User


Joined: Sun Jan 14th 2007
Location: Sweden - Sthlm
Posted: 6th Nov 2009 10:35           | link | toggle

Or does anyone know how to add a cartoonshader to an object? I cant get it to work.

Back to top
www.cyborgart.110mb.com
Report this message as abusive
Black Profductions

User


Joined: Mon Sep 15th 2008
Location: Cyberspace
Posted: 6th Nov 2009 14:01           | link | toggle

i am trying to do the same and i cant get it working

Back to top
Report this message as abusive
Google Ad
Back to top
 
IanM

Moderator


Joined: Wed Sep 11th 2002
Location: In my moon base
Posted: 6th Nov 2009 14:14           | link | toggle

The commands I think you are looking for are LOAD CAMERA EFFECT and SET CAMERA EFFECT. Check the help file under 'Exporting->Using Fullscreen Shaders in DarkBasic' to see how to use them.

Back to top
Matrix1 Software
Report this message as abusive
Black Profductions

User


Joined: Mon Sep 15th 2008
Location: Cyberspace
Posted: 6th Nov 2009 14:20           | link | toggle

thanks IanM, i will check them

Back to top
Report this message as abusive
Cyborg ART

User


Joined: Sun Jan 14th 2007
Location: Sweden - Sthlm
Posted: 6th Nov 2009 15:23           | link | toggle

I found it, but for the moment I cant get it to work.
But its a good start. Thanks!

Back to top
www.cyborgart.110mb.com
Report this message as abusive
Cyborg ART

User


Joined: Sun Jan 14th 2007
Location: Sweden - Sthlm
Posted: 7th Nov 2009 05:27           | link | toggle

Here is the almost exact code as explained in DarkShader's helpfiles. I just changed "EdgeDetect.dbs" to "cartoon outline.dbs"

But it wont work, what should I change/add?

+ Code Snippet
sync on
sync rate 60

make camera 1
color backdrop 1,0

load camera effect "cartoon outline.dbs",1,0
set camera effect 1,1,1

make object sphere 1,10

make object plain 2,2,2,1
load effect "quad.fx",1,0
set object effect 2,1

null = make vector4(1)
set vector4 1 ,640,480,0,0
set effect constant vector 1,"ViewSize",1
null = delete vector4(1)

texture object 2,0,1

do

position camera 1, camera position x(0),camera position y(0),camera position z(0)
rotate camera 1,0,0,0

hide object 2
show object 1
sync camera 1

show object 2
hide object 1
sync mask %01
 sync
 
 loop


Back to top
www.cyborgart.110mb.com
Report this message as abusive

Go to the first page of this board Return to the Forum Menu Post Message
7 Messages - Page   of 1   
Search the Forum

You must be logged-in to post messages to this forum. You can register an account for free. Or click here to login.
Forum Search

Enter a word or phrase to search our Forum for:

Thread Subject Search
Search Phrase:
Search Scope: Entire forum
Just this board
 
Google Forum Search
Search Phrase:
 
Apollo v2.02


Game Creator Store
Privacy Policy AUP Top of Page