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

    How to Stay within 0-1 UV Coordinates in Sketchup?

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    10 Posts 2 Posters 949 Views 2 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.
    • Mistro11M Offline
      Mistro11
      last edited by

      I'm making a game asset (a train) for Unity engine that requires only using 1 texture map. I got the flow of how to do this in Sketchup but now I have to clean up the LOD for the train. The problem I have is the texture is gone beyond the 0-1 coordinates of the UV and the LOD model displays strange colors in game when zoomed out. I must get the texture map within that 0-1 boundary to fix it. Is there a way to achieve this? How do we locate the 0-1 coordinate of the texture within Sketchup? Does the pins always indicate the origin of the coordinate when we click reset while in position mode?

      i7-4930k @3.4/3.7GHz, 32Gb RAM, NVidia GTX 980Ti 6Gb, Windows 7 Pro 64bit
      Structural Integrity is Not Just Physical...It's in the Design and Purpose

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

        Can you share the file or even an image?

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

        1 Reply Last reply Reply Quote 0
        • Mistro11M Offline
          Mistro11
          last edited by

          @rich o brien said:

          Can you share the file or even an image?

          This is the original model
          NYC_R22_Exlpoded.jpg

          This is the LOD model
          CitiesSkylines_SubwayTEST_LOD2.jpg

          This is a test run in game (Cities Skylines)
          ChirpyEdition3.jpg

          ChirpyEdition4.jpg

          This is what the train looks like when zoomed out
          BadLod.jpg

          LOD Sketchup File as requested
          CitiesSkylines_SubwayTEST_LOD2.skp

          NOTE: The LOD texture in the file is actually for the trailer cars. The front car in the images have a variation of the same texture but the UVs are the same. So when I want to make different liveries, all I have to do is swap out the parts in Photoshop.

          i7-4930k @3.4/3.7GHz, 32Gb RAM, NVidia GTX 980Ti 6Gb, Windows 7 Pro 64bit
          Structural Integrity is Not Just Physical...It's in the Design and Purpose

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

            CitiesSkylines_SubwayTEST_LOD2.skp

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

            1 Reply Last reply Reply Quote 0
            • Mistro11M Offline
              Mistro11
              last edited by

              Thanks Rich but what exactly did you do? I see the texture map changed along with the UVs in your file. I ran a test in game. The trailer cars turned into tiny trailers when the LOD was triggered. Can you please explain what you did? Maybe I can figure out what's the difference between your file and mine.

              i7-4930k @3.4/3.7GHz, 32Gb RAM, NVidia GTX 980Ti 6Gb, Windows 7 Pro 64bit
              Structural Integrity is Not Just Physical...It's in the Design and Purpose

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

                Yours isn't mapped correctly.

                I created a new map and baked the existing textures to the new map.

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

                1 Reply Last reply Reply Quote 0
                • Mistro11M Offline
                  Mistro11
                  last edited by

                  @rich o brien said:

                  Your isn't mapped correctly.

                  I created a new map and baked the existing textures to the new map.

                  What did I do wrong? Just want to learn from my ignorant mistakes. FYI I'm using a plugin ThomThom made that exports FBX files directly from Sketchup to the game asset folder. What did you use to bake the textures? I was trying to stay within SU. But I'm open to a 3rd party app if I can get it back into SU without the tri count exploding. I tried exporting to Blender where UV mapping is much easier but the face count grew significantly.

                  i7-4930k @3.4/3.7GHz, 32Gb RAM, NVidia GTX 980Ti 6Gb, Windows 7 Pro 64bit
                  Structural Integrity is Not Just Physical...It's in the Design and Purpose

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

                    I can't say what you did wrong without knowing what did in the first place.

                    I had to change the texture map because your map was not correct to the image. So I used the the way the textures were applied in your model and baked those to a new map.

                    I used blender to smart uv project and bake the new map.

                    Then I changed the assigned texture in blender to the new baked image and exported to Collada.

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

                    1 Reply Last reply Reply Quote 0
                    • Mistro11M Offline
                      Mistro11
                      last edited by

                      Thanks again Rich. I was trying to UV this thing in SU using the native tools in texture>position mode along with Thrupaint and SketchUV. I figured out why your model turned to smaller cars when the LOD was triggered. For this game we have to set the scale and location in Blender before import to FBX from Blender. Anyway, I ended up cleaning up the LOD model in Blender and all look good now.

                      Beta8LOD.jpg

                      Using Blender UV tools felt like sex compared to SU. I hope the devs at Trimble take a serious look into giving us better UV tools once and for all.

                      i7-4930k @3.4/3.7GHz, 32Gb RAM, NVidia GTX 980Ti 6Gb, Windows 7 Pro 64bit
                      Structural Integrity is Not Just Physical...It's in the Design and Purpose

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

                        SU uses an older UVQ mapping method that isn't really the norm these days.

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

                        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