sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Sunflow exporter update

    Scheduled Pinned Locked Moved Plugins
    10 Posts 6 Posters 12.1k Views 6 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Didier BurD Offline
      Didier Bur
      last edited by

      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,

      DB

      1 Reply Last reply Reply Quote 0
      • A Offline
        alexander
        last edited by

        thanx Didier.
        keep them coming..

        1 Reply Last reply Reply Quote 0
        • R Offline
          Ross Macintosh
          last edited by

          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) 😄

          1 Reply Last reply Reply Quote 0
          • R Offline
            Ross Macintosh
            last edited by

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

            301 Moved Permanently

            favicon

            (www.sketchucation.com)

            Regards, Ross

            1 Reply Last reply Reply Quote 0
            • AdamBA Offline
              AdamB
              last edited by

              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!
              Ambient Occlusion and 1 Directional

              Developer of LightUp Click for website

              1 Reply Last reply Reply Quote 0
              • R Offline
                Ross Macintosh
                last edited by

                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

                1 Reply Last reply Reply Quote 0
                • I Offline
                  ilay7k
                  last edited by

                  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 again

                  uh janino tree-shader nodes...uh

                  1 Reply Last reply Reply Quote 0
                  • tbdT Offline
                    tbd
                    last edited by

                    Adam: bsp importer is done in Ruby ?

                    SketchUp Ruby Consultant | Podium 1.x developer
                    http://plugins.ro

                    1 Reply Last reply Reply Quote 0
                    • AdamBA Offline
                      AdamB
                      last edited by

                      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


                      su2sf.rb

                      Developer of LightUp Click for website

                      1 Reply Last reply Reply Quote 0
                      • I Offline
                        ilay7k
                        last edited by

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

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post
                        Buy SketchPlus
                        Buy SUbD
                        Buy WrapR
                        Buy eBook
                        Buy Modelur
                        Buy Vertex Tools
                        Buy SketchCuisine
                        Buy FormFonts

                        Advertisement