Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 1.6

COLUMN

The Fog

Adding Mood and Atmosphere to 3D Scenes

Issue: 1.6 (June/July 2003)
Author: Joe Nastasi
Author Bio: Joe Nastasi has been a programmer since 1977 and a full-time REALbasic consultant since version 1.0. He is also the developer of a spacecraft simulator, A-OK! The Wings of Mercury, which was recently awarded a Cubie for Educational software.
Article Description: No description available.
Article Length (in bytes): 4,005
Starting Page Number: 38
Article Number: 1620
Resource File(s):

Download Icon 1620.zip Updated: 2013-03-11 19:07:56

Related Link(s): None

Excerpt of article text...

Last month we went over techniques that allowed you to select and move 3DObjects. This month will be a short overview on how best to use the Fog feature of RB3DSpace.

Fog adds atmosphere and drama to a 3D scene. In particular, first person shooters and adventure games benefit greatly from the use of fog.

Fog 101

In general, RB3D blends the geometry that is being drawn with the SkyColor. The ratio of SkyColor to 3D geometry (transparency) depends on each object's distance from the camera and the rate of transparency change. RB3D's implementation of the rate at which the transparency changes is linear, which is to say that the fog becomes thicker at a constant rate.

RB3DSpace has two foggy properties:

...End of Excerpt. Please purchase the magazine to read the full article.