~starplant/panda3d-docs/trunk

« back to all changes in this revision

Viewing changes to Sample_Programs:_Infinite_Tunnel.txt

  • Committer: starplant at gmail
  • Date: 2008-06-16 07:18:45 UTC
  • Revision ID: starplant@gmail.com-20080616071845-i5o4v9nx1wkfkfh6
start

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Sample_Programs:_Infinite_Tunnel
 
2
================================
 
3
 
 
4
The Infinite Tunnel Sample Program
 
5
To run a sample program, you need to install Panda3D. If you're a Windows user, you'll find the sample programs in your start menu. If you're a linux user, you'll find the sample programs in /usr/share/panda3d.
 
6
Screenshots
 
7
Explanation
 
8
This tutorial will cover fog and how it can be used to make a finite length tunnel seem endless by hiding its endpoint in darkness. Fog in panda works be coloring objects based on their distance from the camera. Fog is not a 3D volume object like real world fog. With the right settings, Fog in panda can mimic the appearence of real world fog.
 
9
The way fog in Panda works is by coloring the models in the world. Fog cannot exist without any objects in the scene. The parts of the object which are furthest from the camera will get gradually colored by the color specified for the fog. If this color blends in with the background, it will appear as it the object is being occluded by a 'cloud' of fog.
 
10
Back to the List of Sample Programs:
 
11
Sample Programs in the Distribution
 
 
b'\\ No newline at end of file'