cel/toon shader
cel/toon shader
I believe OGRE supports cel-shading but was wondering if anyone knew how to import shaders in PB? Any help would be great, thanks. 
www.posemotion.com
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
-
DarkDragon
- Addict

- Posts: 2348
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
Re: cel/toon shader
You can use material scripts for importing it. Here is a celshading example:
http://www.ogre3d.org/tikiwiki/tiki-ind ... e=Cookbook
The manual is also helpful:
http://www.ogre3d.org/docs/manual/manua ... C_Contents (=> 3.1 Material Scripts)
In PB you can get a PB Identifier through GetScriptMaterial(#Material, "Your Material Name") after calling Parse3DScripts(), which basically loads all scripts inside you 3d archives.
http://www.ogre3d.org/tikiwiki/tiki-ind ... e=Cookbook
The manual is also helpful:
http://www.ogre3d.org/docs/manual/manua ... C_Contents (=> 3.1 Material Scripts)
In PB you can get a PB Identifier through GetScriptMaterial(#Material, "Your Material Name") after calling Parse3DScripts(), which basically loads all scripts inside you 3d archives.
bye,
Daniel
Daniel
Re: cel/toon shader
Thanks! 
www.posemotion.com
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
-
Kelebrindae
- Enthusiast

- Posts: 151
- Joined: Tue Apr 01, 2008 3:23 pm
Re: cel/toon shader
Also, you can take a look to my little material & shader editor here:
http://www.purebasic.fr/english/viewtop ... 26#p381326
I've just added two cel shaders for OpenGL (untextured and textured).

http://www.purebasic.fr/english/viewtop ... 26#p381326
I've just added two cel shaders for OpenGL (untextured and textured).

Re: cel/toon shader
Sweet! Will definitely try out your editor. 
www.posemotion.com
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
-
DarkDragon
- Addict

- Posts: 2348
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
Re: cel/toon shader
@Kelebrindae: I'm using chrome and I was getting this message when opening the topic again:
http://safebrowsing.clients.google.com/ ... rome&hl=en
The last paragraph says that they informed you already. However, here is a diagnostics link:Warnung: Irgendetwas stimmt hier nicht!
keleb.free.fr enthält Malware. Ihr Computer wird möglicherweise mit einem Virus infiziert, wenn Sie diese Website aufrufen.
Google hat schädliche Software gefunden, die möglicherweise auf Ihrem Computer installiert wird, wenn Sie fortfahren. Wenn Sie diese Website bereits in der Vergangenheit besucht haben oder dieser Website vertrauen, ist es möglich, dass sie vor Kurzem von einem Hacker manipuliert wurde. Sie sollten daher nicht fortfahren und den Vorgang vielleicht morgen wiederholen oder eine andere Website aufrufen.
Wir haben keleb.free.fr bereits informiert, dass wir Malware auf der Website gefunden haben. Weitere Informationen zu den Problemen auf keleb.free.fr erhalten Sie auf der Google-SafeBrowsing Diagnoseseite.
http://safebrowsing.clients.google.com/ ... rome&hl=en
bye,
Daniel
Daniel
Re: cel/toon shader
Thanks again Kelebrindae! I got your toon shader working on my 3d model!

Oh, I got some warning about the website, so I just right clicked your link to your app and clicked "save link as" which worked fine.

Oh, I got some warning about the website, so I just right clicked your link to your app and clicked "save link as" which worked fine.
www.posemotion.com
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
-
Kelebrindae
- Enthusiast

- Posts: 151
- Joined: Tue Apr 01, 2008 3:23 pm
Re: cel/toon shader
@J. Baker:
You're welcome. Nice model, by the way...
@DarkDragon:
Thanks for the warning.
I've cleaned up a little (some old files contained references to a Bitcoin script) and asked Google for a new scan. This morning, my account says there's no malware on the site => problem fixed, I hope.
You're welcome. Nice model, by the way...
@DarkDragon:
Thanks for the warning.
I've cleaned up a little (some old files contained references to a Bitcoin script) and asked Google for a new scan. This morning, my account says there's no malware on the site => problem fixed, I hope.
Re: cel/toon shader
Thanks!Kelebrindae wrote:@J. Baker:
You're welcome. Nice model, by the way...
www.posemotion.com
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
Re: cel/toon shader
Just got my guy a simple walk cycle. Man I love this toon shading!
http://www.youtube.com/watch?v=f2c53KMj6Os
http://www.youtube.com/watch?v=f2c53KMj6Os
Last edited by J. Baker on Fri Feb 01, 2013 4:47 pm, edited 1 time in total.
www.posemotion.com
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
-
DarkDragon
- Addict

- Posts: 2348
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
Re: cel/toon shader
Thanks!DarkDragon wrote:Nice.
www.posemotion.com
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
Re: cel/toon shader
Looks good indeed! 
Re: cel/toon shader
Thanks!Polo wrote:Looks good indeed!
www.posemotion.com
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.
PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef
Even the vine knows it surroundings but the man with eyes does not.