.eng file's Light( State( Azimuth( X Y Z ) ) ) function

Bug #1092827 reported by Peter Gulyas
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Open Rails
Triaged
Low
Unassigned

Bug Description

This function in MSTS is interpreted as an angle from the light's original orientation, within the light always faces camera/viewer. While OR interprets this as a simple rotation angle just modifying the original orientation, but the light doesn't follow the camera dynamically by its facing.

Moreover the axes are also smashed somehow. The order of the axes depend on the Light( Conditions( Headlight() ) ) setting as well. E.g. in MSTS, when Headlight(1) is set, the Z(up) axis is the 3rd parameter of Azimuth() function; while when Headlight(3) is set, the Z(up) axis is the 2nd parameter of Azimuth() function. Strange, I don't quite understand it too, but OR handles this function in a different way than MSTS.

A good example of it is the following (already referenced in another bug) consist: http://vm15.hu/e107_files/downloads/msts/mozdony/BKV_UV_SE_2009_vegleges.rar
You may check the blinking orange direction indicators and compare them how in MSTS behave. For playing with them please find their definition in eng after line "COMMENT ( indexek 4 feny )"

Tags: graphics
James Ross (twpol)
Changed in or:
assignee: nobody → James Ross (twpol)
Revision history for this message
James Ross (twpol) wrote :

Azimuth is not an X/Y/Z value, and neither is its cohort Elevation; both specify min/centre/max values for rotations about the Y and X axes. Open Rails currently only uses the centre value as it doesn't support glow lights following the camera, which is why you see the strange behaviour on the BKV_UV wagons - they specify 0/-180/0 and 0/0/180 for Azimuth so in OR you'll get the light facing directly forwards or backwards, but never outwards as might be more likable.

Changed in or:
importance: Undecided → Low
status: New → Triaged
assignee: James Ross (twpol) → nobody
Peter Gulyas (pzgulyas)
tags: added: graphics
cjakeman (cjakeman)
Changed in or:
milestone: none → 1.0
James Ross (twpol)
Changed in or:
milestone: 1.0 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.