+  RHDN Forum Archive
|-+  Romhacking
| |-+  General Romhacking
| | |-+  Chrono Cross Background Viewer
Pages: [1]
Author Topic: Chrono Cross Background Viewer  (Read 1 times)
Magil
Guest
« on: December 27, 2009, 01:26:22 pm »

I made a small tool these days. As the title says, it can view backgrounds from a Chrono Cross iso.
You'll need .net framework in order to run it.

Quote
http://cc.ffsky.cn/files/roomviewer.zip

It supports both US version and JP version, cd 1 and cd 2, though the GUI has not been polished.
Currently it only supports 2352 bytes sector iso, but you can change a number in the source code to support 2048 one (doesn't seem necessary though).

How to use:
File -> Open ISO  Select your iso file.
File -> Save Image Save current rendered image as png.
File -> Exit Quit
? No function
About No function

Checkboxes are used to disable/enable layers, sometimes you need to disable some layers to get a correct image.
The number selector is used to switch rooms. It takes some time to load a room.
Some rooms are empty in disc 1 or disc 2 though.
creaothceann
Guest
« Reply #1 on: December 27, 2009, 02:45:51 pm »

Sweet! :thumbsup:

Some questions...

- Are you opening the image in read-write mode? I can't select one if it's mounted by a virtual CD program.
- A version that saves to "<user-selected save directory>\\<room number>\\<layer>.png" and uses transparency?
- Any chance for a commandline+frontend version? (would make it easier to automate dumping)
Magil
Guest
« Reply #2 on: December 27, 2009, 10:34:17 pm »

Quote
- Are you opening the image in read-write mode? I can't select one if it's mounted by a virtual CD program.
Code:
baseStream = new FileStream(path, FileMode.Open);
That is strange since I use FileMode.Open. And I've tested it with DaemonTools, it can't be loaded...


Edit*
Code:
baseStream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read);
Fixed.


Quote
- A version that saves to "<user-selected save directory>\\<room number>\\<layer>.png" and uses transparency?
- Any chance for a commandline+frontend version? (would make it easier to automate dumping)
Yeah, I wrote a dumper that dumps all layers and tiles into one folder and it supports command line. But it needs other tools so I abandoned it. Maybe I can rework on it based on this tool

You know the backgrounds are contructed by tiles, a png can' provide all informations, so I planned to use some text file to store those informations. And about transparency, it is kinda tricky because some tiles use different blending methods, so alpha channel is not enough.
« Last Edit: December 28, 2009, 12:41:01 am by Magil »
creaothceann
Guest
« Reply #3 on: December 28, 2009, 06:37:03 am »

Quote from: Magil on December 27, 2009, 10:34:17 pm
Fixed.
Yay Smiley

Quote from: Magil on December 27, 2009, 10:34:17 pm
You know the backgrounds are contructed by tiles, a png can' provide all informations, so I planned to use some text file to store those informations. And about transparency, it is kinda tricky because some tiles use different blending methods, so alpha channel is not enough.
What kind of blending modes?
Magil
Guest
« Reply #4 on: December 28, 2009, 07:38:50 am »

For example (B for background color, F for foreground color)

C = (B + F) / 2
C = B + F/2
C = B + F/4
C = B + F
C = B - F

These are generic blending methods for psx. CC doesn't use all of them though.  B - F is for shadows as for as I know. One of the others is used for mist and some light effects (for example those display screens in Chronopolis).

creaothceann
Guest
« Reply #5 on: December 28, 2009, 09:47:27 am »

This could be solved by storing B and F separately... unless there's more to it?

B - F could be done with F saved to PNG with inverted values.
Pages: [1]  


Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC