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.
    • TIGT Offline
      TIG Moderator
      last edited by

      Don't worry about the version text in the RB file itself.
      It's no longer updated.
      The Rev notes in the PluginStore page are correct.

      The v2.2 was stated as 'future proofed'.
      That was back when SketchUp was about to migrate to some new API methods and a newer Ruby version in v2014.
      Just prior to that version's release, major developers were given some confidential prior knowledge, to let them get their scripts ready for those changes, but they couldn't expand much on what had been changed 'under-the-hood' without revealing what was impending in the SketchUp release... hence 'future proofed'...

      It is an old script and has not been changed in about five and a half years !
      However, it should still work on older and of course the newer SketchUp versions.

      Install the latest version [v2.2] from the PluginStore...

      TIG

      1 Reply Last reply Reply Quote 0
      • romboutR Offline
        rombout
        last edited by

        Okay, thanks for answering. I found it weird that the same models now seems to have flipped quades (normals inside-out). I tried the OBJ importer from quad tools, never new this had one as well. Seems much faster and imported perfect. Just like OBJ importer did on my other machine with the exact same model. So i really dont understand why on this machine with the same plugin it acts different.

        1 Reply Last reply Reply Quote 0
        • pilouP Offline
          pilou
          last edited by

          V2.2
          I export my objects in OBJ format from MagicaVoxel a terrific Voxel prog! (free) ๐Ÿ˜Ž
          Reload works fine in Wings 3D (free)
          No color inside SU or special result! ๐Ÿ˜ฒ
          Glitch ? ...
          Its the same if export the objects from Wings 3D result! ๐Ÿ˜ฎ

          glitch_obj_import.jpg

          or that!

          glitch.jpg


          Glitch_obj_import.zip

          Frenchy Pilou
          Is beautiful that please without concept!
          My Little site :)

          1 Reply Last reply Reply Quote 0
          • romboutR Offline
            rombout
            last edited by

            @pilou said:

            V2.2
            I export my objects in OBJ format from MagicaVoxel a terrific Voxel prog! (free) ๐Ÿ˜Ž
            Reload works fine in Wings 3D (free)
            No color inside SU or special result! ๐Ÿ˜ฒ
            Glitch ? ...
            Its the same if export the objects from Wings 3D result! ๐Ÿ˜ฎ

            [attachment=1:2i3yc27k]<!-- ia1 -->glitch_obj_import.jpg<!-- ia1 -->[/attachment:2i3yc27k]

            or that!

            [attachment=0:2i3yc27k]<!-- ia0 -->glitch.jpg<!-- ia0 -->[/attachment:2i3yc27k]

            I dont think mesh color is supported, only textures. Try using the scale or import option and use bigger scale. That sometimes seems to fix the uvs. You can also try the OBJ import with quad tools

            1 Reply Last reply Reply Quote 0
            • romboutR Offline
              rombout
              last edited by

              PS i did a quick check with Blender. These cubes dont have a proper UV map. The texture is super wide as well.

              EDIT
              here's is that same scene and model, now it imports just fine


              Fixed files


              Fixed UVs

              1 Reply Last reply Reply Quote 0
              • D Offline
                Drachenbauer
                last edited by

                Hello

                If i try to import a .obj-file, that is made with blender, it does not get itยดs textures.

                In blender tihs model has got 192 vertices and 225 faces.

                Link Preview Image
                Hotairballoon Stella Huge Size - 3D model by Drachenbauer (@Maxi_Franke)

                Stella from the Angry Birds as a hotairballoon for the game Minetest (upscaled working template) - Hotairballoon Stella Huge Size - 3D model by Drachenbauer (@Maxi_Franke)

                favicon

                Sketchfab (sketchfab.com)

                Is it too complex for this plugin?

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

                  I'm no buying it !

                  It doesn't look complex at all...

                  So does it come with both OBJ and MTL files ?
                  Is the MTL file properly named in the OBJ file, i.e. relative to it ?

                  Is there a subfolder of material files ?
                  In the MTL file is the path to that material subfolder properly named, i.e. relative to it.

                  Show us a screenshot of your folder set up etc...
                  And perhaps an extract from the start of the OBJ and MTL files showing file/folder details...

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    Drachenbauer
                    last edited by

                    It has .obj and .mtl and there is a folder with the material-texture.
                    the texture includes all parts of the model, that it looks a bit like a papercraft-template.

                    In the first try it appeared white, and in all followinf tries it had my default outside-color (my default material is outside yellow, inside white).

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

                      Sadly you did not answer my entire question.

                      @unknownuser said:

                      Is the MTL file properly named in the OBJ file, i.e. relative to it ?
                      Is there a subfolder of material files ? [YES]
                      In the MTL file is the path to that material subfolder properly named, i.e. relative to it.
                      Show us a screenshot of your folder set up etc...
                      And perhaps an extract from the start of the OBJ and MTL files showing file/folder details...

                      Also note that there are several options regarding the importation - so ensure you choose the 'with textures' option...

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • sketchartist023S Offline
                        sketchartist023
                        last edited by

                        I export a blender mesh with vertex painting texture, and use this but nothing shows up at all. Its blank. ๐Ÿ˜ž The blender export is both .obj and .mtl files but Ill double check their validity through other software also just in case its an export issue, but any thoughts? Not even mesh shows up ๐Ÿ˜› Thank you for your time and patience!

                        USING: SU8FREE(or as they say pre 2017) windows 10 64 bit and noting the mesh is over 300K+ lines ๐Ÿ˜›

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

                          If you have the Ruby Console open when trying this are there any error messages ?
                          Have you tried a much simpler Blender OBJ with textures ? How'd that do ??

                          TIG

                          1 Reply Last reply Reply Quote 0
                          • A Offline
                            aviagg Newcomers
                            last edited by

                            This plugin spoils the entire mesh while importing

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

                              Why not try something newer, like Universal Importer ?
                              https://sketchucation.com/pluginstore?pln=universal_importer

                              TIG

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

                              Advertisement