View Full Version : Shading Teeth
chikega 12-01-2004, 06:48 AM I've been wanting to try this out for quite a while - making a tooth shader that properly reflects it's translucent and light-transmitting qualities. Most, CG teeth seem to be simply textured white or a light grey color. Unless it's a cartoon, the teeth appear very opaque or chiclet like. This happens also with certain crowns (caps) in real life. Notice the shadows that help describe the form of the teeth.
http://www.3ddmd.com/images/Messiah/Teethshader.jpg
In reality, teeth don't have any real self-shadowing to speak of - if so, there's very little. The form is described more through specular highlights and/or reflections. The shadow is wiped out because light is being transmitted through the tooth much like a fiber optic cable transmits light. The enamel layer shares similar physical properties as glass and is translucent. The underlying dentin layer is derived from the same embryological origin as bone and isn't very translucent.
http://www.3ddmd.com/images/Messiah/Teethshader2.jpg
The dentin layer is usually a yellowish in color and shows through the neck of the teeth where the enamel layer is thinner. When teeth are observed closely, they are usually a faint shade of yellow/orange/brown. Some people have white opaque specks. And as teeth age there's usually some indication of wear and tear - like cracks, stains, etc...
http://www.3ddmd.com/images/Messiah/Teethshader1.jpg
Well, I could go on and on. But, I'll stop here for now.
:)
|
|
PauHana
12-01-2004, 08:42 AM
That looks sweet! Nice job...it's great to see people push themselves on a regular basis, like you do.
dobermunk
12-01-2004, 09:28 AM
Cool!
I'm a fan of toon-teeth, but I think you're right about cg teeth. Never really noticed that about the lack of self-shadow.
Any walk-through on the shader flow?
chikega
12-01-2004, 04:05 PM
Not a problem, dobermunk. I've refined the shader flow a bit. This is a more simplified version than previous versions. This is pretty straight forward ... so if there are any questions ... don't hesitate to ask! :)
http://www.3ddmd.com/images/Messiah/Teethflow_joke.jpg
Adam-Han
12-01-2004, 04:46 PM
LoL! Straight forward is not the first thing that jumps to mind, but the results speak for themselves. Nice work http://cgtalk.com/images/smilies/thumbsup.gif So much cool stuff popping up these last couple of days I'm getting inspired left and right!
dobermunk
12-01-2004, 06:21 PM
I follow most parts where there's a simple in/out node. Where I am less certain is at nodes like the "undercoat". You bring in a noise ( a procedural I assume) and plug that into specular (I follow) but what does the "u" do. Isn't that a gradient value?
chikega
12-01-2004, 07:06 PM
Well, I've got to let the cat out of the bag. The above shader is the "Swirly Ball" shader. :D I thought some of you might have recognized it - hehe.
tjnyc
12-01-2004, 07:25 PM
Nice shader Gary. It might also work as a jellybean shader as well.http://www.cgtalk.com/images/icons/icon13.gif
Cheers,
chikega
12-01-2004, 09:16 PM
Now that you say that - it would work rather well for a jelly bean shader. :)
Here's an image of what teeth would look like if lit from behind - in this case, I've just turned the object into an Emission object. I thought it looked kinda cool. I could see making a very realistic light bulb after viewing this image. :)
http://www.3ddmd.com/images/Messiah/TeethGlow.jpg
dobermunk
12-02-2004, 09:46 AM
Need ....
.... time.
So cool!
AlexK
12-05-2004, 10:38 AM
Well, I've got to let the cat out of the bag. The above shader is the "Swirly Ball" shader. :D I thought some of you might have recognized it - hehe.
Er Gary, do you mean by this, that you created the teeth out of the Swirly Ball shader or that you tricked us and don't give your secret away? :twisted:
chikega
12-05-2004, 07:40 PM
Yes, it was a practical joke. By way of peoples' responses or lack thereof, I guess most didn't get my sense of humour. :D
The shader is actually very simple and uses messiah's original SSS shader. The scene is very dependent on the light intensity and placement. I didn't post the "secret" earlier b/c it was still a work in progress - but, my time is limited. So, here it is, as is. The main thing I learned was that you can get a quite translucent object without the value being blown out by reducing the Diffusion concurrently. For example, if the Translucency is .1 then a Diffusion of .9 seems appropriate - this would give a more opaque object with slight translucency. And conversly, if the Translucency is up to .9, then a Diffusion setting of .1 would give the appearance of a very translucent object - almost liquid or Jello like in appearance. In this particular project file, a Translucency of .9 and a Diffusion of .365 seemed to give the best results ... so far. :)
TeethShaderTestScene (http://www.3ddmd.com/download/TeethShadeTest.mpj)
AlexK
12-05-2004, 09:38 PM
Hihi, you know what's the funny part? :D
I build a tooth shader today, that is based on your Swirly Ball screenshot. And guess what, with the exception of a few node that made no sense (what led me to my question ;) ) it worked quite nice. :banghead:
chikega
12-05-2004, 10:19 PM
How cool is that! Haha - that's a really nice looking ivory tooth. Would you mind posting the project file? :)
AlexK
12-06-2004, 06:16 AM
Here you go. You might want to insert an image into the TextureMap node of the environment to get a better reflection.
AlexK
12-08-2004, 10:48 AM
Hey Gary,
I found the time to take a look at your teeth shader and almost woke the whole house with a VERY loud cry of frustration. ;)
Damn, I could have had that much simpler. :banghead:
Great job nonetheless Gary. :thumbsup:
chikega
12-08-2004, 07:36 PM
Hey AlexK,
I found the time to take a look at your teeth shader and almost woke up my cat with a VERY small wimper of frustration. ;)
Damn, I could have had that much more COMPLEX. :banghead:
Hehe. :thumbsup:
AlexK
12-08-2004, 08:36 PM
Now you are just showing off. :wip:
CGTalk Moderation
01-20-2006, 02:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.