I wonder if it is possible to activate the day to night feature and if possible how.
In the mission fit file you can implement a daytonighttime; for example:
f DayToNightTime = 54000.000000
This value is (as it seems) picked up by camera.cpp
result = cameraFile->readIdFloat("DayToNightTime",day2NightTransitionTime);
I played around withit but can not see any effect in missions.
Any idea what the value needs to be, how it can be activated, if it can be acticvated at all

day2night
Pradeep Raj
MechCommander 2 never ended up using the day transition stuff but the code is still there. There is a function in the base class for the camera (mclib\camera.cpp) called updateDaylight (on line 1135). This was used to have MechCommander 2 slowly change time of day during a mission. If you search all of the source for updateDaylight you can see were calls to it are commented out throughout the codebase. If you go through the code and uncomment out the calls to that function the times and colors that you author in the editor should show up.
kcchesnut
It works. Great.
Need to understand how to tweak the colors best to look realistic but this is not a topic for this forum.
THANK YOU
edralph
I will try it out; thank you.
It seems not to do anything; does the entry for daytonight represent seconds
Is there any other (hidden) entry needed