Ignore:
Timestamp:
10/28/05 14:46:59 (19 years ago)
Author:
bittner
Message:

sampling node selection changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/Vector3.cpp

    r349 r354  
    11#include "Matrix4x4.h" 
    22#include "Vector3.h" 
     3#include "Halton.h" 
    34 
    45float Vector3::sDistTolerance = 0.002f; 
     
    195196UniformRandomVector(const Vector3 &normal) 
    196197{ 
    197   float r1 = RandomValue(0.0f, 1.0f); 
    198   float r2 = RandomValue(0.0f, 1.0f); 
    199   float cosTheta = 1.0f - r1; 
     198        //  float r1 = RandomValue(0.0f, 1.0f); 
     199        //  float r2 = RandomValue(0.0f, 1.0f); 
     200        float r1, r2; 
     201         
     202        halton2.GetNext(r1, r2); 
     203         
     204         
     205        float cosTheta = 1.0f - r1; 
    200206  float sinTheta = sqrt(1 - sqr(cosTheta)); 
    201207  float fi = 2.0f*M_PI*r2; 
Note: See TracChangeset for help on using the changeset viewer.