Google Search

Showing posts with label 3D. Show all posts
Showing posts with label 3D. Show all posts

Thursday, December 17, 2009

XAML exporter for Sketchup - Round 2

I just finished fixing some issues with the Google Sketchup Xaml Exporter.
The updated file can be downloaded here:

https://docs.google.com/leaf?id=0BxinGAr39Pd0ODQ2Y2IyZDUtZWNkYi00YTU2LTk3MmMtNDg4NmMzZDhlZjVh&hl=en

The new version fixes:
  • Different materials with the same base texture filename caused only one texture file to be created, thus wrong texture to appear.
  • Group transformations were ignored.
  • Back facing materials now supported.

Enjoy!


UPDATE:
I re-uploaded the file, this time under a bit different name. It seems that Vista shows me one version of the file, and even loads it correctly, while it shows a totally different file to the world.
I was told that the file I uploaded is not the correct file, and when checking locally, I saw that the size is really different. Strange, even rebooting didn't help. Oh well, saving as (and even copying!) to another local folder solved it, but I still don't understand why it happened.


Sunday, September 27, 2009

Google SketchUp Xaml exporter

I wanted to build a WPF 3D application, that will present models. I didn't want to include code that loads different formats and creates WPF models at runtime, and I wanted an easy-to-use, free modeler.
Blender is free, but I find it very cumbersome. Google SketchUp is very easy to use, but was lacking a way to export to XAML.
Fortunately, SketchUp has a very easy-to-use Ruby API that I could use to build an exporter.
It currently exports the meshes separated by materials, and grouped together in geometry groups according to the same hierarchy structure of the model. Materials include front faces only (i.e. no BackMaterials) and support solid color and textures. If no material is given, a solid white material is used.
While it's not perfect, it does a pretty good job. Feel free to use and please send feedback,
http://cid-8fbcae0caa96d592.skydrive.live.com/self.aspx/.Public/xamlExporter.rb

UPDATE:
I updated the plugin. Check out the follow-up post: XAML exporter for Sketchup - Round 2.