cnwfan wrote:it sounds like the panes also need to be a separate object from the window framing. Is this correct? Or am I ok with having the single window object with the framing? Also, how do I name and structure the object hierarchy so this works?
Correct., but to prevent z-buffer issues (z-fighting) of the windows and main building, the window planes should be offset a bit from the surface of the main building.
The day/night object names should follow RW protocols: <
object_lod>_<
object_distance>_<
object_name>_
day, along with another object named <
object_lod>_<
object_distance>_<
object_name>_
night. An example would be:
1_0256_window_day
1_0256_window_night
The texture file for the night windows can be the same as the main object, but it needs to have a separate
Tex material. Thus, you can have the day windows mapped to one section of the building texture, but map the night windows to another area. You can do the same for other pieces of the building, such as having garage doors open in the day, while at night they appear closed, etc.
Much of the info above is outlined in the old Rail Simulator developer docs, specifically
4.02 Shaders.pdf.
