Hello,
I have got a collada file, that includes the vertices,normals and the color-array. Now I would like to see the data as an graph but nothing appears on my screen. (I’am using Blender to display the dae file)
This is my library_geometries:
<library_geometries>
<geometry id="building1000616-geometry" name="building1000616-geometry">
<mesh>
<source id="building1000616-geometry-position">
<float_array id="building1000616-geometry-position-array" count="15">8.400109678846436 51.907557991427794 81.707888 8.400182026916037 51.907582114947395 83.195762 8.400159263318834 51.9076082263193 83.101087 8.400086944411116 51.90758409394329 81.613607 8.400109678846436 51.907557991427794 81.707888 </float_array>
<technique_common>
<accessor source="#building1000616-geometry-position-array" count="5" stride="3">
<param name="X" type="float"/>
<param name="Y" type="float"/>
<param name="Z" type="float"/>
</accessor>
</technique_common>
</source>
<source id="building1000616-geometry-normal">
<float_array id="building1000616-geometry-normal-array" count="18">1.0 0.0 0.0 1.0 0.0 0.0 -0.85063213 -0.5257613 4.89927E-5 -0.8447742 -0.53512305 4.911742E-5 -0.8447742 -0.53512305 4.911742E-5 -0.8388131 -0.54441947 4.9236143E-5 </float_array>
<technique_common>
<accessor source="#building1000616-geometry-normal-array" count="6" stride="3">
<param name="X" type="float"/>
<param name="Y" type="float"/>
<param name="Z" type="float"/>
</accessor>
</technique_common>
</source>
<source id="building1000616-geometry-color">
<float_array id="building1000616-geometry-color_array" count="12">1.0 1.0 0.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 </float_array>
<technique_common>
<accessor count="4" source="#building1000616-geometry-color_array" stride="3">
<param name="R" type="float"/>
<param name="G" type="float"/>
<param name="B" type="float"/>
</accessor>
</technique_common>
</source>
<vertices id="building1000616-geometry-vertex">
<input semantic="POSITION" source="#building1000616-geometry-position"/>
</vertices>
<triangles count="3" material="stdMaterial">
<input semantic="VERTEX" source="#building1000616-geometry-vertex" offset="0"/>
<input semantic="NORMAL" source="#building1000616-geometry-normal" offset="1"/>
<input semantic="COLOR" source="#building1000616-geometry-color" offset="2"/>
<p>0 0 2 0 0 0 3 1 1 3 2 2 0 3 0 2 4 2 2 4 1 0 3 3 1 5 3 </p>
</triangles>
</mesh>
</geometry>
</library_geometries>
The vertices were given and using them I have generated the appropriate normals in Java3d (normalGenerator)
In my opinion the p-element or the generated normals are wrong but I don’t know why.
Do you know what’s the problem?
Many thanks in advance
Another question:
Is it possible to check that my normals are correct?
matthee
November 24, 2013, 7:03pm
3
I also come across the same problem.Waiting for the meaningfuol reply
I’ve got an additional Question.
I’m writing a COLLADA-Exporter in Java and want to create geometries by using only coordinates from 3d-points.
How do I know, which Points create one triangle? Is there any opportunity to triangulate my points?
system
December 25, 2013, 6:05pm
5
Xetus2013:
Hello,
I have got a collada file, that includes the vertices,normals and the color-array. Now I would like to see the data as an graph but nothing appears on my screen. (I’am using Blender to display the dae file)
This is my library_geometries:
<library_geometries>
<geometry id="building1000616-geometry" name="building1000616-geometry">
<mesh>
<source id="building1000616-geometry-position">
<float_array id="building1000616-geometry-position-array" count="15">8.400109678846436 51.907557991427794 81.707888 8.400182026916037 51.907582114947395 83.195762 8.400159263318834 51.9076082263193 83.101087 8.400086944411116 51.90758409394329 81.613607 8.400109678846436 51.907557991427794 81.707888 </float_array>
<technique_common>
<accessor source="#building1000616-geometry-position-array" count="5" stride="3">
<param name="X" type="float"/>
<param name="Y" type="float"/>
<param name="Z" type="float"/>
</accessor>
</technique_common>
</source>
<source id="building1000616-geometry-normal">
<float_array id="building1000616-geometry-normal-array" count="18">1.0 0.0 0.0 1.0 0.0 0.0 -0.85063213 -0.5257613 4.89927E-5 -0.8447742 -0.53512305 4.911742E-5 -0.8447742 -0.53512305 4.911742E-5 -0.8388131 -0.54441947 4.9236143E-5 </float_array>
<technique_common>
<accessor source="#building1000616-geometry-normal-array" count="6" stride="3">
<param name="X" type="float"/>
<param name="Y" type="float"/>
<param name="Z" type="float"/>
</accessor>
</technique_common>
</source>
<source id="building1000616-geometry-color">
<float_array id="building1000616-geometry-color_array" count="12">1.0 1.0 0.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 </float_array>
<technique_common>
<accessor count="4" source="#building1000616-geometry-color_array" stride="3">
<param name="R" type="float"/>
<param name="G" type="float"/>
<param name="B" type="float"/>
</accessor>
</technique_common>
</source>
<vertices id="building1000616-geometry-vertex">
<input semantic="POSITION" source="#building1000616-geometry-position"/>
</vertices>
<triangles count="3" material="stdMaterial">
<input semantic="VERTEX" source="#building1000616-geometry-vertex" offset="0"/>
<input semantic="NORMAL" source="#building1000616-geometry-normal" offset="1"/>
<input semantic="COLOR" source="#building1000616-geometry-color" offset="2"/>
<p>0 0 2 0 0 0 3 1 1 3 2 2 0 3 0 2 4 2 2 4 1 0 3 3 1 5 3 </p>
</triangles>
</mesh>
</geometry>
</library_geometries>
The vertices were given and using them I have generated the appropriate normals in Java3d (normalGenerator)
In my opinion the p-element or the generated normals are wrong but I don’t know why.
Do you know what’s the problem?
Many thanks in advance
This has been posted for quite some time and with no response. I am interested in seeing if the generated normal are wrong? Thank you.