Released Tutorial: how to do odef flares (flares on map objects)

flip889

local ror driver
Joined
Dec 25, 2018
Messages
81
Location
somewhere in Arizona
flares are usually seen on vehicles, but they could also be on map objects like those on the community map

those flares are added in the .odef file & it's been a feature for a while, but there have been no docs for them so far

here's what the syntax looks like:
pointlight x, y, z, dirx, diry, dirz, r, g, b, range

1709518108976.png

the first 3 values are axis offsets from the origin, in meters (blender's units)


first spawn a plane & merge the plane at the center

1709518599350.png




then extrude that vertex along the z axis (E + Z)
1709518756162.png


do it again for whatever axis you wanna offset on

1709518364048.png


in ogre/RoR, from the front perspective, x & y are like on a 2d graph & z is back & forth

1709519105170.png


with that in mind, now enter your offset values (the first 3)

x in this case is -2.75, Y is 8.778, and z is 0 since it's unused

i haven't cracked the rest of the syntax yet but if i were to guess,
the dir (axis) numbers are rotations on the axis', the rgb ones are red, green & blue decimal percentages (i.e red being 1.0 would be 100% red)

& range is the size

our NeoQ lamppost is white, so r, g, & b would all be 1.0

1709519281089.png


if you do it right, your final odef flare would look like this

pointlight -2.75, 8.775, 0.0, 0, 0, 0, 1.0, 1.0, 1.0, 50

the size (range) of this one is 50

note to devs: feel free to correct me on the syntax
 
Last edited:
Back
Top