SketchUcation Plugin Store

 

 

Sunflow exporter update

Sunflow exporter update

Postby Didier Bur » Tue Dec 04, 2007 7:03 am

Hi all,
I've uploaded an update of my Sunflow exporter.
Supports 2 UI modes, camera types, background, render and gobal illumination settings, lights, save/load parameters within SKP.
Can be found here
viewtopic.php?f=153&t=1515 and on my site as well.
Regards,
Didier Bur (Bytes Farmer)
Ecole Nationale Supérieure d'Architecture de Nancy (F)
http://rld.crai.archi.fr/rubylibrarydepot/
User avatar
Didier Bur
 
Posts: 1238
Joined: Wed Nov 14, 2007 10:07 pm
Location: Nancy, France
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: Sunflow exporter update

Postby alexander » Sat Dec 22, 2007 9:38 pm

thanx Didier.
keep them coming..
alexander
 
Posts: 187
Joined: Mon Oct 22, 2007 1:31 pm
Name: Alexander

Re: Sunflow exporter update

Postby Ross Macintosh » Sun Dec 23, 2007 12:36 pm

I thought I'd add a link to the SunFlow site...
http://sunflow.sourceforge.net/
Check out the Gallery!

For those unfamiliar with it, Sunflow is a free rendering system. Because it is java-based it can be used by windows users, mac users, and linux users. It supports multithreading so you can put those new multiple-core procesors to work.

Here is the SunFlow FAQ's: http://home.comcast.net/~gamma-ray/sf/sunflow-faq.htm
Note that it gives instructions on how to make a shortcut to open the application from your desktop.

Also be sure to see Didier's instructions found in his download.



Thanks Didier for your generous work to make this renderer an option for the sketchup community.

Regards, Ross (Didier Fan) :D
Ross Macintosh
 
Posts: 1043
Joined: Tue Nov 13, 2007 2:34 am
Location: Prince Edward Island, Canada - "The Gentle Island"
Name: Bossy Rossy

Re: Sunflow exporter update

Postby Ross Macintosh » Mon Dec 24, 2007 1:50 pm

In the following thread in the Render Gallery I have posted some experiments using Didier's script + SunFlow...

viewtopic.php?f=82&t=3480

Regards, Ross
Ross Macintosh
 
Posts: 1043
Joined: Tue Nov 13, 2007 2:34 am
Location: Prince Edward Island, Canada - "The Gentle Island"
Name: Bossy Rossy

Re: Sunflow exporter update

Postby AdamB » Thu Dec 27, 2007 2:57 pm

Been having a blast with Sunflow. It *is* very sad the developers put so little effort into helping getting started / docs but hey, I haven't had as much fun since playing with Renderman when it first came out.

Not sure how I fold changes into the exporter, so I'll post the diff changes to "su2sf.rb" here to support textures and UVs

Code: Select all
629c629,638
<     @stream.print "\n\tuvs none" # TODO fix uv mapping
---
>
> #    @stream.print "\n\tuvs none" # TODO fix uv mapping
> # AMB added
>     @stream.print "\n\tuvs vertex"   
>     meshes.each do |m|
>       m.uvs(1).each do |p|
>         @stream.print "\n\t\t#{PRECISION % (p.x)} #{PRECISION % (p.y)}"
>       end
>     end   
> #####
680c689,710
<         else
---
> # AMB added
>         elsif mat.texture
>                       # check which extension it is 
>                       filepath = File.dirname(mat.texture.filename) + "/"
>                       filename = File.basename(mat.texture.filename)
>                       filename = filename.split(".")[0] if filename.split(".").length > 1
>
>                       [".jpg",".png",".tif",".bmp",".gif",".tga"].each do |ext|
>                               testfile = filepath + filename + ext
>                               if File.exists?(testfile)
>
>                         @stream.print "shader {",
>                           "\n\tname \"#{name}\"",
>                           "\n\ttype diffuse",
>                           "\n\ttexture \"#{testfile}\"",
>                           "\n}\n\n"
>                         return name
>
>                               end
>                       end       
> ######
>          else


Adam

PS And here's a snapshot of a Sunflow rendering of Quake exported from Sketchup... because I can in case you ask!
quake.jpg
Please, register (free) to access all the attachments on the forums.
Developer of LightUp http://www.light-up.co.uk
User avatar
AdamB
LightUp
 
Posts: 747
Joined: Wed Dec 12, 2007 10:49 am
Location: Brighton, UK
Name: AdamB

Re: Sunflow exporter update

Postby Ross Macintosh » Thu Dec 27, 2007 3:17 pm

Hi Adam -- I'm not quite sure what I'm looking at in your posted image. It is great that you figured out support for SU textures & UV's. Hopefully Didier can add your code into the next version of the SU2SF script.

My hope is that eventually we can use the plugin to define material attributes like shininess to specific SU materials without needing to rename those materials and edit the exported file as is now necessary.

Regards, Ross
Ross Macintosh
 
Posts: 1043
Joined: Tue Nov 13, 2007 2:34 am
Location: Prince Edward Island, Canada - "The Gentle Island"
Name: Bossy Rossy

Re: Sunflow exporter update

Postby ilay7k » Thu Dec 27, 2007 4:31 pm

Hello Adam, thank you for this...but
i have some errors with it:
D:/Program Files/gsu6/Plugins/su2sf.rb:1583: syntax error

Can you attach modif. script?
Thanks again
---
uh janino tree-shader nodes...uh
ilay7k
 
Posts: 312
Joined: Wed Nov 14, 2007 3:49 pm
Location: Shymkent, Kazakhstan
Name: Ilya Shpilkin

Re: Sunflow exporter update

Postby tbd » Thu Dec 27, 2007 4:34 pm

Adam: bsp importer is done in Ruby ?
SketchUp Ruby Consultant | Podium 1.x developer
http://plugins.ro
User avatar
tbd
 
Posts: 1018
Joined: Wed Nov 14, 2007 10:47 am
Location: Romania
Name: TBD

Re: Sunflow exporter update

Postby AdamB » Thu Dec 27, 2007 5:15 pm

ilay7k: How did you apply the changes? I ask because line 1583 is way away from the small changes I did.. I've attached the version I have.. I'm just wary of having N versions of this exporter floating around - better Didier folds in these into his..

TBD: yes, ruby script to read quake (using BitStruct). Needed some test data to play with :D

Adam
Please, register (free) to access all the attachments on the forums.
Developer of LightUp http://www.light-up.co.uk
User avatar
AdamB
LightUp
 
Posts: 747
Joined: Wed Dec 12, 2007 10:49 am
Location: Brighton, UK
Name: AdamB

Re: Sunflow exporter update

Postby ilay7k » Thu Dec 27, 2007 5:25 pm

Thank you...

i use this - 28.08.07: Edited by D. Bur: v 1.1, added lights support, save/load parameters.
---
So i change string2string by Akelpad/i modify too, add some mats-syntax(old version of this forum had some my tests)
---
No way - SkipyMan - renderman connection...i prefer free solution like sf or aqsis..
ilay7k
 
Posts: 312
Joined: Wed Nov 14, 2007 3:49 pm
Location: Shymkent, Kazakhstan
Name: Ilya Shpilkin

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Artisan Organic Toolset - a set of powerful organic modeling tools.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012


Return to Plugins

Who is online

Users browsing this forum: Ahamd, Anton_S, Chris Fullmer, dmatho, Google Feedfetcher, jcabreraesc, JoshCham, lukasaurus, mitcorb, thanhnugent, thomthom and 9 guests