+  RHDN Forum Archive
|-+  Romhacking
| |-+  ROM Hacking Discussion
| | |-+  [BM 00] Graphics Thread
Pages: [1] 2
Author Topic: [BM 00] Graphics Thread  (Read 1395 times)
KaioShin
Guest
« on: December 12, 2006, 01:53:38 pm »

This thread will collect everything we find out about the graphics the game uses. Where they are, how they are stored and how we get them out and back in.
KaioShin
Guest
« Reply #1 on: December 12, 2006, 01:54:47 pm »

-reserved for later use-
Gemini
Guest
« Reply #2 on: December 17, 2006, 09:14:22 am »

Font located at 0x800, under system\\0002.bin. It's stored in a simple 1BPP format, so it can be dumped and replaced using feidian. Latin characters are already there, but they are not really nice. :/ I'd just create a new font. Suggestions are appreciated.

[edit]It can't be dumped using Feidian due to inverted bit limits. Argh, this means we'll have to code an extractor/reinserter just for a stupid font... >_>[/edit]
« Last Edit: December 17, 2006, 11:01:58 am by Gemini »
Aerdan
Guest
« Reply #3 on: December 17, 2006, 11:24:48 pm »

Is it a 16x16 font, or...? I might suggest a variable-width variant of Leonine Sans Mono, or just use Bitstream Vera Sans; same general style.
Spikeman
Guest
« Reply #4 on: December 21, 2006, 08:29:08 pm »

I think the font's 8x16. Also, I was looking at it in Tile Molester and it looks like it's 2BPP. Are you sure it's 1BPP Gemini?
Gemini
Guest
« Reply #5 on: December 22, 2006, 04:08:18 am »

It's a 16x12 1BPP font using a strange bit configuration (not even Feidian can dump it properly using custom tile definitions).
Spikeman
Guest
« Reply #6 on: December 22, 2006, 06:26:58 pm »

Wait, wouldn't that be 12x16? (12 width, 16 height)
Gemini
Guest
« Reply #7 on: December 23, 2006, 06:46:28 am »

Judge by yourself:
Spikeman
Guest
« Reply #8 on: December 23, 2006, 05:25:24 pm »

Nice! I noticed it was 16x12 after I posted that and tried to figure out how to dump it in FEIDIAN. So did you find how to dump it in FEIDIAN or is that a custom tool? And why is the font backwards?
Klarth
Guest
« Reply #9 on: December 23, 2006, 05:54:00 pm »

Probably used Feidian and is waiting for someone else to make a program that'll do the flipping.  Some games are weird and store the font mirrored or flipped...I don't really really know why.  It's possibly faster to transfer it to VRAM that way in cases such as:

Looping backwards and branching on zero instead of doing a comparison and a branch, saving one operation per loop  Which can yield a ImageDataSize / BytesPerLoopTransferred operation savings.  It could be significant when you don't have many cycles to spare, but I've always found it annoying.
Spikeman
Guest
« Reply #10 on: December 23, 2006, 06:07:14 pm »

Why would you need a program to do the mirroring? Couldn't you just open that in paint or some other program and do horizontal flip? Well, each tile is mirrored, but it wouldn't really matter that much.

And if it was with FEIDIAN, couldn't you just flip the template?
Klarth
Guest
« Reply #11 on: December 23, 2006, 06:17:53 pm »

I never used Feidian, so I wouldn't know.  As for other (commercial) graphics programs, I'm not too familiar with them, but never noticed an automated way of flipping subsections of an image.

In my case, I'd just write a rinky dinky custom util and save time over searching for programs to do that for me.
Gemini
Guest
« Reply #12 on: December 23, 2006, 06:57:00 pm »

Considering nobody is working on this project at the moment, I'll have to write the font conversion utility by myself. Ah, laziness. Roll Eyes

Quote from: Spikeman on December 23, 2006, 06:07:14 pm
Why would you need a program to do the mirroring?
Because it's fucking boring doing that every time in PSP or Photoshop.

Quote
And if it was with FEIDIAN, couldn't you just flip the template?
No, it can't. Told you that before.
Spikeman
Guest
« Reply #13 on: December 23, 2006, 10:31:17 pm »

Do you think you could post the template you used to dump the font in FEIDIAN?
Neil
Guest
« Reply #14 on: December 24, 2006, 09:27:45 am »

Quote from: Gemini on December 22, 2006, 04:08:18 am
It's a 16x12 1BPP font using a strange bit configuration (not even Feidian can dump it properly using custom tile definitions).

Quote from: Spikeman on December 23, 2006, 10:31:17 pm
Do you think you could post the template you used to dump the font in FEIDIAN?

For some reason, I think the answer to that question is a resounding NO.
Pages: [1] 2  


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