Page 1 of 1

Projection Mapping

Posted: Thu Oct 24, 2019 8:51 pm
by Sadler
Magic doesn't currently have any built-in projection mapping capabilities but it is not too arduous to roll you're own, as long as you're not too adventurous. Moving content planes around in 3D space is one way but since you can place individual corners this is a bit tricky for non-perpendicular surfaces. In this example video, a bit if IFS shader code is used to move the corners into the correct position. Unfortunately, this code doesn't include any distance foreshortening but this can be achieved with a Power Warp before the Perspective Warping.



All just rectangular planes (though masking them would be trivial) but perhaps this type of shader would help. You can save different mapping setups in separate sub-scenes to easily apply various content.
Perspective_Warp.fs
(4.76 KiB) Downloaded 311 times