Jump to content


Photo

2D grass


  • Please log in to reply
9 replies to this topic

#1 jt83

jt83

    Advanced Member

  • Members
  • PipPipPip
  • 1,035 posts

Posted 23 January 2021 - 11:15 AM

I can't seem to get some grass from textures.com to appear right.  I've saved the image as a PSD and set alpha to transparent but when I try to plant it appears as a green square.  Thanks for any tips.



#2 NoPutt

NoPutt

    Advanced Member

  • Members
  • PipPipPip
  • 2,902 posts
  • LocationSouth Carolina

Posted 24 January 2021 - 10:28 AM

Do you mean billboards or textures?

If billboard try this from K11

wDDgD3i.jpg


  • Jugador likes this

Dry Gulch...................Released                     Smithfield Golf Club...........Released

Millstone Golf Club....Released                      The Walker Course............Released

Kingsmill Woods Course...Released               Pine Lake Golf Club..........Released

Woodhaven Golf Club (9) Released                The Reserve at Keowee...Released

Cliffs at Keowee Vineyards..Released              The Ace Club...................Released

Dry Gulch 2..........Released                               Blackberry Oaks.............Released

 


#3 jt83

jt83

    Advanced Member

  • Members
  • PipPipPip
  • 1,035 posts

Posted 24 January 2021 - 11:25 PM

Billboards.  I thought something like https://www.textures...tlas0253/132474

 

that already has the alpha, albedo etc would work straight away.  I guess I have to apply K11's steps to what I have somehow...



#4 shimonko

shimonko

    Advanced Member

  • Members
  • PipPipPip
  • 1,718 posts

Posted 25 January 2021 - 12:23 AM

I suspect Unity might not recognise layer transparency in a PSD file (which adding the alpha as layer mask would do).

So if that's what you did, instead create an alpha channel in the channels panel and paste in the alpha texture. Save as PSD. You won' t even need to set the "Alpha from transparency" flag then - it'll just sense the alpha channel and work.

 

(I'm assuming you're adding it as a grass texture in the terrain painting section - if you've got your own planes, there will be different things to do).



#5 jt83

jt83

    Advanced Member

  • Members
  • PipPipPip
  • 1,035 posts

Posted 25 January 2021 - 04:15 AM

Getting there, but the color info hasn't come through -

 

289045302d24a28bc9d5e8410fb5139432c6bf77

 

I'm only using the albedo and alpha from textures.com, the alpha is on a channel but invisible.

 

The answer's probably simple but this is my first time trying to get away from the default Unity grasses.



#6 shimonko

shimonko

    Advanced Member

  • Members
  • PipPipPip
  • 1,718 posts

Posted 25 January 2021 - 05:32 AM

Looks like you're tinting the grasses too green.

Set the healthy and dry colors to a gray (e.g. 160, 160, 160) to start with, see the proper colors coming through and tweak from there.



#7 jt83

jt83

    Advanced Member

  • Members
  • PipPipPip
  • 1,035 posts

Posted 25 January 2021 - 02:08 PM

Changing those settings just turns it all grey instead of all green.  I'll keep trying things.



#8 shimonko

shimonko

    Advanced Member

  • Members
  • PipPipPip
  • 1,718 posts

Posted 26 January 2021 - 12:38 AM

Make sure in Photoshop you set the Image/Mode to 8 bits/channel - as tiffs such as those from textures.com will load in as 16 bit/channel and save as a 16 bit PSD, confusing Unity and causing color issues.



#9 jt83

jt83

    Advanced Member

  • Members
  • PipPipPip
  • 1,035 posts

Posted 26 January 2021 - 08:19 AM

Bingo.  It still looks kinda low res compared to the original image but the colors are now right.



#10 shimonko

shimonko

    Advanced Member

  • Members
  • PipPipPip
  • 1,718 posts

Posted 26 January 2021 - 10:22 AM

The better looking grasses will be 1024x1024 or higher if you only grabbed the 512x512 images, and can afford the performance cost.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users