On Mon, 21 Nov 2011, Gijs de Rooy wrote:

> Aircraft shaders are supposed to appear on the list one day, but 
> Emillian is currently combining
> most (if not all) of the aircraft-shaders in one file. It's probably 
> better to wait on him before we do
> something about aircraft shaders.

Or we define the interface we want to have between the shaders and the 
dialog now so Emillian can use it for his combined shader and others for 
their own shaders (e.g. I don't think the very aircraft specific balloon 
envelope shader will be part of the combined aircraft shader :).

Someone recently mentioned that he'd like to be able to set the quality 
level of each shader, which makes quite good sense even if not all shaders 
have different quality levels - but for those level 0 is off and anything 
above would be on.

If we could presume that no shader will have more than, say,  5 quality 
levels a suitable interface could be that each shader creates a
/sim/rendering/shaders/foo-effect-quality
property.

Though, if we'd want to go fancy we could decide on (e.g.)
/sim/rendering/shaders/foo-effect/quality
/sim/rendering/shaders/foo-effect/max-quality  (assuming 0 is the minimum/off)
/sim/rendering/shaders/foo-effect/description  (useful for the dialog)

Making a dialog that dynamically displays a slider for all
/sim/rendering/shaders/foo-effect-quality
properties should not be a problem. E.g. the fuel and payload dialog 
displays a variable number of fuel tanks and payload items based on the 
properties present in the tree.


Cheers,

Anders
-- 
---------------------------------------------------------------------------
Anders Gidenstam
WWW: http://gitorious.org/anders-hangar
      http://www.gidenstam.org/FlightGear/

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to