Results 1 to 2 of 2

Thread: Polygon offset in COLLADA

  1. #1
    alpinista
    Guest

    Polygon offset in COLLADA

    Hi,

    Can somebody please explain me how to specify polygon offset in COLLADA?

    I am working on some utility to convert 3D models from various formats to COLLADA and I need to solve some 'depth-buffer collisions'.


    Thanks

    Tomas

  2. #2
    Senior Member
    Join Date
    Aug 2004
    Location
    California
    Posts
    771
    In COLLADA, <geometry> is agnostic to rendering. All the information about rendering and appearance is symbolically bound to the primitives material attribute. E.g:

    Code :
    <geometry>
     <mesh>
     ...
      <triangles material="my_appearance" />
     ...
     </mesh>
    </geometry>

    Since polygon offset is a rendering trick, my first approach would be to add the information into the material/effect.

    It's also possible to add the offset values as another <source> and <input> stream and assemble them as more per-vertex meta data. The material will still have to know what to do with the information.

    Regards,
    Marcus

Posting Permissions

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