Game Development Community

Sketchup

by mal · in Artist Corner · 02/28/2010 (5:46 pm) · 7 replies

Sorry about opening a well-discussed argoment but it's all day i'm searching about exporting from google sketchup to import in world editor O_O

Both extensions, .kmz and .dae, give me problems about textures and i can't figure out to resolve.
What's the right procedure to take to export correctly a textured model from sketchup to the world editor?

About the author

The three most dangerous things in the world are a programmer with a soldering iron, a hardware type with a program patch and a user with an idea. (ehy, i'm looking for artists from my country!)

Recent Threads


#1
02/28/2010 (10:50 pm)
In theory: export your model from sketchup to .kmz. This is a zip file containing the collada (.dae) model and textures. Add this model to the scene using the world editor. The collada loader will automatically extract the model and textures into the same folder as the .kmz (they will be suffixed with .cached.xxx). It will also generate a file called materials.cs that contains TorqueScript definitions of the Materials in your model. You can use the Material Editor to play around with them.

In practice: not sure what is going wrong from your description. Perhaps you could post more details about exactly what problems you are having. One thing to watch out for with Sketchup models => Sketchup generates materials with generic names like "texture01", so you may need to use the collada import gui to add a unique prefix to they material names in the model to avoid clashes with existing materials. The tree view in the import gui shows you which materials are already mapped.....
#2
03/01/2010 (12:20 am)
Not sure if it helps, but this tutorial explains how to import SketchUp files into Blender.
#3
03/01/2010 (3:33 am)
Thank you for you fast reply!

Basically these are steps I'm following:

1) I create a simple model with google sketchup 7 (free edition) and add a couple of textures
2) Saving .kmz in the art/shapes/_My_Model_ of my project (i'm using the demo version of torque3D)
3) Following Chris Robertson tip when the collada import interface come up i add a prefix in the field "material prefix"
4) The editor import the model inside the world editor but it's completely transparent

#4
03/01/2010 (10:36 pm)
By completely transparent, do you mean that it is fully invisible. ie. you can't see anything at all? Are there any warnings/errors in the console when you import the shape.

If you open the model in the shape editor, does turning on wireframe mode show you anything?
#5
03/02/2010 (1:18 am)
Mmmm i see just the base of my "cylinder" wich is not texurized, console shows

Quote:
Object mesh "SketchUp" has no matching detail ("detail2" has been added automatically)
Writing cached COLLADA shape to art/shapes/test/aa.cached.dts

The shape editor, in wireframe mode, shows me only the base of the cylinder (even if the bounding box is bigger)
#7
03/02/2010 (9:47 am)
i read a couple of times that post, i tried but no solution.
Just now i exported a no-texurized cube from sketchup. imported inside the world editor and i can see the shape but when i apply a texture from material editor the cube remains white