Author Topic: See through edges of alpha textures  (Read 5765 times)

Sandbiter

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 1255
    • View Profile
    • RK Web development
Re: See through edges of alpha textures
« Reply #15 on: August 02, 2016, 06:56:57 PM »
I made some 3d trees for Southwick. I also got the problem.
Kinda makes me sad to be honest. Trees can look a lot better if we didn't have this problem.

тғc

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 2782
    • View Profile
    • TFC's YouTube
Re: See through edges of alpha textures
« Reply #16 on: August 06, 2016, 07:04:07 AM »
Ok, so I think I've found a solution.. Think!

I got this working last night to where there were virtually no visible errors but the method is a bit cumbersome.

Firstly, I experimented with different formats, initially BMP but had no luck getting transparency to work so I moved on to DDS. I ended up doing some reading and after trying 8 or 9 different format settings I got the best results from DXT5 with a bunch of other settings using a DDS gimp plugin. I think the biggest help here is the way it blends the alpha edges.

The Next thing I did was break a 3d tree into individual faces making them their own objects. This is the frustrating part at least for me. A 2d tree, broken in two down the middle, separated into loose parts to make two objects. Copy and flipped 180 as blender can't export two sides faces, then copy the whole lot and rotate by 90* to make the 3d X shape. This results in 8 objects for one tree, all loose. This makes having more than a couple of trees fill up the outliner and makes them very hard to select.

But.. It works so thought I'd share.

I will continue to experiment later today, maybe I can join them together, maybe I don't need to use DDS when splitting up all the faces, not sure yet.

Does this sound about right PiBoSo/Snappe? Anything I can do to refine this process?
Last Project Alta Redshift MXR

Current Project Hawkstone Replica

Next Project Unknown

Buy Me a Beer

Sandbiter

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 1255
    • View Profile
    • RK Web development
Re: See through edges of alpha textures
« Reply #17 on: August 06, 2016, 10:07:08 AM »
Great to hear!

PiBoSo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 971
    • View Profile
Re: See through edges of alpha textures
« Reply #18 on: August 06, 2016, 10:41:30 AM »

Have you tried using the "CK_" prefix in the filename of the foliage textures?
http://docs.piboso.com/wiki/index.php/Track_Creation_Rules#Textures

тғc

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 2782
    • View Profile
    • TFC's YouTube
Re: See through edges of alpha textures
« Reply #19 on: August 06, 2016, 10:45:19 AM »

Have you tried using the "CK_" prefix in the filename of the foliage textures?
http://docs.piboso.com/wiki/index.php/Track_Creation_Rules#Textures

Pib, I love you, you know that, but I do sometimes wonder if you actually read my posts  ;D
Last Project Alta Redshift MXR

Current Project Hawkstone Replica

Next Project Unknown

Buy Me a Beer

тғc

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 2782
    • View Profile
    • TFC's YouTube
Re: See through edges of alpha textures
« Reply #20 on: August 07, 2016, 09:10:49 AM »
I thought I'd figured it, but I tried to add a different tree last night and for some reason this one is showing entirely semi see through in game.. Must have got something wrong as it looks just fine in blender and in mapview..

The original tree I did which works still shows up fine.

Any thoughts on what I might have wrong? And yes, I am using the CK_TREE prefix and it's working just fine ;)
Last Project Alta Redshift MXR

Current Project Hawkstone Replica

Next Project Unknown

Buy Me a Beer

PiBoSo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 971
    • View Profile
Re: See through edges of alpha textures
« Reply #21 on: August 07, 2016, 11:25:49 AM »
I thought I'd figured it, but I tried to add a different tree last night and for some reason this one is showing entirely semi see through in game.. Must have got something wrong as it looks just fine in blender and in mapview..

The original tree I did which works still shows up fine.

Any thoughts on what I might have wrong? And yes, I am using the CK_TREE prefix and it's working just fine ;)

If the trees are better in the latest Map Viewer, then the next build of MXB should fix the problem.

тғc

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 2782
    • View Profile
    • TFC's YouTube
Re: See through edges of alpha textures
« Reply #22 on: August 07, 2016, 11:44:55 AM »
That sounds good.. In the meantime I'll see if I can figure out why the current ones I have are now transparent..

There's a lot to this track making business! Suddenly remembering why I stuck to desert style tracks for so long lol
Last Project Alta Redshift MXR

Current Project Hawkstone Replica

Next Project Unknown

Buy Me a Beer

Sandbiter

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 1255
    • View Profile
    • RK Web development
Re: See through edges of alpha textures
« Reply #23 on: August 07, 2016, 01:58:46 PM »
That sounds good.. In the meantime I'll see if I can figure out why the current ones I have are now transparent..

There's a lot to this track making business! Suddenly remembering why I stuck to desert style tracks for so long lol
If you have a full black alpha channel on your texture, your texture is transparent for some reason. At least that's a problem I had with my banners on Southwick.

тғc

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 2782
    • View Profile
    • TFC's YouTube
Re: See through edges of alpha textures
« Reply #24 on: August 07, 2016, 02:17:58 PM »
Thanks mate! Will try it out later.. So what make it like 1 1 1?
Last Project Alta Redshift MXR

Current Project Hawkstone Replica

Next Project Unknown

Buy Me a Beer

Sandbiter

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 1255
    • View Profile
    • RK Web development
Re: See through edges of alpha textures
« Reply #25 on: August 07, 2016, 04:57:02 PM »
Thanks mate! Will try it out later.. So what make it like 1 1 1?
I'm using no alpha channel on my texture at the moment.

тғc

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 2782
    • View Profile
    • TFC's YouTube
Re: See through edges of alpha textures
« Reply #26 on: August 07, 2016, 04:59:04 PM »
Thanks mate! Will try it out later.. So what make it like 1 1 1?
I'm using no alpha channel on my texture at the moment.

Care to elaborate?
Last Project Alta Redshift MXR

Current Project Hawkstone Replica

Next Project Unknown

Buy Me a Beer

Sandbiter

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 1255
    • View Profile
    • RK Web development
Re: See through edges of alpha textures
« Reply #27 on: August 07, 2016, 05:10:39 PM »
Without alpha channel:


With alpha channel:

тғc

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 2782
    • View Profile
    • TFC's YouTube
Re: See through edges of alpha textures
« Reply #28 on: August 07, 2016, 05:12:56 PM »
Ok but if you don't have an alpha channel how are you getting transparency?
Last Project Alta Redshift MXR

Current Project Hawkstone Replica

Next Project Unknown

Buy Me a Beer

Sandbiter

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 1255
    • View Profile
    • RK Web development
Re: See through edges of alpha textures
« Reply #29 on: August 07, 2016, 07:35:16 PM »
Ok but if you don't have an alpha channel how are you getting transparency?
Didn't think of that unfortunately.

It's really weird my banners where half transparent while I had a full black alpha channel then. From some angles I could see the textures with a lot of shiny-ness on them.