Game Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesGame Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old March 29th, 2008, 06:42 AM
paulscode paulscode is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Location: Fort Meade, MD
Posts: 43 paulscode User rank is Sergeant (500 - 2000 Reputation Level)paulscode User rank is Sergeant (500 - 2000 Reputation Level)paulscode User rank is Sergeant (500 - 2000 Reputation Level)paulscode User rank is Sergeant (500 - 2000 Reputation Level)paulscode User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 30 m 17 sec
Reputation Power: 9
Lightbulb Converting Sketchup Models to 3DS

If you have tried to create models for your 3D games, you probably know that many modeling programs out there (like autodesk) are quite expensive, and have so many features that using them feels like drinking out of a fire hose. One of the simplest modeling programs to use (in my opinion) is Google Sketchup (http://sketchup.google.com/). It doesn't have a lot of the features of some of the other modeling programs available, but it is more than sufficient for most models you will want to create. There is even a "3D Warehouse" full of Sketchup models available for download(http://sketchup.google.com/3dwarehouse).

Only problem is, the free version does not export your model into a common format (like 3ds). So I figured out a way to do the conversion.

The first important piece of information I found, is that KMZ file format is actually just a ZIP file. If you export your sketchup model to "Google Earth 4 (*.kmz)", you can change the name of your file from filename.kmz to filename.zip and look inside. You will find a model file in there, of the Collada "Digital Asset Exchange" format. It has the extension ".dae".

Once you have your .dae file, you will, of course need a converter to change it to a .3ds file. I found a converter that will do this for you. It is called the FBX converter tool, on the autodesk website.

You can download the windows version of the FBX converter from:
http://images.autodesk.com/adsk/fil...nverter_win.exe
The program will install to the following location (unless you specify otherwise):
Program Files\Autodesk\FBX\FBXConverter\2006.11.2\FbxConverterUI.exe

I also saw a mac and and a linux version of the converter (I forgot to grab the links while I was there - you'll have to search the autodesk site if you aren't running windows).

Now the FBX converter will convert your .dae file into a .fbx file. From there, the FBX converter will let you convert the .fbx file into a .3ds file.

This converter also supports a few other formats, so it could be pretty handy to have around.

Here is the process for converting from .skp to .3ds:

1) Download or create a .skp model in Sketchup
2) In Sketchup, export your model to "Google Earth 4 (*.kmz)
(note: be sure to choose version 4, because the other one is different)
3) Change the extention of the kmz file to .zip
4) Pull out the .dae file
5) In FBX Converter, convert the .dae file to .fbx
6) In FBX Converter, convert the .fbx file to .3ds

The only other issue I had (probably specific to the model I was using), is a couple of the materials were not compatible with jPCT (transparency issue). I used a free program called LithUnwrap (http://www.sharecg.com/v/5169/softw...per-for-Windows) to edit the materials in the .3ds model I was using. Lithunwrap works great for this, but it does have a maximum number or polys it will load, so there are probably better programs out there for editing materials. You may not have to worry about that though, if you don't use transparency in your models. I made an applet that loads the skp model I converted:
http://www.paulscode.com/source/LegoCar/
(Use the mouse to rotate the object)

You can get the source code at:
http://www.paulscode.com/source/LegoCar/LegoCar.java
http://www.paulscode.com/source/LegoCar/LegoCar.3ds
(In this demo applet, the 3ds file needs to be compiled into the jar)

And to show that I actually converted that model, here is the original Sketchup file:
http://www.paulscode.com/source/LegoCar/LegoCar.skp
Comments on this post
tagmanadvance agrees: Thanks for sharing =D

Reply With Quote
  #2  
Old May 4th, 2008, 07:58 AM
paulscode paulscode is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Location: Fort Meade, MD
Posts: 43 paulscode User rank is Sergeant (500 - 2000 Reputation Level)paulscode User rank is Sergeant (500 - 2000 Reputation Level)paulscode User rank is Sergeant (500 - 2000 Reputation Level)paulscode User rank is Sergeant (500 - 2000 Reputation Level)paulscode User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 30 m 17 sec
Reputation Power: 9
Unhappy Followup

After trying to track down a problem someone was having with this conversion method (on a different forum), I discovered that the FBX converter is not compatible with all .dae files. The solution would be to find a different converter program that converts .dae files to another format, but after some searching, I haven't been able to find a free one. So the above method for converting sketchup files does not always work.

I'll post an update if I find a better way.

Reply With Quote
  #3  
Old Yesterday, 02:23 PM
Satangoss Satangoss is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 1 Satangoss User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 33 sec
Reputation Power: 0
Hi Paul.

Indeed, at first, I was able to convert some DAE's from Google Sketchup to 3D Studio properly using the procedure well described by you, but I'm not longer getting that . My last KMZ files contain DAE's whose the conversion to FBX are being impossible.

I'm just wondering if it was a intentional modifying in last version of Google SketchUp by Google team to avoid a conversion without Sketchup Pro.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesGame Development > Converting Sketchup Models to 3DS


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway