Multicolor .Brightness Commands
2 posters
Page 1 of 1
Multicolor .Brightness Commands
In some areas, specifically tunnels, there could be lights of different colors (blue emergency exit lights, or orange lights etc). Would it be difficult to implement a .Brightness command that can be used with RGB values?
ex:
.Brightness 255;255;255
(R) (G) (B)
ex:
.Brightness 255;255;255
(R) (G) (B)
Inamak17- Posts : 9
Join date : 2020-04-01
Re: Multicolor .Brightness Commands
Hmm...
Are you specifically wanting this to apply to the panel only?
It's only a simple multiplicative blend, so I don't see an immediate issue to adding it, although it would want a new command, something like **Track.RGBBrightness**
Obviously, brightness commands only work with 2D panels too.
See also:
https://openbve-project.net/documentation_hugo/en/routes/xml/dynamiclight.html
Changing the ambient light / directional light values mid-route.
(Doesn't link too well to the middle of a massive documentation page)
Are you specifically wanting this to apply to the panel only?
It's only a simple multiplicative blend, so I don't see an immediate issue to adding it, although it would want a new command, something like **Track.RGBBrightness**
Obviously, brightness commands only work with 2D panels too.
See also:
https://openbve-project.net/documentation_hugo/en/routes/xml/dynamiclight.html
Changing the ambient light / directional light values mid-route.
(Doesn't link too well to the middle of a massive documentation page)
Track.AmbientLight RedValue; GreenValue; BlueValue
RedValue: An integer ranging from 0 to 255 representing the red component of the ambient light. The default value is 160.
GreenValue: An integer ranging from 0 to 255 representing the green component of the ambient light. The default value is 160.
BlueValue: An integer ranging from 0 to 255 representing the blue component of the ambient light. The default value is 160.
This command defines the ambient light color to be used from this point onwards. All polygons in the scene are illuminated by the ambient light regardless of the light direction.
Track.DirectionalLight RedValue; GreenValue; BlueValue
RedValue: An integer ranging from 0 to 255 representing the red component of the directional light. The default value is 160.
GreenValue: An integer ranging from 0 to 255 representing the green component of the directional light. The default value is 160.
BlueValue: An integer ranging from 0 to 255 representing the blue component of the directional light. The default value is 160.
This command defines the directional light to be used from this point onwards. The polygons in the scene are only fully illuminated by the directional light if the light direction points at the front faces. If pointing at back faces, no light is contributed. Route.LightDirection should be set to specify the light direction.
Track.LightDirection Theta; Phi
Theta: A floating-point number representing the angle in degrees which controls the pitch of the light direction. The default value is 60.
Phi: A floating-point number representing the angle in degrees which controls the planar rotation of the light direction. The default value is about -26.57.
This command defines the light direction from this point onwards. This is the direction the light shines at, meaning the opposite direction the sun is located at. First, Theta determines the pitch. A value of 90 represents a downward direction, while a value of -90 represents an upward direction. With those extremes, the value of Phi is irrelevant. A value of 0 for Theta represents a forward direction originating at the horizon behind. Once the pitch is defined by Theta, Phi determines the rotation in the plane. A value of 0 does not rotate, a value of 90 rotates the direction to the right and a value of -90 rotates to the left. A backward direction can be both obtained by setting Theta and Phi to 180 and 0 or to 0 and 180, respectively. Values in-between allow for more precise control of the exact light direction.
BPI-919 Andris likes this post
Re: Multicolor .Brightness Commands
Thanks, I'll look into that command. I think it would be nice to have this work in the panel as well!
Inamak17- Posts : 9
Join date : 2020-04-01
Similar topics
» Object brightness issues
» The Old CSV Commands Sheet
» Incorrect brightness behavior on train objects
» The Face and Face2 Commands
» Problem with Color and EmissiveColor commands
» The Old CSV Commands Sheet
» Incorrect brightness behavior on train objects
» The Face and Face2 Commands
» Problem with Color and EmissiveColor commands
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|