Changeset 3260


Ignore:
Timestamp:
01/09/09 04:50:49 (15 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/App/Demos/Vis/FriendlyCulling
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/Converter/ObjConverter.cpp

    r3247 r3260  
    170170        geom->mMaterial = mat; 
    171171 
    172         cout << "new geometry #vts=" << numElements << endl; 
     172        cout << "creating new geometry with " << numElements << " vertices" << endl; 
    173173 
    174174        for (int i = 0; i < numElements; ++ i) 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/FriendlyCulling.vcproj

    r3259 r3260  
    1919                        Name="Debug|Win32" 
    2020                        OutputDirectory="$(SolutionDir)/lib/$(ConfigurationName)" 
    21                         IntermediateDirectory="obj/$(ConfigurationName)" 
     21                        IntermediateDirectory="$(SolutionDir)/obj/$(ConfigurationName)" 
    2222                        ConfigurationType="4" 
    2323                        CharacterSet="1" 
     
    8383                        Name="Release|Win32" 
    8484                        OutputDirectory="$(SolutionDir)/lib/$(ConfigurationName)" 
    85                         IntermediateDirectory="obj/$(ConfigurationName)" 
     85                        IntermediateDirectory="$(SolutionDir)/obj/$(ConfigurationName)" 
    8686                        ConfigurationType="4" 
    8787                        CharacterSet="1" 
     
    515515                                </File> 
    516516                                <File 
     517                                        RelativePath=".\src\ObjExporter.h" 
     518                                        > 
     519                                </File> 
     520                                <File 
    517521                                        RelativePath=".\src\OcclusionQuery.h" 
    518522                                        > 
     
    645649                                </File> 
    646650                                <File 
     651                                        RelativePath=".\src\ObjExporter.cpp" 
     652                                        > 
     653                                </File> 
     654                                <File 
    647655                                        RelativePath=".\src\OcclusionQuery.cpp" 
    648656                                        > 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/VboFormatConverter.vcproj

    r3235 r3260  
    1919                        Name="Debug|Win32" 
    2020                        OutputDirectory="$(SolutionDir)$\VboFormatConverter\(ConfigurationName)" 
    21                         IntermediateDirectory="$(ConfigurationName)\VboFormatConverter" 
     21                        IntermediateDirectory="$(ConfigurationName)\$(ProjectName)" 
    2222                        ConfigurationType="1" 
    2323                        CharacterSet="1" 
     
    9898                <Configuration 
    9999                        Name="Release|Win32" 
    100                         OutputDirectory="$(SolutionDir)$\$(ProjectName)\(ConfigurationName)" 
     100                        OutputDirectory="$(SolutionDir)\$(ProjectName)\$(ConfigurationName)" 
    101101                        IntermediateDirectory="$(ConfigurationName)\$(ProjectName)" 
    102102                        ConfigurationType="1" 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/default.env

    r3259 r3260  
    115115## powerplant options 
    116116 
    117 filename=PowerPlantM 
    118 keyForwardMotion=500.0f 
    119 mouseMotion=3.0f 
    120 visibilitySolution=power-plant-2c-xx-1000b-pgv2 
    121 camPosition=-1320.57 -6306.34 3603 
    122 camDirection=0.292156 0.9556 0.0383878 
    123 viewCellsScaleFactor=0.05f 
     117#filename=PowerPlantM 
     118#keyForwardMotion=500.0f 
     119#mouseMotion=3.0f 
     120#visibilitySolution=power-plant-2c-xx-1000b-pgv2 
     121#camPosition=-1320.57 -6306.34 3603 
     122#camDirection=0.292156 0.9556 0.0383878 
     123#viewCellsScaleFactor=0.05f 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/BvhExporter.cpp

    r3259 r3260  
    7676 
    7777 
    78 bool BvhExporter::ExportToFile(const string &filename, Bvh *bvh) 
     78bool BvhExporter::Export(const string &filename, Bvh *bvh) 
    7979{ 
    8080         cout << "Info: Exporting to file '" << filename.c_str() << "'" << endl; 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/BvhExporter.h

    r3259 r3260  
    1 #ifndef __PVS_H 
    2 #define __PVS_H 
     1#ifndef __BVHEXPORTER_H 
     2#define __BVHEXPORTER_H 
    33 
    44#include "common.h" 
     
    1616public: 
    1717 
    18         bool ExportToFile(const std::string &filename, Bvh *bvh); 
     18        bool Export(const std::string &filename, Bvh *bvh); 
    1919 
    2020 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Geometry.h

    r3259 r3260  
    6262 
    6363protected: 
     64 
    6465        /** Calculates the bounding box from the vertices. 
    6566        */ 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/ResourceManager.cpp

    r3259 r3260  
    383383        } 
    384384 
    385         const bool delGeometry = true; 
     385        //const bool delGeometry = true; 
     386        const bool delGeometry = false; 
    386387        return new Geometry(vertices, normals, texcoords, vertexCount, delGeometry, NULL);//tangents); 
    387388} 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SceneEntity.h

    r3259 r3260  
    1919 
    2020/** Class representing a scene entity. 
    21     A scene entity basically consists of geometry, transformation, and a material 
     21    A scene entity basically consists of one or more shapes and a transformation. 
    2222*/ 
    2323class SceneEntity 
     
    109109        //-- static functions 
    110110 
    111         /** If false, the highest (most detailed) LOD level is used for all entities. 
     111        /** If false, the highest (=most detailed) LOD level is used for all entities. 
    112112        */ 
    113113        static void SetUseLODs(bool useLODs); 
     
    119119        */ 
    120120        static void SetCurrentVisibleId(int id); 
    121  
     121        /** Returns the id that indicates a visible object. 
     122        */ 
    122123        static int GetCurrentVisibleId(); 
    123124 
    124125 
    125126protected: 
    126  
    127127 
    128128        /** Internally updates current lod level. 
     
    159159        /// if LODs are used for rendering: otherwise we always take the highest lod 
    160160        static bool sUseLODs; 
    161  
    162161}; 
    163162 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp

    r3259 r3260  
    6161#include "ViewCellsTree.h" 
    6262#include "PvsCollectionRenderer.h" 
     63#include "ObjExporter.h" 
     64#include "BvhExporter.h" 
    6365 
    6466 
     
    644646 
    645647 
     648        ObjExporter().Export(model_path + "mycity.obj", bvh); 
     649        BvhExporter().Export(model_path + "mycity.bvh", bvh); 
     650 
     651 
     652 
    646653        ////////////////// 
    647654        //-- setup the skydome model 
Note: See TracChangeset for help on using the changeset viewer.