Announcement

Collapse
No announcement yet.

Vray post processing slow

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

  • Vray post processing slow

    Hi guys,

    Question about the Vray rendering.
    The process BEFORE it renders takes very long on my i5 7600k computer. Any idea how i can reduce this? Often i get the notification, computer not responding

  • #2
    This is the model btw

    https://ufile.io/w8q50

    Comment


    • #3
      I'm assuming there are a lot of components in the model? Care to post a screen cap of the sketchup statistics?

      Comment


      • #4
        Sure. Here it is. I already purged it
        Attached Files

        Comment


        • #5
          Bump Bumpie

          Comment


          • #6
            Hello,

            The issue appears to be stemming from the painting next to the washing machine. Simply remove this component from your project and it should render without any slowdown.

            Kind regards,
            Peter
            Peter Chaushev
            V-Ray for SketchUp | V-Ray for Rhino | Product Owner
            www.chaos.com

            Comment


            • #7
              Thnx for the response. It is a mirror though. Any idea go get a reflection without the wall i am hiding??

              Comment


              • #8
                If you want the wall to not appear in reflections, simply do the following:
                1. Create an Override material.
                2. Slot the original wall material as base.
                3. Create a new material and set its refraction to max. value.
                4. Set the Refract Material in the MtlOverride to the newly created material.
                5. Apply the Override Material to the wall object.

                For further info, please visit https://docs.chaosgroup.com/display/...7C+MtlOverride

                Kind regards,
                Peter
                Peter Chaushev
                V-Ray for SketchUp | V-Ray for Rhino | Product Owner
                www.chaos.com

                Comment


                • #9
                  Hey Peter, i WANT the wall to appear in the reflection but hiding it.
                  I am doing this because i can have a better view without the wall. But i want to reflect it in the mirror, i could use paint to edit it but got any other thoughts?
                  Also, removing the mirror and the painting didnt speed up the post process of rendering

                  Comment


                  • #10
                    Please make sure the painting component is not only removed from the viewport, but the whole component is removed from the project. As you can see, it takes over 90 seconds to load:

                    Click image for larger version

Name:	erroneous_component.png
Views:	78
Size:	32.6 KB
ID:	959267

                    Additionally, try pasting this in the Ruby console (Window > Ruby Console) before you render:

                    Code:
                    if live_scene = VRay::LiveScene.active
                        materials = live_scene.model.materials
                        model_dirname = File.dirname(live_scene.model.path)
                        model_name = File.basename(live_scene.model.path, ".skp")
                        texture_workspace = "#{model_dirname}/#{model_name}_Textures"
                        FileUtils.mkdir_p(texture_workspace)
                        VRay::Callbacks.without{
                            live_scene.grep(:BitmapBuffer).each{|bitmap_buffer|
                                next if File.exist?(live_scene.find_file(bitmap_buffer[:file]))
                                display_name = bitmap_buffer.name[/[^\/][^\/]*/]
                                if skp_material = materials.find{|m| m.display_name == display_name}
                                    if texture = skp_material.texture
                                        bitmapbuffer_basename = File.basename(bitmap_buffer[:file])
                                        texture_basename = File.basename(texture.filename)
                                        if texture_basename == bitmapbuffer_basename
                                            new_file = "#{texture_workspace}/#{texture_basename}"
                                            texture.write(new_file)
                                            bitmap_buffer[:file] = new_file
                                        end
                                    end
                                end
                            }
                        }
                    end
                    Regarding the wall, simply use the same MtlOverride I mentioned in my previous post. Create a couple of materials for the wall - the 1st one fully refractive, the second one the same as the other walls.
                    Set the first one as base in the Override material, and the second one as Reflective.

                    Kind regards,
                    Peter Chaushev
                    Peter Chaushev
                    V-Ray for SketchUp | V-Ray for Rhino | Product Owner
                    www.chaos.com

                    Comment


                    • #11
                      Thnx man it worked. It seems that removing the painting wasnt enough, i had to purge and save again.
                      But how did u saw it took 97 seconds to load, how can i do that? Handy for the next time i want to see which component slows me down...

                      Comment


                      • #12
                        You can use this to track down components which might be slowing the scene export to V-Ray:

                        Code:
                        require('benchmark');Sketchup.active_model.definit ions.each{|d|puts "#{d.name} =>#{Benchmark.measure{d.entities.grep(Sketchup::Fa ce){|f|f.mesh(7)}}}"}
                        Kind regards,
                        Peter
                        Peter Chaushev
                        V-Ray for SketchUp | V-Ray for Rhino | Product Owner
                        www.chaos.com

                        Comment


                        • #13
                          Should i copy paste in the Ruby console?

                          Comment


                          • #14
                            Originally posted by Piemelaar View Post
                            Should i copy paste in the Ruby console?
                            Yes, simply paste that code there and a list of components will be printed with load times for each of it.

                            Kind regards,
                            Peter
                            Peter Chaushev
                            V-Ray for SketchUp | V-Ray for Rhino | Product Owner
                            www.chaos.com

                            Comment


                            • #15
                              It gives me a name error

                              Comment

                              Working...
                              X