Search Unity

Texture terrain brush

Discussion in 'Editor & General Support' started by alibaba, Dec 15, 2008.

  1. alibaba

    alibaba

    Joined:
    Dec 15, 2008
    Posts:
    8
    Hi everybody,

    I'm doing a terrain. but i'm limited by the texture size. (of 2048x2048)
    so i found a method : i create a huge terrain and I paint on it with different textures. but i don't find where to make customizable brushes for the terrain. i would like to make squared brushes of 1000x1000.
    If somone can help me it would be grateful for me. i someone have an other method for having terrains with a high quality texturing is welcome.
    thanks.

    alibaba :)
     

    Attached Files:

  2. jeffcraighead

    jeffcraighead

    Joined:
    Nov 15, 2006
    Posts:
    740
    You can't make custom brushes yet. Hopefully this will come in a future 2.x build.
     
  3. alibaba

    alibaba

    Joined:
    Dec 15, 2008
    Posts:
    8
    Thank you for the help.
    Is there an other way of making high definition terrains ?
     
  4. Zylex

    Zylex

    Joined:
    Nov 25, 2008
    Posts:
    238
    There is a way to get in to unity's files and there you'll find the brushes which you can edit. Not sure how to do that at the moment but i'll get back to you!

    -Zylex
     
  5. Achim

    Achim

    Joined:
    Dec 19, 2007
    Posts:
    199
    Hi,

    there is a way to build custom brushes:

    1. make a photoshop file (New with size you want to but with power of two and with transparent background)
    2. draw your brush how you want to with black (or semitransparent black for smooth edges)
    3. save your file as .psd file
    4. use the programm Pic2Icon to get the alpha in the file
    5. rename the file to builtin_brush_21.png (or a number above, there are 20 builtin already in Unity)
    6. open the program Unity3D with rightmouseclick and open ´Show Package´(in german its `Paketinhalt öffnen`)
    7. drag and drop your brush into the `Resources` folder
    8. start or restart Unity and your new brush appears in the brush toolbar

    edit: maybe there are other ways but this one works for me
     

    Attached Files:

  6. twintower31

    twintower31

    Joined:
    Oct 31, 2007
    Posts:
    89
    Wunderbar Achim !

    I'm waiting for it for a long time,
    good gift for me for Christmas !

    Danke sehr.

    Twin
     
  7. alibaba

    alibaba

    Joined:
    Dec 15, 2008
    Posts:
    8
    Thank you very much.
    I'll try it as soon as possible.
    :D
     
  8. alibaba

    alibaba

    Joined:
    Dec 15, 2008
    Posts:
    8
    Thanks a lot

    I tried it and it works very well. :D
     
  9. Balmung

    Balmung

    Joined:
    May 9, 2010
    Posts:
    40
    How work this under the windows version of unity? What format must this png file have exactly? Test a lot but cant get it to work.
     
  10. jwilliamsen

    jwilliamsen

    Joined:
    Aug 8, 2010
    Posts:
    56
    On Windows: Save out your PNG with a transparent background (alpha) to a folder called "Gizmos" in the Assets folder of your project - so the directory structure is <Unity Project>/Assets/Gizmos. Name your PNG's brush_0.png, brush_1.png, etc. If the new brushes don't show up in the Terrain Palette, restart Unity and they should show up. Works like a charm :)
     
    PrimalCoder likes this.
  11. Nanosaur5

    Nanosaur5

    Guest

    Joined:
    Aug 26, 2010
    Posts:
    14
    Hey, I have a mac but I can't get it to work either. I've tried a lot of things and followed all of the directions. Perhaps a more in-depth explanation. I have Unity 3.4.1 Free.
     
  12. Demostenes

    Demostenes

    Joined:
    Sep 10, 2010
    Posts:
    1,106
    Because of outstanding work, unity management decided to award unity documentation team with holidays to 2050, so dont expect any updates.

    On the other side nothing will change for us.
     
    Last edited: Dec 26, 2011
  13. winterkewl

    winterkewl

    Joined:
    Oct 28, 2011
    Posts:
    53
    Anyone having trouble with this method?
    I've saved my transparent .png files named brush_101, brush_102 etc to the Assets/Gizmos/ folder, restarted Unity a number of times, but the custom brushes never show up in the Brushes window of the terrain.

    This is in Unity 3.5 developer preview.
     
  14. tyoc213

    tyoc213

    Joined:
    Nov 14, 2011
    Posts:
    168
    Haven't tested, buty have you tried to copy an existing brush and modifying it? in any of the 2 suggested places


    * builtin_brush_21.png or brush_0.png

    I guess remember to see names collision.