DC-SWAT Forum
PVR tool pack swat - Версия для печати

+- DC-SWAT Forum (http://www.dc-swat.ru/forum)
+-- Форум: Sega Dreamcast (/forum-2.html)
+--- Форум: English section (/forum-29.html)
+--- Тема: PVR tool pack swat (/thread-3680.html)



PVR tool pack swat - fafadou - 10.02.2020 14:35

Hi,

Hope you are still around here swat I have a problem with your fantastic PVR toolpack :

I can use it properly and extract the PVR from resident evil code veronica.

But this file can be opened by winPVR, but when I want to edit it with photoshop the plug PVR in doesn't open it...
do you think it's possible for you to patch the pvr plug in ?

Here the pvr I want to edit :
https://mega.nz/#!Q7gHyQxR!HNTh9zNNfnp_Qr7WRjEDfx8jEuPWVPsc91LvzF22Snk

and the photoshop plug in I use :
https://mega.nz/#!MnxVzIBI!0EDgkgec2WDe-V391YPWWRwmD4E_ytSDlg1u8DdcBFI

Many thanks :-)


RE: PVR tool pack swat - SWAT - 11.02.2020 14:56

Unfortunately, I don’t know how these plugins work. This plugin from KATANA SDK.


RE: PVR tool pack swat - fafadou - 11.02.2020 17:29

Thank you for answering me SWAT, have you any idea how I can do for edit this pvr ?


RE: PVR tool pack swat - 111 - 11.02.2020 17:49

^
1) Convert pvr to png
2) Edit png
3) Convert png back to pvr

Use WinPVR for steps 1 and 3. If you need to batch convert a lot of files, then use command line tools.

But if you really, really want to use that plugin, then try to find an older version of Photoshop (7.0 or something like that)


RE: PVR tool pack swat - fafadou - 11.02.2020 20:18

Thanks :-) I try to do it but in BMP format and after I came back to PVR, I didn't have the same size.

I use a 2017 version of photoshop but even with the CS2 (I don't know the year) I have the same issue. Prbably 7.0 is older than the CS2.


I'll try with png format.


RE: PVR tool pack swat - kof888 - 12.02.2020 07:01

photoshop plug is .8bi format?

if dnot open pvr,

I guess these are 4 bit and 8 bit PVR images.....


RE: PVR tool pack swat - fafadou - 12.02.2020 11:20

Yeah exactly !
4 bits image

You are meaning the .8bi is for 8bit?


RE: PVR tool pack swat - kof888 - 12.02.2020 14:50

No. 8bi is a Photoshop plug-in that can open PVR,Most PVR files can be opened,

but PVR files in 05 06(4bit) and 07 08 (8bit)format cannot be opened because they need color table (pvp)to open


RE: PVR tool pack swat - fafadou - 12.02.2020 16:13

I agee, the PVR photoshop plug in is very good.
So I have to extract the pvr and add the pvp ?


RE: PVR tool pack swat - kof888 - 12.02.2020 19:01

I don't know if PS can open this format

It can only be converted use new program


RE: PVR tool pack swat - 111 - 13.02.2020 02:37

(12.02.2020 16:13)fafadou писал(а):  So I have to extract the pvr and add the pvp ?
no, you have to find corresponding pvp file first.

It's literally what WinPVR says:


[Изображение: 5vob1nu.jpg]
-------




Actually, I went ahead and tried the first one from SYSTEM.AFS and I guess it matches well:
[Изображение: W7IgWEH.jpg]

also, disregard what I said earlier. Turns out, WinPVR is no good for paletted textures (I never used those, so I did not know) and you can't export as png either.
I'll see what I can do later. No promises though.


RE: PVR tool pack swat - fafadou - 13.02.2020 12:50

How have you done to have the color palette ? Well done !!
Have you some link in order to know how pvr works ? I didn't find any good explanations...


[Изображение: 1581582622-font.png]

I would like to shift the first arrow by 4 pixels to the left and the second by 1 pixel to the left.
Move the downward pointing arrow is optional, 1 pixel is just for polish.


I have a last thing with another PVR picture is to copy some text in my langage version. I have the both PVR is "just" an import of the missing text.
A clever copy/past will be enough too.

May it can be one with an hex editor ?


RE: PVR tool pack swat - 111 - 13.02.2020 21:04

(13.02.2020 12:50)fafadou писал(а):  How have you done to have the color palette ? Well done !!
I ripped palette file with a hex editor, see below.

(13.02.2020 12:50)fafadou писал(а):  Have you some link in order to know how pvr works ? I didn't find any good explanations...
There is some information about file formats and tools like texconv, but nothing helpful regarding paletted pvrs.

By the way, that photoshop plugin is also useless for paletted textures, so forget it.
=========================


So I have some good news. Looks like the game accepts arbitrary texture formats, so you don't have to make a paletted one. At least I managed to successfully replace one of the game's font texture (paletted) with VQ'd one:
[Изображение: rNLh84h.jpg]
[Изображение: ympILYr.jpg]

[Изображение: BgkSjie.jpg]
[Изображение: V4BuXxA.jpg]


Here is how it's done:

1) Find your pvr file inside AFS file with a hex editor. Then look for a palette file, It should be right before your pvr. In my case it looks like this:

[Изображение: 3HJvaI8.jpg]

If you don't need the original palette, skip this step.

2) Open pvr file with WinPVR and export it as any non-paletted format
3) Convert exported pvr to png with pvr2png
4) Edit png
5) Open png with WinPVR, generate VQ (I only tested 4444 format, but others should work as well) and export it
6) Replace original pvr with exported one


... and I think I'm done here. The rest is up to you. Good luck.


RE: PVR tool pack swat - fafadou - 13.02.2020 23:51

Whouah many thanks !! Especially for taking time to explain.
Let's go !


RE: PVR tool pack swat - fafadou - 14.02.2020 12:17

I'm sorry to bother you again, I tried many entries in pvr2png and I have this issue :

[Изображение: 1581667932-png.png]

And last question, I don't understand exactly what the VQ is ? It's the palette file ?


RE: PVR tool pack swat - 111 - 14.02.2020 15:42

(14.02.2020 12:17)fafadou писал(а):  I'm sorry to bother you again, I tried many entries in pvr2png and I have this issue :
looks like you are trying to convert paletted pvr. Have you done this:
Цитата:2) Open pvr file with WinPVR and export it as any non-paletted format
?
also, you don't have to use command line, just drag'n'drop your pvr file onto exe (default options are good enough)

(14.02.2020 12:17)fafadou писал(а):  And last question, I don't understand exactly what the VQ is ? It's the palette file ?
VQ stands for Vector Quantization. It is a lossy (but very effective) compression algorithm used for textures.


RE: PVR tool pack swat - fafadou - 15.02.2020 14:02

I think my pvr is now I can open it with photoshop even if I don't repack the game at now.
But I don't have the good palette. It's still in grey.
Have you do it manually ?

[Изображение: 1581760909-file.png]


RE: PVR tool pack swat - fafadou - 20.02.2020 15:16

finally I succeed to edit it ! :
Before :
https://ibb.co/L9Gpcqv

And after :-) :
https://i.ibb.co/D5PPNr8/fleche-ok.png

Thanks a lot