Unreal Engine 4 Tutorial: Antichamber 4D Art Gallery(Impossible Objects)

Channel:
Subscribers:
24,800
Published on ● Video Link: https://www.youtube.com/watch?v=AP8HLa9hfGM



Game:
Category:
Tutorial
Duration: 17:18
8,033 views
334


Download the project: https://drive.google.com/open?id=19x7MvNcKmX9dnjV7RnQrJbZ5-1NWATYH

3Blue1Brown on the 2D Cross Product: https://youtu.be/eu6i7WJeinw

Hey guys, hope you're doing well in these weird/hard times! I managed to find a silver lining in this pandemic state to try and use it to get back to learning Unreal and making youtube videos. You may remember me uploading a similar video to this one about a year ago and promising a tutorial that was never made. Well here it is, finally.

In the tutorial we will expand on the effect used in antichamber by making it scalable to not just cubes, but any n-sided object. The main focus of the tutorial is on creating a material that renders only the parts of the object that we want to see. That was implemented here with using the 2D cross product to check if a pixel of our object is between the two poles that limit our visibility. Let me know if you are aware of any other ways to implement this as i'm sure there are many. Also feel free to ask any questions and I will answer them in the FAQ bellow.


Video timeline:
00:00 - Intro
01:17 - Explaining the maths
03:27 - 2D Cross Product function
04:50 - Masking function
08:38 - Example material
09:50 - Making 1 side
11:45 - Making the rest
13:55 - Reuse in other materials
15:40 - Organize code in an Actor class
16:45 - Outro

Follow me on Instagram: https://www.instagram.com/bojanv03/
Follow me on Facebook: https://www.facebook.com/BojanV03HD/

FAQ:
Q: how much does it impact perf?
A: It does mildly increase the shader complexity but it's nothing noticeable compared to some other, more complex materials. This example compares it to the M_Water_Lake material from the starter content: https://imgur.com/a/YT2flD9
Q: How do the shadows work?
A: I'm not 100% sure at how the rendering process works in Unreal but it somehow works out of the box. It renders shadows only for the part that is visible to the player. I'm guessing that the shadow calculations are done after masking out the part of the object that shouldn't be visible but it would be great if someone could confirm/expand on this.







Tags:
Unreal Engine 4
Antichamber
UE4
Non-Euclidean
Tutorial
Masking Function
Material Function
Material
Cross Product
2D
Mathematics
Geometry
Actor
Clean Code



Other Statistics

Antichamber Statistics For BojanV03

At this time, BojanV03 has 18,102 views for Antichamber spread across 2 videos. His channel published less than an hour of Antichamber content, roughly 2.18% of the content that BojanV03 has uploaded to YouTube.