Results 1 to 3 of 3

Thread: per-vertex shading

  1. #1
    Junior Member
    Join Date
    Sep 2006
    Posts
    2

    per-vertex shading

    Hello,

    I'm using Collada to define 3D models in Google Earth.

    My question is, how do I specify the effects, materials and geometries to define per-vertex shading within a Collada file?

    I've tried adding RGB values to each vertex but triangles are still rendered in the single colour as defined in the triangle's material.

    Any help appreciated.

    (are there any examples I can download and examine?)

  2. #2
    Senior Member
    Join Date
    Aug 2005
    Location
    California
    Posts
    165
    Well the problem isn't the data its the implementation.
    Google Earth does not support vertex colors. Or at least they didn't at the beginning of August.

    Having both vertex colors and a material I believe the behavior is application defined. They might modulate the material color by the vertex color. They may just use the material color. I don't think COLLADA defines how this case is to be handled.

    -Andy

  3. #3
    Junior Member
    Join Date
    Sep 2006
    Posts
    2
    Thanks for the reply. I may be able to achieve the desired effect using textures.

    Dave

Posting Permissions

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