I haven't posted for a while as I've been working on a few different projects, one war cross polarization.
I've been kicking around the idea of using cross polarization in my scanner since I built it to try and capture the roughness of the surface material, and I finally got around to trying some ideas.
I tested with 2 objects, a leaf from one of my plants in the house and a piece of red vinyl which was one of the original surfaces I scan when I started doing surface scanning.
Here's what the final leaf and and vinyl materials look like rendered in Marmoset.
Keep reading past the pretty pictures to see how it was done.
So to start I needed to add some lights to the scanner because I needed the lights facing straight onto the capture surface.For the initial testing to see if it will work I didn't want to make any drastic changes in case it didn't end up working, so I figured I could hang the lights off the internal baffle I added to keep the glare of the side lights out of the camera lens.
So with this idea in mind I cut out a octagon that would fit right inside the baffle to hold the lights. I went with 4 lights to try and evenly spread the light across the surface.
The trick was finding the right spacing and height that wouldn't interfere with the camera or cast any shadows.
Once I had the lights glue down I wired them up. For now I just left the end wire long and stuck the wire ends into a extension cord to power them.
My 1st tests running the light were a little discouraging as there was a lot of fall off from the center of the area. I left it for a few days not thinking it was going to work, then I thought about popping the lenses off the lights just like the side lights to see if that helped, and it turned out it did. The lenses were focusing the beams too narrowly even though they were flood lights. With the lenses removed the lighting falloff was much more even.
Then there was the polarizing film. I needed to have a way to add and remove the film so I cut out a insert out of poster board with cutout for the lights and taped the polarizing film over the lights. This way I could easily add/remove the filters from all the lights at once.
Then in was just a matter of screwing on the circular polarize to the camera lens and taping the assembly onto the internal baffles and plugging them in.
And here's the results, on the left is the polarized image of the leave and vinyl and on the right is the image with the polarizesers (lens and lights) removed. The vinyl worked a little better because it could lay flat as the leaf had a few bumps in it.
Once I had the 2 images the rest was the same as usual, shooting the 8 other images with no filters to generate the normal map. Here are the 2 designer graphs.
To generate the roughness Grzegorz Baran (go check out his ground scans) has suggested to me using a blend node to merge the two images resulting in the roughness map. So you can see that's what I'm doing on the top of the graphs, then converting the map to grey scale, inverting and then adding a level note to adjust to taste.
I'm doing the same for the leaf, except I added a mask to remove the background around the leaf. The mask was a bit off resulting in the black line on one side.
Here's what the roughness masks look like closeup. As I said above the leaf wasn't sitting flat which is causing the hot spots in the image.
I find the vinyl the most impressive when looking at the polarized diffuse image which is basically just a red square and what the final render looks like.
Now that is seems like the process will work I'm going to look into mounting the lights differently and wiring them into the control panel.
Stay tuned for more to come and comment below if anyone has surfaces they would like to see me scan.
Thanks for reading.