Update 3:
http://orbides.1gb.ru/orbf/oglaclient-091010_beta-090728.zip
Changes:
*Fixed multilight
*OGLA SDK and example for it
*DG with lights
-Usability fixes:
*Calibrated shaders lighting model
*Calibrated advanced graphics
*Fixed some advanced graphics instrumentation invisibility problems
*Fixed texture transparency problems on markings and HUD
The multilight works differently depending on the mode. In this release it is on by default, disabled by F7-2.
-In performance mode (right) the FPS should be largely independent of the amount of lights, but the lights themselves are computed by-vertex, that is the spotlight smaller than the launchpad will not light the launchpad.
-In advanced graphics mode (left) that is turned on by F7-u, the FPS is dependent of whether the lights are on, and the lights are computed by-pixel, so the spotlight will cast light between vertices. Due to performance hit, advanced graphics mode have a separate switch for terrain illumination, F7-8 (terrain enabled by 5), with it's on the FPS drops significantly.
Also included, OGLA SDK and DG code example with lights defined.
Defining lights is quite simple, for example oglcAddLight(vis,OGLA_LIGHT_SPOT,_V(0,-2,10),_V(0,-0.7071,0.7071),_V(1,1,0),45,10e6,400);
call registers a landing spotlight in the DG example.
You can then bind the light to thruster group using oglcBindLightThruster, or animation using oglcBindLightAnim. You can also toggle and tune the light manually.
Example DG have 3 lights defined - main engines, hover engines and landing spotlight. Latter is enabled when the gears are down.
Suggestions? Ideas?
What kind of functionality do you, add-on developer, expect from OGLA SDK?
Does this illuminate the contrail smoke as well?
Smoke is not implemented yet. I think it will.
Could you make the relation user definable?
possibly just make it a factor of thrust. More thrust = brighter.
Ok, then the add-on creator can define the power of the engine's light, and the brightness will scale with thrust. The feature is disabled by default and is enabled by the add-on maker.