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

Can't insert/paint trees onto my terrain

Discussion in 'Editor & General Support' started by Gibbs, Jan 16, 2010.

  1. Gibbs

    Gibbs

    Joined:
    Jan 8, 2010
    Posts:
    26
    Hi all,

    I have been trying to figure this out for a few hours.

    I have a terrain on which I placed a map I brought in from google maps... Now I'm trying to add trees and it gives me the blue marker but when I click no trees appear. I have them loaded into the terrain script panel under edit trees... But the problem is it just won't place them can anyone help me?

    Thanks

    I added screen shots...
     

    Attached Files:

  2. Gibbs

    Gibbs

    Joined:
    Jan 8, 2010
    Posts:
    26
    Also I can't mass place trees either... I tried that and it didn't work either...

    Thanks
     
  3. oxl

    oxl

    Joined:
    Nov 21, 2008
    Posts:
    325
    Hm .. you could try to re-import the tree prefab / model with a larger scale and / or increase the tree view distance .
    Maybe you just don't see them ?

    --
    oxl
     
  4. wizardious

    wizardious

    Joined:
    Dec 31, 2009
    Posts:
    189
    Hmm well, having just tried out this feature, I encountered similar problems. First I thought it was not painting trees, then when I zoomed in, I saw hundreds of tiny little trees, lol. Another time I exited terrain and chose another object, and then selected terrain again, and then the painting feature worked, :?:
    Hope that help.
     
  5. Gibbs

    Gibbs

    Joined:
    Jan 8, 2010
    Posts:
    26
    Hmm, that doesn't work either... I even tried to create trees from a new project file with a brand new terrain object and still no success???

    I don't think it's because I don't see them I think it's because it's just not placing anything in the scene.... It doesn't even show in the Hierarchy. Even when I try to drag the tree object into the scene it doesn't show up.... This is strange... Sucks because I'm in the middle of a deadline...

    Thanks for the help but are there any other suggestions....?

    Any help is appreciated...

    Thanks
     
  6. Gibbs

    Gibbs

    Joined:
    Jan 8, 2010
    Posts:
    26
    Okay so if I change the scale and reimport into the prefab I can drip the trees in the scene... I can see the trees but I's like to be able to paint the trees on the terrain... Instead of hand placing the tree prefabs all over my scene...

    Oxl: Your suggestion helped but only partly... Thanks so much but I'd still like to be able to pain the trees on the terrain...

    Any other advice?

    Thanks again
     
  7. Gibbs

    Gibbs

    Joined:
    Jan 8, 2010
    Posts:
    26
    Thanks guys.... I don't know what happened.... Must be a glitch in the Matrix... he-he... But all of a sudden it's working now....

    I have no idea why it's working now and wasn't working before...

    Now if I can get them to not look smashed and skewed and I'm good...

    Thanks...
     
  8. Gibbs

    Gibbs

    Joined:
    Jan 8, 2010
    Posts:
    26
    I'm wondering if it has something to do with the map textures I'm using on the terrain. Is there a texture format that you should not use? ie... png, jpg, etc....?

    In one of the tutorials I saw it said something about making sure it's a raw format..

    I was able to get the painting of trees working on a new scene and project but my original project for some reason doesn't want to pain the trees.


    UGHHHH!!!!!???
     
  9. wizardious

    wizardious

    Joined:
    Dec 31, 2009
    Posts:
    189
    Go to the unity website unity3d.com and look under support/documentation/reference manual. It's very in-depth and answers a lot of questions. :D
     

    Attached Files:

  10. Gibbs

    Gibbs

    Joined:
    Jan 8, 2010
    Posts:
    26
    THANKS GUYS
     
  11. Multi Hansen

    Multi Hansen

    Joined:
    Feb 8, 2015
    Posts:
    1
    I got the same problem too . . But i already Have it resolved
    Check the Terrain settings - > tree & detail objects - > just 'mark' the ( " draw " ) checkbox :)
    only that
     
  12. m.javad.karbasian

    m.javad.karbasian

    Joined:
    Oct 25, 2015
    Posts:
    1
    Thank it is perfect
     
    Nitewolf666 likes this.
  13. KEMBL

    KEMBL

    Joined:
    Apr 16, 2009
    Posts:
    181
    Hello I had such situation with grass on U5.1.1 and in my case, I had object like
    ObjectRoot (only transform component)
    Object child (mesh filter, renderer, etc)

    the solution was to make prefab from "Object child" only and use it as an object for plants.
     
    michaelday008 and Anduni like this.
  14. Amayii

    Amayii

    Joined:
    Mar 10, 2016
    Posts:
    1
    Wow, this is so noobish, but this was exactly my problem! Thanks for the heads-up!
     
  15. PackDev

    PackDev

    Joined:
    Apr 24, 2016
    Posts:
    4
    OH DEAR GOD, thank you very much! +1 Thank you for the solution :)
     
  16. PFC-Ben-W

    PFC-Ben-W

    Joined:
    Apr 30, 2016
    Posts:
    5


    I have a problem here. I can insert all models manually, but in the terrain editor, i can paint in grass but no trees ! I thought already on camera distance, terrain options like tree distanse or detail, lightmaps and so on. I cant figure out, what is wrong. ... all Objects are there (no matter whitch I put in) because when i bake them, their positions still get counted, but when I paint them as trees, they are invisible. When I put them manually, they are visible.... I don't know what I do wrong ... :(
     
    Last edited: Jul 27, 2016
  17. PFC-Ben-W

    PFC-Ben-W

    Joined:
    Apr 30, 2016
    Posts:
    5


    Hey Guys, its me again, i did not figure out the problem (yes I did, see Edit) , but at least one solution ! Listen : In my case, I did something wrong on the Quality Settings of Unity, but I don't know what. I just reseted it on the little icon on the right (look picture) and now, all trees are visible again ! Thank God !

    Edit : I figured out the Problem. The Problem was the Maximum LOD Level I changed before on the Quality settings ! If the LOD Level is higher than 2, the trees somehow disapear, also they are still there somehow! Just set the LOD Level to 2 or 1 and everything will be fine !
     
    Last edited: Jul 27, 2016
    neon_teebar likes this.
  18. beowulfkaine

    beowulfkaine

    Joined:
    Apr 3, 2014
    Posts:
    185
    I had the exact same problem, turns out the opacity setting was at 0, turning it to 1 makes them appear. Problem solved for me.
     
  19. zar333

    zar333

    Joined:
    Dec 21, 2016
    Posts:
    1
    Finally figured out the F***ing problem
    It's due to the objects you're using
    if the objects are from the unity asset store
    then
    the chance of them working from the tree add system is more likely
    but
    if you use an outside object or prefab
    then you have to drag the object/fab into your scene
    and
    manually place them
    also
    unity store has some of the lamest assets I've seen
    try tf3dm
    way better assets and are free to boost xD
     
    Acazied likes this.
  20. astracat111

    astracat111

    Joined:
    Sep 21, 2016
    Posts:
    724
    I've been having this problem recently. I'm making my root/stump in blender, then using 3 billboards and combining them to make my trees. The trees will not add no matter what I do to Unity. I think it's something about it being partially a blender geometry and using partially flat billboard cubes from unity. It could be the fact that it's 4 child objects to create a prefab, I don't know...

    Kind of wish it would work. Otherwise, just gonna have to make 'prefab clumps'.

    EDIT: I see what it's saying now. "The Object could not be instantiated because it doesn't contain a valid mesh renderer". This is because I'm using a single empty game object to hold the 4 objects necessary for the tree in Unity. So I guess the best bet for anyone making their own trees (and probably attempting to make billboard trees) is to (if you're using blender) do everything inside of blender completely and just have a single mesh with UV map....Not as simple as just throwing together a couple child objects in Unity...
     
  21. Mr-_Sheepington

    Mr-_Sheepington

    Joined:
    Feb 7, 2016
    Posts:
    3
    If any y'all been through this all and nothing worked, I figured out my problem when exporting an fbx file via blender, and accidentally leaving the camera and lamp in the file I exported, as such, it didnt work when trying to paint the trees on to the terrain as it couldnt paint the blender camera and lamps
     
  22. JasenKyle

    JasenKyle

    Joined:
    Jan 23, 2017
    Posts:
    2
    Wow, I'm an idiot. Thanks a lot :D
     
  23. softscan

    softscan

    Joined:
    Nov 5, 2013
    Posts:
    1
    imported Terrain Toolkit 2017 from assets then medieval house. Selected paint trees in toolkit and unity crashed. Same happened before using toolkit flatten tool.
     
  24. KingKadriK

    KingKadriK

    Joined:
    Jul 1, 2015
    Posts:
    15
    THANKS !!!!! i started to go crazy.
     
  25. Acazied

    Acazied

    Joined:
    Mar 2, 2016
    Posts:
    47
    my problem was that the tree is a child of an empty game object so that s why it didnt work
    remove the empty game obj make a new tree prefab and voila
     
  26. CrankHead

    CrankHead

    Joined:
    Jul 26, 2020
    Posts:
    1
    thank you very much guy,,,,, i really appreciate。。。。
     
    pjkokane21 likes this.
  27. yuhanli

    yuhanli

    Joined:
    Oct 21, 2020
    Posts:
    1
    omg You're awesome i spent tons of time on it Genius you > <
     
    pjkokane21 likes this.
  28. Sagitta_

    Sagitta_

    Joined:
    Dec 5, 2020
    Posts:
    1
    Hi. I have a similar Issue. I modeled a lowpoly tree on 3DS Max and exported it as a FBX file. When i import it into a Unity project it works fine, i can place it in any scene and work with other tools too.

    By the way, i want to use it into the Paint Tree tool in order to don't have a lot of objects in the scene. So, i can insert it as a tree into the Paint tree tool, but when i try to paint the terrain it don't works, no single tree appears in the scene.

    Any suggestion to this..??.. Hope you can help me. Thanks!
     
    Last edited: Jan 21, 2021
  29. lukeiszed

    lukeiszed

    Joined:
    Oct 6, 2018
    Posts:
    2
    I had the same issue and after spending too many hours on this, I found that if you add and set a LOD Group to the tree prefab you wanna use, the Paint Tree functionality works as expected.