A bunch of hooks thrown together to capture frames from AfpViewerScene as transparent PNG files
Needed this for exporting some customizations. I've only tested it with IIDX 32. Your mileage will vary, etc.
- Enable the following patches before starting the game:
Increase 'All Factory Settings' BufferReroute 'All Factory Settings' Test Menu → AfpViewerScene
- Load
AfpViewerEx.dllas a hook library in your game command-line arguments - Boot the game and select ALL FACTORY SETTINGS from the test menu to open the viewer
- Select the animation you want to capture and press Left or Right to pause it
- Press F12 to start capturing, then press Enter to start playing from the beginning
Captured frames are stored in the captures directory next to the AfpViewerEx.dll library
You should be able to convert it to another format now, e.g. .avif which has fairly good browser compatibility
ffmpeg -r 60 -i frame_%05d.png -strict -1 -f yuv4mpegpipe -pix_fmt yuva444p - | avifenc --stdin --fps 60 output.avif
Framerate will vary between animations, so be careful to use the correct value when converting