Register - Login
Views: 85626053
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - JCS - Stats - Latest Posts - Color Chart - Smilies
09-21-17 07:23:32 PM

Jul - Game Research/Hacking/Modding - Sega BAKU BAKU (PC) Sprites? New poll - New thread - New reply
Next newer thread | Next older thread
tkrn
Random nobody
Level: 4


Posts: 1/4
EXP: 177
For next: 102

Since: 05-16-16


Since last post: 90 days
Last activity: 83 days

Posted on 05-16-16 11:57:24 AM (last edited by tkrn at 06-23-17 11:15:51 AM) Link | Quote
All -

I am trying to view sprites that was apart of the Sega BAKU BAKU (PC) game. It was coded in Visual C++ and it uses Intel's RDX (dino2d.dll) for the graphics. It appears it leverages the dino2d.dll to display the sprites and it appears it's not in 'standard sprite' format that most viewers try to open sprites up in.

Can any one assist in converting the following sprites/animation to BMP? See http://nthnk.com/u/tkrn/TITLE.SPR

Thanks!
xdaniel
660
Level: 51


Posts: 630/661
EXP: 963347
For next: 50591

Since: 12-04-08
From: Germany

Since last post: 12 days
Last activity: 4 hours

Posted on 05-16-16 08:27:40 PM (last edited by xdaniel at 05-16-16 08:29:21 PM) Link | Quote
Good news:

- At least TITLE.SPR contains simple, indexed 8bpp data. Dunno about the others.
- There's multiple images per file, and each image has, first, an (un)signed short specifying the image's width in pixels, second, another short specifying the height, and lastly, the image data itself.

That's enough to display (some of) the images in Tile Molester, such as this Sega logo at 0x25B1C in TITLE.SPR:


Bad news:

- There are no palettes that I can see. The colors will be scrambled unless you'll be able to find them in another file.
- There's no pointer table or similar that points to each of the images. I guess you can calculate the offsets, tho (width*height=size of image data; current offset+4+data size=next image offset).

Uncertain:

- Haven't really checked the other files, so I dunno if there might be different color depths and/or pixel formats than indexed 8bpp. Probably not.

Edit, mind you, I've only looked at these very briefly. Maybe there's ex. palettes and I just haven't seen them while glancing over the data at 2:20 am. Hope this'll still give you an idea of what's in the files.
tkrn
Random nobody
Level: 4


Posts: 2/4
EXP: 177
For next: 102

Since: 05-16-16


Since last post: 90 days
Last activity: 83 days

Posted on 05-19-16 11:56:49 PM Link | Quote
xdaniel - This is great news! How did you get it to display in Tile Molester? Also is that 8bpp linear? I see there are a few 8bpp options. Also, what was the dimensions you got for the Sega logo? 88px (00 58) x 32px (00 20)? If that is the case, then the image would be 88 * 32 * 8 = 22528 total bytes until the next image offset?

Thanks again! I don't know how you figured this out but I'm amazed!
xdaniel
660
Level: 51


Posts: 631/661
EXP: 963347
For next: 50591

Since: 12-04-08
From: Germany

Since last post: 12 days
Last activity: 4 hours

Posted on 05-20-16 04:52:07 AM Link | Quote
It's 8bpp linear, as well as 2-dimensional (menu "View" -> "Mode"). As for the Sega logo, it is 88 by 32 pixels, but you don't have to multiply by 8; 8bpp means 8 bits per pixel, so one byte, and thus it's just 88 * 32 = 2816 (0xB00 hex).

So, ex. starting at 0x25B1C, you add 4 to that (because of the width and height shorts), then add 0xB00, which gives you 0x26620, which is where you'll find the dimensions of the next image.

(Also, my screenshot is technically from 0x25B20, skipping the width/height values, should've clarified that in the post )
tkrn
Random nobody
Level: 4


Posts: 3/4
EXP: 177
For next: 102

Since: 05-16-16


Since last post: 90 days
Last activity: 83 days

Posted on 06-14-16 04:55:27 PM (last edited by tkrn at 06-20-16 02:51:58 PM) Link | Quote
I'm not sure about the palette information but the application requires the color depth to be set to 256 colors (Windows 95/98) to run. I would think that would a clue to the palette information? Thoughts?

I also wrote a small app to calculate dimensions, start:stop address of data then to write an individual file for each block of data.

tkrn
Random nobody
Level: 4


Posts: 4/4
EXP: 177
For next: 102

Since: 05-16-16


Since last post: 90 days
Last activity: 83 days

Posted on 06-23-17 11:11:26 AM Link | Quote
xdaniel - Thanks for you help thus far. Maybe you can help me get over the last hurtle. I've reviewed all my math + conversions multiple times but I keep on getting this clipping. See my offsets below.

Header: 25B1C-25B1F (length 4) - dimensions 88x32
Data: 25B20 - 2661F (length 2816, hex b00)

2017-06-23_11-01-27.png

2017-06-23_11-04-33.png
Next newer thread | Next older thread
Jul - Game Research/Hacking/Modding - Sega BAKU BAKU (PC) Sprites? New poll - New thread - New reply




Rusted Logic

Acmlmboard - commit 2f1bc75 [2017-08-27]
©2000-2017 Acmlm, Xkeeper, Inuyasha, et al.

26 database queries, 3 query cache hits.
Query execution time: 0.142741 seconds
Script execution time: 0.006317 seconds
Total render time: 0.149058 seconds