sketchucation logo sketchucation
    • 登入
    ℹ️ 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

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

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

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

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

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

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

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

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

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

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

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

                        1 條回覆 最後回覆 回覆 引用 0
                        • J 離線
                          John514
                          最後由 編輯

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

                          1 條回覆 最後回覆 回覆 引用 0
                          • B 離線
                            Birner
                            最後由 編輯

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

                              @Tobias

                              You post doesn't make much sense.
                              Please try rephrasing it and logically explain your problem.
                              😕

                              TIG

                              1 條回覆 最後回覆 回覆 引用 0
                              • B 離線
                                Birner
                                最後由 編輯

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

                                  @Tobias

                                  Now I understand [a bit].
                                  Ensure the OBJ and MTL files are in the same folder.
                                  Make sure the missing image files - as they are listed in the MTL file - are named exactly as the ones in the copied folder [folder/image].
                                  Also ensure that the copied folder is with the MTL and named as the folder in the MTL images' paths...

                                  Once we have an imported OBJ file with textures applied we can talk about the issues that the tool tree[d] can create...

                                  TIG

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • B 離線
                                    Birner
                                    最後由 編輯

                                    Hello
                                    Yes, I created a folder that I have 3D tree gennnt since I have the OBJ file and MTL file the two images so inserted the bark and the leaves.
                                    Well hope it's the right thing?
                                    greeting

                                    Tobi

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • Z 離線
                                      Zacchia
                                      最後由 編輯

                                      Hi
                                      I tryed to import in SU 2013. Nothing happends, the obj seams not to import. Not working on SU 2013?

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • TIGT 離線
                                        TIG Moderator
                                        最後由 編輯

                                        It works in v2013 just as it did in v8. 😕

                                        Do you mean you can import the file in v8 but it fails in v2013 ??
                                        If that is the case, what other plugins do you have in v2013 compared to v8?

                                        Alternatively...
                                        What is this OBJ file you are importing?
                                        Can you open it in alternative apps like Blender?
                                        Any errors in the Ruby Console?

                                        Can you get this very simple test OBJ to work in v2013?
                                        Extract the obj & mtl from the attached ZIP.
                                        For simplicity there are no textures, only colors defined in the mtl
                                        It's a 1m cube, units are Meters with YZ flipped.
                                        Its RGB colored faces are on the axes.
                                        I just retested it in v2013 and it worked fine.

                                        PS: Please update your User-Profile with OS, Version etc - it helps us help you...


                                        test.zip

                                        TIG

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • Z 離線
                                          Zacchia
                                          最後由 編輯

                                          Thanks TIG
                                          It works. I found out the problem on my files: It was a path with an bad letter: ö! I correct this and now your importer works fine!!
                                          Thanks and sorry for trouble.

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • TIGT 離線
                                            TIG Moderator
                                            最後由 編輯

                                            That is an important point. ☀
                                            SketchUp's older version of Ruby on PCs doesn't care for non-ASCII characters in folder/file-paths...
                                            Making it return an incorrect 'false' when testing that such a file exist?...
                                            Many plugins can fail because of this. 😒

                                            TIG

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

                                            Advertisement