BVE WorldWide
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Transparency Issues in cab

+2
Quork
Delsin
6 posters

Go down

Transparency Issues in cab Empty Transparency Issues in cab

Post by theflyingoreo Fri May 10, 2019 5:34 am

Hi all

After a very long hiatus, I got back into development. I've just about nearly finished a cab but when in game, I've noticed issues in particular around the master controller. As can be seen in the below screenshot there is a grey ish border. I assume this is transparency issues but I'm interested to know whether its hardware based or have I not blued out enough?

Any advice appreciated.

Cheers
Transparency Issues in cab Cab9

theflyingoreo

Posts : 108
Join date : 2011-07-09
Location : Sydney Australia

https://www.facebook.com/sydneybve

Back to top Go down

Transparency Issues in cab Empty Re: Transparency Issues in cab

Post by Quork Fri May 10, 2019 11:55 am

Off topic, but what kind of cab is that? The radio looks like it's GSM-R radio, though it's an unfamiliar design.

Could it be that you resized it after you added transparency? Maybe you could post the texture here.
Quork
Quork

Posts : 1395
Join date : 2012-05-05
Age : 30
Location : Hofheim a.T., Hessen (Hesse), European Union

Back to top Go down

Transparency Issues in cab Empty Re: Transparency Issues in cab

Post by Delsin Fri May 10, 2019 8:49 pm

I think BVE has always had it, the reason is transparency smoothing "smudging" the edge. Some panels don't have it though, from what I remember solutions are using larger and power-of-2 texture sizes and leaving some transparency around button/lamp/handle textures.
Delsin
Delsin

Posts : 294
Join date : 2016-08-20

Back to top Go down

Transparency Issues in cab Empty Re: Transparency Issues in cab

Post by theflyingoreo Sat May 11, 2019 3:08 am

Quork wrote:Off topic, but what kind of cab is that? The radio looks like it's GSM-R radio, though it's an unfamiliar design.

Could it be that you resized it after you added transparency? Maybe you could post the texture here.

Its a cab on the new Waratah Series 2 B set here in Sydney, Aus. The radio is the new Digital Train Radio System by funkwerk.

I'll try and blue out a bit more and see what happens.

theflyingoreo

Posts : 108
Join date : 2011-07-09
Location : Sydney Australia

https://www.facebook.com/sydneybve

Back to top Go down

Transparency Issues in cab Empty Re: Transparency Issues in cab

Post by Quork Sat May 11, 2019 1:43 pm

Ah! Then it's indeed GSM-R =)
Quork
Quork

Posts : 1395
Join date : 2012-05-05
Age : 30
Location : Hofheim a.T., Hessen (Hesse), European Union

Back to top Go down

Transparency Issues in cab Empty Re: Transparency Issues in cab

Post by leezer3 Mon May 13, 2019 12:48 pm

The phenomon you're probably seeing is this:
Transparency Issues in cab 5eVmUzU
A repeating texture (Especially noticable with one using transparency) will 'bleed' on the edges.
Note that the pixels from each edge blend with the ones from the opposite edge at the seam.

What you want to do is to make a border around your control entirely of a single color (Probably transparent).

n.b. I can't see anything in your picture, we really need the whole thing to see what's going on.....

leezer3

Posts : 1802
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Transparency Issues in cab Empty Re: Transparency Issues in cab

Post by Quork Mon May 13, 2019 12:52 pm

Left side, lower third, Chris
Quork
Quork

Posts : 1395
Join date : 2012-05-05
Age : 30
Location : Hofheim a.T., Hessen (Hesse), European Union

Back to top Go down

Transparency Issues in cab Empty Re: Transparency Issues in cab

Post by leezer3 Tue May 14, 2019 10:00 am

Quork wrote:Left side, lower third, Chris

I can see the master controller, but not the artifacts Wink

leezer3

Posts : 1802
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Transparency Issues in cab Empty Re: Transparency Issues in cab

Post by Quork Tue May 14, 2019 7:07 pm

There's a horizontal line at about the height of the lower left corner of the left display.
Quork
Quork

Posts : 1395
Join date : 2012-05-05
Age : 30
Location : Hofheim a.T., Hessen (Hesse), European Union

Back to top Go down

Transparency Issues in cab Empty Re: Transparency Issues in cab

Post by Dexter Tue May 14, 2019 10:04 pm

Not neccessarily a transparency issue if I remember correctly. More likely a texture with incorrect dimensions / bad color conversion.
The first case means its domensions are not a power of 2 (such as 128,256,512 px etc.), the second option means the texture has been converted from 24 bits to 8 bit (example) and the color palette messed up the transparent color.
It could be any of the two. If you want, send me the texture to my email and I will check it.

Thinking about it, it could also be a messed up layering if the cab is a 2D one. Hope I have made it clearer. albino
Dexter
Dexter

Posts : 2110
Join date : 2011-07-08
Age : 35
Location : Brno, Czech republic

http://www.brnobve.eu

Back to top Go down

Transparency Issues in cab Empty Re: Transparency Issues in cab

Post by leezer3 Tue May 14, 2019 11:02 pm

Quork wrote:There's a horizontal line at about the height of the lower left corner of the left display.
Ah, thought that was the panel join....
This is why yhe whole thing is so much more helpful though Smile

If that is what the OP means, it's definitely the bottom of the texture bleeding through I'd say.
All it wants is for the final row of pixels in each frame of the texture to be replaced with transparent- I'd guess thry aren't at the minute.

The power of 2 rule is less likely to be causing this, and a colotlr pallete isdie is also IMHO unlikely, but again to rule them out, we need the whole thing!

leezer3

Posts : 1802
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Transparency Issues in cab Empty Re: Transparency Issues in cab

Post by Stevegr Wed May 15, 2019 8:15 pm

Yes most likely the texture or textures are not to the power of two.

All should be.

If it's a animated one do all the separate images to the power of two and the whole thing to it as well. 

I would avoid transparent parts to them.

They also make lines.

Stevegr

Posts : 180
Join date : 2013-01-01

Back to top Go down

Transparency Issues in cab Empty Re: Transparency Issues in cab

Post by theflyingoreo Thu May 16, 2019 1:14 am

As Ringo Starr says "PS please forgive the lateness of my reply"

The textures are to the power of 2. The brake controller is 512X4096 and the power controller is 512x2048. What is even stranger is that my tester cannot detect it on their machine. Hmmmmm

My main cab image however is not to the power of 2. Could this be a possible cause?

theflyingoreo

Posts : 108
Join date : 2011-07-09
Location : Sydney Australia

https://www.facebook.com/sydneybve

Back to top Go down

Transparency Issues in cab Empty Re: Transparency Issues in cab

Post by leezer3 Thu May 16, 2019 9:18 am

theflyingoreo wrote:As Ringo Starr says "PS please forgive the lateness of my reply"

The textures are to the power of 2. The brake controller is 512X4096 and the power controller is 512x2048. What is even stranger is that my tester cannot detect it on their machine. Hmmmmm

My main cab image however is not to the power of 2. Could this be a possible cause?

No Smile

It'll be because different drivers handle edge blending marginally differently.

Increasing the AF setting will also make the seam more noticable, as the driver will deliberately attempt to blend the pixels at the edge of the texture.


Excessive layering may also not help; check that the two are on as close layers as possible.

leezer3

Posts : 1802
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Transparency Issues in cab Empty Re: Transparency Issues in cab

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum