CelShading (ToonShading)

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
faissal
Posts: 15
Joined: Mon Mar 15, 2004 11:45 am

CelShading (ToonShading)

Post by faissal »

Hello guys , i want to make a game with cel shading effect , and i found 2 engines for that , Irrlicht and Ogre3d
Ogre3d can offer CelShading but the problem is that i want to use irrlicht (the best in my opinion)

here is a link to a tutorial about CelShading in OpenGL

http://nehe.gamedev.net/data/lessons/le ... ?lesson=37

if someone knows how to rewrite it in irrlicht i would be happy :D

ps : the tutorial implement the effect with just one texture (1D texture )
wich is the shader , so to render celshading effect on textured objects
you have 2 ways :
1 : multitexturing
2: rendrer in 2 pass

thank you Guys :D
wa9oul i3malou fasayara ALLAH 3amalakom wa rasoulouhou wa almou2minoun
faissal
Posts: 15
Joined: Mon Mar 15, 2004 11:45 am

Post by faissal »

here is some quations
http://irrlicht.sourceforge.net/phpBB2/ ... php?t=2210
please answer :cry:
wa9oul i3malou fasayara ALLAH 3amalakom wa rasoulouhou wa almou2minoun
faissal
Posts: 15
Joined: Mon Mar 15, 2004 11:45 am

Post by faissal »

it seems that no body wants to answer :evil:

Ok

Irrlicht manage Multitexturing
but there is no way to work with 1D texture(i hope that niko will implemente it in 0.7 version )
the only way to make celshading now in irrlicht is to modify the source code
so that it can manage 1D texturing and recompile it
(there is also another function we need : to get the modelview matrix)
but as you know Niko dont want the source code to be modified by anyone till 1.0 version (et il a raison )(1.0 version Cg shaderZ)
lol just forget about it
ok, till then we are waiting for Niko to implement it
that's my request
i'm sure that once the cel shading effect is implemented irrlicht will be more popular
i hope so


for more details : http://irrlicht.sourceforge.net/phpBB2/ ... php?t=2210

ps : i think that i will fist write the theory behind the effect
wa9oul i3malou fasayara ALLAH 3amalakom wa rasoulouhou wa almou2minoun
joy
Posts: 124
Joined: Tue Apr 27, 2004 9:15 am
Location: Germany

Post by joy »

I know it's very frustrating when nobody answers the topic. But I have NO idea, first because I am quite new here and second I don't need what you do (thats why have not been occupied with that yet).

But I think no one else knows an answer, may be you could write Niko an e-mail? It might be interessing!
faissal
Posts: 15
Joined: Mon Mar 15, 2004 11:45 am

Post by faissal »

thanx anyway :wink:
wa9oul i3malou fasayara ALLAH 3amalakom wa rasoulouhou wa almou2minoun
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

Post by Tyn »

The other topic you posted in has everything you need to make a psudo cartoon shading feature, AFAIK toon shading can only be done differently with shaders which aren't implemented yet. No point annoying Niko by emailing this to him, he does check the forums and I'm sure he knows people are interested in shaders in Irrlicht. It'll get added eventually, in my view tho the effect Domarius said looks very good and I would imagine it would be easier than working with shaders.
faissal
Posts: 15
Joined: Mon Mar 15, 2004 11:45 am

Post by faissal »

oro !

as i said , we can make cel shading without shaders , we can do it if we have just 2 very important elements :
1st one : 1D texturing wich irrlicht does not manage
(in another words that's a request to niko to implement it in 0.7 version (that's easy in opengl))
secondo : Multitexturing

with these 2 elements i can make the effect

ps: 1)i have the blitz3d if you have the source code please send it to me
2) Zelda wind weaker is created around this effect and don't use outline (i know zelda does not use sphere maping )
c u
wa9oul i3malou fasayara ALLAH 3amalakom wa rasoulouhou wa almou2minoun
Guest

Post by Guest »

Oh my... 1-D texture is 2-D texture with height of 1 pixel, so you don't basicly need 1-D texture at all...
Guest

Post by Guest »

reduce the colour depth !!!
Post Reply