So you’ve heard of MadMapper Spacial Scanner function,
but you don’t know excatly what it is, or even how to use it.
I’ll explain that in this tutorial.
The Spacial Scanner allows you to use your projector as a scanner,
to actually capture, pixel by pixel, what your projector “sees”.
For this tutorial, you’ll need:
- MadMapper
- a projector
- a Canon DSLR (see compatibility list)
Sometimes, being kitsch feels refreshing (esp. for the sake of a tutorial)
Here’s what the final mapping will look like (a radio-active garden gnome):

Frightening? Mwhahaha…
It was done in less that 10 minutes, this might keep you motivated
to read through all the next steps…
I picked up a plastic dwarf. (I had it already actually)
Put it somewhere in my office.
This is my setup by day:
I put a projector in front of it. I used an Acer K11 that has 300 lumens.
Noted the resolution, which was 1024 by 768 pixels.
Because I’m a bit of a cowboy, I set it on its side in order to make things needlessly more complicated, and to prove that the equations work even in extreme situations, being sure it would “shoot” the entire dwarf:
I placed my camera at around a 45 degree axis to the projector beam.
FYI, my DSLR is a Canon EOS 500D with a Sigma lens.
I set it up to shoot the scene a little bit wider to capture the full output of the projector.
I did set everything in Manual Mode:
- Manual Focus
- ISO 100 (less grain)
- 1/15s shutter speed. It has to be lower than 1/60, your projector’s refresh rate
- F3.5
These settings were the best for my scene. Yours might be a bit different.
According to my tests a white background is not ideal because it reflects too much light. Under-exposed pictures are better because you get less artifacts. Ambient light is bad because it competes with the light coming from the projector.
I launched MadMapper. Plugged my DSLR to my Mac using a USB cable
and started the Spacial Scanner function.
It all happened in one click (which is good!)…
Once plugged in, MadMapper shows a preview from your DSLR:

I clicked “Capture” to start the procedure.
What the program does is project a bunch of white patterns, aka Structured Lighting.
These are succesive white bars, such as:

Since the whole process is automated (remember ? just one click …),
I took the opportunity to make myself a cocktail, while waiting for the final result to be processed.
Then I saved the picture somewhere on my drive.
MadMapper also loads it automatically as a background in the preview output:

Note the little artifacts on the resulting picture due to the poor conditions of this tutorial, and to the reflective nature of the surfaces. Matte surfaces are ideal.
Next step was to load the resulting picture into Photoshop and do some selections.
I selected the interesting parts of the dwarf, made a new layer for each part and filled them with white:

Note that I rotated the whole canvas for extended lasso/magic wand pleasure. If you do so don’t forget to revert back to the original orientation when you are finished.
I saved each of the layers as a separate PNG file.
PNG is good because it retains transparency, aka alpha.
For the super lazy visualist, there’s a script in Photoshop to export all the layers as a separate file automatically: ‘File | Script | Export Layers to Files…’
Then I launched Modul8 and imported each file into the Media bin:

Then I assigned each picture to a layer and set the normalize option for each one.
This had the effect of correctly scaling each layer provided your preview ratio is set to 4:3:
With everything ready so quickly, I sent Modul8′s output to MadMApper (cmd-Y).
Make sure the Syphon resolution is the same as your pictures and projector, in my case 1024 by 768 pixels.
You can check that in Modul8′s ‘Preferences | Misc | Syphon output’:
Switching to MadMapper, I set the media input to Modul8 by double clicking on it in the list:
Then I created one single Quad surface.
A little trick is to unzoom a little bit in the Preview output to display the whole stage and the created Quad will magically fit the stage:
Wow! Normally, everything fits perfectly.
Then I switched back to Modul8 and changed the color of each layer, added some auto-color effect and whatnot. Had fun. There are plenty of other ways to have fun. a cocktail is obviously a part of it.
It works seamlessly in MadMapper:
Finally I took a picture of the final result:

And in the true spirit of self-satisfaction of the quickly achieved video-mapping tutorial, a made myself a final cocktail.








hi there,
your tutorials are great, even if at the end you can feel the influence of the cocktails (a made myself a final…):D
thanx for this great software and excellent tutorials,
Omid
Forgive me if I am missing something obvious . . .
I have been able to hook up a camera + projector and generate a image that is displayed in the MadMapper preview window – however it is not clear to me where the dialog that allows me to save the resulting image is. In other words, how do I get/find the image file created by MadMapper’s Structured Light tool so that I can open it in photoshop?
Thanks for making this tutorial!
File > Export Output
Salut!
Comme j’ai vu que vous êtes francophones je me permet d’écrire en français.
Je n’ai pas très bien compris ou doit on placé l’appareil photo par rapport au projecteur ?
De plus j’ai essayé avec un appareil photo quelconque et madmapper ne l’a pas detecté, est-ce normal?
Merci et félicitation pour ce tres bon logitiel et tout vos projets, votre site est passionant!
Corentin, madmapper débutant
Ps : Allez vous organiser un workshop à Paris? On m’a dit que vous y habitiez!
Where you place the camera?
Thx for the great tut! we are thinking of buying this software but are running into some problems.
After the calibration and spacial mapping thing is done, MadMapper doesnt load the processed image automatically as a background in the preview output… it only shows a small part of it. And I cant seem to find the photo’s / pictures anywhere.
awaiting your reply,
Demian
Please send us a message to support [at] garagecube [dot] com.
JUst great! i finally got it! ill start experimenting ASAP!
I was trying this out on the demo version, there is no preview output option. Is that because it is a demo? Also, te preview is just a bunch of with dots and lines?
In the demo version Spatial Scanning is limited to 1 level of a scan.
Great tutorial and is obviously very simple. However when I plug my canon 550 d in (set as you suggested)and start the scan it’s shutter opens a couple of times and then appears to stay open. Nothing happens on the status bar and I thought perhaps I was being impatient but have waited 10 mins and nothing happens. I notice also on your image of the scanner that the resolution of the projector is displayed on the right , I can’t get anything to appear in this ‘tab’ Any help would be much appreciated – thanks
Having solved the above problem I’m replying to my own question as I notice someone else had this problem in the forum. What the tutorial doesn’t mention is that the output of madmapper must be set to fullscreen. I had a problem with this as the projection would be fine but the screen would just be a series of coloured lines. I eventually found that the problem was that in settings , I had mirrored screens turned on. As soon as I turned this off everything worked fine!
Hi,
can you please post a picture of your placement of projector & camera both…
Thanks
Hi there!!
we have been using mad mapper for a few projects already http://www.skullmapping.com great tool so far, but the results with the scanner are not completely satisfactory since we always struggle a bit with getting the correct camera settings to get a decent picture that we can use in photoshop. The image is always quite jaggy and a lot of the detail needed to build the model/masks is often not enough. We followed the advise from you to use something as close to 100 ISO as possible but still nothing as clear as you show on the tutorial, any help on this?
Cheers
it really depends what you’re trying to scan.
scanning a plain white surface is problematic, as white reflects too much light, which will screw up the scan, resulting in jaggies.
If you really run into problem, please contact the support (@Franz), and provide a photograph of the object you’re trying to scan.
Usually, a good setting to start is :
iso 400 (interior) or 800 (exterior)
f: 2.8 (or lower is possible.)
exp. 1/40
Also, to improve quality, try shooting pictures in L resolution
Hope this helps.
Hi. i have a problem with the spacial scanner, because when i want to push CAPTURE, a little window appear saying ” IMAGEN QUALITY SHOULD BE SET TO JPG ONLY (NOT RAW OR JPG + RAW) but my imagen is in JPG M 3456X2304…WHTAS IS THE PROBLEM ?
i am having the same problem as above, i am in jpeg and keep getting that warning. plz help!! i am using 5dmark3 which should react the same as the mark2 right?
Thank you for sending your message to support.