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

тғc

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 2797
    • View Profile
    • TFC's YouTube
Re: See through edges of alpha textures
« Reply #30 on: August 07, 2016, 08:04:04 PM »
Well this is the problem I'm having with this new tree image. Alpha mask I've tried upping the black by 3, no joy.. Its no different from the one that works as to the process I used to make it.

From about 20 feet (estimate) the object becomes transparent.. Must be something I'm missing.

Edit.. Thanks geo, will give it a try
« Last Edit: August 07, 2016, 08:05:39 PM by TheFatController »
Last Project Alta Redshift MXR

Current Project Hawkstone Replica

Next Project Unknown

Buy Me a Beer

тғc

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 2797
    • View Profile
    • TFC's YouTube
Re: See through edges of alpha textures
« Reply #31 on: August 07, 2016, 08:32:16 PM »
Nope no joy.. thanks for the suggestion though geo :)
Last Project Alta Redshift MXR

Current Project Hawkstone Replica

Next Project Unknown

Buy Me a Beer

тғc

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 2797
    • View Profile
    • TFC's YouTube
Re: See through edges of alpha textures
« Reply #32 on: August 07, 2016, 08:44:38 PM »
Lol geo.. well how about this  :o

OK so Blender only draws one side of a plane, so you have to duplicate the plane and flip the normals to get it to paint both sides for use in game. It seems as though MX Bikes doesn't like this.

If I copy a plane, put it in it's original position and flip the normals to get a 2 sided face I get a ton of errors.

If I copy a plane, flip it 180* I get NO ERRORS...

So, when using a symmetrical tree, this works great.. When using a tree with an odd shape it doesn't work as well but that's something I can live with, and hardly noticeable once you rotate around.

Wow.. and my guess is that as SketchUp DOES draw both sides of a plane, it does this by flipping the normal causing the errors. I don't think there's a way around that, but man oh man am I glad to have figured this one out..

Last Project Alta Redshift MXR

Current Project Hawkstone Replica

Next Project Unknown

Buy Me a Beer

тғc

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 2797
    • View Profile
    • TFC's YouTube
Re: See through edges of alpha textures
« Reply #33 on: August 07, 2016, 09:07:30 PM »
I guess we're talking about the same amount of faces though, and even then I just did it with 2 image planes, so totaling 4 planes.. What's that, 8 tris? that's pretty good for a tree, I had about 200 with 8 planes last night and it didn't affect FPS one bit.
Last Project Alta Redshift MXR

Current Project Hawkstone Replica

Next Project Unknown

Buy Me a Beer

тғc

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 2797
    • View Profile
    • TFC's YouTube
Re: See through edges of alpha textures
« Reply #34 on: August 08, 2016, 07:09:38 AM »
Strange.. Got this working last night briefly then it all stopped.. Is something bugged?

My guess is there is an order to it, or a vital step I'm not noticing.. Any hints?

If stock track (practice, maryland, forest etc..) scenery is made using blender, how about a step by step of how you guys add trees? (process, format etc..)

« Last Edit: August 08, 2016, 10:25:19 AM by TheFatController »
Last Project Alta Redshift MXR

Current Project Hawkstone Replica

Next Project Unknown

Buy Me a Beer

тғc

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 2797
    • View Profile
    • TFC's YouTube
Re: See through edges of alpha textures
« Reply #35 on: August 08, 2016, 10:23:57 AM »
Last Project Alta Redshift MXR

Current Project Hawkstone Replica

Next Project Unknown

Buy Me a Beer

Asdrael

  • OEM Nerd
  • Hero Member
  • Sr. Member
  • *****
  • Posts: 1047
    • View Profile
Re: See through edges of alpha textures
« Reply #36 on: August 08, 2016, 10:28:57 AM »
Spooky.
Donate to me -> feed my coffee addiction -> get more mods!
OEM bikes pack
MXBikes Discord

тғc

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 2797
    • View Profile
    • TFC's YouTube
Re: See through edges of alpha textures
« Reply #37 on: August 08, 2016, 10:49:58 AM »
Joining the object and doubling it up works..

Seems like an expensive way to make 'low poly' trees, but then I guess we're talking about 16 planes instead of 8.. 16 planes per tree, 32 tri's.. I guess that's worth it for the good looks..
Last Project Alta Redshift MXR

Current Project Hawkstone Replica

Next Project Unknown

Buy Me a Beer

тғc

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 2797
    • View Profile
    • TFC's YouTube
Re: See through edges of alpha textures
« Reply #38 on: July 09, 2018, 09:10:39 PM »
Hey PiBoSo / Snappe, I'd like to re-address this topic.

When I started this topic I was working on the JS7 Compound. Back then, as you can see from my above message I only had to make a double sided X style tree and duplicate it in the exact same spot to make it 'solid' with no see through edges or weird alpha glitches.

After that and in a later beta (6 - 7) I made Unadilla. When I first added trees on Unadilla (b6) I had to not only double up my tree but actually triple up to get them to behave.

Now I'm working on Hawkstone.. :(

I've made my trees, duplicated them 3 times in the exact same spot and I'm getting alpha glitches.

So my conclusion and the reason for ressurecting this old thread. It seems to be getting worse each beta. When you guys released the game with The Practice Track, Maryland and MXB Club your trees looked amazing and if you remember, I asked how they were done. Since you'e released other tracks over the course of the beta's your trees now all suffer with this alpha issue. You can even see it on the screenshot of Mantua used on the Tracks page..



Is this something that's ever going to be looked at? It looks horrendous and really brings the visual quality of the game down. Stock 3d grass has ALWAYS suffered with this as I've pointed out above. It seems to me that if it's getting worse, something is causing it, and if it can be fixed by duplicating the meshes then it's a sorting problem and not a bad texture problem.

Thoughts?

Thanks for reading  :)
Last Project Alta Redshift MXR

Current Project Hawkstone Replica

Next Project Unknown

Buy Me a Beer

тғc

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 2797
    • View Profile
    • TFC's YouTube
Re: See through edges of alpha textures
« Reply #39 on: July 20, 2018, 08:20:29 PM »
Please?
Last Project Alta Redshift MXR

Current Project Hawkstone Replica

Next Project Unknown

Buy Me a Beer

тғc

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 2797
    • View Profile
    • TFC's YouTube
Re: See through edges of alpha textures
« Reply #40 on: July 29, 2018, 06:24:29 PM »
Please :(
Last Project Alta Redshift MXR

Current Project Hawkstone Replica

Next Project Unknown

Buy Me a Beer

тғc

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 2797
    • View Profile
    • TFC's YouTube
Re: See through edges of alpha textures
« Reply #41 on: September 22, 2018, 07:15:30 PM »
Seeing as the daily dev is filled with swathes of rendering fixes, do you think this could be one of them?
Last Project Alta Redshift MXR

Current Project Hawkstone Replica

Next Project Unknown

Buy Me a Beer