To export a vector to Collada
, you can choose any free versions of SketchUp. I give you this link because here you can find a lot of versions, begining with 5. (I've tested only the following versions: 7, 8, and Make. The Make version has enabled the Pro version, for eight hours of work).
To be able to load your kml files in SketchUp, you may use the KML Tools plugin. (Also, you need to register yourself as a basic forum member, to be able to download this free plugin). I have used the beta version with no problems (ae_KMLTools_2.0.0-beta.rbz
). just rename the rbz
extension to zip
and extract the archive content into the SketchUp plugin directory:
Now, I'm going back to QGIS to show you my vector layer:
Just wait a moment to save my layer as a kml
file:
Ok, it's done! Please, open SketchUp and specify your location (otherwise your import will fail):
After grabbing your location is done you may begin the kml
import:
You will see a lot of import options, just press OK, and choose the kml file to be imported. Wait until the import is done and you'll see a summary report:
Well, the kml import is finished and you may start the Collada
export:
You may choose your desired options, press Ok and your dae
it's ready!
Some considerations:
You must know that it is possible to import a shapefile from QGIS into SketchUp
Also, there is the possibility to import dxf in SketchUp
If using the first link I gave you in this post, you can download older SketchUp versions with dxf import embedded, removed from the current versions (I didn't test it).
Best Answer
I can give you only a hint concerning the offset of the blades because i faced the same problem.
What I did was getting google Sketch up and downloaded a model from their warehouse. I then checked if the model is placed on the center of the 3 axes and if not adjusted the model accordingly. After this you can export the model as colada *.dae file and thus make it usable in threejs. You might need to set the rotation and scale values inside the plugin to fit the model to your needs.
Concerning the animation i found this example on the threejs site. I will give it a try and keep you updated!