sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update

    OBJ importer

    Scheduled Pinned Locked Moved Newbie Forum
    sketchup
    11 Posts 4 Posters 530 Views 4 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.
    • K Offline
      Khai
      last edited by

      http://forums.sketchucation.com/viewtopic.php?f=79&t=20021

      here you go..a wonderful script by Jim with a small mod by Remus.

      works great πŸ˜„

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

        Thanks, testing it now, I noticed it takes quite a bit to import, is there a limit of how many polys you can import?

        1 Reply Last reply Reply Quote 0
        • K Offline
          Khai
          last edited by

          no idea what the limit is.. time for destruct testing! πŸ’š πŸ’š πŸ’š

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

            Just a little note: the version khai linked to works when the obj is in meters. Jims original script works when the obj is in inches.

            You can adapt it to anything you want by finding the number of inches in your chosen unit then using that value for the scale argument.

            http://remusrendering.wordpress.com/

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

              I tried importing a model that's about 150.000 polys and it took about half an hour, 500.000 polys.. I shut it down after 1.5 hours, SU tends to lag quite a bit on my rig and I don't know why (4GB, E8600, 9600GT), are there other settings that I should look for other than enable hardware acceleration?

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

                ..anyone?

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

                  On line 30 of the script is where it initializes the Polygon mesh. Try adding a 0 (zero) to each of the arguments. If it helps, try adding another zero.

                  
                  if use_mesh
                    mesh = Geom;;PolygonMesh.new 50000, 10000 # <-- increase these values
                  end
                  
                  

                  Hi

                  1 Reply Last reply Reply Quote 0
                  • K Offline
                    Khai
                    last edited by

                    thanks Jim, for a great plugin and for the adjustment πŸ˜„

                    I've got a coupla suggestions for a second version of the ruby if you want them?

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

                      And what will this adjustment do? Decrease importing time? Also, what's the import limit, polycount wise?

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

                        The numbers are the number of points and polygons used "as a hint to decide how much space to pre-allocate to speed up adding points and polygons."

                        It may decrease importing time, it may not. I am not aware of any limit, but I don't know what the result is of using numbers that are very large.

                        Hi

                        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