Cell Shading Tutorial...
I tried to implement cell shading into my game engine and theres a little problem. I used the tutorial 37 from NeHe and it doesn''t work the same? The model is shaded and it draws the lines, but the actual cell shade doesn''t appear. If you walk inside of the model you can see a black shadow moving, but you can''t see it from the outside? I tried changing the depth functions, cull functions, texture parameters, etc and no luck...
Could someone please tell me what I am missing here?
Thanks a lot in advance!
-UltimaX-
"You wished for a white christmas... Now go shovel your wishes!"
Have you setup the light position correctly, ie relatively to the model ?
Is lighting enabled ?
How did you use NeHe''s tutorial ? Did you copy/paste or did you rewrite the algorithm from scratch ?
Is lighting enabled ?
How did you use NeHe''s tutorial ? Did you copy/paste or did you rewrite the algorithm from scratch ?
I used the light angle and normalized it. The lighting is disabled before rendering the mesh and enabled after rendering the mesh.
I had to use some of his code and rewrite some of it to fit my engine. So a little bit of his code is in there, it's still based off of his though. So no I didn't rewrite it from scratch, I think I'm going to though, I want to add a couple extra features.
EDIT : Actually there are no lights enabled in his tutorial. It looks like he just setup a false light angle of (0.0f, 0.0f, 1.0f) and normalized that.
-UltimaX-
"You wished for a white christmas... Now go shovel your wishes!"
[edited by - UltimaX on May 16, 2003 10:35:42 PM]
I had to use some of his code and rewrite some of it to fit my engine. So a little bit of his code is in there, it's still based off of his though. So no I didn't rewrite it from scratch, I think I'm going to though, I want to add a couple extra features.
EDIT : Actually there are no lights enabled in his tutorial. It looks like he just setup a false light angle of (0.0f, 0.0f, 1.0f) and normalized that.
-UltimaX-
"You wished for a white christmas... Now go shovel your wishes!"
[edited by - UltimaX on May 16, 2003 10:35:42 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement