Changeset 12197 for code/branches
- Timestamp:
- Feb 28, 2019, 2:30:40 PM (6 years ago)
- Location:
- code/branches/mergeFS18
- Files:
-
- 1 deleted
- 3 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/mergeFS18
- Property svn:mergeinfo changed
/code/branches/shader_HS18 (added) merged: 12034,12075-12076,12095,12098,12112-12113,12121,12123,12141
- Property svn:mergeinfo changed
-
code/branches/mergeFS18/data/levels/tutorial.oxw
r9348 r12197 55 55 <?lua end ?> 56 56 57 <GlobalShader compositor="Bloom" visible= false>57 <GlobalShader compositor="Bloom" visible=true> 58 58 <events> 59 59 <visibility> 60 <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />60 <DistanceTrigger position="0,0,0" distance=300 target="Spectator" switch=false /> 61 61 </visibility> 62 62 </events> -
code/branches/mergeFS18/src/libraries/tools/Mesh.cc
r11783 r12197 35 35 #include <OgreSubEntity.h> 36 36 #include <OgreSceneManager.h> 37 #include <OgreHardwareVertexBuffer.h> 37 38 38 39 #include "util/Convert.h" … … 64 65 this->scenemanager_->destroyEntity(this->entity_); 65 66 67 66 68 if (GameMode::showsGraphics()) 67 69 { … … 70 72 this->entity_ = this->scenemanager_->createEntity("Mesh" + multi_cast<std::string>(Mesh::meshCounter_s++), meshsource); 71 73 this->entity_->setCastShadows(this->bCastShadows_); 72 } 73 catch (...) 74 75 76 unsigned short src, dest; 77 try 78 { 79 if (!this->entity_->getMesh()->suggestTangentVectorBuildParams(Ogre::VertexElementSemantic::VES_TANGENT, src, dest)) 80 { 81 orxout() << "Generate Tanget for \"" << meshsource << '"' << endl; 82 this->entity_->getMesh()->buildTangentVectors(Ogre::VertexElementSemantic::VES_TANGENT, src, dest); 83 // this version cleans mirrored and rotated UVs but requires quality models 84 // mesh->buildTangentVectors(VES_TANGENT, src, dest, true, true); 85 } 86 } catch (...) 87 { 88 orxout(internal_warning) << "Couldn't generat tangets for \"" << meshsource << '"' << endl; 89 } 90 91 } catch (...) 74 92 { 75 93 orxout(internal_error) << "Couldn't load mesh \"" << meshsource << '"' << endl; … … 107 125 this->entity_->getSubEntity(index)->setMaterialName(name); 108 126 } 109 else 127 else 110 128 orxout() << "ERROR at Index " << index << endl; 111 129 }
Note: See TracChangeset
for help on using the changeset viewer.