Its my first time using bullet
As my project want to use bullet as physic engine, loading collada files, so my task is to test the capability of collada with bullet.
I went through the source code and compile the colladaconverter demo from the bullet, and everything was fine
then I go on and test if the converter work with other collada files
so I went to google 3D warehouse and pick a nice Fragmentation -Frag- Anti-Personell Grenade
first I copy and paste the green-aid.dae file from the zip to the bullet dir (where the jenga.dae is)
then create a bat file with DebugColladaDemo.exe green-aid.dae ( run the demo with argument of the file name)
and I end up with some errors like "No Triangles or Polygons found int Geometry"?
What I interpreted is
the file does load into the convertor, and the function convert ran
the problem comes in when it load the meshs
so I picked some problem mesh and went into the dae
and compare the problem mesh with the normal mesh ( I found the mesh1-geometry is ok and mesh2-geometry have error)
and found that the mesh1-geometry under geometry>mesh there are
and for the mesh2-geometry under geometry> mesh there are<source id="mesh1-geometry-position">
<source id="mesh1-geometry-normal">
<source id="mesh1-geometry-uv">
<vertices id="mesh1-geometry-vertex">
<triangles material="material0" count="752">
Q1<source id="mesh2-geometry-position">
<vertices id="mesh2-geometry-vertex">
<lines material="ForegroundColor" count="27">
is the problem come from the collada file I downloaded (not a standard one)?
or the convertor lacks some function to cope with all collada files?
Q2
my another question: the demo shows us how the colladaconverter load the jenga.dae
which include the model, camera, gravity etc, almost everything are defined from the collada file
so its like a save file of a scen how about I want to load eg the track from 1 collada file and cars from other collada files? will I be able to do that with the converter? or I have to modifly the converter for this task?
please kindly help
Y0z2