Ignore:
Timestamp:
06/26/06 17:36:46 (18 years ago)
Author:
gumbau
Message:

LODs parameters changed to the range 1-0 (max-min)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Geom/shared/GTGeometry/src/libs/leaves/foliage.h

    r1057 r1058  
    44#include "GeoSubMesh.h" 
    55#include "tlista.h" 
    6 #include "TMatrix.h" 
    76#include "VertexData.h" 
    87#include "Leaf.h" 
     
    2423 
    2524                ActiveLeafNode  *Acth; // first active leaf 
    26                 int ppio, final; 
    27                 int nhactivas; 
    28                 TMatrix mat_aux; 
     25                int begin, final; 
     26                int active_leaf_count; 
    2927 
    3028                Foliage (const Geometry::SubMesh *, const char *simpSeq, Geometry::CREATEVERTEXDATAFUNC vdfun=NULL, Geometry::CREATEINDEXDATAFUNC idfun=NULL); 
     
    3230                virtual ~Foliage (void); // Destructor 
    3331                 
    34                 //culling 
    35                 void Culling (float frustum[6][4]); 
    36                 bool LeafinFrustum ( int i, float frustum[6][4]); 
    37  
    38                 bool IsActive( int num) const; 
    39                 int  ResolucionV ( char c, float rva, float rvb,float rvc, float rvd, float radio); 
    40                 void ColapsaHoja (int, int&); 
    41                 void SplitHoja (int, int&); 
    42                 bool Forzar_Split(int, int, int&); 
    43                 int  AnteriorActivo (int h); 
    44                 int  PosteriorActivo (int h); 
    45  
    46  
    47                 // resolucion constante 
    48                 int  ResolucionC (float dist, float dmax, float dmin); 
    49                 void AjusteHojas( int nhojas); 
    50                 void RCecol (  int nhojas); 
    51                 void RCsplit (  int nhojas); 
     32                void CalculateLOD(int nhojas); 
    5233 
    5334                Geometry::VertexData *vertexdata; 
     
    5536 
    5637                Leaf   *Leaves; 
    57                 ActiveLeafNode  *MinDet; // primera hoja activa 
    58                 int nHojas; 
    59                 int TotHojas; 
     38                ActiveLeafNode  *MinDet; // first active leaf 
     39                int leafCount; 
     40                int leafTotal; 
    6041                 
    61                 float cx,cy,cz; //centro de la copa// para los impostores y resolucion variable 
    62                 float rad; //radio de la esfera envolvente 
    63                 int minHojas; 
    64                 int TotVerts; 
     42                int minLeaves; 
     43                int TotalVerts; 
    6544 
    6645        private: 
     
    6847                Geometry::CREATEINDEXDATAFUNC create_index_data_func; 
    6948 
     49                bool IsActive( int num) const; 
     50                int  PrevActive (int h); 
     51                int  NextActive (int h); 
     52 
     53                void RCecol(int nhojas); 
     54                void RCsplit(int nhojas); 
     55 
    7056                void ReadLeafs(const Geometry::SubMesh *); 
    7157                void ReadVertices(const Geometry::SubMesh *); 
    7258                bool ReadSimpSeq(const char*); /// returns true when successful 
    73                 void RellenoRaiz (void); 
     59                void FillRoot(void); 
    7460 
    7561                void GetNormalH (Leaf&); 
    76 //              void GetNormalT(Tronco&); 
    7762 
    7863                void CrossProduct(const float *v1, const float *v2, float *res); 
    7964                void Normalize(const float *v, float *res); 
    8065//              void CalculaNormalesVertice(void); 
    81                 void CalculaTexCoordsYNorms(void); 
     66                void CalculateTexCoordsAndNorms(void); 
    8267 
    8368}; 
Note: See TracChangeset for help on using the changeset viewer.