Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

► Terrain to Mesh ◄

Discussion in 'Assets and Asset Store' started by Arkhivrag, Oct 1, 2015.

  1. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,943
    It looks like you are using very old (and now not supported) version. Update to the latest version.
     
    Last edited: May 15, 2023
  2. Jonathan_Shaller

    Jonathan_Shaller

    Joined:
    May 9, 2023
    Posts:
    1
    Is it possible "not" to rotate any of the detail objects upon export?
    I created a scene using the basic Unity prop painting and sculpting tools.
    I painted both massive enviroment objects and tiny detail objects. "Quixel Props".
    Once placed. The terrain has been artisiticly sculpted around the props to embedd them convincingly.
    Things are exacctly as I want them.

    Once I got the Amazing converter.
    I see that massive objects are considered detail.
    They rotate upon export no matter what.
    0 will uniformly set them all to the original state.
    And of course 360 and random are also all rotations.

    Can they just not move?

    Many thanks.
     
  3. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,943
    I will check.
     
    Last edited: Jun 1, 2023
  4. Jacob_Andrews

    Jacob_Andrews

    Joined:
    Sep 25, 2020
    Posts:
    10
    Hello, I seem to be having an issue with the packages shaders. This happened after I foolishly moved around the folders in my hierarchy but I can't seem to fix it despite undoing my adjustments. I have attempted deleted everything regarding the package, reinstalling, and reimporting to no avail.

    The error I am facing is: Shader error in 'Amazing Asssets/Terrain To Mesh/Splatmap': Couldn't open include file 'Splatmap.cginc'. at line 738

    If I could receive any assistance it would be greatly appreciated! upload_2023-5-30_21-21-11.png
     
  5. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,943
    Try recompile Splatmap shaders as described in the Manual file.
     
    Jacob_Andrews likes this.
  6. Jacob_Andrews

    Jacob_Andrews

    Joined:
    Sep 25, 2020
    Posts:
    10
    Hello, thank you for the quick reply!

    Unfortunately, the recompilation steps provided in the manual did not seem to resolve the issue. Here is some additional information:

    Unity Version: 2021.3.17f
    Using URP
    The package was working perfectly before I made the mistake of rearranging my project files. Never doing that again :(. I attempted to undo the rearrangement to the best of my ability but may have missed a thing or two.

    a better screenshot of the error:

    upload_2023-5-31_10-55-0.png
     
  7. Jacob_Andrews

    Jacob_Andrews

    Joined:
    Sep 25, 2020
    Posts:
    10
    Hello,

    After doing some testing, it seems like removing the normal maps from each of the terrain textures makes it render properly. That being said, the error is still present in the console. Is there a reason this would happen?
     
    Last edited: May 31, 2023
  8. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,943
    Amazing Assets/Terrain To Mesh folder can be moved to any location inside project. It is not mandatory to have it in the main Assets folder. Just keep original Amazing Assets folders hierarchy.

    Your error only indicates that shader cannot find Splatmap.cginc file. Make sure it is inside Amazing Assets/Terrain To Mesh/Shaders folder.


    Try, delete projects Library folder. This fill force full project reimport and recompile.
     
  9. Jacob_Andrews

    Jacob_Andrews

    Joined:
    Sep 25, 2020
    Posts:
    10

    Hi there, I can confirm that the Splatmap.cginc file is in the folder. Would there be a specific reason why it isn't being detected. I am a bit paranoid that deleting the library folder may harm my project which I've sunk a couple months into.
     
    Last edited: Jun 1, 2023
  10. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,943
    Not sure what has gone wrong when you rearranging project files and then restored them. Looks like something has messed up. References has been lost or incorrect paths are used now.
    Removing TTM and re-importing should have fixed it.
     
  11. Jacob_Andrews

    Jacob_Andrews

    Joined:
    Sep 25, 2020
    Posts:
    10
    Yeah unfortunately it doesn't seem to matter how many times I reimport TTM : L
    For now, the error doesn't seem to be negatively effect my project in any way as Im able to convert my terrains with no issue. It will just be annoying to have that error there. I guess I will take this as a warning to not rearrange files when not necessary.
     
  12. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,943
    Try new version for Unity 2021.3.
     
  13. Kolyasisan

    Kolyasisan

    Joined:
    Feb 2, 2015
    Posts:
    391
    I wanted to ask: why is the source code not available and all the C# code is precompiled into a .net DLL? On that note, why is it the case with most (if not all, correct me on that) of your assets available on the asset store? I really want to know the reason behind this decision.
     
  14. AwknSky

    AwknSky

    Joined:
    Mar 15, 2017
    Posts:
    2
    微信截图_20230626222555.png

    I installed the Universal package and manually updated the shader, but edgefall is pink. After upgrading to URP material, it looks strange. Can you help me? Unity 2021.3.13
     
  15. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,943
    Edgefall uses Unity's default Lit shader. You can't update it.
    Screenshot looks correct. You can change edgefall texture in the generated material.
     
  16. Jacob_Andrews

    Jacob_Andrews

    Joined:
    Sep 25, 2020
    Posts:
    10
    Is there a setting to get the terrain to bake shadows onto itself?
     
  17. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,943
    Do you mean Lightmap baking?
     
  18. leigh_

    leigh_

    Joined:
    Jun 27, 2017
    Posts:
    2
    I'm having some problems with the T2M package and the Curved Worlds package.
    I want to turn my terrain into a mesh and use the curved worlds package to bend it. However, the resolution of the textures that T2M produces when I use the custom curved world lit shader is low compared to the original texture on the terrain.

    Here are the material settings in T2M:

    upload_2023-9-5_13-54-20.png

    and here is a screenshot of a part of the original terrain:

    upload_2023-9-5_14-4-22.png

    here is the generated mesh:

    upload_2023-9-5_14-4-33.png

    As you can see, I have set the resolution of the basemap to 8192 but it still looks blury.

    Does anyone have any advice or help with this? Thanks in advance!
     
  19. Lars-Steenhoff

    Lars-Steenhoff

    Joined:
    Aug 7, 2007
    Posts:
    3,465
    You need to have a tiled layered image.
     
    Last edited: Sep 5, 2023
  20. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,943
    Why not use Splatmap material, it renders textures in their original resolution. Instead of baking them all into one Basemap texture?
     
    Last edited: Sep 5, 2023
    lclemens likes this.
  21. leigh_

    leigh_

    Joined:
    Jun 27, 2017
    Posts:
    2
    Yeah, I managed to fix it. Got support from the asset dev. The thing I was missing was to activate Curved World shader transformation for T2M shaders. Once I had done that the splatmap material worked.
     
  22. wechat_os_Qy0-2dmM2mxVyN31kcorbMztc

    wechat_os_Qy0-2dmM2mxVyN31kcorbMztc

    Joined:
    Nov 1, 2023
    Posts:
    1
    Hello, I would like to ask, can this product depict terrain with point clouds in unity with agx plugin
     
  23. pojoih

    pojoih

    Joined:
    Mar 30, 2013
    Posts:
    220
    I noticed when baking lightmaps in subtractive mode in URP14 (Unity 2022.3.10). All Materials with the Splatmap Shader stay black, althought correctly baked lightmaps are shown in "Baked Lightmap" View. Does not happen with Shadowmask or Baked Indirect. I already did the Splatmap Shader Updating in the Documentation, no change.
     
  24. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,943
    Just did the quick test and at my side all light baking had the same results (Unity 2022.3.11 URP):
    1.jpg
    2.jpg
    3.jpg
     
  25. Jacob_Andrews

    Jacob_Andrews

    Joined:
    Sep 25, 2020
    Posts:
    10
    How would I enable per chunk UV? I cant seem to find an option to toggle it in the TTM window. There is a tick box on the terrain object itself in the inspector window, but a message there says to not adjust anything in the inspector window.
     
  26. Jacob_Andrews

    Jacob_Andrews

    Joined:
    Sep 25, 2020
    Posts:
    10
    Also it seems like my generated terrain comes with very poor texel validity. Is there a way to tune this? It is generating very poor lightmaps.
     
  27. Arkhivrag

    Arkhivrag

    Joined:
    Apr 25, 2012
    Posts:
    2,943
    Enable Basemap baking with Export Per Chunk:
    upload_2023-11-16_10-26-11.png

    Are you using High compression for generated mesh? Try lower compression.