Re: model lighting
Posted by AirWolf on
Tue Apr 26th 2005 at 2:15pm
3 posts
0 snarkmarks
Registered:
Apr 26th 2005
I have an angled plane coming up out of my
model at about 45 degrees. The light is coming down on the model so the
top half the plane is almost full bright while the bottom half is dark.
Kinda like this:
light../
side./
....../ dark
...../ side
This creates a very large and noticeable contrast. The texture on
the angled plane has a transparent mask. Is there any way to control
how much light a texture can receive on a model? I would like to be
able to control how much light is applied to the top portion of the
angled plane so I can more closely match the bottom. I'm not trying to
block the light but make it so the two sides are more closely matched.
Any ideas?
Re: model lighting
Posted by Natus on
Tue Apr 26th 2005 at 2:29pm
Natus
member
570 posts
76 snarkmarks
Registered:
Jan 28th 2005
Location: Denmark
i think that light_dynamic does the trick, but im not sure if you can make it darker using it.
Re: model lighting
Posted by fishy on
Tue Apr 26th 2005 at 2:37pm
fishy
member
2623 posts
1476 snarkmarks
Registered:
Sep 7th 2003
Location: glasgow
an actual picture of the problem would help, though it sounds more like an issue with the smoothing groups on the model, rather than the type of light that's shining on it.
Re: model lighting
Posted by AirWolf on
Tue Apr 26th 2005 at 2:55pm
3 posts
0 snarkmarks
Registered:
Apr 26th 2005
This is a tree model compiled as a prop_static and it getting its light
from a light_environment. The branches are square planes textured
with a transparent branch texture. There are several parameters
for the VMT that might help but I don't know the right syntax or
purpose of these options: "$minlight", "$maxlight", "$brightness",
"unlitfactor".
Basically, the top side is brightly lit by the light_environment and
the bottom side is much darker. I need a way to control how the
branch texture is lit. I'll try and post some pics when I get
home of what I'm talking about.
Re: model lighting
Posted by Leperous on
Tue Apr 26th 2005 at 9:29pm
Leperous
Creator of SnarkPit!
member
3382 posts
1635 snarkmarks
Registered:
Aug 21st 2001
Occupation: Lazy student
Location: UK
The light shouldn't be coming straight down on it from a light_environment in the first place, unless your map is set on the equator at midday- alter the pitch of it so it matches the position of the sun in your skybox. See how it looks then; if it's still bad, I can't help except to suggest trying a light_spot underneath the tree pointing up lighting the underside a bit.