Ignore:
Timestamp:
12/16/05 18:52:33 (19 years ago)
Author:
mattausch
Message:

updated view cells, view cell manager. changed rendersimulator

File:
1 edited

Legend:

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

    r466 r469  
    972972 
    973973  if ( (int)(leaf->rays.size()) > stat.maxRayRefs) 
    974     stat.maxRayRefs = leaf->rays.size(); 
     974    stat.maxRayRefs = (int)leaf->rays.size(); 
    975975 
    976976} 
     
    11281128   
    11291129  // update stats 
    1130   stat.rayRefs -= leaf->rays.size(); 
     1130  stat.rayRefs -= (int)leaf->rays.size(); 
    11311131  stat.rayRefs += raysBack + raysFront; 
    11321132 
     
    17171717                                                  SimpleRayContainer &rays) 
    17181718{ 
    1719   int nrays = leaf->rays.size(); 
     1719  int nrays = (int)leaf->rays.size(); 
    17201720  for (int i=0; i < numberOfRays; i++) { 
    17211721        // pickup 3 random rays 
     
    17331733                                                                                                   leaf->rays[r3].GetMaxT())); 
    17341734 
    1735         const float overlap = 0.1; 
     1735        const float overlap = 0.1f; 
    17361736                 
    17371737        Vector3 origin, direction; 
     
    17891789          VssTreeLeaf *leaf = leaves[i]; 
    17901790          float c = leaf->GetImportance(); 
    1791           int num = (c*ratioPerLeaf + 0.5); 
     1791          int num = (int)(c*ratioPerLeaf + 0.5f); 
    17921792          GenerateLeafRays(leaf, num, rays); 
    17931793        } 
    17941794 
    1795   return rays.size(); 
     1795  return (int)rays.size(); 
    17961796} 
    17971797 
Note: See TracChangeset for help on using the changeset viewer.