CoN 25th Anniversary: 1997-2022
So I found out how to rip sprites...

Posted: 2nd May 2006 23:07

*
Cetra
Posts: 2,350

Joined: 19/9/2004

Awards:
Member of more than five years. 
user posted image

I tried a little something today. I have an OpenGL-based emulator for PSX sitting on my PC. Most of the programming I do nowadays is OpenGL-related, for Endless Saga, so I thought I'd try a little something.

In short, I wrote a wrapper for GL functions that would basically dump loaded textures and such on the disk. It worked wonders, and now I have the above. In fact, this will work with ANY PSX game ( that I have... dry.gif ) or PC game.

So yeah. I thought I'd share that. I was quite surprised it actually worked. smile.gif

Edit: Hot damn, it even keeps the alpha channel...

This post has been edited by Silverlance on 2nd May 2006 23:14

--------------------
"Judge not a man by his thoughts and words, but by
the quality and quantity of liquor in his possession
and the likelyhood of him sharing."
Post #115267
Top
Posted: 2nd May 2006 23:20

*
Dragoon
Posts: 1,796

Joined: 15/11/2003

Awards:
Member of more than ten years. Member of more than five years. 
Nice, FFTactics did have the best sprites,
one question, are the sprites stored that way, or did you put random sprites together to show more sprites of more than one thing

--------------------
"Have you ever seen a baby do that before?"
Post #115269
Top
Posted: 2nd May 2006 23:24

*
Cetra
Posts: 2,350

Joined: 19/9/2004

Awards:
Member of more than five years. 
They're stored that way once loaded in memory. I'm just tricking my emulator into using my DLL instead of the real OpenGL DLL. So it tries to build a texture and upload it to the graphic card and my DLL goes, "Yo mate, 'oer here!"

The program looks about, shrugs, and dumps the texture into my DLL, confident the DLL will do its job and ship it over to the graphic card.

"Sucker," sayeth the DLL. It dumps a copy of the texture to the disk then ships it off to the graphic card. A job well done. And that's what I get after the game is run.

The downside is, each sprite being added to the texture means an upload, which means I get a huge amount of incomplete textures to sort through.

--------------------
"Judge not a man by his thoughts and words, but by
the quality and quantity of liquor in his possession
and the likelyhood of him sharing."
Post #115270
Top
Posted: 3rd May 2006 01:07

*
Disciplinary Committee Member
Posts: 564

Joined: 2/7/2004

Awards:
Member of more than ten years. Member of more than five years. Winner of the 2005 100k post contest. 
Heh too bad you chose tactics since there's a way easier to do it since all the sprites for every character/monster/ect. are stored in seperated files in the same folder.

Nice bloodsucked monk you got there. smile.gif

Concerning your ripping, would you also be able to rip the spells also? I'd be really impressed by that!

Oh, with a good scenario, I'd make some flash movies of FFT (scenes).

Heh this is pretty confusing, there are some parts that I can't tell who it belongs to.

--------------------
Sayonara
Post #115275
Top
Posted: 3rd May 2006 01:14

*
Cetra
Posts: 2,350

Joined: 19/9/2004

Awards:
Member of more than five years. 
I could do it with any game. I might try with BoF III sometime this weekend or later this week if I want to take a break from doing other stuff. wink.gif

I could rip spells, yeah. Just gotta be able to actually play up to that point; using an intermediate DLL to hook OpenGL calls AND dumping stuff to the disk bogs the emulator down to the point of crawling at a few FPS. smile.gif

--------------------
"Judge not a man by his thoughts and words, but by
the quality and quantity of liquor in his possession
and the likelyhood of him sharing."
Post #115276
Top
Posted: 3rd May 2006 03:08

*
Engineer
Posts: 387

Joined: 23/6/2005

Awards:
Member of more than ten years. Member of more than five years. 
Im not sure how the emulator interfaces with your opengl hacked dll, but maybe you could include some sort of keyboard off-switch during times when you weren't interested in the textures or sprites. Not sure how much help to the fps that would give you too though.

--------------------
Oh sure, I don't have to get kicked in the junk to activate it, but I like it anyway. -- Thief commenting on the difference between Throw and Blue Magic.
Post #115278
Top
Posted: 3rd May 2006 03:40

*
Cetra
Posts: 2,350

Joined: 19/9/2004

Awards:
Member of more than five years. 
I could try that; I could hook the keyboard and skip the dumping to disk bit when a certain key is held down...

Problem is, I don't know when things get loaded. So once I hit the spot where something I want to dump is, I have to deal with massive dumpage. tongue.gif It would help a lot though.

I should be able to dump models too, like this. In fact, anything graphical. smile.gif It all has to go through OpenGL to get rendered, so I can just catch it and dump as needed...

--------------------
"Judge not a man by his thoughts and words, but by
the quality and quantity of liquor in his possession
and the likelyhood of him sharing."
Post #115279
Top
Posted: 3rd May 2006 14:01

*
Chocobo Knight
Posts: 152

Joined: 27/1/2005

Awards:
Member of more than ten years. Member of more than five years. Third place in CoNCAA, 2006. 
I think that is how most of our digital artists at Heroes of Ivalice got their base sprites for their customized artwork. Here's a few examples of what they did with it for the GMs to use as signatures showing our NPCs. The last two are examples of the formats that some of the players have started to use as their avatars. If you have any questions about the process of getting the sprites out, feel free to ask one of our artists. They're usually pretty friendly. thumbup.gif


user posted image

user posted image

user posted image

user posted image

user posted image

user posted image

user posted image

user posted image

user posted image

user posted image

This post has been edited by Kairo on 3rd May 2006 14:07
Post #115291
Top
Posted: 3rd May 2006 21:31

*
Cetra
Posts: 2,350

Joined: 19/9/2004

Awards:
Member of more than five years. 
Quote (Kairo @ 3rd May 2006 09:01)
I think that is how most of our digital artists at Heroes of Ivalice got their base sprites for their customized artwork.

You sure that's how they got them out and not simply through screencaps from an emulator? If so, kudos to them - takes a lot of knowhow (edit: and patience - it was largely a matter of trial and error... for me, at least) to write a DLL to hook calls like that. wink.gif I tip my proverbial hat to them from one programmer to another, if that's the case, for a job well done.

This post has been edited by Silverlance on 4th May 2006 00:16

--------------------
"Judge not a man by his thoughts and words, but by
the quality and quantity of liquor in his possession
and the likelyhood of him sharing."
Post #115341
Top
Posted: 4th May 2006 06:57

*
Black Waltz
Posts: 869

Joined: 28/9/2002

Awards:
Member of more than ten years. Member of more than five years. Has more than fifteen news submissions to CoN. Contributed to the Final Fantasy IV section of CoN. 
Quote (Silverlance @ 2nd May 2006 18:14)
I could do it with any game. I might try with BoF III sometime this weekend or later this week if I want to take a break from doing other stuff. wink.gif

I could rip spells, yeah. Just gotta be able to actually play up to that point; using an intermediate DLL to hook OpenGL calls AND dumping stuff to the disk bogs the emulator down to the point of crawling at a few FPS. smile.gif

Most excellent. I was just about to ask you if you could do that with BoF III, then I saw the post.

When I rip sprites I generally have to do it the old fashioned way. What a pain in the ass that is.

--------------------
This one time I punched a bear in the forehead TO DEATH! I still have the scars on my chest. I am the manliest man that ever did man.

League: Z3roHawk
Steam: Zero_Hawk
Wii U: Zero_Hawk
FF14 - Goblin - Zero Hawk <Fiend>
Post #115374
Top
Posted: 4th May 2006 22:29

*
Cetra
Posts: 2,350

Joined: 19/9/2004

Awards:
Member of more than five years. 
user posted image

Works. I'm going to see what I can pilfer from BoF III. smile.gif

--------------------
"Judge not a man by his thoughts and words, but by
the quality and quantity of liquor in his possession
and the likelyhood of him sharing."
Post #115426
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: