Tom Speirs Posted November 4, 2020 Share Posted November 4, 2020 Heads up - APNG support incoming. 1 2 Link to comment Share on other sites More sharing options...
scutters Posted November 4, 2020 Share Posted November 4, 2020 Awesome! Link to comment Share on other sites More sharing options...
Mike_da_Spike Posted November 4, 2020 Share Posted November 4, 2020 19 minutes ago, Tom Speirs said: Heads up - APNG support incoming. Hide Tom Speirs's signature Hide all signatures Nice ! @scutters we got work to do ! Link to comment Share on other sites More sharing options...
scutters Posted November 5, 2020 Share Posted November 5, 2020 21 hours ago, Mike_da_Spike said: @scutters we got work to do ! Yep! @Tom Speirs I'm guessing apng's will be supported for all media where gif is currently (loading gif, company / system logos, wheels etc), and use '.apng' as an extension (i think they can use '.png' too, if so that could get confusing!)? Link to comment Share on other sites More sharing options...
Tom Speirs Posted November 5, 2020 Author Share Posted November 5, 2020 Yes, basically, but but it should detect animation automatically so no need for apng file extension. 1 Link to comment Share on other sites More sharing options...
scutters Posted November 9, 2020 Share Posted November 9, 2020 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!) 1 Link to comment Share on other sites More sharing options...
Mike_da_Spike Posted November 9, 2020 Share Posted November 9, 2020 nice animated wheel @scutters ! 1 Link to comment Share on other sites More sharing options...
Mike_da_Spike Posted November 9, 2020 Share Posted November 9, 2020 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 1 Link to comment Share on other sites More sharing options...
Tom Speirs Posted November 10, 2020 Author Share Posted November 10, 2020 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. 1 Link to comment Share on other sites More sharing options...
scutters Posted November 10, 2020 Share Posted November 10, 2020 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. Hide Tom Speirs's signature Hide all signatures 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 More sharing options...
Tom Speirs Posted November 10, 2020 Author Share Posted November 10, 2020 Great. I will add the .apng extension for logos so PinballX knows not to cache those images but still support trimming and overlays for regular pngs. 1 Link to comment Share on other sites More sharing options...
scutters Posted November 10, 2020 Share Posted November 10, 2020 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) Link to comment Share on other sites More sharing options...
scutters Posted November 10, 2020 Share Posted November 10, 2020 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 More sharing options...
Tom Speirs Posted November 10, 2020 Author Share Posted November 10, 2020 Finally all good now. Thanks for your help. 1 Link to comment Share on other sites More sharing options...
scutters Posted November 11, 2020 Share Posted November 11, 2020 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! Link to comment Share on other sites More sharing options...
scutters Posted November 12, 2020 Share Posted November 12, 2020 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 1 Link to comment Share on other sites More sharing options...
Tom Speirs Posted November 13, 2020 Author Share Posted November 13, 2020 hmm, having trouble duplicating this. Could you provide specifics please? Link to comment Share on other sites More sharing options...
scutters Posted November 13, 2020 Share Posted November 13, 2020 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. Hope that helps you reproduce.. log.txt PinballX.ini Link to comment Share on other sites More sharing options...
Tom Speirs Posted November 15, 2020 Author Share Posted November 15, 2020 Sorry for the delay, but I did release a new version and I think we are all good now. Cheers. Tom, Link to comment Share on other sites More sharing options...
scutters Posted November 15, 2020 Share Posted November 15, 2020 Just tried V4.77 (64bit), no change with the 2 frame apng i'm afraid. Deleted all company logos and used that apng as a No Image file, same error. 4 frame apng works ok. log.txt Link to comment Share on other sites More sharing options...
Tom Speirs Posted November 15, 2020 Author Share Posted November 15, 2020 okay, thanks. I will test with that file. Link to comment Share on other sites More sharing options...
Tom Speirs Posted November 15, 2020 Author Share Posted November 15, 2020 sorted in 4.78 Thanks for your help. 1 Link to comment Share on other sites More sharing options...
scutters Posted November 19, 2020 Share Posted November 19, 2020 On 11/15/2020 at 4:05 PM, Tom Speirs said: sorted in 4.78 Thanks for your help. Hide Tom Speirs's signature Hide all signatures Due for release soon? Link to comment Share on other sites More sharing options...
Tom Speirs Posted November 19, 2020 Author Share Posted November 19, 2020 Out now. Sorry about that. New PC build amongst other things. Cheers. Tom. 1 Link to comment Share on other sites More sharing options...
scutters Posted November 19, 2020 Share Posted November 19, 2020 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; In 4.78 additional detail it shows some weird what i'll call artefacts on the off frame; On Off 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 More sharing options...
Recommended Posts