hello.
i creates a sketchup importer for webgl.
Now i have create an intermediary xml format that js can parse generated from a c++ importer with vertexes and material in xml:
like
<scene>
<mesh n=1>
<position>0.12 0.13 0.22 ecc.. </position>
<normals>010 001 000 ecc...</normals>
<material>255 0 0</material>
<diffusetexture>wall.jpg</diffusetexture>
<shaderid>1</shaderid>
</mesh>

<mesh n=2>
<position>2.2 2.13 2.22 ecc.. </position>
<normals>010 001 000 ecc...</normals>
<material>0 255 0</material>
<diffusetexture></diffusetexture>
<shaderid>2</shaderid>

</mesh>
</scene>
I have two shader , with two id : 1 and 2
how i can create in js all the meshes and how i can visualize it?


thanks.