by 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
-
- 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
-
by 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
by 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.htmNote 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) 
-
Ross Macintosh
-
- Posts: 1043
- Joined: Tue Nov 13, 2007 2:34 am
- Location: Prince Edward Island, Canada - "The Gentle Island"
- Name: Bossy Rossy
-
by 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=3480Regards, Ross
-
Ross Macintosh
-
- Posts: 1043
- Joined: Tue Nov 13, 2007 2:34 am
- Location: Prince Edward Island, Canada - "The Gentle Island"
- Name: Bossy Rossy
-
by 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.
-

AdamB
- LightUp
-
- Posts: 747
- Joined: Wed Dec 12, 2007 10:49 am
- Location: Brighton, UK
- Name: AdamB
by 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
-
by 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
by tbd » Thu Dec 27, 2007 4:34 pm
Adam: bsp importer is done in Ruby ?
-

tbd
-
- Posts: 1018
- Joined: Wed Nov 14, 2007 10:47 am
- Location: Romania
- Name: TBD
-
by 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  Adam
Please, register (free) to access all the attachments on the forums.
-

AdamB
- LightUp
-
- Posts: 747
- Joined: Wed Dec 12, 2007 10:49 am
- Location: Brighton, UK
- Name: AdamB
by 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
Return to Plugins
|