TLK & Cel Shading
by DavidRM · in · 04/27/2006 (7:44 pm) · 3 replies
I integrated TLK with my current project, for which I'm also doing cel shading.
My question is: How do I "turn down" the brightness on models that I'm not lighting with OpenGL? For cel shading, I expect to disable OpenGL's lighting and handle the lighting/shading myself.
A bit more background: The initial results were dreadful. The cel shaded player model and weapon were overexposed, whited out to pale imitations of themselves.
After some tweaking (and reading the PDF modelers guide) I got the mission map looking passable, but didn't seem to be having any impact on the player model. That one stayed overexposed. Even if I applied a darker cel shading texture, all I got was a darker version of the overexposed ick-ness.
I did eventually get the player to look much as he had before I installed TLK. Here's how:
I enabled OpenGL lighting again on the model render.
That's the opposite of what I had to do to get cel shading working *before* TLK. I *think* it's because OpenGL puts your model at "full bright" when you turn off lighting. Under normal Torque, that means you get the colors as they look in the texture image (no subtractive lighting). Under TLK...that seems to mean you get the double-bright-overexposed-washed-out colors.
Even with the reduced lighting in the mission, TLK is so bright that almost no shading is visible on the model. If I weren't cel shading, you would hardly see any shading at all.
So...what I want to know is: How do I "turn down" the brightness in TLK? Is that even possible?
Am I just doing something TLK didn't anticipate?
Am I even making sense? =)
Thanks!
-David
My question is: How do I "turn down" the brightness on models that I'm not lighting with OpenGL? For cel shading, I expect to disable OpenGL's lighting and handle the lighting/shading myself.
A bit more background: The initial results were dreadful. The cel shaded player model and weapon were overexposed, whited out to pale imitations of themselves.
After some tweaking (and reading the PDF modelers guide) I got the mission map looking passable, but didn't seem to be having any impact on the player model. That one stayed overexposed. Even if I applied a darker cel shading texture, all I got was a darker version of the overexposed ick-ness.
I did eventually get the player to look much as he had before I installed TLK. Here's how:
I enabled OpenGL lighting again on the model render.
That's the opposite of what I had to do to get cel shading working *before* TLK. I *think* it's because OpenGL puts your model at "full bright" when you turn off lighting. Under normal Torque, that means you get the colors as they look in the texture image (no subtractive lighting). Under TLK...that seems to mean you get the double-bright-overexposed-washed-out colors.
Even with the reduced lighting in the mission, TLK is so bright that almost no shading is visible on the model. If I weren't cel shading, you would hardly see any shading at all.
So...what I want to know is: How do I "turn down" the brightness in TLK? Is that even possible?
Am I just doing something TLK didn't anticipate?
Am I even making sense? =)
Thanks!
-David
#2
Sure, it should be easy to do, but the change is related to TLK code, so we'll need to start a new thread in the TLK private forums.
04/27/2006 (8:02 pm)
Hi David,Sure, it should be easy to do, but the change is related to TLK code, so we'll need to start a new thread in the TLK private forums.
Torque 3D Owner Peter Simard
Default Studio Name