GLC_lib & GLC_Player Forums
http://www.forum.glc-lib.net/

bug with collada when instance_geometry uses input_set.
http://www.forum.glc-lib.net/viewtopic.php?f=14&t=939
Page 1 of 1

Author:  kendzi [ Sun Apr 07, 2013 9:43 pm ]
Post subject:  bug with collada when instance_geometry uses input_set.

I try to use few TEXCOORD sources in geometry element and then choose one using set attribute in instance_geometry. But it seems is not working in GLC_Player. I loaded this example using SketchUp and Assimp and it worked correctly. But in GLC_Player there are errors in texture. It is possibly bug in player or I don't understand collada.


Code:
<geometry ..>
 <triangles ..>
   ...
   <input set="0" source="#ID_ts_139" semantic="TEXCOORD" offset="2"/>
   <input set="1" source="#ID_ts_142_1" semantic="TEXCOORD" offset="3"/>
   <p>...</p>
 </triangles>
</geometry>
...
<instance_geometry url="#ID_geom_133">
   <bind_material>
      <technique_common>
         <instance_material ...>
            <bind_vertex_input input_set="0" input_semantic="TEXCOORD" semantic="texcord"/>
         </instance_material>
      </technique_common>
   </bind_material>
</instance_geometry>

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/