Jump to content

COLLADA Surface Naming


photo

Recommended Posts

Posted

Proposal

 

Inclusion of COLLADA geometry material name into UNIGINE surface name. Without this different surfaces will get same COLLADA node name which makes it hard to assign proper material textures

 

engine/framework/MeshFile.cpp

void MeshFileDAE::parse_geometry(const Xml *xml,const String &n,const mat4 &transform) {
....	
   if(name == "polygons" ||
      name == "polylist" ||
      name == "triangles") {

      Surface surface;

      if( x->isArg("material") )  surface.name = n + "-" + x->getArg("material");
      else                        surface.name = n;

      surface.transform = transform;
....
}

Posted

This feature will be presented in next SDK update.

×
×
  • Create New...