Photo positions and unseen parts of the room
We start with these two photos of the same room, taken from different angles. Both record the original room, but the camera positions and the areas in view differ. A surface that appears near the front in one photo may be at the edge of the other or hidden behind another surface. We have no photo of the view from between the two positions, looking to the side.
DDSplat creates a 3D scene of the room from these two photos. We can also draw views from positions where we did not place a camera.
The two photos at the start are the images we took at the location. In this 3D scene, we estimate surfaces and details that do not appear in either photo. To check dimensions or the actual arrangement in directions we did not photograph, we would need photos from those directions or separate measurements.
Representing the room as particles
In the 3D scene DDSplat creates, we represent the room as a collection of small particles with color and extent. This way of representing a 3D scene is called 3D Gaussian Splatting. Once we choose a camera position, we can draw the overlapping particles as seen from there. Once the 3D scene is complete, we can change the viewer's position or direction and draw the same room without taking the photos again.
A flaw we missed in a still image
While developing DDSplat, we built one 3D scene that looked good when we viewed the end of its playback as a still image. On playback, the view fell apart as the viewpoint moved. Showing a single still can hide problems that appear as soon as the viewpoint moves.
Following the camera path in a video
Even after the 3D scene is complete, we can change the path used for a video. For example, we can render one walk-through that looks around the room and another that looks across it from near a wall, both from the same 3D scene. We do not need to rebuild the 3D scene from the input photos each time we want a view in a new direction. We change the camera's path to suit the parts we want to show.
The video we rendered from the finished 3D scene follows one route that circles the room, looks diagonally across from near a wall, crosses the center and looks up and down. If we keep the center of the view pointed in the same direction, we miss parts that come into view as the direction or height changes. Each image below is a frame from the video drawn from this 3D scene.
As we move around the room, we can view the same place from different angles. On a path close to a wall, looking diagonally, we can see both along the wall and across the room. As we cross the center, we can watch how the overlap between nearby and distant parts changes as the viewpoint moves sideways. This reveals depth that is hard to see when we turn the camera in place.
The camera's path determines the views along the way. For the finished video, we draw the 3D scene one image at a time from each position on that path. Viewers can follow the movement that led to a view toward the far side of the room without learning controls. The images selected here are frames from along that path and serve a different purpose from the input photos at the start.
Viewing the room from your own position in a browser
The browser version lets you leave the path and look in a direction that interests you. We save the positions and colors of the particles that make up the 3D scene in one file and open it in a browser-based 3D viewer. You can turn to look around from one spot or move forward and see the composition change from foreground to background. You can decide what to look at next while staying in the same room.
You can turn and move forward with the arrow keys and look up and down with the mouse. An important detail for us was where you appear to stand as soon as you open the view. At first, we placed the starting position at the center of the movement area, and it felt like standing outside the room. We moved the starting position so you can walk toward the far side of the room as soon as the view opens.
Eye height also affected what we saw when we opened the room. If the eye level is too low, the first view is close to the floor, making it hard to see the room as a whole. We keep eye level at a fixed height above the floor while walking and change only the viewing direction to look up. We also fixed a behavior that made you move backward when pressing forward after turning, so you can walk in the direction you face.
In the browser, we set both the viewing direction and the area you can move within. In a prototype where the movement direction differed from what we intended, stopping after moving could feel like being pushed outside the room. By showing the edge of the movement area as a translucent boundary, we let you check where you have stopped in the room when you cannot move forward.
The number of particles is one of several things that affect the view. In an earlier display, we compared two versions with different particle counts, and their colors and textures looked almost the same. The display had missed information about how color changes with viewing direction. By including that information in the browser version, we can draw the differences in color by direction recorded in the 3D scene.
The 3D scene we exported this time consists of about three million particles. The data contains the information needed to draw an image from a chosen viewpoint, and we can open it in other compatible viewers. Compared with a video that plays scenes drawn in advance in sequence, the browser has more calculations to perform each time it displays the scene.
Drawing all the particles at high screen resolution slowed movement, so the browser renders at a lower resolution. We tested a single room. We haven’t checked how well the view holds together as you move between rooms or outdoors.