PDA

View Full Version : Night mesh problem!



zuhi
September 8th, 2011, 05:51 PM
Dear users i would like to ask some help.
I have a train car with a script operated mesh switching option.
It hide or show the mesh, depend on the "switch" position.
It works well.
But the mesh at night gets dark as other objects.
But i want to keep it as light level 1. (daylight level)

In this way:
mesh_name
{
mesh "contenr_name_body/mesh_name.im"
att "a.helper_name"
att-parent "default"
auto-create 1
light 1
}
The mesh works, just dark at night.

But with this configuration:
mesh_name
{
mesh "contenr_name_body/mesh_name.im"
att "a.helper_name"
att-parent "default"
auto-create 1
light 1
night-mesh-base "default"
}
The mesh load in with the daylight level lighting as i want it, but for some reason it loads out almost immediately.

I don't know why.
Please someone help on me.

Other similar problem with the
default-night-forward, and backward too on locos. Just with a bit different. Here not a script sets the mesh in.
It the lights switch do. Bot some reason the mesh loads out as i descripte before. But the interesting is not always!
If i press the lights switch rapidly on and off some times is not loading out.
{
mesh "contenr_name_body/mesh_name.im"
night-mesh-base "default"
att "a.helper_name"
att-parent "default"
auto-create 1
light 1
}
Will wait for any info and help.
Regards.