Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

PNG or PNG to RAW

Discussion in 'Editor & General Support' started by ChadH, Oct 29, 2012.

  1. ChadH

    ChadH

    Joined:
    Aug 28, 2012
    Posts:
    101
    Sorry for the question that has probably been asked 1,000 times.
    How do I convert my existing .bmp and .png files to .raw so that I can use them as a heightmap in Unity?
     
    Last edited: Oct 29, 2012
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    You can use this instead of converting, though you should really try to use native 16-bit raw files instead of using other formats, because otherwise you only have 8-bit vertical resolution.

    --Eric
     
  3. ChadH

    ChadH

    Joined:
    Aug 28, 2012
    Posts:
    101
    Thank you for this. I tried this earlier and had an error. You are just the man to answer it :D
    The error is that I have to make the height map "isReadable". I see no place to make the file readable. Please help
    Here is a screenshot:
    Selecting Texture


    Applied Texture with Error
     
  4. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    Change texture type to advanced.

    --Eric
     
  5. ChadH

    ChadH

    Joined:
    Aug 28, 2012
    Posts:
    101
    OK
    Now I feel real stupid!
    It was right there the whole time :(
    Thanks for the tip and it is working perfectly.
     
  6. Monii_786

    Monii_786

    Joined:
    Jun 21, 2016
    Posts:
    1
    where could i change the texture type