sketchucation logo sketchucation
    • 登入
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Reducing Sketchup file size.

    已排程 已置頂 已鎖定 已移動 SketchUp Discussions
    sketchup
    31 貼文 17 Posters 29.5k 瀏覽 17 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • P 離線
      pompeyfan
      最後由 編輯

      Hi.

      Lately i have been working on some special models of stadia. I have been using a fair bit of detail, and the sketchup file size exceeds 10MB, while other models by other users, with more polygons and textures than mine, are 7MB. I have tried purging, but that doesn't work. Is there a way i can reduce the size of my models, as i would really like to upload them to the 3d warehouse.

      Thanks

      1 條回覆 最後回覆 回覆 引用 0
      • R 離線
        remus
        最後由 編輯

        the main things you can do to reduce file size is to reduce the number of polygons, make sure the textures your using arent too big and to only apply detail where you need to.

        reducing the number of polygons isnt too hard, usually just means using fewer segments in circles (to change the number of segments jsut type in th number youd like, while youve got the circle tool selected, but before you draw your circle.)

        Now i tihnk aobut it, adding detail is also in this category. Be careful aobut how you add detail to your model 👍 you need to be quite selective about what you add, you need to try and work out which details are really going to make a big difference to the look of the model, compared to superflous detail. EG imagine i was modeling a window for an exterior, id probably spend a while making a good frame but wouldnt bother with a really detailed lock, as your not really going to see it.

        Textures: this applies mainly if your using photo textures. Anyway, if your using photo textures, the image file is inlcuded as part of the SU modle, so a 3 mb photo will add significantly to the size of the model. Obviously you can shrink the photo down to make it more reasonable.

        theres definetly some stuff ive missed, and im sure someone will point it out in a second.

        http://remusrendering.wordpress.com/

        1 條回覆 最後回覆 回覆 引用 0
        • P 離線
          pompeyfan
          最後由 編輯

          @remus said:

          the main things you can do to reduce file size is to reduce the number of polygons, make sure the textures your using arent too big and to only apply detail where you need to.

          reducing the number of polygons isnt too hard, usually just means using fewer segments in circles (to change the number of segments jsut type in th number youd like, while youve got the circle tool selected, but before you draw your circle.)

          Now i tihnk aobut it, adding detail is also in this category. Be careful aobut how you add detail to your model 👍 you need to be quite selective about what you add, you need to try and work out which details are really going to make a big difference to the look of the model, compared to superflous detail. EG imagine i was modeling a window for an exterior, id probably spend a while making a good frame but wouldnt bother with a really detailed lock, as your not really going to see it.

          Textures: this applies mainly if your using photo textures. Anyway, if your using photo textures, the image file is inlcuded as part of the SU modle, so a 3 mb photo will add significantly to the size of the model. Obviously you can shrink the photo down to make it more reasonable.

          theres definetly some stuff ive missed, and im sure someone will point it out in a second.

          thanks for the input.

          I've only used colours, and there are no textures involved. My polygon count is 122000, which isn't high. And the only major details i add are to the facade and the seats.

          1 條回覆 最後回覆 回覆 引用 0
          • Wo3DanW 離線
            Wo3Dan
            最後由 編輯

            @pompeyfan said:

            .....
            thanks for the input.

            I've only used colours, and there are no textures involved. My polygon count is 122000, which isn't high. And the only major details i add are to the facade and the seats.

            pompeyfan,

            Are there any components in your file that you no longer use in the model?
            Or inactive invisible section planes or....

            Maybe you could upload the model for us to have a look at it?

            1 條回覆 最後回覆 回覆 引用 0
            • soloS 離線
              solo
              最後由 編輯

              Thats interesting Pixero, I would have bet on the component mass to be lower.

              http://www.solos-art.com

              If you see a toilet in your dreams do not use it.

              1 條回覆 最後回覆 回覆 引用 0
              • PixeroP 離線
                Pixero
                最後由 編輯

                I just did a test.
                I created a box and saved it. The file is 7,96 kB.
                Next I copied the box. 100 times. That file is 20,6 kB.
                Finally I made a component of the box and then Copied/instanced it 100 times. That file is 34,7 kB.
                Shouldnt instanced gemetry weight less than just copied?

                1 條回覆 最後回覆 回覆 引用 0
                • GaieusG 離線
                  Gaieus
                  最後由 編輯

                  Surely instancing also needs some "information" (place, rotation, scale, colur etc). Maybe if the geometry is very simple (like a box), keeping for SU this in mind is easier than keeping the info of the instances in mind.

                  I made a historic reconstruction/visualisation of my town in the 14th century. There are six churches/monasteries (detailed with ribbed Gothic vaults and tracery windows from inside, also this kind of structures in the cloisters), all the town walls, bastions, town gates, streets, some 3D plants and simple houses in there. I used components extensively and the file size is below 7 Mb.

                  Gai...

                  1 條回覆 最後回覆 回覆 引用 0
                  • R 離線
                    Rodentpete
                    最後由 編輯

                    One way to reduce file size easily is - any sections of the model that are symetrical you can cut in half, make into a component and then copy/mirror the component to remake the original part.

                    1 條回覆 最後回覆 回覆 引用 0
                    • Alan FraserA 離線
                      Alan Fraser
                      最後由 編輯

                      Yes, making components of repeated elements is the major way to save on file size....plus reducing arcs and circles to the very minimum number of faces you can get away with, especially if they are following any kind of sinuous path.

                      I think Pixero's test is a victim of the economy of scale. As Gaieus suggests, the amount of code involved in making a component of something as simple as a box probably outweighs any saving in the instance versus copy equation. Try it with something more complicated and you get a huge difference.
                      Here is a link to my original post involving a small sized model containing 100 Corinthian columns....a 200kb file that will bring many systems to their knees.
                      http://groups.google.com/group/Sketchup-Pro/browse_thread/thread/2ddc0e1594ef13/5438d871d2ad2648?

                      Interestingly, there are about twice as many faces in this 200 kb file as there are in the problem file weighing in at over 10 MB.

                      I've found similar things with image maps. If the resulting file size is anything to go by, you can hugely increase the size of a skp file by merely using some complicated versus simple image mapping. I've occasionally found that SU must be using more code to actually map an image than than it uses to hold the image itself.

                      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 條回覆 最後回覆 回覆 引用 0
                      • P 離線
                        pompeyfan
                        最後由 編輯

                        So let me get this straight. The file size of my model would be smaller if i did the following?

                        *Model 1 seat and make it a component.
                        *Copy/Paste this seat component to make one row, and make that a component

                        and so forth, opposed to just modelling the seats and not making it a component?

                        EDIT: Here is a model that shows perfectly my problem. It is 21MB


                        http://img148.imageshack.us/img148/2974/82383613fh7.th.png

                        1 條回覆 最後回覆 回覆 引用 0
                        • R 離線
                          remus
                          最後由 編輯

                          yes, that would help a lot 👍

                          http://remusrendering.wordpress.com/

                          1 條回覆 最後回覆 回覆 引用 0
                          • GaieusG 離線
                            Gaieus
                            最後由 編輯

                            You are not saying that you didn't use components for the seats, do you! 😲

                            Gai...

                            1 條回覆 最後回覆 回覆 引用 0
                            • Alan FraserA 離線
                              Alan Fraser
                              最後由 編輯

                              There is no appreciable saving to be had by nesting components. In other words, making a row of seat components into a further row component won't save much in the way of file size over just leaving the seats separate. If you were including stuff in the row that hadn't previously been made into a components (can't think what) then it would be an advantage.

                              It's like trying to zip an image file that's already been compressed, such as a tiff file with LZW compression...it just won't squeeze any smaller.

                              There may be organisational advantages to making a row a component, though...if you have many rows the same length.

                              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 條回覆 最後回覆 回覆 引用 0
                              • L 離線
                                lapx
                                最後由 編輯

                                I read thru this thread pretty quickly. How big is too big when it comes to image size in SU? I know image size definitely has an impact on speed. What resolution should we try and keep as min in general terms.

                                1 條回覆 最後回覆 回覆 引用 0
                                • R 離線
                                  remus
                                  最後由 編輯

                                  if your refering to picture exports, 3000 pixels wide is a good base line. Enough to retain a reasonable aobut of detail and easy too shrink down.

                                  http://remusrendering.wordpress.com/

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • soloS 離線
                                    solo
                                    最後由 編輯

                                    Other than procedural textures for ground planes, I believe 512x512 is sufficient for any texture.

                                    http://www.solos-art.com

                                    If you see a toilet in your dreams do not use it.

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • PixeroP 離線
                                      Pixero
                                      最後由 編輯

                                      @lapx said:

                                      I read thru this thread pretty quickly. How big is too big when it comes to image size in SU? I know image size definitely has an impact on speed. What resolution should we try and keep as min in general terms.

                                      As far as I know SketchUp ignores texture resolutions larger than 1024x1024 pixels.
                                      Larger textures will simply be downsampled to that size.
                                      It is a good rule to use textures in pixel sizes like 256x256, 512x512 or 1024x1024 since they "fit" into the computers memory more efficient.

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • eevaE 離線
                                        eeva
                                        最後由 編輯

                                        i made a test similar to pixeros with a sofa.

                                        sofa made out of groups: 609 kb
                                        sofa cut in half, two mirrored components: 608 kb

                                        sofa (built of two components) as component, copied 10 x: 612 kb
                                        sofa (groups) copied 10 x: 624 kb

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • P 離線
                                          pompeyfan
                                          最後由 編輯

                                          Just thought i would say a very big thanks. I performed a test, a 7200 seat stand, which would have been 5-7MB, is now 44.2kb. Thanks a lot!

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • L 離線
                                            lapx
                                            最後由 編輯

                                            You guy's are great! Thanks for the answer 😄
                                            Oh, one more thing. If you already have a large texture(s) mapped in your su file whats the best way to reduce the size? Is there a ruby script to help facilatate this if there are many oversized images in your model?
                                            And even before that, say you receive a model from someone else, where in sketchup does it show what resoltion the image is currently?

                                            1 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement