Opened 17 years ago

Closed 10 years ago

Last modified 10 years ago

#168 closed enhancement (invalid)

Google Earth 4 (KMZ) importer

Reported by: Philip Taylor Owned by:
Priority: If Time Permits Milestone:
Component: Atlas editor Keywords:
Cc: Patch:

Description

Google SketchUp can export a model into the KMZ format, which is a zip file and usually contains textures and a COLLADA mesh. Given that SketchUp is more intuitive and easy to learn than e.g. Blender, it could be quite nice for inexperienced modders if they could use it to get basic models into the game easily.

Attachments (6)

SketchUp_DAE_export_options.PNG (10.6 KB ) - added by fcxSanya 14 years ago.
hele_scout_tower_SketchUped.dae (104.0 KB ) - added by fcxSanya 14 years ago.
file passed through SketchUp
SketchUp_hele_scout_tower.PNG (26.8 KB ) - added by fcxSanya 14 years ago.
SketchUp_import_error.PNG (12.1 KB ) - added by fcxSanya 14 years ago.
SketchUp_missing_texture.PNG (6.5 KB ) - added by fcxSanya 14 years ago.
hele_scout_tower.dae (127.2 KB ) - added by fcxSanya 14 years ago.
original file from the game

Download all attachments as: .zip

Change History (21)

comment:1 by Philip Taylor, 14 years ago

Milestone: ReleaseUnclassified

Milestone Release deleted

comment:2 by fcxSanya, 14 years ago

SketchUp already can export straight into *.dae files (http://sketchup.google.com/support/bin/answer.py?hl=en&answer=114345), which is used by the game, as far I know. So this ticket probably no longer actual.

comment:3 by fcxSanya, 14 years ago

Keywords: review added

comment:4 by Philip Taylor, 14 years ago

Keywords: review removed

Someone should check whether exporting from SketchUp into the game actually works, or if it generates files that are incompatible with our Collada importer.

comment:5 by fcxSanya, 14 years ago

Results of a cursory testing:

  • I take the hele_scout_tower.dae model from binaries\data\mods\public\art\meshes\structural\
  • try to import it into SketchUp: got error (see SketchUp_import_error.PNG), click "Ok"
  • got "Missing Textures" warning (see SketchUp_missing_texture.PNG) - click "Ok"
  • model imports and I see SketchUp_hele_scout_tower.PNG
  • click on "export" command, there is options dialog for *.dae files (SketchUp_DAE_export_options.PNG)
  • replace hele_scout_tower.dae, run the game, click on Pyrgion to build and get:
    WARNING: FCollada warning 166: 
    Unable to retrieve node instance for scene node.
    FCollada message 175: COLLADA document loaded successfully.
    ERROR: Didn't find any objects in the scene
    ERROR: Couldn't find object to convert
    ERROR: Could not load mesh 'art/meshes/structural/hele_scout_tower.dae'
    ERROR: CObjectEntry::BuildVariation(): 
    Model art/meshes/structural/hele_scout_tower.dae failed to load
    

First difference, which I see in dae files is:

<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.0">

in game files vs

<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">

in SketchUp files.

In http://www.collada.org/2005/11/COLLADASchema there is document, which describe changes in 1.4.1 (COLLADA 1.4.1 Release Notes) from 1.4.0, maybe problem is somewhere in this changes

by fcxSanya, 14 years ago

by fcxSanya, 14 years ago

file passed through SketchUp

by fcxSanya, 14 years ago

by fcxSanya, 14 years ago

Attachment: SketchUp_import_error.PNG added

by fcxSanya, 14 years ago

by fcxSanya, 14 years ago

Attachment: hele_scout_tower.dae added

original file from the game

comment:6 by (none), 14 years ago

Milestone: Unclassified

Milestone Unclassified deleted

comment:7 by Andrew, 14 years ago

Milestone: Backlog

comment:8 by historic_bruno, 13 years ago

Testing with Sketchup 8.0, I don't see any way to create prop points or import existing ones. Importing a propped model into Sketchup, exporting to DAE, and re-importing to Blender will show there's no prop points. Also I can't get Sketchup to export a single mesh which is the only model format the game supports.

I'm a total novice when it comes to 3D software so I may be missing something obvious.

comment:9 by Philip Taylor, 12 years ago

Prop points can be meshes, if that helps - they just need the right name ("prop-*" or "prop_*", I think) and need to be attached to the main mesh. (3ds Max typically uses geometryless Dummy objects instead, and I guess Blender uses something similar, but a physical cube should work just as well when exporting.)

in reply to:  9 comment:10 by historic_bruno, 12 years ago

Replying to Philip:

Prop points can be meshes, if that helps - they just need the right name ("prop-*" or "prop_*", I think) and need to be attached to the main mesh. (3ds Max typically uses geometryless Dummy objects instead, and I guess Blender uses something similar, but a physical cube should work just as well when exporting.)

Ah, that's useful to know :) The bigger problem with SketchUp (at least version 8), is that even for a simple cube it exports multiple meshes, seemingly one for each face. Of course the game doesn't support this, but I had no luck importing the result into Blender 2.60a either - the normals seemed incorrect and one of the faces was translated. Apparently some people have luck with SketchUp > OBJ > Blender > DAE.

comment:11 by historic_bruno, 11 years ago

Some forum discussion about Sketchup models: http://www.wildfiregames.com/forum/index.php?showtopic=16982

comment:12 by historic_bruno, 11 years ago

Owner: Philip Taylor removed

comment:13 by Stan, 10 years ago

Is someone still working on this ? I think it's no longer relevant http://help.sketchup.com/en/article/140408 .

comment:14 by leper, 10 years ago

Resolution: invalid
Status: newclosed

Seems like SketchUp supports exporting to DAE now, so this ticket doesn't really apply even if SketchUp still exports multiple meshes.

comment:15 by leper, 10 years ago

Milestone: Backlog
Note: See TracTickets for help on using tickets.