Results 1 to 3 of 3

Thread: Sketchup Collada

  1. #1
    Junior Member
    Join Date
    Jul 2010
    Posts
    2

    Sketchup Collada

    I'm attempting to parse collada files that have been produced in Sketchup (free) via the Google Earth export function. The files are displayed in OpenGL. Everything is working fine except for my materials. The colors do not show up. I thought I would check the basics, and start with the normals. I'm deindexing the positions, normals, and texture coordinates for use in OpenGL. I've confirmed my deindexer against Collada Refinery outputs. The question I have is, are the sketchup normals vertex or surface normals? I've been assuming that they are vertex normals. The textured triangles are coming out alright using the same methods. The collada file is in z-up and opengl is y-up, do I need to convert the normals so that they are y-up? I guess that's more of an opengl question.

    Any help is appreciated.

    Thanks,
    David

  2. #2
    Senior Member
    Join Date
    Aug 2004
    Location
    California
    Posts
    771

    Re: Sketchup Collada

    COLLADA meshes contain per-vertex attributes.

    Yes you also need to rotate the normals to match your run-time environment.

  3. #3
    Junior Member
    Join Date
    Jul 2010
    Posts
    2

    Re: Sketchup Collada

    Thanks for the reply! It gets me on to the next step.

    Cheers,
    David

Posting Permissions

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