Frederic Bouvier wrote:
> Tim, perhaps if you could show us a real effect file, with the syntax
> you propose, we ( at least I ) could see what we are talking about, and
> the pros and cons of the new syntax.

That was in the original proposal (RFC):

> Proposal: Allow vector types as properties in property list XML files
> and as properties in the runtime property system. The syntax in an XML
> file would look like:
> 
>   <parameters>
>     <material>
>       <diffuse type="vec4d">
>         .2 .4 .6 1.0
>       </diffuse>
>       <specular type="vec4d">
>         .4 .5 .7 1.0
>       </specular>
>       <uniform>
>         <name>sky-direction</name>
>         <value type="vec3d">0 0 1</value>
>       </uniform>
>     </material>
>   </parameters>
> 
> Existing 3D XML file formats, like Collada, support this syntax for
> vector values such colors.
> 
> Rationale: Without these types, the XML syntax is much more verbose:
>   <parameters>
>     <material>
>       <diffuse>
>         <r>.2</r>
>         <g>.4</g>
>         <b>.6</b>
>         <a>1.0</a>
>       </diffuse>
>       <specular>
>         <r>.4</r>
>         <g>.5</g>
>         <b>.7</b>
>         <a>1.0</a>
>       </specular>
>       <uniform>
>         <name>sky-direction</name>
>         <value>
>           <x>0</x>
>           <y>0</y>
>           <z>1</z>
>          </value>
>       </uniform>
>     </material>
>   </parameters>

Erik

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to