Results 1 to 2 of 2

Thread: Viewer for POLYGONS with holes (ph)

  1. #1
    Junior Member
    Join Date
    Jun 2008

    Viewer for POLYGONS with holes (ph)

    Does anybod know a viewer which is able to show a collada file with polygons which have holes?

    Here is my simple example with a quad which has a smaller quad as a hole inside. Unfortunately i can't open in a viewer, but i can import it in maya and it works fine.

    Code :
    <?xml version="1.0" encoding="utf-8"?>
    <COLLADA xmlns="" version="1.4.1">
          <authoring_tool>COLLADA Maya2008</authoring_tool>
          <comments>ColladaMaya export options: bakeTransforms=0;exportPolygonMeshes=1;bakeLighting=0;isSampling=0;
        <unit name="centimeter" meter="100"/>
        <material id="phong1" name="phong1">
          <instance_effect url="#phong1-fx"/>
        <effect id="phong1-fx">
            <technique sid="common">
                  <color>0 0 0 1</color>
                  <color>0 0 0 1</color>
                  <color>0.4888 0.152898 0.046436 0.8</color>
                  <color>0.5 0.5 0.5 1</color>
                  <color>0 0 0 1</color>
                <transparent opaque="RGB_ZERO">
                  <color>0 0 0 1</color>
        <geometry id="geom-LOD3spShape" name="LOD3spShape">
            <source id="geom-LOD3spShape-positions">
              <float_array id="geom-LOD3spShape-positions-array" count="24">0 0 0 10 0 0 10 10 0 0 10 0 2 2 0 7 2 0 7 7 0 2 7 0</float_array>
                <accessor source="#geom-LOD3spShape-positions-array" count="8" stride="3">
                  <param name="X" type="float"/>
                  <param name="Y" type="float"/>
                  <param name="Z" type="float"/>
            <source id="geom-LOD3spShape-normals">
              <float_array id="geom-LOD3spShape-normals-array" count="24">0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1</float_array>
                <accessor source="#geom-LOD3spShape-normals-array" count="8" stride="3">
                  <param name="X" type="float"/>
                  <param name="Y" type="float"/>
                  <param name="Z" type="float"/>
            <vertices id="geom-LOD3spShape-vertices">
              <input semantic="POSITION" source="#geom-LOD3spShape-positions"/>
            <polygons material="phong1SG" count="1">
              <input semantic="VERTEX" source="#geom-LOD3spShape-vertices" offset="0"/>
    0 1 2 3</p>
                <h>4 7 6 5</h>
            <technique profile="MAYA">
        <visual_scene id="hole">
          <node id="LOD3sp" name="LOD3sp" type="NODE">
            <translate sid="translate">0 0 0</translate>
            <rotate sid="rotateZ">0 0 1 0</rotate>
            <rotate sid="rotateY">0 1 0 0</rotate>
            <rotate sid="rotateX">1 0 0 0</rotate>
            <scale sid="scale">1 1 1</scale>
            <instance_geometry url="#geom-LOD3spShape">
                  <instance_material symbol="phong1SG" target="#phong1"/>
        <instance_visual_scene url="#hole"/>

  2. #2
    Senior Member
    Join Date
    Jul 2004
    Santa Clara
    Not surprising it is difficult to find a viewer that display polygon with holes.

    COLLADA is designed to be able to represent data that is close to the representation in tools (such as polygons, although most DCC tools do not support the notion of hole), and to be able to represent the data in a way that is close to the hardware (such as triangle / triangle strips).

    This is the job of the content pipeline to convert the data from the DCC friendly form into the form friendly to the application. Please check the conditioners/refinery on sourceforge.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts