Aligning 3D Building Blocks

By Aaron Dishno Ed.D.

 

In a previous lesson, Create a 3D Building – 3D Building Blocks I showed you how to create walls for your first 3D Building. Before we move on, I want to show you how to fine tune the positions for best results.

 

Intersecting Wall Surface Issue

 

When 3D Objects intersect we often end up with multiple surfaces in the exact same plane. (Please keep going, I will explain this).

Wall Intersect Surface Issue
Wall Intersect Surface Issue

Note in the illustration above, the Walls share common surfaces. (It would also include the top and bottom of the wall in the intersection).

When you move around in the scene, the rendering can swap between which wall surface to render which leads to a flickering effect between the surface textures.

When Walls Intersect
When Walls Intersect the Surface Flickers

 

Fix the Flickering

To eliminate the flicker, we basically need to offset the walls in a way that there are no walls in common showing.

This is done using the position and/or length (scaling) settings.

It is recommended to have a .05 or more distance
between what would be a common surface.

Less than that might still flicker when you Walk farther away and the Walls are scaled down in the view due to mathematical rounding in calculations.

The First Option is to move the position of the Walls +-.05 so that they no longer have a surface in common.

Fix by changing the Position of the Walls
Fix by changing the Position of the Walls

 

The second option is to change the length (scaling) of the Wall. Since the Wall position is centered for the Wall, you will need to shorten the Wall by .10 (or .05 + .05) so that each end is shortened the right amount. This option helps especially when there are intersecting Walls at both ends.

Fix by changing the Length of the Walls
Fix by changing the Length of the Walls

Using the Second Option, the First Wall Length is now:

Wall 1 - Length Adjusted
Wall 1 – Length Adjusted

Second Wall Length is now:

Wall 2  - Length Adjusted
Wall 2  – Length Adjusted

which gives us this clean result with no flickering!

Wall Intersection Fixed
Wall Intersection Fixed

 

Next, I will show you how to Merge Shapes (Cut Holes in a Wall) to make openings for Doors and Windows.

 

Please follow and like us:
0

Leave a Reply