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?
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