Sunflow exporter update
-
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
http://www.sketchucation.com/forums/scf/viewtopic.php?f=153&t=1515 and on my site as well.
Regards, -
thanx Didier.
keep them coming.. -
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)
-
In the following thread in the Render Gallery I have posted some experiments using Didier's script + SunFlow...
http://www.sketchucation.com/forums/scf/viewtopic.php?f=82&t=3480
Regards, Ross
-
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
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!
-
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
-
Hello Adam, thank you for this...but
i have some errors with it:@unknownuser said:
D:/Program Files/gsu6/Plugins/su2sf.rb:1583: syntax error
Can you attach modif. script?
Thanks againuh janino tree-shader nodes...uh
-
Adam: bsp importer is done in Ruby ?
-
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
-
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..
Advertisement