Announcement

Collapse
No announcement yet.

[PLUGIN] "Remove C-G Materials" - Faster Render Times

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [PLUGIN] "Remove C-G Materials" - Faster Render Times

    Matthieu Noblet has very kindly developed a free SU ruby script which strips all materials assigned to groups and components and applies them instead directly to the geometry. This makes it much easier (and therefore much quicker and more reliable) for VfSU to "read" skp files. After running this ruby script in SU parse times can drop from as much as 20 minutes to a few seconds. When you run the script it takes a few seconds to process a small model (e.g. a villa, 100+ components, 20 materials) or a few minutes for a huge model (extremely complex scenes, thousands of components, 50+ materials). You only have to run it once for existing geometry and materials, so it's worth the wait for big models... just remember afterwards to always apply materials directly to geometry not groups or components so you don't have to run the ruby script again.

    If any of you are not familiar with using SU ruby scripts, just download the zip file below, unzip it and save the "Remove_CG_mat.rb" file into the "Plugins" folder in your Google SketchUp program files. The next time you open an SU session it will be accessible under the "Plugins" menu under the name "Remove C-G Materials".

    Four things to note:

    Firstly, IT DOES NOT DELETE any of your materials, it just reassigns them from the outside of groups and components to any geometry within that was assigned the default SU material. As such you won't actually see any difference in your model after running it, all UV mapping should be exactly as it was before.

    Secondly, because of the very nature of the script after running it you should not apply materials to default faces of groups or components just by applying a material to them. It's a shame to lose this useful feature of SU modelling, but if you use VfSU often it's a very worthwhile sacrifice to make for a huge increase in parsing speed and reliability.

    Thirdly, it doesn't perform miracles- if your skp file is huge, with lots of materials and thousands of groups VfSU is still going to take quite a while to parse SU. What this ruby script really helps with is VfSU taking a long time just to parse even relatively small files.

    Finally, as with many ruby scripts, this is not created, endorsed or tested by Google or ASGvis in any way and therefore you use at your own risk. Although hundreds of users have downloaded it and haven't reported a single problem or bug, you run it at your own risk. If you're paranoid, "save as" your skp file before running it!

    The zip file containing the ruby script can be downloaded here.

    If you'd like to say thanks to Matthieu for this very generous contribution to the VfSU community, post here, he's a good guy and deserves some thanks!

    Jackson
    SU 2018 + VfSU 4.0

  • #2
    Re: Very Useful Ruby Script for ALL VfSU users

    Hi Jackson! Thank you for the news and thank you to Matto of course!
    Does it work for every Vray version (the original also?) and every Sketchup version?
    Thanks man
    V

    Comment


    • #3
      Re: Very Useful Ruby Script for ALL VfSU users

      Hi Vinch,

      It doesn't actually interact with VfSU; it only makes changes to the SU file so it should work with any VfSU version. In fact it may even be useful for all SU render plugins.
      I'm running it in SU7, the original was written for SU6 and wouldn't load in SU7, but Matthieu updated this one. I'm not sure if that means it will not load in older versions of SU, but it should be perfectly safe to copy the .rb file into whichever SU version you're using and see if it loads properly. If not, it won't do any harm, just delete it.

      Jackson
      SU 2018 + VfSU 4.0

      Comment


      • #4
        Re: Very Useful Ruby Script for ALL VfSU users

        Hi Jackson!
        I downloaded the rp yesterday, I still have SU6 and the script runs perfectly.
        Thank you again
        Vincenzo

        Comment


        • #5
          Re: Very Useful Ruby Script for ALL VfSU users

          Thanks Jackson!

          Comment


          • #6
            Re: Very Useful Ruby Script for ALL VfSU users

            im sorry.. but what does this script actually do?
            is it something that would speed up another something?
            or maybe something like a vray proxy?

            Comment


            • #7
              Re: Very Useful Ruby Script for ALL VfSU users

              It removes all materials that is applied to components or groups. Optionally, it transfers the material to the actual geometry. This speeds up V-Ray's scene parsing time as groups and components with materials applied to them slows it down.
              Please mention what V-Ray and SketchUp version you are using when posting questions.

              Comment


              • #8
                Re: Very Useful Ruby Script for ALL VfSU users

                trac006,

                I explained what this ruby script does and why it's useful, in detail and as clearly as I could in the first sentence of the first post. If it's a language problem, please say exactly what it was that you didn't understand so I can edit it. If it had anything to do with proxies (which VfSU currently doesn't support) I would have said so.

                Jackson

                EDIT: I edited my first post so the download link is direct from Rapidshare, no need to register at Sketchucation.
                SU 2018 + VfSU 4.0

                Comment


                • #9
                  Re: Ruby Script for ALL VfSU users- Reduces Render Time

                  hi jackson ,
                  i am always upset about the rendering time ...it will be great help for me if it actually works...and i hope it will...any way it is apprciable that some guys like u r willing 2 help.....thank u very much...

                  Comment


                  • #10
                    Re: Ruby Script for ALL VfSU users- Reduces Render Time

                    hi Jackson,

                    i really want to try this script, this would really help me save time and is a very great news for all vfsu with its main function to reduce render time, but is there any place where to download other than rapidshare? i have trouble using rapidshare here in my country. thanks anyway, hope to hear any news or any update regarding my issue. thanks and more power.

                    seed_sisam

                    Comment


                    • #11
                      Re: Ruby Script for ALL VfSU users- Reduces Render Time

                      You can also download it from the Sketchucation Forums, though you'll have to register first.

                      http://www.sketchucation.com/forums/...102323#p102323
                      SU 2018 + VfSU 4.0

                      Comment


                      • #12
                        Re: Ruby Script for ALL VfSU users- Reduces Render Time

                        thanks a lot for your great job...
                        it works perfectly, and makes me earn a lot of time

                        Comment


                        • #13
                          Re: Ruby Script for ALL VfSU users- Reduces Render Time

                          Really? I use it and has cleared up to 450 materials, but the time vray needs before starting to render remains the same (about 10 minutes, 60 mb file)

                          Comment


                          • #14
                            Re: Ruby Script for ALL VfSU users- Reduces Render Time

                            Its not a "magic" script, and depending on what your setup is it may or may not help in a significant manner. If you're already applying materials directly to geometry and not on top of components/groups, then the increase will be minimal.
                            Damien Alomar<br />Generally Cool Dude

                            Comment


                            • #15
                              Re: Ruby Script for ALL VfSU users- Reduces Render Time

                              Yes,
                              I always apply materials directly to the mesh (painting both faces) and despite the plugin , parsing times are still way too long.

                              Will there be an updated Vray version soon that fixes this?

                              Comment

                              Working...
                              X