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
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • S 離線
      sepo
      最後由 編輯

      OK..thanks for trying.

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

        Well... after along time processing it the importer produced no geometry and no console warnings.
        I also tried importing it into Blender... and that failed with an 'out of range error message', so there's something adrift in the obj file's geometry...
        Seems your obj file has at least one problem that's giving at least two separate importers hiccups...

        TIG

        1 條回覆 最後回覆 回覆 引用 0
        • M 離線
          monkey2007
          最後由 編輯

          You Saved my day with this one! 😍
          Need to import a lot obj. but it takes more then an hour to retexture it in Sketchup. Good work !!

          1 條回覆 最後回覆 回覆 引用 0
          • halroachH 離線
            halroach
            最後由 編輯

            nice plugin!

            FlexTools - Super Quick Windows, Doors, Slats...

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

              Sorry guys.. I don't want to spam this topic but I'd be very glad if someone could explain how to import correctly-mapped Xfrog trees into sketchy... 😳
              Sorry TIG if I go a little off-topic: I've stumbled on your topic because I am very interested in your plugin: you did a good work. A big thank you.

              WEB (ita) - https://filipposcarso.wixsite.com/ordinentropico

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

                this idea is nice !

                but this plugin is bad !

                sketchup is bim

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

                  @unknownuser said:

                  this idea is nice !
                  but this plugin is bad !

                  Why is it ?
                  ...
                  You write a better plugin then... it's a free country/world...
                  If my best isn't good enough then make it better, and share it...

                  TIG

                  1 條回覆 最後回覆 回覆 引用 0
                  • thomthomT 離線
                    thomthom
                    最後由 編輯

                    @unknownuser said:

                    but this plugin is bad !

                    Are you implying it's not working for you?

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

                    1 條回覆 最後回覆 回覆 引用 0
                    • Chris FullmerC 離線
                      Chris Fullmer
                      最後由 編輯

                      @unknownuser said:

                      this idea is nice !

                      but this plugin is bad !

                      You're lack of details is astounding.....How about some useful information about what the plugin is or isn't doing? And maybe a test file that it fails on?

                      Lately you've been tan, suspicious for the winter.
                      All my Plugins I've written

                      1 條回覆 最後回覆 回覆 引用 0
                      • F 離線
                        Fletch
                        最後由 編輯

                        TIG, thanks for sharing this great plugin!

                        @unknownuser said:

                        this plugin is bad
                        😆 😒
                        to quote one of my favorite bands Flight of the Conchords "could you be more specific with your feedback, please?"

                        Fletch
                        Twilight Render Cross-platform Plugin for SketchUp on PC or Mac

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

                          Tig I just wanted you to know that your constribution will never be forgotten as well as many other great plugin writers. Some times people just took these great plugins for granted. When something doesn't for an individual, they complained. Some of us don't know how fortunate we are to have all these great individuals to write up the plugins and given them for free. Wait til the plugin writer start charging people to have their plugins download... then people will go nutz.

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

                            Thanks for the kind words... I know it's not perfect but it does work a lot of the time and there are work around for when the obj's format is incompatible...
                            I just got rankled at the lack of civility or useful criticism in that recent post - "if you can do better do it", was my challenge...
                            😒

                            TIG

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

                              Here's v1.5 20100816 Missing 'group' in some types of OBJ code trapped [with "g OBJ"].
                              http://forums.sketchucation.com/viewtopic.php?p=172790#p172790

                              TIG

                              1 條回覆 最後回覆 回覆 引用 0
                              • X 離線
                                xrok1
                                最後由 編輯

                                😉

                                “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

                                http://www.Twilightrender.com try it!

                                1 條回覆 最後回覆 回覆 引用 0
                                • thomthomT 離線
                                  thomthom
                                  最後由 編輯

                                  I tried out this importer on a obj I had exported from SU - then edited in PS.
                                  On importing it back to SU I noticed some errors. Attached is the model and screenshots from SU vs Max:

                                  SketchUp 3Ds Max

                                  SketchUp 3Ds Max

                                  p.s.: the topic title doesn't reflect the current version. 😉


                                  Think I zipped all the files...

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

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • thomthomT 離線
                                    thomthom
                                    最後由 編輯

                                    Just noticed another glitch above the left front light.

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

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

                                      TIG, I tried using your script to import .obj files from this website http://www.modelplusmodel.com, and it doesn't work. note that it didn't work for the simlab importer as well, something about negative indexes of the faces. Can you look into it? Also reading through the posts trying to get a better understanding of the .obj file type. Does every obj file need a mtl file for materials and textures?

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

                                        @jsteacy said:

                                        TIG, I tried using your script to import .OBJ files from this website http://www.modelplusmodel.com, and it doesn't work. Note that it didn't work for the Simlab Importer as well, something about negative indexes of the faces. Can you look into it? Also reading through the posts trying to get a better understanding of the .OBJ file type. Does every OBJ file need an MTL file for materials and textures?

                                        That site's free-sample bird 3DS file imported OK [in Pro] - see below...
                                        BUT the OBJ file format... 😒
                                        To answer your questions first...
                                        If there is no MTL file then there are no colors/materials in the resulting mesh.
                                        If there is an MTL file but no images in the defined ../folder_path/file_name then there objects with materials specified will only get the color without the texture.

                                        The f 123/123 124/124 125/125 is the correct way for a face to be specified in an OBJ file - this face is triangular, and uses vertices 123/124/125 [v] and the equivalent texture vertices [vt].
                                        I can't see why their OBJ file format uses negative values at all !!! 😕

                                        My OBJ Importer is not foolproof... BUT can you point me at exact problem [OBJ[MTL] files... or PM me them ?
                                        I can change my code to trap for any negative values for 'face indices' [see below]... BUT the imported object might end up being rubbish anyway ? I suspect that we need a miracle ?? 😮 Capture.PNG

                                        TIG

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

                                          negative vertex references are legal in the .obj format.

                                          f -1 -2 -3

                                          this just means use the vertexes defined 1, 2, and 3 lines previous. Negative index values mean a relative offset from the current line. (I think. 😒 ) Not sure if it includes all lines, or just 'v' lines in the count, though.

                                          Hi

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • N 離線
                                            notareal
                                            最後由 編輯

                                            "BUT the imported object might end up being rubbish anyway ? I suspect that we need a miracle ??"
                                            I believe it can be done... well just tested and Thea did import that 'F06 House bird' OK... sorry I don't have internal details how importer will actually handle this model.

                                            Welcome to try [Thea Render](http://www.thearender.com/), Thea support | [kerkythea.net](http://www.kerkythea.net/) -team member

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

                                            Advertisement