.PNG.PHYRE Imagine format
.PNG.PHYRE Imagine format
Hello! I'm trying to 'extract' the PNG file in a .PNG.PHYRE file, but I'm not sure how to do this.
Is someone familiar with the format and willing to instruct me on how to proceed? Thanks!
File: vis115.png.phyre
Is someone familiar with the format and willing to instruct me on how to proceed? Thanks!
File: vis115.png.phyre
-
- Programmer
- Posts: 995
- Joined: Mon Mar 09, 2015 3:03 pm
Re: .PNG.PHYRE Imagine format
I looked but could not figure it out.
Image data starts at 0xF8F, 32 bits per pixel, RGBA, and 1 million pixels exactly.
There's something going on here - I couldn't see the image.
I tried TiledGGD (would work if this is a tiled image - seems like it could be) but I can't find the right settings.
Image data starts at 0xF8F, 32 bits per pixel, RGBA, and 1 million pixels exactly.
There's something going on here - I couldn't see the image.
I tried TiledGGD (would work if this is a tiled image - seems like it could be) but I can't find the right settings.
Re: .PNG.PHYRE Imagine format
This is a PS3 file, right?
I guess the data is swizzled, and perhaps the mipmaps are there too.
I guess the data is swizzled, and perhaps the mipmaps are there too.
-
- Programmer
- Posts: 995
- Joined: Mon Mar 09, 2015 3:03 pm
Re: .PNG.PHYRE Imagine format
How to unswizzle? Do you have real or pseudo code already that does it? Also, I did not know what a mip map is before looking it up.
I also don't understand swizzling. This wikipedia article is incomprehensible: https://en.wikipedia.org/wiki/Swizzling ... raphics%29
Didn't understand this one either: https://fgiesen.wordpress.com/2011/01/1 ... swizzling/
I don't think I'll be able to solve it.
I also don't understand swizzling. This wikipedia article is incomprehensible: https://en.wikipedia.org/wiki/Swizzling ... raphics%29
Didn't understand this one either: https://fgiesen.wordpress.com/2011/01/1 ... swizzling/
I don't think I'll be able to solve it.
Re: .PNG.PHYRE Imagine format
On page 3 there is some explanation on that.
https://research.ncl.ac.uk/game/masters ... turing.pdf
Also I found this code in C:
http://asmodean.reverse.net/misc/_/exhappyend.zip
It won't work for this file as it is,but I see some similarities in there, perhaps I can get something from this.
https://research.ncl.ac.uk/game/masters ... turing.pdf
Also I found this code in C:
http://asmodean.reverse.net/misc/_/exhappyend.zip
It won't work for this file as it is,but I see some similarities in there, perhaps I can get something from this.
Re: .PNG.PHYRE Imagine format
I'm still looking into this, but all I can do is provide another example in case the first one is corrupted or anything.
https://drive.google.com/open?id=0Bw-dU ... G5sckExX2c
Based on what I've seen of the game so far, I think this should be a PNG file containing Alisa.
https://drive.google.com/open?id=0Bw-dU ... G5sckExX2c
Based on what I've seen of the game so far, I think this should be a PNG file containing Alisa.
Re: .PNG.PHYRE Imagine format
well,a lot of source code was missing,but I was able to find something to unswizzle in PhyreEngine code.
The way it's divided looks a bit off,but perhaps it's supposed to be like that in order to keep it 1024x1024?
I'll check if it works on the other one too
The way it's divided looks a bit off,but perhaps it's supposed to be like that in order to keep it 1024x1024?
I'll check if it works on the other one too
- Attachments
-
- vis1152.jpg (148.82 KiB) Viewed 10131 times
Re: .PNG.PHYRE Imagine format
Here goes the other one:
Re: .PNG.PHYRE Imagine format
Wow, this is amazing and confirms my earlier assumption that the former is one of the few visuals not used in th final version of the game.
Would you mind elaborating the steps you've taken to achieve these results? That way, I can go through the remaining ones myself.
Great work, once again, josejl.
Would you mind elaborating the steps you've taken to achieve these results? That way, I can go through the remaining ones myself.
Great work, once again, josejl.
Re: .PNG.PHYRE Imagine format
I used the source code as the base,but it was missing quite a few key functions (the actual unswizzling for instance).
Also,what I got working right now is quite hacky,it outputs raw pixel data,so you can't open it using normal tools.
Also it's flipped upside down,but that can be fixed easily.
Also the file input is hardcoded right now,I have to fix that.
Would you be fine with png output? I think that shouldn't be too hard for me to add.
Also,what I got working right now is quite hacky,it outputs raw pixel data,so you can't open it using normal tools.
Also it's flipped upside down,but that can be fixed easily.
Also the file input is hardcoded right now,I have to fix that.
Would you be fine with png output? I think that shouldn't be too hard for me to add.
Re: .PNG.PHYRE Imagine format
I'll take whatever I can get -- PNG output would be great. 

Re: .PNG.PHYRE Imagine format
Here it is. Just drag a png.phyre over the exe file and it will write a png file (Vis115.png.phyre will output a Vis115.png file) . So far it only handles one file at a time.
If you need it,I can make some quick .bat so it can process all files in a folder (are all the files ended with .png.phyre?)
You might need to install Visual C++ 2015 runtime if it complains about some MSVC-something dll.
If you need it,I can make some quick .bat so it can process all files in a folder (are all the files ended with .png.phyre?)
You might need to install Visual C++ 2015 runtime if it complains about some MSVC-something dll.
- Attachments
-
- phyre2png.rar
- (118.13 KiB) Downloaded 423 times
Re: .PNG.PHYRE Imagine format
Wow, this is amazing. Thank you so much. Having a .bat would speed up the process of converting a lot.
The files are either dae.phyre (for polygonal models), dds.phyre (textures, can be opened with TextureFinder) and these png.phyres.
The files are either dae.phyre (for polygonal models), dds.phyre (textures, can be opened with TextureFinder) and these png.phyres.
Re: .PNG.PHYRE Imagine format
Here it is then, pretty straightforward I would say.
- Attachments
-
- batch.rar
- (114 Bytes) Downloaded 362 times
Re: .PNG.PHYRE Imagine format
Thanks a lot, for both making the conversion tool and making it so simple. I'm going to take it a spin tonight after work.
Re: .PNG.PHYRE Imagine format
Does anyone have the batch file for this program that josejl made? I can't seem to download it anymore. I'd love to take a look and see if there is anymore unused graphics in CS2.
Re: .PNG.PHYRE Imagine format
I think I don't have it anymore, however, I made a texture dump for both CS1 and CS2
https://mega.nz/#F!zE0Fmbqb!RMSRkPxpPjp8baSEiYyQUQ
https://mega.nz/#F!zE0Fmbqb!RMSRkPxpPjp8baSEiYyQUQ
-
- Programmer
- Posts: 995
- Joined: Mon Mar 09, 2015 3:03 pm
Re: .PNG.PHYRE Imagine format
You'll have to excuse me for not knowing how to code properly.
Maybe try this?
https://pastebin.com/bsGAszSq
You need to know the image size to make it work, I think.
When Gu4n gave me this problem last year, I didn't know how to unswizzle.
I still don't have it figured out. Is Alisa supposed to be rotated in that sample image?
The rotated one is yx swizzle order and the upside-down one is xy swizzle order. Is that just how it is?
Maybe try this?
https://pastebin.com/bsGAszSq
You need to know the image size to make it work, I think.
When Gu4n gave me this problem last year, I didn't know how to unswizzle.
I still don't have it figured out. Is Alisa supposed to be rotated in that sample image?
The rotated one is yx swizzle order and the upside-down one is xy swizzle order. Is that just how it is?
- Attachments
-
- output1.png (526.06 KiB) Viewed 9304 times
-
- output.png (499.61 KiB) Viewed 9304 times
Re: .PNG.PHYRE Imagine format
Don't give it much thought, in some graphics systems, the y axis is inverted, that's why they appear upside down, so yeah, it's x-y
-
- Programmer
- Posts: 995
- Joined: Mon Mar 09, 2015 3:03 pm
Re: .PNG.PHYRE Imagine format
If the image is really inverted, you'd just need to pass in the rows backwards (last row first). That's easy to do in Python, but it's left as an exercise for the reader
Here's a hint:
If you do at the prompt:
l = [1,2,3]
l[::-1]
You get:
[3, 2, 1]
If the image is mirrored (both upside down AND backwards), you'd need to pass in backwards rows backwards. That's probably not too hard either.

If you do at the prompt:
l = [1,2,3]
l[::-1]
You get:
[3, 2, 1]
If the image is mirrored (both upside down AND backwards), you'd need to pass in backwards rows backwards. That's probably not too hard either.
Who is online
Users browsing this forum: No registered users and 2 guests