Export and Import QFG5 Backgrounds with qfg5pano

Not finding any Glory in this whole Quest for Glory bit? Need a hint? Or just want to discuss Quest for Glory - this is the place to do it!
Post Reply
GMFattay
Noob
Posts: 6
Joined: Sun Jan 27, 2013 3:32 pm
Gender: Not Specified

Export and Import QFG5 Backgrounds with qfg5pano

Post by GMFattay »

Qfg5pano is a command-line program that imports and exports panorama backgrounds to and from Quest for Glory 5. An exported background can be modified in image editing software and imported back into the game.

The community may be particularly interested in the unused WIP backgrounds found in some of the game's files. Some of the backgrounds also make nice desktop wallpapers :)

Example of exported background:
Image

Details and Download Links here: http://qfgmods.net/index.php?title=Qfg5pano
Image
QFGMods.net - Your resource for QFG modding.
User avatar
Collector
Grand Poobah
Posts: 12013
Joined: Wed Oct 08, 2008 12:57 am
Location: Sierraland
Contact:

Re: Export and Import QFG5 Backgrounds with qfg5pano

Post by Collector »

Nice. Is this your work?
01000010 01111001 01110100 01100101 00100000 01101101 01100101 00100001

Image
GMFattay
Noob
Posts: 6
Joined: Sun Jan 27, 2013 3:32 pm
Gender: Not Specified

Re: Export and Import QFG5 Backgrounds with qfg5pano

Post by GMFattay »

Yeah. I'm usually a web programmer so it took a bit of research and learning to write the program.

I'll be looking into extracting the region data (RGD files) for the backgrounds at some point and also the look and touch data.

The program is open source and can be freely extended by others ( background viewer GUI?). There are a few other programs on qfgmods.net for extracting and importing things like the meshes and skins from the game.
Image
QFGMods.net - Your resource for QFG modding.
User avatar
Tawmis
Grand Poobah's Servant
Posts: 20947
Joined: Wed Oct 08, 2008 1:19 am
Gender: Not Specified
Contact:

Re: Export and Import QFG5 Backgrounds with qfg5pano

Post by Tawmis »

This is pretty freaking amazing.
User avatar
Collector
Grand Poobah
Posts: 12013
Joined: Wed Oct 08, 2008 12:57 am
Location: Sierraland
Contact:

Re: Export and Import QFG5 Backgrounds with qfg5pano

Post by Collector »

C# is my preference, so I will have a look when I get time.
01000010 01111001 01110100 01100101 00100000 01101101 01100101 00100001

Image
GMFattay
Noob
Posts: 6
Joined: Sun Jan 27, 2013 3:32 pm
Gender: Not Specified

Re: Export and Import QFG5 Backgrounds with qfg5pano

Post by GMFattay »

Awesome, thanks for the comments guys - it would be awesome to get some help from other programmers =]

Another element of the backgrounds I forgot to mention is the animation overlays (GRA files). I have yet to investigate these aswell.
Image
QFGMods.net - Your resource for QFG modding.
GMFattay
Noob
Posts: 6
Joined: Sun Jan 27, 2013 3:32 pm
Gender: Not Specified

Re: Export and Import QFG5 Backgrounds with qfg5pano

Post by GMFattay »

Collector wrote:C# is my preference, so I will have a look when I get time.
Cool as, just let me know if you need any pointers as my code comments are quite sporadic :lol:
Image
QFGMods.net - Your resource for QFG modding.
Chixdiggit
Noob
Posts: 9
Joined: Thu Jan 18, 2018 12:24 pm
Gender: Not Specified

Re: Export and Import QFG5 Backgrounds with qfg5pano

Post by Chixdiggit »

I'm not super familiar with the fifth Quest for Glory game but am I right in that there is no true 3d besides the characters, that the backgrounds are all prerendered? If so, what is the method for 360 degree (or whatever, 270) viewing? I remember being a teen when the demo for this came out, and trying to stitch the backgrounds together with screen grabs, and finding that there was a perspective misalignment when looking left to right, so I always assumed there was a sort of 3d going on.

I do have a memory falling in a net-hole and reading of somebody, somewhere making a 3d extraction tool. But that's probably a faulty memory and I am thinking of this same topic.

Thanks guys.
User avatar
Rath Darkblade
The Cute One
Posts: 12953
Joined: Fri Oct 24, 2008 5:15 am
Location: Lost in Translation
Gender: Male
Contact:

Re: Export and Import QFG5 Backgrounds with qfg5pano

Post by Rath Darkblade »

Chixdiggit! :shock: Is that really you? The last time I "saw" you was at Hans Halfwitten's Halfwittenberg Door! (Now defunct, alas). How the hell are you? :D
User avatar
Tawmis
Grand Poobah's Servant
Posts: 20947
Joined: Wed Oct 08, 2008 1:19 am
Gender: Not Specified
Contact:

Re: Export and Import QFG5 Backgrounds with qfg5pano

Post by Tawmis »

Rath Darkblade wrote:Chixdiggit! :shock: Is that really you? The last time I "saw" you was at Hans Halfwitten's Halfwittenberg Door! (Now defunct, alas). How the hell are you? :D
It's the same person - they emailed me directly to ask if I can create an account for them since Forum Registration is currently disabled.
adeyke
Oldbie
Posts: 799
Joined: Wed Sep 16, 2009 11:47 pm

Re: Export and Import QFG5 Backgrounds with qfg5pano

Post by adeyke »

Unlike many games with a pre-rendered background, QfG5 had a moving camera. The simplest way to simulate this would just be by zooming and panning the background, but I'm not sure if QfG5 did something more complex than that. If there's even a small difference in the zoom level, you won't be able to fit separate screenshots together (and even if you scale them to fit, the lossy nature of this could still leave the seam noticeable).

Also, while the graphics themselves are pre-rendered, there must be some sort of information about what 3D space an image represents. The 2D games do this by having each background image be accompanied by a control screen defining the walkable areas and a priority screen defining what parts of the image are foreground and what parts are background. QfG5 seems to go beyond this, though, with projectiles able to bounce off of or stick into various parts of the background. I'm not sure how they did this, but it wouldn't surprise me if the game actually did have rudimentary 3D models of the scenes that weren't displayed but were used to define these sorts of collisions.
User avatar
Collector
Grand Poobah
Posts: 12013
Joined: Wed Oct 08, 2008 12:57 am
Location: Sierraland
Contact:

Re: Export and Import QFG5 Backgrounds with qfg5pano

Post by Collector »

Might be worth it to ask Cory about it.
01000010 01111001 01110100 01100101 00100000 01101101 01100101 00100001

Image
Chixdiggit
Noob
Posts: 9
Joined: Thu Jan 18, 2018 12:24 pm
Gender: Not Specified

Re: Export and Import QFG5 Backgrounds with qfg5pano

Post by Chixdiggit »

Hi Rath :) I'm still me, just about 20 years older, etc etc. It happens to a lot of people! ;)

Adeyke that was a really good and detailed response, thank you!

Well I had some fun playing around with this tool and the others on that wiki. Some of the backgrounds extracted were glitched out, did this happen to anyone else?

2100
2101
2800
3000
3400
3500
4501
4502
4600
5501
5801

for example
Image
User avatar
Semi-Happy Partygoer
Oldbie
Posts: 525
Joined: Sun Jun 25, 2017 11:44 pm

Re: Export and Import QFG5 Backgrounds with qfg5pano

Post by Semi-Happy Partygoer »

Chixdiggit wrote: Wed Feb 07, 2024 12:22 pm Hi Rath :) I'm still me, just about 20 years older, etc etc. It happens to a lot of people! ;)

Adeyke that was a really good and detailed response, thank you!

Well I had some fun playing around with this tool and the others on that wiki. Some of the backgrounds extracted were glitched out, did this happen to anyone else?

2100
2101
2800
3000
3400
3500
4501
4502
4600
5501
5801

for example
Image
Yes, I noticed the same glitches when I exported the backgrounds. Some of them just won’t export with the right palettes.

If you have the playable demo included on the Soundtrack CD, a few of those seemed to export better than the final game resources. The thieves guild backdrop, for example.
"It is better to know some of the questions than all of the answers" - James Thurber
Post Reply

Return to “The Quest for Glory Series”