Changeset 2710 for code/trunk/src/orxonox/objects/worldentities
- Timestamp:
- Feb 28, 2009, 7:46:37 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:ignore deleted
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/Backlight.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/Backlight.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/Backlight.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/Backlight.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/CMakeLists.txt
r2662 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 WorldEntity.cc 3 3 StaticEntity.cc … … 21 21 ) 22 22 23 ADD_SOURCE_DIRECTORY(SRC_FILES pawns) 24 ADD_SOURCE_DIRECTORY(SRC_FILES triggers) 25 26 ADD_SOURCE_FILES(SRC_FILES) 23 ADD_SUBDIRECTORY(pawns) 24 ADD_SUBDIRECTORY(triggers) -
code/trunk/src/orxonox/objects/worldentities/Camera.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/Camera.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/Camera.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/Camera.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/MobileEntity.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/trunk/src/orxonox/objects/worldentities/MobileEntity.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/trunk/src/orxonox/objects/worldentities/ParticleSpawner.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/ParticleSpawner.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/ParticleSpawner.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/ParticleSpawner.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/Planet.cc
r2662 r2710 74 74 if(activeCamera) 75 75 { 76 Realdistance = this->getPosition().distance( activeCamera->getWorldPosition() );76 float distance = this->getPosition().distance( activeCamera->getWorldPosition() ); 77 77 // COUT(2) << distance << std::endl; 78 RealplanetRadius = this->getScale();78 float planetRadius = this->getScale(); 79 79 80 RealnewScale = 2 * distance / sqrt(distance*distance - planetRadius*planetRadius);81 Real tempTest = newScale*(1+Real(this->atmosphereSize)/Real(this->imageSize));80 float newScale = 2 * distance / sqrt(distance*distance - planetRadius*planetRadius); 81 float tempTest = newScale*(1+float(this->atmosphereSize)/float(this->imageSize)); 82 82 newScale = tempTest; 83 83 … … 90 90 void Planet::init() 91 91 { 92 RealscaleFactor = this->getScale();92 float scaleFactor = this->getScale(); 93 93 94 94 this->distList.push_back(10.0*scaleFactor); … … 103 103 this->distList.push_back(55.0*scaleFactor); 104 104 105 RealreductionValue = 0.2;105 float reductionValue = 0.2; 106 106 107 107 this->mesh_.getEntity()->getMesh()->generateLodLevels(distList, Ogre::ProgressiveMesh::VRQ_PROPORTIONAL, reductionValue); -
code/trunk/src/orxonox/objects/worldentities/Planet.h
r2662 r2710 71 71 } 72 72 73 inline void setAtmosphereSize( Realsize){73 inline void setAtmosphereSize(float size){ 74 74 this->atmosphereSize = size; 75 75 } 76 76 77 inline RealgetAtmosphereSize(){77 inline float getAtmosphereSize(){ 78 78 return this->atmosphereSize; 79 79 } … … 87 87 } 88 88 89 inline void setImageSize( Realsize){89 inline void setImageSize(float size){ 90 90 this->imageSize = size; 91 91 } 92 92 93 inline RealgetImageSize(){93 inline float getImageSize(){ 94 94 return this->imageSize; 95 95 } … … 106 106 std::string atmosphere_; 107 107 Mesh mesh_; 108 RealatmosphereSize;109 RealimageSize;108 float atmosphereSize; 109 float imageSize; 110 110 Ogre::Mesh::LodDistanceList distList; 111 111 BillboardSet billboard_; -
code/trunk/src/orxonox/objects/worldentities/StaticEntity.cc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/trunk/src/orxonox/objects/worldentities/StaticEntity.h
- Property svn:mergeinfo changed (with no actual effect on merging)
-
code/trunk/src/orxonox/objects/worldentities/pawns/CMakeLists.txt
r2131 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 Spectator.cc 3 3 Pawn.cc 4 4 SpaceShip.cc 5 5 ) 6 7 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/worldentities/triggers/CMakeLists.txt
r2261 r2710 1 SET(SRC_FILES1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 2 Trigger.cc 3 3 DistanceTrigger.cc … … 5 5 PlayerTrigger.cc 6 6 ) 7 8 ADD_SOURCE_FILES(SRC_FILES) -
code/trunk/src/orxonox/objects/worldentities/triggers/DistanceTrigger.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/triggers/DistanceTrigger.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/triggers/DistanceTrigger.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/triggers/DistanceTrigger.h (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/triggers/Trigger.cc
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/triggers/Trigger.cc (added) merged: 2664
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/worldentities/triggers/Trigger.h
- Property svn:mergeinfo changed
/code/branches/buildsystem3/src/orxonox/objects/worldentities/triggers/Trigger.h (added) merged: 2664
- Property svn:mergeinfo changed
Note: See TracChangeset
for help on using the changeset viewer.