(unfinished - no information available)
XGL format information and examples from John Burkardt
Author: John Burkardt Change: 08 Mar 2007 Tomasz Lis adjusted to new core A list of supported elements follows. Please modify if you'll enhance something. Format support note - reading: - unknown Format support note - writing: - unknown NOTE: support of this format is unfinished, it probably won't work. Example: <WORLD> <BACKGROUND> <BACKCOLOR> 0.1, 0.1, 0.1 </BACKCOLOR> </BACKGROUND> <LIGHTING> <AMBIENT> 0.2, 0.1, 0.1 </AMBIENT> <DIRECTIONALLIGHT> <DIFFUSE> 0.1, 0.2, 0.1 </DIFFUSE> <DIRECTION> 0, 0, 100 </DIRECTION> <SPECULAR> 0.1, 0.1, 0.2 </SPECULAR> </DIRECTIONALLIGHT> </LIGHTING> <MESH ID = "0"> <P ID="0"> -0.5, -0.5, 1 </P> <P ID="1"> 0.5, -0.5, 1 </P> <P ID="2"> 0.5, 0.5, 1 </P> <P ID="3"> -0.5, 0.5, 1 </P> <P ID="4"> 0.5, -0.5, 0 </P> <P ID="5"> -0.5, -0.5, 0 </P> <P ID="6"> -0.5, 0.5, 0 </P> <P ID="7"> 0.5, 0.5, 0 </P> <N ID="0"> -0.408248, -0.408248, 0.816497 </N> <N ID="1"> 0.666667, -0.666667, 0.333333 </N> <N ID="2"> 0.408248, 0.408248, 0.816497 </N> <N ID="3"> -0.666667, 0.666667, 0.333333 </N> <N ID="4"> 0.408248, -0.408248, -0.816497 </N> <N ID="5"> -0.666667, -0.666667, -0.333333 </N> <N ID="6"> -0.408248, 0.408248, -0.816497 </N> <N ID="7"> 0.666667, 0.666667, -0.333333 </N> <MAT ID="0"> <ALPHA> 0.9 </ALPHA> <AMB> 0.1, 0.1, 0.1 </AMB> <DIFF> 0.2, 0.1, 0.1 </DIFF> <EMISS> 0.1, 0.2, 0.1 </EMISS> <SHINE> 0.8 </SHINE> <SPEC> 0.1, 0.1, 0.2 </SPEC> </MAT> <F> <MATREF> 0 </MATREF> <FV1><PREF> 0 </PREF><NREF> 0 </NREF></FV1> <FV2><PREF> 1 </PREF><NREF> 1 </NREF></FV2> <FV3><PREF> 2 </PREF><NREF> 2 </NREF></FV3> </F> <F> <MATREF> 0 </MATREF> <FV1><PREF> 0 </PREF><NREF> 0 </NREF></FV1> <FV2><PREF> 2 </PREF><NREF> 2 </NREF></FV2> <FV3><PREF> 3 </PREF><NREF> 3 </NREF></FV3> </F> <F> <MATREF> 0 </MATREF> <FV1><PREF> 4 </PREF><NREF> 4 </NREF></FV1> <FV2><PREF> 5 </PREF><NREF> 5 </NREF></FV2> <FV3><PREF> 6 </PREF><NREF> 6 </NREF></FV3> </F> <F> <MATREF> 0 </MATREF> <FV1><PREF> 4 </PREF><NREF> 4 </NREF></FV1> <FV2><PREF> 6 </PREF><NREF> 6 </NREF></FV2> <FV3><PREF> 7 </PREF><NREF> 7 </NREF></FV3> </F> <F> <MATREF> 0 </MATREF> <FV1><PREF> 5 </PREF><NREF> 5 </NREF></FV1> <FV2><PREF> 0 </PREF><NREF> 0 </NREF></FV2> <FV3><PREF> 3 </PREF><NREF> 3 </NREF></FV3> </F> <F> <MATREF> 0 </MATREF> <FV1><PREF> 5 </PREF><NREF> 5 </NREF></FV1> <FV2><PREF> 3 </PREF><NREF> 3 </NREF></FV2> <FV3><PREF> 6 </PREF><NREF> 6 </NREF></FV3> </F> <F> <MATREF> 0 </MATREF> <FV1><PREF> 1 </PREF><NREF> 1 </NREF></FV1> <FV2><PREF> 4 </PREF><NREF> 4 </NREF></FV2> <FV3><PREF> 7 </PREF><NREF> 7 </NREF></FV3> </F> <F> <MATREF> 0 </MATREF> <FV1><PREF> 1 </PREF><NREF> 1 </NREF></FV1> <FV2><PREF> 7 </PREF><NREF> 7 </NREF></FV2> <FV3><PREF> 2 </PREF><NREF> 2 </NREF></FV3> </F> <F> <MATREF> 0 </MATREF> <FV1><PREF> 5 </PREF><NREF> 5 </NREF></FV1> <FV2><PREF> 4 </PREF><NREF> 4 </NREF></FV2> <FV3><PREF> 1 </PREF><NREF> 1 </NREF></FV3> </F> <F> <MATREF> 0 </MATREF> <FV1><PREF> 5 </PREF><NREF> 5 </NREF></FV1> <FV2><PREF> 1 </PREF><NREF> 1 </NREF></FV2> <FV3><PREF> 0 </PREF><NREF> 0 </NREF></FV3> </F> <F> <MATREF> 0 </MATREF> <FV1><PREF> 3 </PREF><NREF> 3 </NREF></FV1> <FV2><PREF> 2 </PREF><NREF> 2 </NREF></FV2> <FV3><PREF> 7 </PREF><NREF> 7 </NREF></FV3> </F> <F> <MATREF> 0 </MATREF> <FV1><PREF> 3 </PREF><NREF> 3 </NREF></FV1> <FV2><PREF> 7 </PREF><NREF> 7 </NREF></FV2> <FV3><PREF> 6 </PREF><NREF> 6 </NREF></FV3> </F> </MESH> <OBJECT> <TRANSFORM> <FORWARD> 0, 0, 0 </FORWARD> <POSITION> 0, 0, 0 </POSITION> <SCALE> 1, 1, 1 </SCALE> <UP> 1, 1, 1 </UP> </TRANSFORM> <MESHREF> 0 </MESHREF> </OBJECT> </WORLD> Copying and copyrights: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.