Get the example: 2.45 Occlusion Portals.gh (30.6 KB)
Learn how to use occlusion materials to simulate portal openings to your 3D model in augmented reality. If you’re an intermediate user of Fologram and you want to learn more about Folograms advanced material options, this tool is a great example of how you can implement occlusion materials in an interactive application.
Occlusions are an incredibly useful tool for AR workflows that engage physical objects with digital objects, but they can also be used in conjunction with some of Fologram’s application building tools to create engaging and fun presentation applications. This example allows the user to tap on their mobile device and create a portal to their Rhino design model, occluding out geometry surrounding the portal until you enter it.
Use a mobile device and set it to ‘Near Interaction Only’ in the Settings menu to create a short pointer for the best experience using this application.
The grasshopper example records the plane from a device tap, and spawns an oval shaped portal facing the user. Surrounding the portal is a large invisible plane which has an Occlusion material applied to it in the Sync Object component. The Rhino geometry is referenced in and appears behind the plane in the direct line of sight of the tapped plane. Materials from Rhino are synchronised and applied so the model relocates whenever the portal is updated.
Like this example? Check out our article ‘Use Fologram to create a digital mirror of yourself with your mobile device’ to extend this portal logic further.