KMZ SketchUp to Torque - textures OK, colours not
by Keith G Wood · in Artist Corner · 02/27/2011 (7:01 pm) · 2 replies
I have created some of my own models in sketchup, rendering textures from graphics files to all the surfaces. I can import these to torque & all is fine.
I have also played with some stuff downloaded from the 3D warehouse. A lot of these look fine in sketchup, but by the time they are in torque they are mainly shades of grey. It appears that parts of the object that are just washed with colour (rather than a texture/graphics file applied) are not importing correctly.
Now, I could "just" build all my own models from scratch using the method I know works (but that would take ages). Is there a simple way of ensuring the colours make it all the way from sketchup to torque?
I have also played with some stuff downloaded from the 3D warehouse. A lot of these look fine in sketchup, but by the time they are in torque they are mainly shades of grey. It appears that parts of the object that are just washed with colour (rather than a texture/graphics file applied) are not importing correctly.
Now, I could "just" build all my own models from scratch using the method I know works (but that would take ages). Is there a simple way of ensuring the colours make it all the way from sketchup to torque?
About the author
The perverse mind behind Bad Taste Software: http://www.badtastesoftware.co.uk
#2
This effect just doesn't happen on object parts that are rendered with textures/graphics.
02/27/2011 (7:34 pm)
I've now noticed something else that is weird. As the distance of the camera from the object changes, so the grey/colour can change - except it doesn't seem to be a logical "as you get closer render it better". It appears at long distances it has more intense colours than at mid distance, and in some cases the same part of the object as different colours at different distances.This effect just doesn't happen on object parts that are rendered with textures/graphics.
Torque 3D Owner Keith G Wood
http://sketchup.google.com/3dwarehouse/details?mid=8adef6a6500f92a59812972b92b471d0&prevstart=0
This "fort fun" has lots of intense blues, greens, yellows, reds.
I downloaded the sketchup 7 version, loaded into sketchup - looks just like the graphic on the 3D warehouse website. Exported to KMZ, into torque, everything is slightly different shades of blue/grey.
Here is one material section from the autogenerated material.cs...
singleton Material(untitled_Fortmaterial_0)
{
mapTo = "Fortmaterial_0";
diffuseMap[0] = "";
normalMap[0] = "";
specularMap[0] = "";
diffuseColor[0] = "0.345098 0.352941 0.352941 1";
specular[0] = "1 1 1 1";
specularPower[0] = 8;
doubleSided = true;
translucent = false;
translucentBlendOp = "None";
};
Apart from the name in "MapTo" and the values in "diffuseColor" all the material entries are the same.
I am guessing I could edit of the "diffuseColor" by hand fter it is generated - but that could be a long-winded process - surely it ought to be able to get the colours right in the first place? Am I just missing an important step?