Locomotive Light Sources?
#1
Posted 08 March 2015 - 02:54 PM
I was wondering if anybody knows a workaround to cause a sort of 'bias' to push the light source forward in all the locomotives without needing to edit every single .eng file or going too deep into any code. If anybody has any ideas, it'd great to know! ;)
#2
Posted 08 March 2015 - 02:56 PM
Removing the 'm' fixed it. Might be something like that maybe?
#3
Posted 08 March 2015 - 05:22 PM
Kazareh, on 08 March 2015 - 02:56 PM, said:
Removing the 'm' fixed it. Might be something like that maybe?
I don't have the m in the position, but I wouldn't be surprised if the position defined is part of the problem. I'd just rather not go through every single file to tweak the lighting.
#4
Posted 08 March 2015 - 06:22 PM
#5
Posted 09 March 2015 - 06:29 AM
pschlik, on 08 March 2015 - 02:54 PM, said:
Lights Off.jpg
Lights On.jpg
Inside.jpg
I was wondering if anybody knows a workaround to cause a sort of 'bias' to push the light source forward in all the locomotives without needing to edit every single .eng file or going too deep into any code. If anybody has any ideas, it'd great to know! ;)
So, firstly, a lot of cone lights are poorly defined in MSTS engine files due to the limited way they were rendered in MSTS. The data may simply be quite wrong in reality.
This is particularly the case for the width/breadth of the cone; OR will provide light all the way to 180 degrees total. It also has an tail off outside the defined cone up to that 180 degree boundary due to the way the maths works, though typically the edge isn't visible.
But it may also be worth checking if the X/Y/Z position is right, since we could also have a bug in OR. :) You can do this by changing the Y value to 0 and the X to +10 and the light code should start from a few metres to the right side of the locomotive at ground level or just above. May need a small positive for the Y. That should allow you to check the Z value, which is how far forwards/backwards of the centre the light is. If it's not as far forward as the physical light location, OR could well be lighting it right - the data is wrong - but if it appears right near the front, ahead of the lit bits of the loco, we might have a bug.
You could also place a non-cone light at the same coordinates, I'm pretty sure they are placed correctly (though rotation isn't implemented).
#6
Posted 09 March 2015 - 02:59 PM
#7
Posted 10 March 2015 - 10:54 PM
James Ross, on 09 March 2015 - 06:29 AM, said:
You could also place a non-cone light at the same coordinates, I'm pretty sure they are placed correctly (though rotation isn't implemented).
Could it also be a very wide angle number in the type 1 light setting? I had a loco that appeared to have the edge of the light cone very much behind the engine, (it also had an angle number of 45). When I adjusted the angle to something more reasonable, in this instance 7.5, the appearance of the light was more realistic.
In the same case as above I also tried this out just to see what happend. I first adjusted to Z axis so the edge of the light cone was exactly in place at the front of the loco. Then I adjusted the angle from 45 to 7.5 - the results were very unrealistic.
In both case the radius adjustment stayed constant...the default setting that came with loco was 300 for bright and 100 for dim.
From the number of engines I'm seeing with this same problem, maybe there is something that can be coded into OR to help with the problem. Then the XYZ numbers in the engine file could be used to fine tune on a per engine basis.
Not having much experience with MSTS I don't know the reasoning for positioning behind the front of the engine to begin with. Another workaround??
#8
Posted 11 March 2015 - 10:10 AM
pschlik, on 09 March 2015 - 02:59 PM, said:
Phillip have you looked at this thread concerning OR and light adjustments?
http://www.elvastowe...150#entry166150
#9
Posted 11 March 2015 - 10:41 AM
R H Steele, on 11 March 2015 - 10:10 AM, said:
http://www.elvastowe...150#entry166150
I didn't see that one, I'll have a go at some of those modifiers as well. Some of the locomotives I have could use that.
#10
Posted 11 March 2015 - 03:27 PM
This is the one I meant >>>>>> http://www.elvastowe...adlights-in-or/