All pastes #123998 Raw Edit

Mine

public text v1 · immutable
·published 2006-08-09 19:15 UTC
rendered paste body
Weathering Project
Code documentation
Doug Kavendek
May 2006


Photons

The weathering is performed by the interaction of particles with the models in the program.  We will be calling them photons, as some of the motivation behind the project involved using particles in a manner similar to photon mapping.  The photons will move through the world, affected by various forces, from gravity, initial velocity, or the vector field.  Collisions with model faces will result in both geometric perturbations as well as adjustments to residues.  Model faces and photons can contain residues, which can then be spread around on the model, leaving traces behind.

Residue is just a measure of some kind of contaminant on a surface/particle.  There are structures for dirt, rust, and moss, but only moss is currently used, to demonstrate how it works.  A surface can be initialized to have specific residues, as a photon can be initialized with some residues.  Currently, faces start with no residue, and photons start with some moss, and so as photons move around, they deposit some moss.  Photons also will pick up residue from the surfaces they encounter.  The residue structure also records collision counts for given faces, for testing.

Photons can be fired from the camera.  In this way, there can be a large number of ac DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO ance that the photon may land on the face, ratᱽ‹Eàƒǀ‹Mø;с๽‹Eԃǀ‹Mø;ࡁռéՀÛEì‹EøÜ၈Ü࡭‹MøÜၱÜd:\~Documents\~Project DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO bug\vector_field.objxϤᘃᄖđ





Microsoft (R) Optimizing Compilercwdd:\~Documents\~Projects\Weathering\Finalout\weathering_finalclD:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.execmd-Od -I"C:\Documents and Settings\dkavende\My Documents\~Includes\include"  DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO ram Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\include" -I"D:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include" -Xsrc.\vector_field.cpppdbd:\~Documents\~Projects\Weathering\Finalout\weathering_final\Debug\vc70.pdstreamsize%&#4360;&#7036;std::_DebugHeapAllocator<char>3&#4360;&#7377;std::_DebugHeapAllocator<char>::rebind<char>L&#4360;&#6780;std::basic_iostream<unsigned short,std::char_traits<unsigned short> >Q&#4360;&#6485;std::istreambuf_iterator<unsigned short,std::char_traits<unsigned short> >&#4360;&#4715;std::_Locinfo&&#4360;&#7375;std::random_access_iterator_tag&#4360;&#6977;ofstream$ DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO :fpos<int>Q&#4360;&#6329;std::num_get<char,std::istreambuf_iterator<char,std::char_traits<char> > >E&#4360;&#7368;std::iterator<std::input_iterator_tag,char,long,char *,char &>G&#4360;&#6747;std::basic_ios<unsigned short,std::char_traits<unsigned short> >&#4360;&#4331;std::_String_base8&#4360;&#6977;std::basic_ofstream<char,std::char_traits<char> >&#4360;&#5063;std::_Mutex
&#4360;&#4531;string&#4360;&#4780;std::locale&#4360;&#4743;std::locale::facet&#4360;&#4811;std::locale::_Locimp&#4360;&#4791;std::locale::id&#4360;&#4674;std::_Timevec&#4360;&#4269;std::bad_alloci&#4360;&#6629;std::basic_string<un DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO DEMO ator<unsigned short> >::iteratory&#4360;&#7074;std::basic_string<unsigned short,std::char_traits<unsigned short>,std::allocator<uInitializing FRAME...

Video initialized.

 Reso DEMO DEMO 4 x 768

 Depth:      32

Texture [1 DEMO DEMO DEMO DEMO fault.bmp]

Texture [2] b DEMO DEMO DEMO DEMO DEMO ckground.bmp]

Texture [3 DEMO DEMO DEMO DEMO xt_box1.bmp]

Texture [4 DEMO DEMO DEMO DEMO xt_box2.bmp]

Texture [5 DEMO DEMO DEMO DEMO xt_box3.bmp]

Texture [6] DEMO DEMO DEMO DEMO tus_bar.bmp]

Texture [ DEMO DEMO DEMO ata/blank.bmp]

Building fonts...

Building  DEMO DEMO DEMO font1.bmp]... 

Texture [ DEMO DEMO DEMO ata/font1.bmp]

95 ch DEMO DEMO ilt.

Building  DEMO DEMO DEMO font2.bmp]... 

Texture [ DEMO DEMO DEMO ata/font2.bmp]

95 ch DEMO DEMO ilt.

Building  DEMO DEMO DEMO font3.bmp]... 

Texture [1 DEMO DEMO DEMO DEMO ont3.bmp]

95 ch DEMO DEMO ilt.

Building  DEMO DEMO DEMO font4.bmp]... 

Texture [1 DEMO DEMO DEMO DEMO ont4.bmp]

95 ch DEMO DEMO ilt.

Enter DEMO DEMO op... 

Engine in in DEMO DEMO DEMO DEMO Initializing...

WIDTH:  1024

HEIGHT: 70

INITIALIZING BINS

Bins I DEMO DEMO for model

INITIALIZING BINS

Bins I DEMO DEMO for model

INITIALIZING BINS

Bins I DEMO DEMO for model

INITIALIZING BINS

Bins I DEMO DEMO for model

INITIALIZING BINS

Bins I DEMO DEMO for model

INITIALIZING BINS

Bins I DEMO DEMO for model

INITIALIZING BINS

Bins I DEMO DEMO for model

INITIALIZING BINS

Bins I DEMO DEMO for model

INITIALIZING BINS

Bins I DEMO DEMO for model

INITIALIZING BINS

Bins I DEMO DEMO for model

INITIALIZING BINS

Bins I DEMO DEMO for model

INITIALIZING BINS

Bins I DEMO DEMO for model

INITIALIZING BINS

Bins I DEMO DEMO for model

INITIALIZING BINS

Bins I DEMO DEMO for model

INITIALIZING BINS

Bins I DEMO DEMO for model

INITIALIZING BINS

Bins I DEMO DEMO for model

Vector fi DEMO DEMO DEMO ly written yo.

Vecto DEMO DEMO d in.

No prob DEMO DEMO DEMO  files.

MESSAGE: DEMO DEMO DEMO w keylist

Engin DEMO DEMO ed. 

Unknown event: 17

A quit com DEMO DEMO DEMO DEMO he keyboard.

Finishing...

Exiti DEMO DEMO p...

............... DEMO DEMO DEMO DEMO DEMO DEMO ontrol destroyed.

Display destroyed.