• Welcome to MX Bikes Official Forum. Please login or sign up.
 
March 28, 2024, 12:20:07 PM

News:

MX Bikes beta18j available! :)


See through edges of alpha textures

Started by 𝖙𝖋𝖈, July 28, 2016, 05:07:10 PM

Previous topic - Next topic

𝖙𝖋𝖈

I'd like to re-open this discussion please  ;)

http://forum.mx-bikes.com/index.php?topic=104.msg11174#msg11174

I've recently started learning Blender so figured I'd give it a proper try. There is absolutely no way I've found to get rid of these 'halo's'.

I understand that Snappe has said the problem will always be present to some degree, and I understand PiBoSo has said that the reason stock tracks don't have this issue is because of the way the trees are made, but I'm not convinced.

I've also seen the odd video of GP Bikes where a custom track is used and the issue is not present.

Some trees on the stock tracks are indeed made using a trunk, but others are not, and the ones that are just 2 planes (or 4 if each are flipped to get the texture on both sides) and these don't suffer with this issue at all.

The problem I have right now is that I can no longer work on a track because the issue is so visible.. So..

Any tips for fixing this in Blender?

Anything I can do to reduce the effect to the level seen in the stock tracks?

Please  :(

Asdrael

Donate to me -> feed my coffee addiction -> get more mods!
OEM bikes pack
MXBikes Discord

𝖙𝖋𝖈

Please, I'm really trying here..

This morning I've experimented with Blenders 'Alpha Clamp' although my guess is that only applies to the viewport. Some people have said it helps with the Blender Game engine but since I think it only exports using the internal render engine that's not the answer.

I've also tried a premultiplied alpha image again with no luck. Looks perfect in Blender but the same result in game.

Please help :( as I said, there must be something to this as stock tracks trees, X shape with no trunk don't have this problem. I'm pulling my hair out!

Ruubs

This is probably not the answer you're looking for. But might the mask just be a little too small? By that I mean that it leaves an edge around the tree, which you don't want. Try making the mask a little bigger so you definitly have no background color.

That probably doesn't make any difference though. But I'm just trying to help :/

𝖙𝖋𝖈

Thanks, but no that's not it.

My mask is literally black and white, no blur, no antialiasing.. I'm also using a plugin similar to Flaming Pear for PS to ensure the tree colour extends outside the mask edges.

Thanks though :(

Ruubs

Hm, okay. I hope Piboso or Snappe (or maybe someone from gp-bikes or KRP) can help you out. There has to be a way I think..

𝖙𝖋𝖈

Yes, there must be a way..

Even if something was done to fix this on the stock tracks after the scenery was imported to the map that we are not capable of doing, I'd rather know so I can not waste any (more) time on this..:(

Asdrael

Stupid question:

Are you rendering with or without shadows? Maybe the problem becomes less with shadows on, or maybe changing the shadow settings would help?
Donate to me -> feed my coffee addiction -> get more mods!
OEM bikes pack
MXBikes Discord

𝖙𝖋𝖈

Gave it a try.. No change unfortunately :(

Asdrael

What about rotating the light source or trees?

It would be interesting putting trees in a blank map with different rotations (aligned, 10, 20, 30, 40, 45 degrees) in relation to the light direction to see if there is any link, since it's only on certain faces (and seem to be always the same one from your picture).
Donate to me -> feed my coffee addiction -> get more mods!
OEM bikes pack
MXBikes Discord

𝖙𝖋𝖈

Yeah it's always the same affected faces.. Weirdly though in blender I built a tree, duplicated it, rotated and scaled to get many different variations of the same tree. In game all trees work from one angle but not from another..

I'm not sure what relavence light source may have if any, but my guess is that like shadows probably none :( may experiment though.

Asdrael

July 29, 2016, 03:53:11 PM #11 Last Edit: July 29, 2016, 04:02:27 PM by Asdrael
Then I don't have any more ideas.

Try changing the light XYZ when compiling the track, maybe the shadow sampling... and do the same with the .amb file.

Sorry :/

- Maybe the rendering doesn't like your tree. Tried with another one, maybe a from a free database?
- Suggestion two: if it works better using SketchUp, why not do a scene with trees in SketchUp and one with the rest of the objects in Blender? 2 2D planes intersecting, I am sure SketchUp will not be that heavier.
Donate to me -> feed my coffee addiction -> get more mods!
OEM bikes pack
MXBikes Discord

𝖙𝖋𝖈

No prob mate, thanks anyway!

Yeah I've tried with lots of trees.. Even made my own textures from scratch (very basic) to guarantee there were no bleed issues and same problem..

Asdrael

edited my post as you replied with this:


Suggestion two: if it works better using SketchUp, why not do a scene with trees in SketchUp and one with the rest of the objects in Blender? 2 2D planes intersecting, I am sure SketchUp will not be that heavier.

Donate to me -> feed my coffee addiction -> get more mods!
OEM bikes pack
MXBikes Discord

𝖙𝖋𝖈

Oh no, they already look better than 2d trees in SU ;D that's one positive I guess..