Game Development Community

toon shader where/ how do I use it

by Anthony Rosenbaum · in Torque Game Engine · 04/02/2002 (6:34 pm) · 6 replies

can anyone give me a simple example of how to USE the free toon shader code (found in the codes nippits). Iunderstand the idea behind everything I just am not too clear what I need to replace. So if anyone could please show me how to make the player to be rendered with toon shader that would be great. Also I remeber once when you add code to the hard code you also have to do something to point the .obj file off some where. Could you also give me a refresher on that? thanks Anthony

#1
09/30/2003 (3:12 am)
Can't anyone create this seemingly simple shading code? Everyone says it's simple, so why isn't it in Torque already?
#2
09/30/2003 (4:25 am)
Because it's not something that the Torque Game Engine would like to integrate, since probably not even 10% of the games created with Torque will want cell shading.
If you want it for your specific game then code it, there are tons of tutorials online on celshading and it's pretty simple.
#3
09/30/2003 (4:32 am)
Yeah, except they all claim to be slow or buggy :(

Besides, even 5% is a lot. When you consider that Torque has all manner of vehicle code physics, yet only a small percentage of games made with it use them. Also, I bet if a decent cell shader was added to Torque, people would use it. It's becoming more and more popular of late.
#4
09/30/2003 (5:05 am)
Here is a "buggy" resource for cell shading outline
www.garagegames.com/mg/forums/result.thread.php?qt=10936
#5
09/30/2003 (6:39 am)
It's still not an engine feature but a game related feature. While on the other hand vehicles are an engine feature since many things in the engine depend on the vehicles and need to be made correctly to work.
#6
09/30/2003 (7:37 am)
Try 'setinteriorrendermode(5);' in the console for some quick and dirty toon shading. ;P (btw: this only works at 4:30 am after pulling an all nighter).