Villa at Sea
Original completion date: Mid-February 2021
This is something I have deliberated sharing for a while because it would have been the least original thing I would’ve posted, but with my last post I feel it is now worth sharing as a contrast in the methods used to create the two scenes.
I did not make the objects you see in
this scene. What I did do was spend 1.5 months editing them, configuring the scene for use on PC, VR, and Oculus Quest (Android), and most importantly, and the reason I’ve decided to showcase it, I created the lighting, using a dichotomous approach compared to the beach scene. Whereas the beach uses fully dynamic lighting, this villa uses fully static lighting.
This static approach is called “baked”. It means that all of the lighting data is precomputed on my PC (which takes a few minutes), and that all of the computers that are running this scene do not have to perform computationally expensive lighting calculations every few milliseconds. For all of the static objects, the exact shading data is calculated by physically simulating rays of light bouncing around and put into a giant image, called a lightmap. All of those objects reference that image to overlay the shading data on top of them. For the dynamic, moving objects, I used thousands of light probes, which calculate how an object would be shaded at that position in space; when dynamic objects, like players, move through these probes it blends between the nearest ones to shade itself. It is not an accurate lighting method, but it is computationally cheap and prevents dynamic objects from sticking out like a sore thumb.
The reflections were created by using reflection probes, which have two components: the origin, which is where what is essentially a 360 photo is captured (called a cubemap), and the bounds, where objects within it will be affected by the probe. Most of the reflection probes in this scene are box projected, meaning that the cubemap is projected to the bounds of the reflection probe, allowing the reflections on a dynamic object to move as it moves. Setting these up was quite a chore; it is why I am excited for increased adoption of ray-tracing, like in the latest video game consoles, because it means this kind of inaccurate and manual setup for reflections is not required - they just work.
Lighting is of incredible, often unrecognized importance in visual art; simply by changing the lighting an artist can transmogrify the feel of a scene. You can even see it in the Villa; originally, I made the lighting of the downstairs bedroom to be similar to that of the nearly identical bedroom on top of it. But, considering there is a video player with a screen about as big as a 100” TV in that room, I removed the chandelier, dimmed the lights and warmed them to give the room a cozier and more theater-like feel. Another room that uses purposeful lighting is the bathroom; I angled the sun so that light would pour into the bathtub and spill out into the rest of the room. I wanted there to be a room that was lit entirely indirectly.
Also worth mentioning are the multiple pickupable objects in the scene that can be grabbed, thrown, and interacted with in an intuitive, physical way. They each have proper physical properties like static and dynamic friction and bouncieness. In addition, they make sounds when they collide with another object; they do this by playing one of 15 different sounds (5 unique sounds for 3 different impact intensities) at an automatically varying from the object, depending on how hard it was hit. It adds a surprising amount of immersion, and many who have visited in a VR headset turn into children engrossed in just banging these objects!
I made both this and the beach using a software called Unity, which is meant for interactivity, as opposed to all the other works I have shared which were made in Blender, which is for images and videos. As VR continues to become a more adopted medium (as evidenced by Facebook’s latest VR headset, the Oculus Quest 2, outselling all its previous headsets in just 6 months), I believe this kind of development knowledge could become just as if not more important than web or app development is today.









Comments
Post a Comment