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. Dismiss Notice

Why is unity terrain painter painting my textures black?

Discussion in 'Editor & General Support' started by halo9372, Jan 3, 2016.

  1. halo9372

    halo9372

    Joined:
    Oct 2, 2014
    Posts:
    22
    Just bought some terrain textures from the asset store. For some reason when I attempt to paint the terrain it paints black.


    unityterrain.png
     
  2. AaronC

    AaronC

    Joined:
    Mar 6, 2006
    Posts:
    3,552
    That is weird. Try comparing their import settings and formats with textures that are working for you?
     
    halo9372 likes this.
  3. halo9372

    halo9372

    Joined:
    Oct 2, 2014
    Posts:
    22
    So i checked the textures that were working against the ones the were. It seems i only get this result from .png format textures as the ones that do work are .jpg format. Are there any settings that will change this? I'm aware that I could take the textures out, convert them, and re-import them but I'm usually wary about modifying other people's stuff. Am I allowed to do this?
     
  4. AaronC

    AaronC

    Joined:
    Mar 6, 2006
    Posts:
    3,552
    If its what it takes to get things working then go for it.

    The usage rules are 99% about reselling raw assets, so so long as you don't intend reselling I'd suggest go for it.
     
  5. AaronC

    AaronC

    Joined:
    Mar 6, 2006
    Posts:
    3,552
    Or ask the vendor to convert them for you (and anyone else who buys them)
     
  6. halo9372

    halo9372

    Joined:
    Oct 2, 2014
    Posts:
    22
    Well I back checked the textures. The format doesn't seem to effect whether the texture paints black or not. I made sure the format as well as resolution matched up in unity. The only thing I've found thus far is that some of the pictures in other programs read different resolution sizes then what unity is claiming. For example grass 1 texture has a resolution of 1080x1080 however unity seems to think that it's 1024x1024

    unity grass 1 resolution.png

    unity resolution.png
     
  7. AaronC

    AaronC

    Joined:
    Mar 6, 2006
    Posts:
    3,552
    Thats a sort of kickback to oldschool tech that still applies. Unless its a UI texture for GUI stuff, then Unity likes things to be power of two : 8x8, 16x16.... up to 1024x1024 and beyond. Thats actually ok. don't worry too much about that- pretty normal.

    But are they still black if you convert to jpg?
     
  8. halo9372

    halo9372

    Joined:
    Oct 2, 2014
    Posts:
    22
    Yea, I originally thought it was the format because some of my JPEG textures were painting properly and other .png texteres were painting black. No one seems to have answers to this. I've even tried posting this topic to unity answers with no responses. I'm amazed that this is happening and no one really seems to be making any complaints. I thought unity had standards when it came to assets in their store. Some of the textures were even scaled below 1024 like 768x768 and 1575x1575. 1575x1575 isn't even dividable by 2 without a remainder and yet unity shows no error message. This is unity 5.2. I even tried re-installing unity. I have to complete this project before the 8th and this problem is causing me to lose hair. Moderators have to be skimming through the forums hopefully one of them might have an answer.
     
  9. AaronC

    AaronC

    Joined:
    Mar 6, 2006
    Posts:
    3,552
    Well regards the .png's I have a feeling that you can have 32bit PNG's so maybe you need to convert them to 16 bit in Photoshop? Bit of a long shot and unlikely given they were for sale but I'd check that they are 16bit
     
  10. arkon

    arkon

    Joined:
    Jun 27, 2011
    Posts:
    1,122
    Load one into photoshop then check the channel bit depth. Unity goes wrong if the channel bit depth is 16 bit. Make sure it's 8 bit per channel. I've had assets from the store in the past with textures set to 16 bits per channel.
     
  11. AaronC

    AaronC

    Joined:
    Mar 6, 2006
    Posts:
    3,552
    Oh right, it was one of these ratios :D I usually stuff it up for heightmaps but Do as he said^ Same idea better information
     
  12. halo9372

    halo9372

    Joined:
    Oct 2, 2014
    Posts:
    22
    Is it possible to do this with gimp? I don't have a license for Photoshop and avoid using it due to royalty fees.
     
  13. AaronC

    AaronC

    Joined:
    Mar 6, 2006
    Posts:
    3,552
    It is, by the looks its under the posterize settings for some reason, but you'll have to research.

    Pretty stink to have to go to this effort just to get your purchase working though so kick off a dialouge with the vendor I reckon