Camera Mapping
I have been experimenting with a technique called camera mapping for our game, and have put together a test scene. Camera mapping is when you map a 2D scene onto 3D geometry by projecting your UV map from the camera view. This allows you to have light sources, reflections etc, that interact with your 2D scene as if it were 3D. It works best for fixed camera views or orthographic projection.
It's a not a super-difficult thing to achieve. I used Blender, but I'm sure it can just as easily be done in other packages.
My test scene: http://screwylightbulb.com/pj (36MB - Unity3D web)
This scene was painted in Photoshop and I applied some simple geometry to it so that the floor is on a horisontal plane and the buildings are all on upright textures. I added a reflective surface to the ground plane as well as raindrop animations. Lights will now also work correctly with the scene. It works with as much or as little geometric detail as you want.
From a different angle:
An example of one made using a stock photograph (tutorial available):
It's a not a super-difficult thing to achieve. I used Blender, but I'm sure it can just as easily be done in other packages.
My test scene: http://screwylightbulb.com/pj (36MB - Unity3D web)
This scene was painted in Photoshop and I applied some simple geometry to it so that the floor is on a horisontal plane and the buildings are all on upright textures. I added a reflective surface to the ground plane as well as raindrop animations. Lights will now also work correctly with the scene. It works with as much or as little geometric detail as you want.
From a different angle:
An example of one made using a stock photograph (tutorial available):
persp.png
1022 x 630 - 388K
Comments
I'm dying to make a classic-style point & click adventure like this. :P
It seems really similar to the stuff done in point cloud scene reconstruction. But I guess the lighting would probably not work as well if you created a point cloud instead?
Very cool idea.
In that stock photograph example I linked above, the guy had to use the clone tool and cut/paste quite liberally to fill in the blanks.
You need about 20-30 photos to create a model.
http://www.123dapp.com/catch
Also Pillars Of Eternity and Planescape Torment.
I love camera mapping - its certainly something I'm excited about exploring in the future!
There's a variant on this that I am experimenting with, for use with orthographic projection, ie no parallax. The workflow is something like this:
- Create 3D geometry for scene, mainly colours, no/basic textures
- Snap a camera view of the scene in very high resolution, give to 2D artist
- 2D artist paints over the scene, only drawing in shading for static light sources, or ignoring lights/shading altogether
- In Unity/other engine - project this painting onto the scene's geometry directly from the camera, but make the projector ignore characters and other movable objects
- Add lights, reflective surfaces etc.
- You end up with a beautiful painted scene that's still properly 3D - with all the benefits that provides
Pain in the butt to make changes though. 2D artist must use layers liberally so that "remove the couch" does not become a week's work.
- Paint something rough
- Separate into layers for parallax.
- Project each layer on their own planes and start adding points to create form inside blender.
- Setup camera move.
- Clean up painting and fill in details where the parallax shows though.
This way I don't spend time painting things that aren't seen, but also means it's less kind to iterations on the camera move.
A Whispered World 2 looks amazing, thanks for posting really cool reference. @rustybroomhandle it happened, and now layers are in abundance.