Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider becoming a contibuting member by either clicking this text or the Patreon link on the right.

Patreon

If neither of those of work for you, you can donate any amount by clicking here.

Recommended Posts

Posted

Hi Tom, thanks apng support in V4.72!

I've used my test apng and it works as a company logo (with .png extension only, doesn't work with .apng). I've not been able to get it to work as a wheel image though, cleared the wheel cache and tried with both file extensions (.apng not recognised so no wheel image, .png recognised but displays as a static image only [first frame])

Is this expected (what media areas support apngs)?

My test image (just one i found on the net, not one i'd actually use!)

apng.png.7a7b09aaf0baeb593677378067456f95.png

  • Haha 1
Posted

I can confirm I have the same results
Also apng won't work for backglass and playfield
Renaming to png, will show the png animated for backglass, but playfield shows a black screen for me
I tested with this one
1510191538_250cc(Inder-1992)(2).png.2a5a1a86051b95df4830cf7dcc345cda.png
 

  • Haha 1
Posted

I look at the payfiled but it should be supported throughout. For the wheels Its probably because wheels are cached I will look but it should only cache the wheels if you are trimming borders or overlaying company logos.

Note that I have not added support for the apng extension but will do this for wheels to avoid cache.

  • Like 1
Posted
  On 11/10/2020 at 7:45 AM, Tom Speirs said:

I look at the payfiled but it should be supported throughout. For the wheels Its probably because wheels are cached I will look but it should only cache the wheels if you are trimming borders or overlaying company logos.

Note that I have not added support for the apng extension but will do this for wheels to avoid cache.

Expand  

Thanks Tom,

I just disabled the wheel image overlay in settings and cleared the wheel cache and the apng wheel image is now animated using.png as an extension, so that confirms what you said about that.

Posted

Just tried converting one of the gif company logos i did to a apng to see what it looks with a proper fade to transparent.

Unfortunately the transparent area of the image appears as a black box in v4.72 (tried it as a company logo and as a wheel image, same for both)

1398390834_Inder(-1985).png.2fd64756cfa0ee7d29f34cda04a32c5f.png

Posted
  On 11/10/2020 at 12:08 PM, scutters said:

Unfortunately the transparent area of the image appears as a black box in v4.72 (tried it as a company logo and as a wheel image, same for both)

Expand  

Hi Tom, just tried v4.73.   .apng extension works for wheel images now thanks. But still get black instead of transparency around animated pngs.  

Posted

Just gave 4.75 a quick go and yes all looks good now for everything i tested

Thanks again Tom, apng media with the potential it offers with transparency over the gif format will be great!

:cheers:

Posted

Sorry Tom, looks like i was too quick with my all ok..  i've now added a few apng company logos to my test setup, as soon as i navigate from a table that uses a standard png company logo to a new apng logo pinballx hangs and i get an error in the log;

18:57:42.90  12/11/2020:  Started
18:58:28.56  12/11/2020:  Error. Exiting
18:58:28.56  12/11/2020:  Video
18:58:28.56  12/11/2020:  Object reference not set to an instance of an object.
18:58:28.56  12/11/2020:     at LibAPNG.APNG..ctor(Byte[] fileBytes, Boolean CreateFrameForSimplePng, Device Dev)
18:58:28.56  12/11/2020:     at Direct2d.Surface.LoadSurfaceWIC(String Filename, Device Dev, MemoryStream ms)
18:58:28.56  12/11/2020:     at Direct2d.Surface..ctor(String Filename, Device Device)
18:58:28.57  12/11/2020:     at PinballX.FrmMain.ar()
18:58:28.57  12/11/2020:     at PinballX.FrmMain.a0()
18:58:28.57  12/11/2020:     at PinballX.FrmMain..ctor()
18:58:28.57  12/11/2020:  Disposing Plugins

I have wheel overlays disabled in settings. If i delete all logos and just use a 'no image' ping (not apng) everything works again.

I can send you a load of company logos to use if you need them for testing.

PinballX.iniFetching info... log.txtFetching info...

  • Sad 1
Posted

Did a few more tests and I think maybe it just doesn't like 2 frame apngs(?)

Did a fresh install of 4.76 into a new folder. Deleted all images in Media\Company Logos and then placed this apng as a 'No Image.png'. in that folder. Pinballx crash occurs on startup with the Object reference error. If i replace the No image apng with original 4 frame version from a few posts up pinballx starts up ok.

1013325157_NoImage.png.ee92d207c37b9eb869f7ef2610bb2076.png

Hope that helps you reproduce..

log.txtFetching info... PinballX.iniFetching info...

Posted

No problem Tom..  i can confirm the 2 frame apng issue is resolved in 4.78! :) (i did only test company logos though)

One minor thing, when i'm using this apng;

1138074304_Bally(-1990).png.90236db2dfd0ebee6d19c714aa47778d.png

In 4.78 additional detail it shows some weird what i'll call artefacts on the off frame;

On

image.png.0effc10cbb1a61f4799f3942f27f64fb.png

Off

image.png.210a43899f707451574060cdc8232a4e.png 

 

Not sure if it's PinballX or if i just need to make the apng a higher res (only 512*160 now) or change it in some other way.

Let me know what you think. Thanks.

Guest
This topic is now closed to further replies.
×
×
  • Create New...