ShiVa3D
[Tutorial] Google SketchUp > UU3D > Shiva
[Tutorial] Google SketchUp > UU3D > Shiva
by Selzier » 12 Mar 2012, 21:01
TUTORIAL: SketchUp > UU3d > ShiVa
When importing models from Google SketchUp I ran into several problems, especially with materials, like Shiva would always end up with extra unneeded materials. Even using Ultimate Unwrap 3D I ran into these problems. This tutorial covers how to convert a model from SketchUp > UU3d > Shiva.
The model in Sketchup:

01. SketchUp Export
File > Export > 3d Model
Make sure the Export Type is set to COLLADA File (*.dae)
Click on "Options" in the lower right corner of the Export Model window. See the picture, the options are set up as follows:
Geometry
[ ] Export Two-Sided Faces
[ ] Export Edges
[X] Triangulate All Faces
[ ] Export Only Selection Set
[ ] Export Hidden Geometry
[ ] Preserve Component Hierarchies
Materials
[X] Export Texture Maps
[ ] Use "Color By Layer" Materials

02. UU3D Import
Save the .DAE file. SketchUp creates a folder for your texture files so go to where you saved your model, open the folder with your model name, and move your textures files up one directory so: Your textures and modelFile.dae are in the the same directory. (You can now delete that folder SketchUp created)
Open the DAE with UU3D. There are several import options, set them up as follows:
Import Options
[ ] Import Groups
[X] Import Materials
[ ] Import Bones
Material Options
[ ] Use default material properties
[ ] Convert materials to groups
[ ] Import materials as two-sided
[ ] Merge similar materials

03. Reverse Faces
Now that my model is imported in UU3D, I can see that my faces are not oriented how I want them. The inner box is correct where the outside faces have the material on them. But on the large box, I want the material to be on the inside faces, not the outside like seen in the picture:

So select all the faces in UU3D that need to be reversed or flipped. I use the 3d selection mode in UU3D to pick faces. Now that all the faces are selected, click on:
3d Tools > Modifiers > Flip Normals
or
Right Click > Modifiers > Flip Normals

Note that you can do this in Google Sketchup as well. In SketchUp, select all the faces that you want to "flip" the material on. For this tutorial I have selected the entire bigger box.
Right Click > Reverse Faces

Now that the faces are oriented correctly, time to move on. If you reversed faces in SketchUp, re-export the model as a DAE and open it with Ultimate Unwrap 3D (Repeat steps 1 and 2).

Now the faces are oriented properly the way we want them. But we are still not ready to export to Shiva. In UU3D, expand Materials on the right hand side. Any material that does not have a texture (with a T in the box) probably needs to be deleted. Notice in the picture that I have selected the "Unassigned" material and UU3d reports (upper left corner) that 1 Vertices, 1 Edge, and 3 Faces are assigned.

4. Delete unnecessary geometry and materials
Now we want to delete the geometry AND the material so first:
1. Right click on "Unassigned" > then click "Select" (or use AutoSelect)
2. Click Edit > Delete (this deletes the geometry)
3. Right click on "Unassigned" > then click "Delete" (this deletes the material)
Now all that should remain is the necessary geometry and under "Materials" in UU3D there should only be 1 material for each texture. The model is ready for Shiva. Save as a FCollada file (DAE) in UU3D, when the export options opens up, you can use the default UU3d options.

5. Import into ShiVa 3D
Import the model in Shiva3d. Adjust the scale and other options if necessary. I selected to import Meshes and Materials. Notice in your data explorer that the correct number of materials and textures are imported.
Adjust the materials lighting properties and add the model to your scene! Notice the 2 sided material works properly.

When importing models from Google SketchUp I ran into several problems, especially with materials, like Shiva would always end up with extra unneeded materials. Even using Ultimate Unwrap 3D I ran into these problems. This tutorial covers how to convert a model from SketchUp > UU3d > Shiva.
The model in Sketchup:

01. SketchUp Export
File > Export > 3d Model
Make sure the Export Type is set to COLLADA File (*.dae)
Click on "Options" in the lower right corner of the Export Model window. See the picture, the options are set up as follows:
Geometry
[ ] Export Two-Sided Faces
[ ] Export Edges
[X] Triangulate All Faces
[ ] Export Only Selection Set
[ ] Export Hidden Geometry
[ ] Preserve Component Hierarchies
Materials
[X] Export Texture Maps
[ ] Use "Color By Layer" Materials

02. UU3D Import
Save the .DAE file. SketchUp creates a folder for your texture files so go to where you saved your model, open the folder with your model name, and move your textures files up one directory so: Your textures and modelFile.dae are in the the same directory. (You can now delete that folder SketchUp created)
Open the DAE with UU3D. There are several import options, set them up as follows:
Import Options
[ ] Import Groups
[X] Import Materials
[ ] Import Bones
Material Options
[ ] Use default material properties
[ ] Convert materials to groups
[ ] Import materials as two-sided
[ ] Merge similar materials

03. Reverse Faces
Now that my model is imported in UU3D, I can see that my faces are not oriented how I want them. The inner box is correct where the outside faces have the material on them. But on the large box, I want the material to be on the inside faces, not the outside like seen in the picture:

So select all the faces in UU3D that need to be reversed or flipped. I use the 3d selection mode in UU3D to pick faces. Now that all the faces are selected, click on:
3d Tools > Modifiers > Flip Normals
or
Right Click > Modifiers > Flip Normals

Note that you can do this in Google Sketchup as well. In SketchUp, select all the faces that you want to "flip" the material on. For this tutorial I have selected the entire bigger box.
Right Click > Reverse Faces

Now that the faces are oriented correctly, time to move on. If you reversed faces in SketchUp, re-export the model as a DAE and open it with Ultimate Unwrap 3D (Repeat steps 1 and 2).

Now the faces are oriented properly the way we want them. But we are still not ready to export to Shiva. In UU3D, expand Materials on the right hand side. Any material that does not have a texture (with a T in the box) probably needs to be deleted. Notice in the picture that I have selected the "Unassigned" material and UU3d reports (upper left corner) that 1 Vertices, 1 Edge, and 3 Faces are assigned.

4. Delete unnecessary geometry and materials
Now we want to delete the geometry AND the material so first:
1. Right click on "Unassigned" > then click "Select" (or use AutoSelect)
2. Click Edit > Delete (this deletes the geometry)
3. Right click on "Unassigned" > then click "Delete" (this deletes the material)
Now all that should remain is the necessary geometry and under "Materials" in UU3D there should only be 1 material for each texture. The model is ready for Shiva. Save as a FCollada file (DAE) in UU3D, when the export options opens up, you can use the default UU3d options.

5. Import into ShiVa 3D
Import the model in Shiva3d. Adjust the scale and other options if necessary. I selected to import Meshes and Materials. Notice in your data explorer that the correct number of materials and textures are imported.
Adjust the materials lighting properties and add the model to your scene! Notice the 2 sided material works properly.

Last edited by Selzier on 29 Aug 2012, 19:24, edited 2 times in total.
- Selzier
- Platinum Boarder

- Posts: 344
- Location: Boise
Re: [Tutorial] Google SketchUp > UU3D > Shiva
by broozar » 14 Mar 2012, 09:48
Excellent, thank you.

http://www.stonetrip.com/developer/wiki/index.php?title=Google_SketchUp_to_ShiVa
http://www.stonetrip.com/developer/wiki/index.php?title=Google_SketchUp_to_ShiVa
Re: [Tutorial] Google SketchUp > UU3D > Shiva
by Selzier » 20 Jun 2012, 22:09
Part 2: Meters and Shiva Units
1 Shiva Unit is equal to 1 meter. You should configure Google SketchUp to use meters as the default template. You can open this window by clicking "Help > Welcome to SketchUp..."

Now use the Rectangle tool to create a square that is 1 meter by 1 meter and Push/Pull it up to 1 meter as well. I have provided an orange "1 Meter" texture here if you want to use it.

Now you have a box in SketchUp that is 1 meter X 1 meter X 1 meter:

Follow the procedure to export this model and open it with Ultimate Unwrap 3D. When importing into UU3D, there is an option to adjust the scale- leave this at the default value "1.000". To scale the model correctly, in UU3D click "3D Tools > Modifiers > Scene > Scale..." and set the value to 0.0254:

Now you will want to click "3D Tools > Modifiers > Scene > Move..." and click the "Center" button and the "Above: Y" button. Now the model is the correct size and in the middle of the scene.

Go ahead and save the model now and import it to ShiVa Editor. The nice thing is that the model is scaled exactly correct now, so when importing to Shiva just use the default "Scale by: 1.000".
There are a couple options in Shiva that will help us in this example. In the Scene Viewer, click:
- Display > Grid > Setup... now notice that 1 grid unit is HALF of a Shiva unit (aka half a meter!)

- Edit > Options > Translate... and you can set the "Snap Mode: Grid".

Now you can snap these boxes together and they will fit perfectly. Look in the image below to notice that the 1 Meter Box is exactly 1 Shiva Unit.

NOW SHOOT IT!!!!!!!

1 Shiva Unit is equal to 1 meter. You should configure Google SketchUp to use meters as the default template. You can open this window by clicking "Help > Welcome to SketchUp..."

Now use the Rectangle tool to create a square that is 1 meter by 1 meter and Push/Pull it up to 1 meter as well. I have provided an orange "1 Meter" texture here if you want to use it.

Now you have a box in SketchUp that is 1 meter X 1 meter X 1 meter:

Follow the procedure to export this model and open it with Ultimate Unwrap 3D. When importing into UU3D, there is an option to adjust the scale- leave this at the default value "1.000". To scale the model correctly, in UU3D click "3D Tools > Modifiers > Scene > Scale..." and set the value to 0.0254:

Now you will want to click "3D Tools > Modifiers > Scene > Move..." and click the "Center" button and the "Above: Y" button. Now the model is the correct size and in the middle of the scene.

Go ahead and save the model now and import it to ShiVa Editor. The nice thing is that the model is scaled exactly correct now, so when importing to Shiva just use the default "Scale by: 1.000".
There are a couple options in Shiva that will help us in this example. In the Scene Viewer, click:
- Display > Grid > Setup... now notice that 1 grid unit is HALF of a Shiva unit (aka half a meter!)

- Edit > Options > Translate... and you can set the "Snap Mode: Grid".

Now you can snap these boxes together and they will fit perfectly. Look in the image below to notice that the 1 Meter Box is exactly 1 Shiva Unit.

NOW SHOOT IT!!!!!!!

- Selzier
- Platinum Boarder

- Posts: 344
- Location: Boise
Re: [Tutorial] Google SketchUp > UU3D > Shiva
by broozar » 21 Jun 2012, 06:31
thank you very much indeed!

http://www.stonetrip.com/developer/wiki/index.php?title=Google_SketchUp_to_ShiVa#Meters_and_Shiva_Units
http://www.stonetrip.com/developer/wiki/index.php?title=Google_SketchUp_to_ShiVa#Meters_and_Shiva_Units
Re: [Tutorial] Google SketchUp > UU3D > Shiva
by dpharaoh » 12 Nov 2012, 13:30
Thanks for this, just found out right when I needed it 
Join the Shiva IRC Chat! irc.shivaplace.com:6669 or irc.shivaplace.com:16669
Or, use the Java chat client: http://www.shivaplace.com/irc
Or, use the Java chat client: http://www.shivaplace.com/irc
5 posts
• Page 1 of 1