Google SketchUp Developers

skp to obj material information

andyy Oct 26, 2011 1:30 AM
Posted in group: SketchUp C++ SDK

I'm trying to write an importer from skp to obj, but having some
problems trying to work out how to generate the associated mtl
(material file) associated.

The values i'm trying to find are Ka(ambient color), Kd(diffuse color)
and Ks(specular color). I'm currently looping through each material
within a skp file and and calling get_color. Which only returns one

Does anyone have any idea how to get the values of other parameters
that I need?