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.

3 Dimensional Chat / Successful toon shading?

Author
Message
Oliver
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Switzerland
Posted: 26th Jun 2003 22:41 Edited at: 26th Jun 2003 22:49


Cartoon Shading


Above is my object in DB without cartoon shading.

Above is what I would like it to look like.

Above is the shade image.

Above is the edge image.

And above is the messed up darkbasic cartoon shaded object.



By now I suspect you realise I am trying to get cartoon shading to work . Has anyone managed yet? I have searched the forums, and read every post about it, and have read a number of tutorials on the subject, but I cant get it to work in DB .

I want to get an effect like the second image above. I have messed around with the two images, shade and edge, for days. Trying all different shades and colours, and changing the properties of my object (such as emissions, specular).

Though I dont think it helps, the source code is included and the object can be found at:

ftp://dbpro:dbproiscool@zdtech.sytes.net/dbforum/object.x

Could someone please help, or at least tell me you got it to work (and a screenshot )? Thanks.
Oliver
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Switzerland
Posted: 26th Jun 2003 22:57
PS: I am sure my computer is capable of cartoon shading.
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 27th Jun 2003 02:21 Edited at: 27th Jun 2003 02:21
I don't know the answer, I'm on DBC, but have you tried changing the ambient lighting? I guess it should be quite high for cell shading.

Thanks in advance.
All the Best,
StevieVee
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 27th Jun 2003 02:35
Oliver i'll give you a solution just as soon as i figure out why DBP hates the Vertex Shaders i develop

I pride myself that i don't kill...
well not without a good reason
actarus
21
Years of Service
User Offline
Joined: 29th Aug 2002
Location: 32 Light Years away
Posted: 27th Jun 2003 02:36
Oliver:What's your 3d accelerator?

Modeling Tip of the Week:Smooth-Shading is an approximation of Shadows defined by the tension between two vertice.

If I've seen it all before,why's this bus taking me back again? @_@
Oliver
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Switzerland
Posted: 27th Jun 2003 10:44 Edited at: 27th Jun 2003 10:45
@StevieVee
Yes, I have tried changing the ambient light, though there is still only one colour ever on my cartoon shaded object. Like the last picture above.

@Raven
Well, thank you very much. Good luck with those vertex shaders.

@actarus
I forget what all the names like 3d accelerator are .
Anyway heres my computer specs:

Windows XP
512 ram
1.7 Pentium 4
Geforce 3

Patch 4.1

@Everyone
Thanks for replying
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 27th Jun 2003 14:46
GeForce3 should be more than enough to run the effect...
i think i've just about figured out why dbp doesn't like my shaders - need a guniepig again though, kinda bitch being in the middle of nowhere without a decent PC.

I pride myself that i don't kill...
well not without a good reason
Oliver
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Switzerland
Posted: 27th Jun 2003 14:50
I dont mind helping if you can show me how to do cartoon shading , though dont call me a 'guniepig'.
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 27th Jun 2003 20:41
add me to your hotmail ... i'll talk to ya over that, it is so hard to find someone with DBP & a Shader capable card - its insane!

I pride myself that i don't kill...
well not without a good reason
Oliver
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Switzerland
Posted: 28th Jun 2003 12:51
I added u to msn. Though i'm not online often, just can't be pissed.

I dont know if my card is "Shader capable", coz the db shader examples dont show anything.
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 28th Jun 2003 13:35
a GeForce3 should be shader capable ... but then again i'm not entirely sure which cards can run them and which can't right now now.
my GeForceFX returns that it doesn't support anything yet supports everything - so its confusing, probably a Dx bug though

I pride myself that i don't kill... well not without a good reason
Oliver
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Switzerland
Posted: 28th Jun 2003 15:31
Nice picture ,I bet that isn't cartoon shading for DB
WindTech
20
Years of Service
User Offline
Joined: 7th Jun 2003
Location: United States
Posted: 29th Jun 2003 00:31
Raven: Tell me about that vertex shader crap for DBP ;p
I hate it! Can't write a single decent shader for it...

Live as if to die tomorrow...
Learn as if to live forever.
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 29th Jun 2003 00:58
actually i'm in the same boat at the mo, all the shaders i create all seem to cockup a problem - so i spend hours bug squishing.

hate to say it but it sounds like Update5 actually has a far more stable shader system to the point where it might actually be useful.
however if you need some help right now checkout the VERTEX SHADER post within DBP as i've posted up a Shader, if you check the last few posts you can edit the last update in the post for it to actually work (and yeah all that for a simple plain with colours & texture)

I pride myself that i don't kill... well not without a good reason
Ishamael Sedai
20
Years of Service
User Offline
Joined: 1st Jul 2003
Location: France
Posted: 1st Jul 2003 19:51 Edited at: 1st Jul 2003 20:03
Cmon...
I gonna give you smthin'

http://www.angelfire.com/ok4/crsentx/Prog5Download.html

yoyo

I am the Betrayer of hope naebl'is by the will of
the Great Lord of the Dark. If you do not want to surrender, your soul will burn in the deepest hole of the Pit of doom.
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 1st Jul 2003 20:06
but that doesn't always work, especially with animated objects
i mean we all know of doing that, and the help is appreciated but we're trying to figure out howto do it with shaders, especially as with that method you don't get the 3band shading which you need access to the vertex normals to do

Beta1
21
Years of Service
User Offline
Joined: 28th Dec 2002
Location:
Posted: 1st Jul 2003 20:49
Wish I could help oliver but I've been trying to get an answer to the same question for ages.

My objects always end up looking like your one.

I think theres something more to the shade and edge textures that is not mentioned in the manual. From what I can figure out there may be a requirement for some sort of alpha channel on the edge command, at least when I added one I got a different effect but still not right.

Maybe the powers that be could oblige us with an answer to how this command works (but I wouldnt hold your breath)

Ishamael Sedai
20
Years of Service
User Offline
Joined: 1st Jul 2003
Location: France
Posted: 2nd Jul 2003 00:34
you want to access to the vertex normal ?
I have a code for that..but Im not sure I have understood the question...

I am the Betrayer of hope naebl'is by the will of
the Great Lord of the Dark. If you do not want to surrender, your soul will burn in the deepest hole of the Pit of doom.
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 2nd Jul 2003 01:53
lol... you can get access to the normal data, but now to actually change how the vertex normal behaves - that part of the core of DBP and you can only access it through a Shader, technically your not even accessing it what your doing is side stepping it and taking the already rendered image and altering it within the Shader Processing Unit then outputting ... kinda like a filter would in photoshop/paintshop - for good measure you then draw a line around the extreme dark and edges of the model.

it doesn't require alot of code but it is quite complex to get to grips with

Login to post a reply

Server time is: 2024-05-20 09:05:19
Your offset time is: 2024-05-20 09:05:19