ResidualVM Forum
https://forums.residualvm.org/

Recreating the backgrounds
https://forums.residualvm.org/viewtopic.php?f=2&t=684
Page 1 of 4

Author:  kavehth [ Tue Feb 03, 2015 4:20 pm ]
Post subject:  Recreating the backgrounds

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

Author:  JohnnyWalker2001 [ Tue Feb 03, 2015 4:29 pm ]
Post subject:  Re: Recreating the backgrounds

Nice! Pretty sure the zbm files are just the masks that Manny walks behind, but I could be wrong.

Author:  Botje [ Tue Feb 03, 2015 4:35 pm ]
Post subject:  Re: Recreating the backgrounds

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.

Author:  JohnnyWalker2001 [ Tue Feb 03, 2015 4:36 pm ]
Post subject:  Re: Recreating the backgrounds

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?

Author:  kavehth [ Tue Feb 03, 2015 9:21 pm ]
Post subject:  Re: Recreating the backgrounds

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?

Author:  kavehth [ Wed Feb 18, 2015 11:30 pm ]
Post subject:  Re: Recreating the backgrounds

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.

Author:  JohnnyWalker2001 [ Thu Feb 19, 2015 9:49 pm ]
Post subject:  Re: Recreating the backgrounds

Wow! That's seriously impressive stuff!

Maybe you could share your tool on GitHub or something?

Author:  kavehth [ Thu Feb 19, 2015 10:50 pm ]
Post subject:  Re: Recreating the backgrounds

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

Author:  JohnnyWalker2001 [ Thu Feb 19, 2015 11:04 pm ]
Post subject:  Re: Recreating the backgrounds

WOW!!

Author:  Raziel [ Fri Feb 20, 2015 7:33 am ]
Post subject:  Re: Recreating the backgrounds

That looks AMAZING!!!

Please keep on

Author:  mogul [ Sat Feb 21, 2015 11:12 pm ]
Post subject:  Re: Recreating the backgrounds

:shock: Wow, I never thought of doing that! Great idea, can't wait to see more.

Author:  Cervian [ Sun Feb 22, 2015 10:23 am ]
Post subject:  Re: Recreating the backgrounds

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

Author:  Raziel [ Sun Feb 22, 2015 12:09 pm ]
Post subject:  Re: Recreating the backgrounds

Your pictures aren't allowed to be displayed

Author:  Cervian [ Sun Feb 22, 2015 1:47 pm ]
Post subject:  Re: Recreating the backgrounds

I updated them.

Author:  kavehth [ Mon Feb 23, 2015 10:35 am ]
Post subject:  Re: Recreating the backgrounds

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.

Page 1 of 4 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/