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. Thank you for your support. Tom Speirs

Patreon

Heads up - APNG support incoming.


Tom Speirs

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

1 hour ago, 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.

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

4 hours ago, 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)

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

Link to comment
Share on other sites

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.ini log.txt

  • Sad 1
Link to comment
Share on other sites

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.txt PinballX.ini

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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