Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Cartoon shading question

Author
Message
Gnomes Games
19
Years of Service
User Offline
Joined: 25th Dec 2005
Location: FRANCE
Posted: 25th Mar 2006 11:55
I am making a game and i want to use cartoon shading but the problem is that my object is already textured and with differents textures ...

Why can i use this effect on a already textured object ??

Thanks

(sorry for my so bad english... )

MY PC: Pentium II 400 Mhz/8 Mb 3d graphic card(only support 3d with 640*480 16Bit)/160 Mb Ram/6 GB HD/Win98
IT'S HORRIBLE
But ... DBPRO 5.9 !!!
Gnomes Games
19
Years of Service
User Offline
Joined: 25th Dec 2005
Location: FRANCE
Posted: 25th Mar 2006 20:15
Nobody can answer ?

MY PC: Pentium II 400 Mhz/8 Mb 3d graphic card(only support 3d with 640*480 16Bit)/160 Mb Ram/6 GB HD/Win98
IT'S HORRIBLE
But ... DBPRO 5.9 !!!
NeX the Fairly Fast Ferret
20
Years of Service
User Offline
Joined: 10th Apr 2005
Location: The Fifth Plane of Oblivion
Posted: 25th Mar 2006 20:16 Edited at: 25th Mar 2006 20:17
Maybe if people could read your question, they would understand it.

PS. How did you get toon shading at all on that (by the sounds of it) pathetic computer?


At least farting ferrets are better than stinky stoats.
Catalyst
21
Years of Service
User Offline
Joined: 6th Sep 2003
Location:
Posted: 25th Mar 2006 20:51
Agreed with NeX, if that's the system you want it to run on in your sig, the answer to how to use the effect is buy a different computer.
GatorHex
20
Years of Service
User Offline
Joined: 5th Apr 2005
Location: Gunchester, UK
Posted: 25th Mar 2006 20:53 Edited at: 25th Mar 2006 20:59
Its a hardware FX you graphics card needs to have it built in to its GPU chip.

SET CARTOON SHADING ON
This command will set the rendering method of the specified object. Otherwise known as toon shading, this
command will apply a carton style render to the object using a shading image and an edge image. The
shading image and edge image require layout for the toon shading to work correctly. Your video card must
have the ability to create this hardware effect.

SYNTAX
SET CARTOON SHADING ON Object Number, Shade Image, Edge Image

...but thinking about if you want to make a game like Parapa da Rappa you could just texture images to flat plains and set one of the colours to alpha invisible so it looks see through (assuming that old 3D card u got support alpha channel)
Gnomes Games
19
Years of Service
User Offline
Joined: 25th Dec 2005
Location: FRANCE
Posted: 25th Mar 2006 21:16
I am using an other computer now and cartoon shading run on it..

But does someone know how i can use this fabulous cartoon shading effect whith a pre-textured object ???

MY PC: Pentium II 400 Mhz/8 Mb 3d graphic card(only support 3d with 640*480 16Bit)/160 Mb Ram/6 GB HD/Win98
IT'S HORRIBLE
But ... DBPRO 5.9 !!!
Catalyst
21
Years of Service
User Offline
Joined: 6th Sep 2003
Location:
Posted: 25th Mar 2006 22:56
You can't use it with a pre-textured object, since it takes it out of the usual fixed-function pipeline and runs it down the shader pipeline. Meaning that any textures or lighting that you had set up before will not work using a shader. You have to apply the texture through the shader. If you want a good shader for doing that, check out PrestonC's cel shader, it's in the ultimate shader thread. Near the end of that thread is a version I modified to add in control over stroke thickness, might help out. There's also plenty of info in there about how to use it.
Gnomes Games
19
Years of Service
User Offline
Joined: 25th Dec 2005
Location: FRANCE
Posted: 21st Apr 2006 19:20 Edited at: 21st Apr 2006 19:22
@Catalyst:
Ok i downloaded the .fx file and it run in a simple program:


but it bug in my program !


I load the same model,with the same code,on the same computer !!

Can you help me...

AMD Athlon 64 3400+/1 Go DDR/Ati X600 512 Mo/260 Go HD/Windows XP SP2/DirectX 9.0c (APRIL 2006)/Dark Basic Pro 6.0 RC10
Gnomes Games
19
Years of Service
User Offline
Joined: 25th Dec 2005
Location: FRANCE
Posted: 22nd Apr 2006 12:12
if someone use the cartoon shading effect of catalyst,can you tell me what's kind of problem it could be ?

AMD Athlon 64 3400+/1 Go DDR/Ati X600 512 Mo/260 Go HD/Windows XP SP2/DirectX 9.0c (APRIL 2006)/Dark Basic Pro 6.0 RC10
Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 22nd Apr 2006 15:16
ok that are 2 big gif files. Please use jpg's with a smaller resolution.
Maybe 800x600 or 640x480.


- Thanks

[/center]
Gnomes Games
19
Years of Service
User Offline
Joined: 25th Dec 2005
Location: FRANCE
Posted: 22nd Apr 2006 19:52
@jack
sorry...the next time i will use jpg's...
heu.. can someone answer to my question ?

AMD Athlon 64 3400+/1 Go DDR/Ati X600 512 Mo/260 Go HD/Windows XP SP2/DirectX 9.0c (APRIL 2006)/Dark Basic Pro 6.0 RC10
coolgames
19
Years of Service
User Offline
Joined: 26th Sep 2005
Location: Oregon, USA
Posted: 22nd Apr 2006 23:21
Post your code.

Gnomes Games
19
Years of Service
User Offline
Joined: 25th Dec 2005
Location: FRANCE
Posted: 23rd Apr 2006 20:08 Edited at: 23rd Apr 2006 20:09
ok here the code whitch doesn't run:


and here the code whitch run:


(it's the same code !!)

AMD Athlon 64 3400+/1 Go DDR/Ati X600 512 Mo/260 Go HD/Windows XP SP2/DirectX 9.0c (APRIL 2006)/Dark Basic Pro 6.0 RC10

Login to post a reply

Server time is: 2025-06-26 07:22:36
Your offset time is: 2025-06-26 07:22:36