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

    [Plugin] Import OBJ with Materials v2.1 20131118

    Scheduled Pinned Locked Moved Plugins
    279 Posts 87 Posters 378.6k Views 87 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.
    • O Offline
      oldman-pit
      last edited by

      well done TIG, thanks a lot! πŸ‘

      1 Reply Last reply Reply Quote 0
      • Rich O BrienR Offline
        Rich O Brien Moderator
        last edited by

        @wootwoots said:

        I tried your plugin, and saddly it didnt import anything.

        I tried the fluid obj importer, and for a single cube google sketchup just crash 😞

        A bit more info would mean that we could help.

        Download the free D'oh Book for SketchUp πŸ“–

        1 Reply Last reply Reply Quote 0
        • LanaL Offline
          Lana
          last edited by

          Thanks Tig.You are good. 😍

          1 Reply Last reply Reply Quote 0
          • olisheaO Offline
            olishea
            last edited by

            Hey TIG,

            I'm having an issue with this plugin. Installed on latest SU, Mac OSX.

            After I have selected the model units (I have tried all of them just in case) nothing happens on import; no loading, nothing. I have tried all three import options. The OBJ i am importing is not complex and has no materials set yet. The other JF OBJ Importer plugin works OK, but I have no option of import units. I have also imported the model as 3DS no probs.

            Any help would be much appreciated.

            oli

            1 Reply Last reply Reply Quote 0
            • TIGT Offline
              TIG Moderator
              last edited by

              @olishea said:

              Hey TIG,

              I'm having an issue with this plugin. Installed on latest SU, Mac OSX.

              After I have selected the model units (I have tried all of them just in case) nothing happens on import; no loading, nothing. I have tried all three import options. The OBJ i am importing is not complex and has no materials set yet. The other JF OBJ Importer plugin works OK, but I have no option of import units. I have also imported the model as 3DS no probs.

              Any help would be much appreciated.
              There's a better/faster free Fluid OBJimporter for PC only 😞
              The Model units don't matter BUT the imported units are important because if the original OBJ is in 'm' and you import in 'mm' it'll be 1000 times too small and we already know that making tiny geometry makes Sketchup fall over...
              So try in the largest units available [meters?].
              Some OBJ files have an obscure format.
              You could try in/out of Blender to see if that sorts out the file formating ??
              Alternatively PM me the OBJ and I'll see if I can SKP-ify it for you ???

              TIG

              1 Reply Last reply Reply Quote 0
              • olisheaO Offline
                olishea
                last edited by

                Don't worry, I have imported and saved as SKP, thanks for the offer. I just wanted to use your plugin due to the units feature....because like you say geometry can play up when the model is tiny. I have got round the issue importing as 3DS with merged coplanar, where I can set units. Otherwise all I can do is scale up in blender then import using the other OBJ importer.

                oli

                1 Reply Last reply Reply Quote 0
                • M Offline
                  mingjae
                  last edited by

                  Hello,

                  i need a help sir, the plugins wont load the .obj file,
                  but at the text box bottom of sketchup it processing something but just in a second..
                  my .obj file is around 6Mbs

                  I am trying all the 3 methods,with textures,no material, and as mesh but no object were created, the obj_importer.rb is on the plugins folder at Google Sketchup8 directory,
                  and the plugin menu is loaded at the SketchUp>Plugins..

                  my OS is Windows7 Ultimate 64bit,
                  my Trimble SketchUp8 ver is 8.0.16846

                  on larger .obj file (76Mb) the plugin processing about 4secs but still no object were created, did I miss something to load the models?

                  thx

                  1 Reply Last reply Reply Quote 0
                  • TIGT Offline
                    TIG Moderator
                    last edited by

                    The Fluid OBJimporter is better and faster.
                    If your OBJ file is in say 'm' and you import as 'mm' the geometry size can be so small nothing is created.
                    Some OBJ files also have incompatible formats...
                    A 6Mb file should take some time to load.
                    If you have the Ruby Console open are there any messages...?

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      mingjae
                      last edited by

                      yes mr.TIG, fluidImporter can successfully load .obj models but it 90% will crashes if i try to render the scene using vray, 😞

                      and yes, there's a lot of text if i open the ruby console, these are the texts written:

                      Processing 'C:\Users\John\Downloads\Compressed\VizPeople_Free_3d_Models_Sofas\Ikea_kramfors\Ikea_kramfors.obj'...
                      Error: 666
                      Error: #<ArgumentError: Cannot convert argument to Sketchup::Point3d>
                      D:/Program Files (x86)/Google/Google SketchUp 8/Plugins/obj_importer.rb:317:in add' D:/Program Files (x86)/Google/Google SketchUp 8/Plugins/obj_importer.rb:317:in run'
                      D:/Program Files (x86)/Google/Google SketchUp 8/Plugins/obj_importer.rb:317:in map' D:/Program Files (x86)/Google/Google SketchUp 8/Plugins/obj_importer.rb:317:in run'
                      D:/Program Files (x86)/Google/Google SketchUp 8/Plugins/obj_importer.rb:229:in each' D:/Program Files (x86)/Google/Google SketchUp 8/Plugins/obj_importer.rb:229:in run'
                      D:/Program Files (x86)/Google/Google SketchUp 8/Plugins/obj_importer.rb:365
                      quietly_force_sync_mats_cb just called

                      I try another .obj files and still wont load the models,

                      here is one of the model sir:
                      http://www.mediafire.com/?7975kudbfcvab7d

                      1 Reply Last reply Reply Quote 0
                      • thomthomT Offline
                        thomthom
                        last edited by

                        Try to model without V-Ray loaded and see if you get less issues then.
                        I wrote V-Ray Tools so I could disable V-Ray under Preferences > Extensions and then load V-Ray only when I need to render. Makes SU start faster and avoid various issues that VfSU causes.
                        http://sketchucation.com/forums/viewtopic.php?t=15491

                        Thomas Thomassen β€” SketchUp Monkey & Coding addict
                        List of my plugins and link to the CookieWare fund

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          mingjae
                          last edited by

                          woaa.. thx sir now it can load some of the file but some still cannot be loaded..
                          and yes,much more slower than fluidimporter... πŸ‘Š

                          thx sketchUcation! 😍

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

                            Hi! Very usefull plugin BUT it appears it isnt working for me. I run it, select my .obj click OK and then Nothing! Just as if I didnt do anything! What could be wrong?

                            1 Reply Last reply Reply Quote 0
                            • TIGT Offline
                              TIG Moderator
                              last edited by

                              @john514 said:

                              Hi! Very usefull plugin BUT it appears it isnt working for me. I run it, select my .obj click OK and then Nothing! Just as if I didnt do anything! What could be wrong?
                              What units does the OBJ file use?
                              Try assuming they are 'meters' - this 'biggest size' is more likely to work and avoid 'tiny geometry failures'.
                              Are there any Ruby Console messages ??
                              Do you have a small OBJ file you can share [+MTL?] ??
                              Because you are on Windows have you considered using the faster Fluid-Importer that has just been discussed here - it's faster too... πŸ˜•

                              TIG

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

                                I export a .FBX file with bake occlusion through LightUp (demo)
                                Then I convert it to .obj with Autodesk`s converter and I try getting it back to sketchup.
                                So yes the units were meters when I created it.

                                Here is my Ruby messages. It appears there is an error:
                                Processing 'K:\Users\ΓΙΑΝΝΗΣ\Desktop\SSthes\AutoSave_OSE Thess_lightup(no scene)_2013-03-19_2204.obj'...
                                Error: #<RangeError: 915 out of char range>
                                K:/Program Files/Google/Google SketchUp 8/Plugins/obj_importer.rb:163:in chr' K:/Program Files/Google/Google SketchUp 8/Plugins/obj_importer.rb:163:in run'
                                K:/Program Files/Google/Google SketchUp 8/Plugins/obj_importer.rb:163:in map' K:/Program Files/Google/Google SketchUp 8/Plugins/obj_importer.rb:163:in run'
                                K:/Program Files/Google/Google SketchUp 8/Plugins/obj_importer.rb:365
                                K:/Program Files/Google/Google SketchUp 8/Plugins/obj_importer.rb:163:in `call'
                                K:/Program Files/Google/Google SketchUp 8/Plugins/obj_importer.rb:163

                                That (ΓΙΑΝΝΗΣ) thing is my username! Its Greek.

                                1 Reply Last reply Reply Quote 0
                                • thomthomT Offline
                                  thomthom
                                  last edited by

                                  Might be an issue with Unicode characters. Try using a path and filename with only Latin characters.

                                  Thomas Thomassen β€” SketchUp Monkey & Coding addict
                                  List of my plugins and link to the CookieWare fund

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

                                    You were right! Thank you. The textures didnt show up, but I`ll try a new export and see how that goes.

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

                                      It seems that the materials wont import. I`ll try some other things latr and post th result.

                                      1 Reply Last reply Reply Quote 0
                                      • B Offline
                                        Birner
                                        last edited by

                                        Hello
                                        I do not quite understand how they think that with the FixtreeD.rb it does not work for me really what am I doing wrong?
                                        Have saved the tree and saved as skp and tried to open their tool is not
                                        Can you please help me
                                        greeting
                                        Tobi

                                        1 Reply Last reply Reply Quote 0
                                        • TIGT Offline
                                          TIG Moderator
                                          last edited by

                                          @Tobias

                                          You post doesn't make much sense.
                                          Please try rephrasing it and logically explain your problem.
                                          πŸ˜•

                                          TIG

                                          1 Reply Last reply Reply Quote 0
                                          • B Offline
                                            Birner
                                            last edited by

                                            Hello and Excuse me please!
                                            I'm from Germany and my English is a little rusty.
                                            So my problem lies in the implementation of the import OBJ files of tree[d] generator.
                                            So I followed their instructions inserted into the missing images folder and tried to import but it does not work for me.
                                            I also downloaded and installed your FixtreeD.rb but somehow everything works for me does not.
                                            Maybe they have a video how does that make exactly would be really great
                                            greeting
                                            Tobias

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 8
                                            • 9
                                            • 10
                                            • 11
                                            • 12
                                            • 13
                                            • 14
                                            • 10 / 14
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement