Previous topicNext topic

Projection Mapping

Questions, comments, feedback, etc.
Post Reply
Sadler
Posts: 1139
Joined: Sat Aug 02, 2014 7:10 pm
Location: London, UK

Projection Mapping

Post 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 309 times
Post Reply