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: 4050
Joined: Sun Jun 13, 2004 5:53 pm
Location: UK
Has liked: 2 times
Been liked: 1 time

Batch PNG to PVR conversion

Post by not just souLLy now » Sun Apr 11, 2021 4:34 pm

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: 3381
Joined: Sun Jun 15, 2003 11:47 pm
Location: Montevideo
Has liked: 23 times
Been liked: 3 times

Re: Batch PNG to PVR conversion

Post by Juan » 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.
These users liked the author Juan for the post (total 2):
not just souLLy nowProtofall
User avatar
Protofall
DCEmu Freak
DCEmu Freak
Posts: 74
Joined: Sun Jan 14, 2018 8:03 pm
Location: Emu land
Has liked: 20 times
Been liked: 14 times
Contact:

Re: Batch PNG to PVR conversion

Post by Protofall » Fri Apr 16, 2021 5:57 am

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 liked 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