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

    Fractal Tree Maker for SketchUp - Free add-on

    Scheduled Pinned Locked Moved Extensions & Applications Discussions
    extensions
    158 Posts 44 Posters 45.1k Views 44 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.
    • Al HartA Offline
      Al Hart
      last edited by

      @anssi said:

      I tried running it standalone too, and it was very much faster, the standard tree only took a couple of minutes. Could it be that the once hyped Hyperthreading in this case really makes a difference? What are the machine specs of others that complained of slowness in this thread?

      Is there a way of saving the PNG from the standalone?

      Anssi

      First, let me make sure I have this right.

      There are two separate programs as part of the RpTreeMaker process.

      TreeEditor.exe defines the tree parameters.
      RpTreeMaker.exe creates the image.

      When you run TreeEditor.exe in stand alone mode, does it run considerable faster then when you run it from SketchUp?

      There is a Render button in TreeEditor.exe. Does it render faster when run stand-alone?

      Also, further down in this posting I explain how to run RpTreeMaker.exe. Does it ruin faster in stand-alone mode?

      If so, I may have to learn something about threading...


      One difference, though may be the tree parameters. If you run TreeEditor.exe and pass it the name of a .ArPlant file, then it wil start with that .ArPlant file and save it when done. This may be slower than when you run it with no parameters, and use the default tree settings.

      Try it with: RpTreeMaker %TEMP%\RpArPlant.ArPlant

      It will load and then resave the RpArPlant.ArPlant plant definition file. One "problem" is that when it saves the file, it will automatically save a thumbnail into it which takes some time.

      After defining your .ArPlant file, you can create the bitmap image by running:

      RpTreeMaker.exe %TEMP%\RpTreeMakerArgs.txt

      This will load the .ArPlant file and save the tree image. The "reverse engineer"s among us can figure out how to modify the args file to create different images, etc.

      After the image is created, a third file, RpTreeMakerParams.txt is created which has the path of the image, and the size of the tree.

      Al Hart

      http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
      IRender nXt from Render Plus

      1 Reply Last reply Reply Quote 0
      • S Offline
        Sushij
        last edited by

        Ok, I must be doing something wrong with Podium. When I make a tree, explode it twice, and put a face below it to act as a surface, the shadow doesn't work. The tree is a tree with a black background. So, if anyone has any suggestions about how to fix this, it would be greatly appreciated. Thanks.

        1 Reply Last reply Reply Quote 0
        • AnssiA Offline
          Anssi
          last edited by

          @unknownuser said:

          When you run TreeEditor.exe in stand alone mode, does it run considerable faster then when you run it from SketchUp?

          No, but it starts faster

          @unknownuser said:

          There is a Render button in TreeEditor.exe. Does it render faster when run stand-alone?

          Yes, very much faster (like 10x)

          @unknownuser said:

          Also, further down in this posting I explain how to run RpTreeMaker.exe. Does it ruin faster in stand-alone mode?

          No, it didn't ruin anything, and it rendered very fast, even faster than my other machine did within SU.

          Anssi

          securi adversus homines, securi adversus deos rem difficillimam adsecuti sunt, ut illis ne voto quidem opus esset

          1 Reply Last reply Reply Quote 0
          • Al HartA Offline
            Al Hart
            last edited by

            @anssi said:

            @unknownuser said:

            Also, further down in this posting I explain how to run RpTreeMaker.exe. Does it ruin faster in stand-alone mode?

            No, it didn't ruin anything, and it rendered very fast, even faster than my other machine did within SU.

            Anssi

            Actually that was supposed to say "run" faster, not "ruin" faster.

            Can you look at your performance with Task Manager and make sure that you have not reached your memory limit when you start the TreeMaker process.

            I'll take a look and make sure that SketchUp is idle while the tree maker is running.

            Al

            Al Hart

            http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
            IRender nXt from Render Plus

            1 Reply Last reply Reply Quote 0
            • N Offline
              nomeradona
              last edited by

              thanks, im downloading it now.

              visit my blog: http://www.nomeradona.blogspot.com

              1 Reply Last reply Reply Quote 0
              • Al HartA Offline
                Al Hart
                last edited by

                Let us know what you are able to do.

                We will have a new version Monday, with the ability to rotate the trees, re-render them before saving the image, and with some higher image resolutions.

                Al Hart

                http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
                IRender nXt from Render Plus

                1 Reply Last reply Reply Quote 0
                • Alan FraserA Offline
                  Alan Fraser
                  last edited by

                  Fast work, Al. Much appreciated.
                  Now all you have to do is build a version for yourself with a batch render process that outputs an image every 1 degree or so of rotation, compile them into a RPC file and you'd have something to rival ArchVision. 😉

                  3D Figures
                  Were you required to walk 500 miles? Were you advised to walk 500 more?
                  You could be entitled to compensation. Call the Pro Claimers now!

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    Stu
                    last edited by

                    Thanks Al, looks like this is turning into a great app. And Im looking forward to the higher resolutions 👍

                    Some more free leaves at TurboSquid http://www.turbosquid.com/FullPreview/Index.cfm/ID/287061

                    [You will need to rotate the leaves, otherwise they stick to the branches back to front 😄]

                    http://www.landesign.com.au

                    1 Reply Last reply Reply Quote 0
                    • AnssiA Offline
                      Anssi
                      last edited by

                      @al hart said:

                      Actually that was supposed to say "run" faster, not "ruin" faster.

                      Can you look at your performance with Task Manager and make sure that you have not reached your memory limit when you start the TreeMaker process.

                      I'll take a look and make sure that SketchUp is idle while the tree maker is running.

                      Al

                      I understood about "ruin"-I just didn't want to spoil my little joke with smilies.

                      Actually, I think you might have nailed it. Looking at Task Manager when SU and RPTreeMaker are running shows that they don't use very much memory, but together they use about 100% of the processor, with SU keeping more than 95%, and the RP TreeMaker process somewhere at 2-3%. Of course it might just be the Windows way of displaying things.

                      So it might be that this only occurs with a single-threaded processor, as it works much better on a slightly slower HT computer.

                      Cheers,

                      Anssi

                      securi adversus homines, securi adversus deos rem difficillimam adsecuti sunt, ut illis ne voto quidem opus esset

                      1 Reply Last reply Reply Quote 0
                      • Al HartA Offline
                        Al Hart
                        last edited by

                        @anssi said:

                        @al hart said:

                        Actually, I think you might have nailed it. Looking at Task Manager when SU and RPTreeMaker are running shows that they don't use very much memory, but together they use about 100% of the processor, with SU keeping more than 95%, and the RP TreeMaker process somewhere at 2-3%. Of course it might just be the Windows way of displaying things.

                        So it might be that this only occurs with a single-threaded processor, as it works much better on a slightly slower HT computer.

                        Cheers,

                        Anssi

                        Oof - you're right. The way we are calling RpTreeMaker from SketchUp causes SketchUp to keep using machine cycles. And since RpTreeMaker runs at a low priority when it is rendering, SketchUp steals all the cycles from a single processor machine.

                        In the display below, on a dual processor machine, SketchUp is using 1/2 and the TreeMaker the other 1/2.

                        process_times.png

                        Here is how we are calling it now:

                        system($path + "\\TreeEditor.exe")
                        

                        We must have found this in the Ruby manual somewhere, but it obviously is not a good way to call a .exe from SketchUp.

                        If any other ruby programmers are out there, give me some hints on a better way to call a .exe from SketchUp. Meanwhile - I will look around.

                        Al Hart

                        http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
                        IRender nXt from Render Plus

                        1 Reply Last reply Reply Quote 0
                        • Al HartA Offline
                          Al Hart
                          last edited by

                          We found a way to have SketchUp wait for the tree maker without using up 1/4, 1/2 or almost all of you processing power.

                          Look for a new version Monday.

                          Al Hart

                          http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
                          IRender nXt from Render Plus

                          1 Reply Last reply Reply Quote 0
                          • M Offline
                            matthew.robert
                            last edited by

                            Anyone else getting the error...

                            Error Loading File RpTreeMaker_loader.rb
                            126; The specified module could not be found.   - C;/Program Files/Google/Google SketchUp 7/Plugins/Win32API.so
                            

                            after installing the tree maker with the "Click here to install RpTreeMaker 2_HK24tm.exe" file and starting up SketchUp?

                            Any thoughts?

                            1 Reply Last reply Reply Quote 0
                            • J Offline
                              Jorgensen
                              last edited by

                              I can't figure out how to make it work with VRAY 😞

                              Does it export a aplha channel ?

                              sketchup pro 2016 16.1.1449 64 bit | windows 10 pro | i7-3770k @3.5 GHz | 16gb ram | gtx 780 ti / gtx 980 ti | nvidia driver 368.39

                              1 Reply Last reply Reply Quote 0
                              • J Offline
                                Jorgensen
                                last edited by

                                Ah. I found a solution.

                                sketchup pro 2016 16.1.1449 64 bit | windows 10 pro | i7-3770k @3.5 GHz | 16gb ram | gtx 780 ti / gtx 980 ti | nvidia driver 368.39

                                1 Reply Last reply Reply Quote 0
                                • Al HartA Offline
                                  Al Hart
                                  last edited by

                                  @tobobo said:

                                  Al,

                                  Could you add in standard tree shapes as defaults?

                                  One of the reasons we released RpTreeMaker as a free product is that we are hoping some SketchUp users will help us create some standard trees and save them on the 3D warehouse to share with other users.

                                  The definition for each tree can be accessed as a .ArPlant file, and then used as the starting point for changes, or for other trees.

                                  This doesn't work yet because:

                                  1. If you use custom leaves or bark, we need to save them in the .SKP file as well. (We plan to do this, but haven;t done it yet). That way the .SKP file for a tree will have everything it needs to recreate the tree, or save similar trees.

                                  2. We need to write a function to save the .ArPlant file, which defines a tree, from the .SKP file.

                                  We will get to these things soon. Currently we are trying to get the new version released which allows rotation of the trees and higher resolutions. We should have a new version in the next day or so,

                                  Also, we are working on a shadow mask for the tree which will make useful shadows in SketchUp, and work better with renderers like Podium and Vray. (The IRender rendering engine already re-processes the trees creating new fractal trees during the rendering process).

                                  Al Hart

                                  http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
                                  IRender nXt from Render Plus

                                  1 Reply Last reply Reply Quote 0
                                  • Al HartA Offline
                                    Al Hart
                                    last edited by

                                    @matthew.robert said:

                                    Anyone else getting the error...

                                    Error Loading File RpTreeMaker_loader.rb
                                    > 126; The specified module could not be found.   - C;/Program Files/Google/Google SketchUp 7/Plugins/Win32API.so
                                    

                                    after installing the tree maker with the "Click here to install RpTreeMaker 2_HK24tm.exe" file and starting up SketchUp?

                                    Any thoughts?

                                    C:/Program Files/Google/Google SketchUp 7/Plugins/Win32API.so should have been installed as part of RpTreeMaker.

                                    1. Is SketchUp installed on your machine in: C:\Program Files\Google\Google SketchUp 7

                                    2. Did SketchUp put RpTreeMaker_loader.rb into C:\Program Files\Google\Google SketchUp 7\plugins or did you copy it there by hand?

                                    3. Uninstall RpTreeMaker, and reinstall it being careful to select the proper location for SketchUp.

                                    4. After reinstalling it verify that RpTreeMaker_loader.rb and Win32API.so are located in the SketchUp plugins folder.

                                    Al Hart

                                    http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
                                    IRender nXt from Render Plus

                                    1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      matthew.robert
                                      last edited by

                                      @al hart said:

                                      1. Is SketchUp installed on your machine in: C:\Program Files\Google\Google SketchUp 7

                                      2. Did SketchUp put RpTreeMaker_loader.rb into C:\Program Files\Google\Google SketchUp 7\plugins or did you copy it there by hand?

                                      3. Uninstall RpTreeMaker, and reinstall it being careful to select the proper location for SketchUp.

                                      4. After reinstalling it verify that RpTreeMaker_loader.rb and Win32API.so are located in the SketchUp plugins folder.

                                      Hi Al, tried all those with no luck. For 2, I did not do any manual copying. My SketchUp Pro install is about as clean as it can get BUT I am running it on XP SP3 with Parallels ver. 4 (as a non-bootcamp VM). I have Vista installed via Bootcamp, I will give that a shot.

                                      I will attach the files that got installed in my plugins folder. They are either encrypted, corrupt, or both (maybe?). Should a separate treeeditor.exe file be installed somewhere, I am not seeing that.

                                      Matt


                                      files.zip

                                      1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        matthew.robert
                                        last edited by

                                        I must be missing some important step... I had the exact same issue on my Bootcamp Vista partition, which for all practical purposes is a different os its own partitioned HD space.

                                        If someone were to send me the necessary files, could I just move them into place manually?

                                        Matt

                                        1 Reply Last reply Reply Quote 0
                                        • Al HartA Offline
                                          Al Hart
                                          last edited by

                                          @matthew.robert said:

                                          I must be missing some important step... I had the exact same issue on my Bootcamp Vista partition, which for all practical purposes is a different os its own partitioned HD space.

                                          If someone were to send me the necessary files, could I just move them into place manually?

                                          Matt

                                          1. Try typing these two lines into the Ruby Console:

                                          require 'Win32API'

                                          RegCloseKey = Win32API.new('advapi32', 'RegCloseKey', 'L', 'L')

                                          (copy and paste them into the ruby console)

                                          1. Are you running on a Mac?

                                          Al Hart

                                          http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
                                          IRender nXt from Render Plus

                                          1 Reply Last reply Reply Quote 0
                                          • M Offline
                                            matthew.robert
                                            last edited by

                                            Ok, tried that. I had to do each line separately, would've that made a difference? Attached is a screen shot of the results.

                                            Yup on running a Mac. I have XP running as a VM and Vista that I occasionally boot into natively. Think that might be causing the issues? Its a unibody MBP.

                                            Matt


                                            Picture 1.png

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 8 / 8
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement