Recreating the backgrounds

Discussions regarding the development of the mod "Grim Fandango Deluxe"

Moderator: ScummVM Team

kavehth
Posts: 36
Joined: Sat Jan 24, 2015 7:36 pm

Recreating the backgrounds

Post by kavehth »

so I've been trying to recreate Manny's office for a while now but it was really hard trying to get the proportions and camera angles right. Now with the re release they have included the l3d files which store all the lights and all the camera angles of the scene along with the FOV of the cameras. I've set up all the cameras for Manny's office and the match up perfectly.

so for any one interested in creating backgrounds it would be a lot easier by setting up the cameras.

also in the documentaries it seemed that they had roughly recreated the backgrounds, does anyone know how they could have done it? did they use the zbm images?

here is what i mean
http://youtu.be/y4rOgZ3RINE?t=3m33s
User avatar
JohnnyWalker2001
Posts: 405
Joined: Mon Oct 16, 2006 1:27 pm
Location: London, UK

Re: Recreating the backgrounds

Post by JohnnyWalker2001 »

Nice! Pretty sure the zbm files are just the masks that Manny walks behind, but I could be wrong.
Botje
Posts: 207
Joined: Thu Feb 28, 2013 5:48 pm

Re: Recreating the backgrounds

Post by Botje »

Every pixel in the zbm encodes the depth as a value for the z-buffer.
If you use the exact same (OpenGL) camera settings as the original and fill the z-buffer with the zbm, depth filtering will give the desired effect.
https://github.com/residualvm/residualv ... r.fragment has a workable implementation.

You could roughly reconstruct the room as they did by doing the inverse transformation on the values in the zbm and creating a mesh from them.
User avatar
JohnnyWalker2001
Posts: 405
Joined: Mon Oct 16, 2006 1:27 pm
Location: London, UK

Re: Recreating the backgrounds

Post by JohnnyWalker2001 »

Botje wrote:Every pixel in the zbm encodes the depth as a value for the z-buffer.
If you use the exact same (OpenGL) camera settings as the original and fill the z-buffer with the zbm, depth filtering will give the desired effect.
https://github.com/residualvm/residualv ... r.fragment has a workable implementation.

You could roughly reconstruct the room as they did by doing the inverse transformation on the values in the zbm and creating a mesh from them.
Wow, that's awesome. Could you really do that?
kavehth
Posts: 36
Joined: Sat Jan 24, 2015 7:36 pm

Re: Recreating the backgrounds

Post by kavehth »

Botje wrote:Every pixel in the zbm encodes the depth as a value for the z-buffer.
If you use the exact same (OpenGL) camera settings as the original and fill the z-buffer with the zbm, depth filtering will give the desired effect.
https://github.com/residualvm/residualv ... r.fragment has a workable implementation.

You could roughly reconstruct the room as they did by doing the inverse transformation on the values in the zbm and creating a mesh from them.
so how can we do this? we do have the original camera angles but what can we use to create the mesh?
kavehth
Posts: 36
Joined: Sat Jan 24, 2015 7:36 pm

Re: Recreating the backgrounds

Post by kavehth »

thanks to Botje i was able to create a tool to build a mesh of the backgrounds from the zbm files. to create a scene i recreate all the backgrounds of a room and using the camera setting stored in the l3d files i combine them to create the mesh. i still haven't figured out the right scale so the backgrounds don't fit perfectly but it's not that bad.

here is the high roller lounge and dom's office

Image

Image

Image

Image

i don't know if anyone here is interested in recreating the backgrounds but it should be a lot easier with this.
User avatar
JohnnyWalker2001
Posts: 405
Joined: Mon Oct 16, 2006 1:27 pm
Location: London, UK

Re: Recreating the backgrounds

Post by JohnnyWalker2001 »

Wow! That's seriously impressive stuff!

Maybe you could share your tool on GitHub or something?
kavehth
Posts: 36
Joined: Sat Jan 24, 2015 7:36 pm

Re: Recreating the backgrounds

Post by kavehth »

JohnnyWalker2001 wrote:Wow! That's seriously impressive stuff!

Maybe you could share your tool on GitHub or something?
i will as soon as its more presentable.

i also started modeling the cafe, here is what i have after a day's work

Image

the camera angle is the exact same one as in the game so it lines up perfectly, except its in wide screen
User avatar
JohnnyWalker2001
Posts: 405
Joined: Mon Oct 16, 2006 1:27 pm
Location: London, UK

Re: Recreating the backgrounds

Post by JohnnyWalker2001 »

WOW!!
User avatar
Raziel
ScummVM Porter
Posts: 1539
Joined: Tue Oct 25, 2005 8:27 am
Location: a dying planet
Contact:

Re: Recreating the backgrounds

Post by Raziel »

That looks AMAZING!!!

Please keep on
mogul
Posts: 19
Joined: Mon Jul 25, 2011 6:21 pm

Re: Recreating the backgrounds

Post by mogul »

:shock: Wow, I never thought of doing that! Great idea, can't wait to see more.
Cervian
Posts: 17
Joined: Fri Feb 06, 2015 12:01 am

Re: Recreating the backgrounds

Post by Cervian »

Hi to everyone! I am Cervian.
I want to help recreate the backgrounds.
kavehth wrote:thanks to Botje i was able to create a tool to build a mesh of the backgrounds from the zbm files. to create a scene i recreate all the backgrounds of a room
Is it possible to have this tool?
I used a different approach to match camera setups by reconstruct manually .set file content: hey contain cameras, lights (of the original game), walk planes, shadows, etc.

This is the result I obtained by matching all the El Marrow scenes in first year:
Image

This is for Manny's Office:
Image

And a little extra of Carla and Meche I year:
Image
Image
Last edited by Guest on Sun Feb 22, 2015 1:28 pm, edited 1 time in total.
User avatar
Raziel
ScummVM Porter
Posts: 1539
Joined: Tue Oct 25, 2005 8:27 am
Location: a dying planet
Contact:

Re: Recreating the backgrounds

Post by Raziel »

Your pictures aren't allowed to be displayed
Cervian
Posts: 17
Joined: Fri Feb 06, 2015 12:01 am

Re: Recreating the backgrounds

Post by Cervian »

I updated them.
kavehth
Posts: 36
Joined: Sat Jan 24, 2015 7:36 pm

Re: Recreating the backgrounds

Post by kavehth »

Cervian wrote: Is it possible to have this tool?
i posted the program in this thread, see if you can use it.

i didn't know that the .set files contained any geometry, how did you create your scenes? did you create each vertex by hand?

also you character models look great.
Post Reply