Batch PNG to PVR conversion

Discussion of topics related to licensed games, software hacking/modification, prototypes, and development kits belongs here. Includes topics related to emulating the Dreamcast console on your computer or on another gaming console. Discussion of Reicast should go in the Official Reicast Forum.
Post Reply
User avatar
not just souLLy now
DCEmu Respected
DCEmu Respected
Posts: 4069
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Sun Jun 13, 2004 5:53 pm
Location: UK
Has thanked: 2 times
Been thanked: 3 times

Batch PNG to PVR conversion

Post by not just souLLy now »

Anyone know if there's a way to do a batch conversion of a folder of PNGs to PVRs? Every tool I'm aware of converts one at a time.
User avatar
Juan
DCEmu Commie
DCEmu Commie
Posts: 3398
Joined: Sun Jun 15, 2003 11:47 pm
Location: Montevideo
Has thanked: 39 times
Been thanked: 3 times

Re: Batch PNG to PVR conversion

Post by Juan »

Well, you could use a loop, say for the windows console:

for %f in (*.png) do pvrtool -i "%f" "%f.pvr"

or something similar to that.
These users thanked the author Juan for the post (total 2):
not just souLLy nowProtofall
User avatar
Protofall
DCEmu Freak
DCEmu Freak
Posts: 78
Joined: Sun Jan 14, 2018 8:03 pm
Location: Emu land
Has thanked: 21 times
Been thanked: 18 times
Contact:

Re: Batch PNG to PVR conversion

Post by Protofall »

Juan wrote: Sun Apr 11, 2021 7:17 pm Well, you could use a loop, say for the windows console:

for %f in (*.png) do pvrtool -i "%f" "%f.pvr"

or something similar to that.
Also if you want to, you could use a tool like "Texture packer" to combine the pngs into 1 png, then convert that to dtex. Just be aware about using too many colours for paletted images, image size and vram limitations.
These users thanked the author Protofall for the post (total 2):
Juannot just souLLy now
Moving Day: A clone of Dr Mario with 8-player support <https://dcemulation.org/phpBB/viewtopic ... 4&t=105389>
A recreation of Minesweeper for the Dreamcast <viewtopic.php?f=34&t=104820>

Twitter <https://twitter.com/ProfessorToffal>
YouTube (Not much there, but there are a few things) <https://www.youtube.com/user/TrueMenfa>
Post Reply