SU2LUX Exporter for Sketchup 0.1-dev

Discussion related to the exporter plugin for SketchUp.

Moderators: Dade, Ratow, coordinators

SU2LUX Exporter for Sketchup 0.1-dev

Postby exvion » Thu Jan 28, 2010 8:01 pm

Hi.

It's development version. Tested on Sketchup 7.1 Free Windows XP 64-bit
I've included test scene to play with.

Features
- export meshes
- export materials: matte and light.
- setting editor (not completed)
- material editor (only select material type)

Anybody want to connect to the development?
jeanphi, can you put sources on src.luxrender.net?
The attachment greenshot_2010-01-29_03-54-14.png is no longer available

greenshot_2010-01-29_03-54-14.png

greenshot_2010-01-29_03-55-11.png


edit: after 12507 downloads, the plugin has been removed as newer versions are available. Please see the announcements here for the latest version: viewforum.php?f=35
Attachments
greenshot_2010-01-29_03-56-33.png
Last edited by exvion on Mon Jan 24, 2011 6:16 am, edited 2 times in total.
exvion
 
Posts: 84
Joined: Mon May 18, 2009 12:33 pm
Location: Russia, Vologda

Re: SU2LUX Exporter for Sketchup 0.1-dev

Postby jeanphi » Fri Jan 29, 2010 3:36 am

Hi,

Thanks for releasing this, how is it related to mimhotep work? Is it the same exporter? If not, can you both work together to merge those.
I'll be more than happy to make a sketchup exporter available from the repository, but I don't want to throw away work or frustrate any of you. We've waited so long for someone that would be able to do a sketchup exporter!

Jeanphi
jeanphi
Developer
 
Posts: 7943
Joined: Mon Jan 14, 2008 7:21 am

Re: SU2LUX Exporter for Sketchup 0.1-dev

Postby exvion » Fri Jan 29, 2010 4:15 am

It's my work. I have not seen the version of mimhotep. I will be glad to work with him together. Let's wait for mimhotep.
exvion
 
Posts: 84
Joined: Mon May 18, 2009 12:33 pm
Location: Russia, Vologda

Re: SU2LUX Exporter for Sketchup 0.1-dev

Postby Abel » Fri Jan 29, 2010 7:54 am

Great!

To get a head start with filing bug reports, I tested the script on OS X 10.5. The good news is that the script runs and generates .lxs files, the bad news is that LuxRender crashes before I can read the log to check for errors.

After updating SketchUp to 7.1, putting the script in Macintosh HD/Library/Application Support/Google SketchUp 7/SketchUp/plugins and running SketchUp, the LuxRender Exporter entry appears in the Plugins menu. The Render option asks me to point to luxrender.exe, which of course I don't have. Pointing to LuxRender.app seems to satisfy the script, but the program will not start automatically. However, .lxs files are generated and at first glance they look pretty much like they should.

The Settings option opens a window of only a few pixels by a few pixels big. It is so small that I haven't managed to drag a corner to show the contents. Therefore, I checked the Ruby script and changed the four values in line 910 to "100,100, 10,10". This helped and the Settings panel showed properly the next time I started LuxRender.

The LuxRender Material Editor opens, but only shows the texts "Materials:" and "Material type:" and some vertical grey bar. I must admit that I'm not totally familiar with SketchUp's material editor on OS X, but something doesn't seem to work the way it should.

The About window works.

Opening any generated .lxs file in Jens's latest build of LuxRender results in a "LuxRender Error: There was severe error reported ... " message, after which LuxRender quits. I suppose this is the result of a wrong setting or two, but I didn't get the chance to check the log. Attached is a scene that causes the error here.
Attachments
piramide2.lxs
(5.19 KiB) Downloaded 1140 times
User avatar
Abel
Developer
 
Posts: 1847
Joined: Sat Oct 20, 2007 8:13 am
Location: Stuttgart, Germany

Re: SU2LUX Exporter for Sketchup 0.1-dev

Postby jeanphi » Fri Jan 29, 2010 8:12 am

Hi,

Note that there's been an ugly bug in most latest builds, I'm not even sure there's one yet with the fix (and there might still be unfixed issues, I need to check the last report from Jens). You can launch luxrender from a console and use the -l flag to get the log output to the console (or use luxconsole).

Jeanphi
jeanphi
Developer
 
Posts: 7943
Joined: Mon Jan 14, 2008 7:21 am

Re: SU2LUX Exporter for Sketchup 0.1-dev

Postby exvion » Fri Jan 29, 2010 8:28 am

Abel, I will add the ability to work under Mac in the coming days.
I plan to use another library for creating UI for material and settings editor.
I attached test scene that work on Luxrender 0.6.1
Attachments
cornelbox.lxs
(23.15 KiB) Downloaded 790 times
exvion
 
Posts: 84
Joined: Mon May 18, 2009 12:33 pm
Location: Russia, Vologda

Re: SU2LUX Exporter for Sketchup 0.1-dev

Postby exvion » Fri Jan 29, 2010 1:05 pm

Abel, I updated SU2LUX - add mac support (find luxrender path)
In piramide2.lxs I added light manually
AttributeBegin
LightGroup "default"
LightSource "sunsky"
"float gain" [1.000000]
"vector sundir" [0.346844 0.346698 0.871493]

"float relsize" [1.000000]
"float turbidity" [2.200000]
AttributeEnd

Result
greenshot_2010-01-29_20-54-47.png
Attachments
su2lux-dev-20100129_2019-add_mac_support.zip
(54.77 KiB) Downloaded 1789 times
piramide2.lxs
(5.39 KiB) Downloaded 600 times
exvion
 
Posts: 84
Joined: Mon May 18, 2009 12:33 pm
Location: Russia, Vologda

Re: SU2LUX Exporter for Sketchup 0.1-dev

Postby Abel » Fri Jan 29, 2010 2:14 pm

Wow, that's very fast service! :) But as I had pointed the program to LuxRender.app earlier, it doesn't ask again and I don't know how to clear the preferences. Eventually, it would be nice to be able to set the path to LuxRender in the settings menu as some people may be running both a stable version and a development build.

The material panels shows a bit more information now; it displays the name of the one material I'm using.

It seems the only problem with the scene was indeed that there was no light source. I hope exporting the sun settings is high up your priority list. I have a couple more comments, but as this is a work in progress I'll save them for later.

Thanks for working on this and when you would like some more testing to happen, just ask.
User avatar
Abel
Developer
 
Posts: 1847
Joined: Sat Oct 20, 2007 8:13 am
Location: Stuttgart, Germany

Re: SU2LUX Exporter for Sketchup 0.1-dev

Postby exvion » Fri Jan 29, 2010 2:19 pm

Abel, remove file "luxrender_path.txt" in folder Sketchup/Plugins.

Work in progress.
exvion
 
Posts: 84
Joined: Mon May 18, 2009 12:33 pm
Location: Russia, Vologda

Re: SU2LUX Exporter for Sketchup 0.1-dev

Postby psor » Fri Jan 29, 2010 3:05 pm

@exvion

You could take a look at the SketchUp exporter that comes with Indigo.
It's also written in ruby and it might help you to understand how stuff
like textures and what not are working. Just a suggestion tho. ;o))




take care
psor
"The sleeper must awaken"
User avatar
psor
 
Posts: 293
Joined: Mon Oct 22, 2007 7:16 pm
Location: Berlin, GER

Next

Return to SU2LUX (SketchUp Exporter)

Who is online

Users browsing this forum: No registered users and 0 guests