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,
0
Didier Bur
User avatar
Didier Bur 
 

Re: Sunflow exporter update

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

thanx Didier.
keep them coming..
0

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
0

Ross Macintosh 
 

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
0

Ross Macintosh 
 

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
0
Developer of LightUp Click for website
User avatar
AdamB 
LightUp Support
LightUp Support
 

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
0

Ross Macintosh 
 

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
0

ilay7k 
 

Re: Sunflow exporter update

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

Adam: bsp importer is done in Ruby ?
0
SketchUp Ruby Consultant | Podium 1.x developer
http://plugins.ro
User avatar
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
0
Developer of LightUp Click for website
User avatar
AdamB 
LightUp Support
LightUp Support
 

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..
0

ilay7k 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: ball2012, ghanii_azzahro, hkknyrgnn, r222314 and 5 guests