java.net: Wiki

The Source for Java Technology Collaboration


 <<O>>  Difference Topic ProjectWonderlandContentTipsAndTricks (3 - 19 Sep 2008 - Main.matty_x)
Line: 1 to 1
 
META TOPICPARENT name="ProjectWonderland"
Home | Changes | Index | Search | Go
<-- This creates the navigation links to :  Home | Help | Index | etc.  -->
Line: 6 to 6
 

Importing Content from Google Sketchup (Free Version)

Changed:
<
<

Draft - M. Schmidt

Step 1: Build model in Sketchup.

>
>

Step 1: Build model in Sketchup.

 Notes - Each piece of the model must be a separate piece of geometry. You cannot use a single cube and put different textures on each side because only the last texture applied will show up in Wonderland. Anything with a separate texture must be a separate piece of geometry and cannot be a child or copy of something else.
Changed:
<
<
>
>

Note that the above image may look like the models are sitting on the floor plane, when in actuality they are located just above the floor plane.

 
Changed:
<
<
Step 2: Save the model as a KMZ file
>
>

Step 2: Save the model as a KMZ file

 Select "File" --> "Export" --> "3D Model" and save your model as "Google Earth 4 (*.kmz)".
Changed:
<
<
>
>

 
Changed:
<
<
>
>

Step 3: Change the file extension of your exported model from KMZ to ZIP.

 
Changed:
<
<
Step 3: Change the file extension of your exported model from KMZ to ZIP.
>
>
 
Changed:
<
<
>
>
The original file format.
 
Changed:
<
<
>
>
 
Changed:
<
<
Step 4: Unpack the zip archive.
>
>
Extension changed to ZIP.

Step 4: Unpack the zip archive.

 The contents of the ZIP archive include two important folders: images and models.
Changed:
<
<
>
>
 
Changed:
<
<
Step 5: Import the model into Blender
>
>

Step 5: Import the model into Blender

 Open Blender. Select "File"-->"Import"-->"Collada 1.4(.dae)..."
Changed:
<
<
>
>
 In the "Import file:" field, select the "..." (load) button. Navigate to the folder where you saved the content of the ZIP archive from step 4, then navigate to the "models" folder. Ensure that "Only Import Main Scene" and "New Scene" are selected.
Changed:
<
<
>
>
 Select "Import and Close"

Your model will import into Blender.

Changed:
<
<
Step 6: Re-size the model and correct any import errors.
>
>

Step 6: Re-size the model and correct any import errors.

 You will probably not see your model when you import it into Blender from Sketchup. This is because the units of measurement in the two programs are different. In order to see your model, you must first zoom out using the middle mouse button.

Initial view in Blender:

Changed:
<
<
>
>
 Zoomed out view in Blender:
Changed:
<
<
>
>
 Scale the model down. First, select all ("A" key on the keyboard). Next, select the scale tool ("S" key on the keyboard). Use the mouse to scale the model down to an appropriate, Wonderland-friendly size.
Changed:
<
<
>
>

Note the position of the model on the grid.

 Set the view mode to "Textured".
Changed:
<
<
>
>
 Ensure your textures are showing properly. If they are backwards, you need to flip the normals on that piece of geometry. To do this, select the geometry for which you want to flip the normals. Then enter edit mode (Tab), and select all ("A" key on keyboard"). Then hit spacebar to bring up the context menu and select "Edit"-->"Normals"-->"Flip".
Changed:
<
<
NEED TO ADD SECTION HERE ABOUT ROTATING MODEL SO THAT Y IS UP
>
>
Also, as outlined on the Import Content from Blender into Project Wonderland wiki page, "Once you have your model and texture ready, there's one more thing to do before exporting. Since Blender uses a Z-up coordinate system and Wonderland is Y-up, rotate the entire model -90 degrees X to have it face in the right direction."
 Once you have resized and edited your model, make sure that you apply all rotation and scaling to the model. THIS IS VERY IMPORTANT - if you do not do this, your model will not work as expected in Wonderland. To do this, make sure you are in object mode. Then select all ("A" key on keyboard") and from the context menu select "Transform"-->"Clear/Apply"-->"Apply Scale/Rotation to ObData?".
Changed:
<
<
>
>
 
Changed:
<
<
Step 7: Export the model as X3D?
>
>

Step 7: Export the model as X3D?

 Make sure that you have the entire model selected ("A" key on keyboard) and then select "File"-->"Export"-->"X3D" from the menu.
Changed:
<
<
X3D? screenshot here>
>
>
 Select "Selected Objects" from the "Export" dialog.
Changed:
<
<
>
>
 Choose a directory to save the X3D? model.
Changed:
<
<
Step 8: Add textures to the X3D? directory.
>
>

Step 8: Add textures to the X3D? directory.

 Navigate to the folder where you saved the content of the ZIP archive from step 4, then navigate to the "images" folder. Select all images in that folder and copy them to your clipboard ("Edit"-->"Copy")

Navigate to the directory where you saved your X3D? model in step 7 and paste the images there ("Edit"-->"Paste")

Changed:
<
<
Step 9: Import your model into Wonderland.
>
>

Step 9: Import your model into Wonderland.

 From within your Wonderland client, select "Tools"-->"Import Model".
Changed:
<
<
>
>
 From the Import Manager, select "Load Model".
Deleted:
<
<
 Navigate to the directory where you saved your X3D? model in step 7 and select "Open".
Changed:
<
<
>
>
 Your model will import into Wonderland.
Changed:
<
<
>
>

 <<O>>  Difference Topic ProjectWonderlandContentTipsAndTricks (2 - 18 Sep 2008 - Main.matty_x)
Line: 1 to 1
 
META TOPICPARENT name="ProjectWonderland"
Home | Changes | Index | Search | Go
<-- This creates the navigation links to :  Home | Help | Index | etc.  -->

Importing Content Into Wonderland: Tips and Tricks

Deleted:
<
<
<-- Your JavaDesktop? article goes here. Please try to include at least one sentence describing this topic. -->
<-- Also please try to include at least one sentence describing where each link goes. -->
<-- Please make sure some other page points to your new article so that others can find it! -->
<-- For more on how to write Javapedia articles please read the WritingArticles? page. -->
 \ No newline at end of file
Added:
>
>

Importing Content from Google Sketchup (Free Version)

Draft - M. Schmidt

Step 1: Build model in Sketchup.

Notes - Each piece of the model must be a separate piece of geometry. You cannot use a single cube and put different textures on each side because only the last texture applied will show up in Wonderland. Anything with a separate texture must be a separate piece of geometry and cannot be a child or copy of something else.

Step 2: Save the model as a KMZ file

Select "File" --> "Export" --> "3D Model" and save your model as "Google Earth 4 (*.kmz)".

Step 3: Change the file extension of your exported model from KMZ to ZIP.

Step 4: Unpack the zip archive.

The contents of the ZIP archive include two important folders: images and models.

Step 5: Import the model into Blender

Open Blender. Select "File"-->"Import"-->"Collada 1.4(.dae)..."

In the "Import file:" field, select the "..." (load) button. Navigate to the folder where you saved the content of the ZIP archive from step 4, then navigate to the "models" folder. Ensure that "Only Import Main Scene" and "New Scene" are selected.

Select "Import and Close"

Your model will import into Blender.

Step 6: Re-size the model and correct any import errors.

You will probably not see your model when you import it into Blender from Sketchup. This is because the units of measurement in the two programs are different. In order to see your model, you must first zoom out using the middle mouse button.

Initial view in Blender:

Zoomed out view in Blender:

Scale the model down. First, select all ("A" key on the keyboard). Next, select the scale tool ("S" key on the keyboard). Use the mouse to scale the model down to an appropriate, Wonderland-friendly size.

Set the view mode to "Textured".

Ensure your textures are showing properly. If they are backwards, you need to flip the normals on that piece of geometry. To do this, select the geometry for which you want to flip the normals. Then enter edit mode (Tab), and select all ("A" key on keyboard"). Then hit spacebar to bring up the context menu and select "Edit"-->"Normals"-->"Flip".

NEED TO ADD SECTION HERE ABOUT ROTATING MODEL SO THAT Y IS UP

Once you have resized and edited your model, make sure that you apply all rotation and scaling to the model. THIS IS VERY IMPORTANT - if you do not do this, your model will not work as expected in Wonderland. To do this, make sure you are in object mode. Then select all ("A" key on keyboard") and from the context menu select "Transform"-->"Clear/Apply"-->"Apply Scale/Rotation to ObData?".

Step 7: Export the model as X3D?

Make sure that you have the entire model selected ("A" key on keyboard) and then select "File"-->"Export"-->"X3D" from the menu.

X3D? screenshot here>

Select "Selected Objects" from the "Export" dialog.

Choose a directory to save the X3D? model.

Step 8: Add textures to the X3D? directory.

Navigate to the folder where you saved the content of the ZIP archive from step 4, then navigate to the "images" folder. Select all images in that folder and copy them to your clipboard ("Edit"-->"Copy")

Navigate to the directory where you saved your X3D? model in step 7 and paste the images there ("Edit"-->"Paste")

Step 9: Import your model into Wonderland.

From within your Wonderland client, select "Tools"-->"Import Model".

From the Import Manager, select "Load Model".

Navigate to the directory where you saved your X3D? model in step 7 and select "Open".

Your model will import into Wonderland.


 <<O>>  Difference Topic ProjectWonderlandContentTipsAndTricks (1 - 01 Aug 2008 - Main.jslott)
Line: 1 to 1
Added:
>
>
META TOPICPARENT name="ProjectWonderland"
Home | Changes | Index | Search | Go
<-- This creates the navigation links to :  Home | Help | Index | etc.  -->

Importing Content Into Wonderland: Tips and Tricks

<-- Your JavaDesktop? article goes here. Please try to include at least one sentence describing this topic. -->
<-- Also please try to include at least one sentence describing where each link goes. -->
<-- Please make sure some other page points to your new article so that others can find it! -->
<-- For more on how to write Javapedia articles please read the WritingArticles? page. -->

Topic ProjectWonderlandContentTipsAndTricks . { View | Diffs r3 < r2 < r1 | More }
 XML java.net RSS