Max not exporting vertex color

Just as the title says.

I’m trying to export a static mesh from 3ds max with painted vertex colours but with no success, it always ends up white. Is there any known workaround for this?

This is the output I get (the mesh is a 4x4 quad plane):

<CoordinateSystem> { Z-Up }

<Group> "Scene Root" {
  <Group> Plane01 {
    <VertexPool> Plane01.verts {
      <Vertex> 0 {
        -25 -12.5 0
        <Normal> { 0 0 1 }
      }
      <Vertex> 1 {
        -25 -25 0
        <Normal> { 0 0 1 }
      }
      <Vertex> 2 {
        -12.5 -12.5 0
        <Normal> { 0 0 1 }
      }
      <Vertex> 3 {
        -12.5 -25 0
        <Normal> { 0 0 1 }
      }
      <Vertex> 4 {
        0 -12.5 0
        <Normal> { 0 0 1 }
      }
      <Vertex> 5 {
        0 -25 0
        <Normal> { 0 0 1 }
      }
      <Vertex> 6 {
        12.5 -12.5 0
        <Normal> { 0 0 1 }
      }
      <Vertex> 7 {
        12.5 -25 0
        <Normal> { 0 0 1 }
      }
      <Vertex> 8 {
        25 -12.5 0
        <Normal> { 0 0 1 }
      }
      <Vertex> 9 {
        25 -25 0
        <Normal> { 0 0 1 }
      }
      <Vertex> 10 {
        -25 0 0
        <Normal> { 0 0 1 }
      }
      <Vertex> 11 {
        -12.5 0 0
        <Normal> { 0 0 1 }
      }
      <Vertex> 12 {
        0 0 0
        <Normal> { 0 0 1 }
      }
      <Vertex> 13 {
        12.5 0 0
        <Normal> { 0 0 1 }
      }
      <Vertex> 14 {
        25 0 0
        <Normal> { 0 0 1 }
      }
      <Vertex> 15 {
        -25 12.5 0
        <Normal> { 0 0 1 }
      }
      <Vertex> 16 {
        -12.5 12.5 0
        <Normal> { 0 0 1 }
      }
      <Vertex> 17 {
        0 12.5 0
        <Normal> { 0 0 1 }
      }
      <Vertex> 18 {
        12.5 12.5 0
        <Normal> { 0 0 1 }
      }
      <Vertex> 19 {
        25 12.5 0
        <Normal> { 0 0 1 }
      }
      <Vertex> 20 {
        -25 25 0
        <Normal> { 0 0 1 }
      }
      <Vertex> 21 {
        -12.5 25 0
        <Normal> { 0 0 1 }
      }
      <Vertex> 22 {
        0 25 0
        <Normal> { 0 0 1 }
      }
      <Vertex> 23 {
        12.5 25 0
        <Normal> { 0 0 1 }
      }
      <Vertex> 24 {
        25 25 0
        <Normal> { 0 0 1 }
      }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 0 1 2 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 3 2 1 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 2 3 4 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 5 4 3 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 4 5 6 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 7 6 5 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 6 7 8 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 9 8 7 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 10 0 11 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 2 11 0 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 11 2 12 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 4 12 2 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 12 4 13 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 6 13 4 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 13 6 14 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 8 14 6 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 15 10 16 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 11 16 10 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 16 11 17 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 12 17 11 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 17 12 18 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 13 18 12 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 18 13 19 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 14 19 13 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 20 15 21 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 16 21 15 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 21 16 22 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 17 22 16 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 22 17 23 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 18 23 17 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 23 18 24 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 19 24 18 <Ref> { Plane01.verts } }
    }
  }
}

…and BTW Hi, I’m new here.
[/code]

Looks like no one is using max or vertex colors any more…

I tried exporting to dae ant the using dae2egg, I got some colours but not exactly the ones I’ve painted.

Is there a preferred version of collada that works best with dae2egg?

It should be compatible with collada 1.4.x.

If you find a bug, please send me a minimal .dae file showing the problem, then I can look into fixing it.

Can you send me the max file? So I can test to find the bug.

Sure.
Here’s a link:
fileshost.com/download.php?id=AF24ED6B1

After converting it to egg I got what I’ve posted here in the first post.

Ok, I fixed the problem. Panda3D exporter doesn’t support vertex color, so I wrote some code to add this feature. Right now I can get vertex color in egg file.
I alreay send the code to pro-rsoft, hopefully we will be able to export vertex color after next release of panda3D.

Here’s the output egg file of the color.max:

<CoordinateSystem> { Z-Up }

<Group> character {
  <Dart> { 1 }
  <Group> Plane01 {
    <VertexPool> Plane01.verts {
      <Vertex> 0 {
        -5 -2.5 0
        <Normal> { 0 0 1 }
        <RGBA> { 0.235294 1 0 1 }
      }
      <Vertex> 1 {
        -5 -5 0
        <Normal> { 0 0 1 }
        <RGBA> { 0.306902 1 0.0936413 1 }
      }
      <Vertex> 2 {
        -2.5 -2.5 0
        <Normal> { 0 0 1 }
        <RGBA> { 0.279076 0.942747 0.0498437 1 }
      }
      <Vertex> 3 {
        -2.5 -5 0
        <Normal> { 0 0 1 }
        <RGBA> { 0.991583 0.109139 0.873706 1 }
      }
      <Vertex> 4 {
        0 -2.5 0
        <Normal> { 0 0 1 }
        <RGBA> { 0.991717 0.0742054 0.86936 1 }
      }
      <Vertex> 5 {
        0 -5 0
        <Normal> { 0 0 1 }
        <RGBA> { 0.964793 0.679284 0.728297 1 }
      }
      <Vertex> 6 {
        2.5 -2.5 0
        <Normal> { 0 0 1 }
        <RGBA> { 0.947335 0.34435 0.570802 1 }
      }
      <Vertex> 7 {
        2.5 -5 0
        <Normal> { 0 0 1 }
        <RGBA> { 0.847059 1 0 1 }
      }
      <Vertex> 8 {
        5 -2.5 0
        <Normal> { 0 0 1 }
        <RGBA> { 0.847059 1 0 1 }
      }
      <Vertex> 9 {
        5 -5 0
        <Normal> { 0 0 1 }
        <RGBA> { 0.90936 1 0.407351 1 }
      }
      <Vertex> 10 {
        -5 0 0
        <Normal> { 0 0 1 }
        <RGBA> { 0.037911 0.161122 0.838878 1 }
      }
      <Vertex> 11 {
        -2.5 0 0
        <Normal> { 0 0 1 }
        <RGBA> { 0.235294 1 0 1 }
      }
      <Vertex> 12 {
        0 0 0
        <Normal> { 0 0 1 }
        <RGBA> { 0.296123 0.920455 0.0692512 1 }
      }
      <Vertex> 13 {
        2.5 0 0
        <Normal> { 0 0 1 }
        <RGBA> { 1 0 0.870588 1 }
      }
      <Vertex> 14 {
        5 0 0
        <Normal> { 0 0 1 }
        <RGBA> { 1 0 0.870588 1 }
      }
      <Vertex> 15 {
        -5 2.5 0
        <Normal> { 0 0 1 }
        <RGBA> { 0 0 1 1 }
      }
      <Vertex> 16 {
        -2.5 2.5 0
        <Normal> { 0 0 1 }
        <RGBA> { 0.0910911 0.35906 0.649579 1 }
      }
      <Vertex> 17 {
        0 2.5 0
        <Normal> { 0 0 1 }
        <RGBA> { 0.235294 1 0 1 }
      }
      <Vertex> 18 {
        2.5 2.5 0
        <Normal> { 0 0 1 }
        <RGBA> { 0.416573 0.834337 0.215618 1 }
      }
      <Vertex> 19 {
        5 2.5 0
        <Normal> { 0 0 1 }
        <RGBA> { 0.988815 0.143663 0.874554 1 }
      }
      <Vertex> 20 {
        -5 5 0
        <Normal> { 0 0 1 }
        <RGBA> { 0.123606 0.123606 1 1 }
      }
      <Vertex> 21 {
        -2.5 5 0
        <Normal> { 0 0 1 }
        <RGBA> { 0 0 1 1 }
      }
      <Vertex> 22 {
        0 5 0
        <Normal> { 0 0 1 }
        <RGBA> { 0.286823 0.647739 0.528033 1 }
      }
      <Vertex> 23 {
        2.5 5 0
        <Normal> { 0 0 1 }
        <RGBA> { 0.235294 1 0 1 }
      }
      <Vertex> 24 {
        5 5 0
        <Normal> { 0 0 1 }
        <RGBA> { 0.396635 0.955144 0.205179 1 }
      }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 0 1 2 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 3 2 1 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 2 3 4 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 5 4 3 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 4 5 6 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 7 6 5 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 6 7 8 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 9 8 7 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 10 0 11 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 2 11 0 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 11 2 12 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 4 12 2 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 12 4 13 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 6 13 4 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 13 6 14 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 8 14 6 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 15 10 16 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 11 16 10 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 16 11 17 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 12 17 11 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 17 12 18 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 13 18 12 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 18 13 19 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 14 19 13 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 20 15 21 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 16 21 15 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 21 16 22 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 17 22 16 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 22 17 23 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 18 23 17 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 23 18 24 <Ref> { Plane01.verts } }
    }
    <Polygon> {
      <RGBA> { 1 1 1 1 }
      <VertexRef> { 19 24 18 <Ref> { Plane01.verts } }
    }
  }
}

Great news!