Changeset 786
- Timestamp:
- 04/22/06 20:10:15 (19 years ago)
- Location:
- GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE
- Files:
-
- 17 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/LBBC/LBBCBillboardViewMode.h
r751 r786 53 53 Ogre::SceneNode* sNode = mSceneMgr->getRootSceneNode()->createChildSceneNode(); 54 54 //mBillboardCloudEntity = mSceneMgr->createEntity(mBillboardCloudMeshName, mBillboardCloudMeshName); 55 mBillboardCloudEntity = mSceneMgr->createEntity("chestnutLeavesBillboardCloudGrouped.mesh", "chestnutLeavesBillboardCloudGrouped.mesh"); 55 mBillboardCloudEntity = mSceneMgr->createEntity("chestnutLeavesBillboardCloudGrouped.mesh", "chestnutLeavesBillboardCloudGrouped.mesh"); 56 //mBillboardCloudEntity = mSceneMgr->createEntity("mapleLeavesBillboardCloudGrouped.mesh", "mapleLeavesBillboardCloudGrouped.mesh"); 56 57 sNode->attachObject(mBillboardCloudEntity); 57 58 sNode->rotate(Ogre::Vector3::UNIT_X, Ogre::Radian(Ogre::Degree(-90.0))); -
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/LBBC/LBBCClusterViewMode.h
r751 r786 39 39 //Ogre::Entity* eLeafClustersGrouped = mSceneMgr->createEntity(mEntityClustersMeshName, mEntityClustersMeshName); 40 40 Ogre::Entity* eLeafClustersGrouped = mSceneMgr->createEntity("chestnutLeafClustersGrouped.mesh", "chestnutLeafClustersGrouped.mesh"); 41 //Ogre::Entity* eLeafClustersGrouped = mSceneMgr->createEntity("mapleLeafClustersGrouped.mesh", "mapleLeafClustersGrouped.mesh"); 41 42 sNode->attachObject(eLeafClustersGrouped); 42 43 sNode->rotate(Ogre::Vector3::UNIT_X, Ogre::Radian(Ogre::Degree(-90.0))); -
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/src/BBCBillboardCloud.cpp
r751 r786 102 102 vFaceA1.position = billboard->getBillboardClusterData()->getQuadTopLeftCorner(); 103 103 vFaceA1.normal = billboard->getBillboardClusterData()->getNormal(); 104 vFaceA1.uv[0] = Ogre::Vector3( 0,0,0);104 vFaceA1.uv[0] = Ogre::Vector3(1.0 , 0.0, 0.0); 105 105 vFaceA2.position = billboard->getBillboardClusterData()->getQuadTopRightCorner(); 106 106 vFaceA2.normal = billboard->getBillboardClusterData()->getNormal(); 107 vFaceA2.uv[0] = Ogre::Vector3( 1,0,0);107 vFaceA2.uv[0] = Ogre::Vector3(0.0, 0.0, 0.0); 108 108 vFaceA3.position = billboard->getBillboardClusterData()->getQuadBottomRightCorner(); 109 109 vFaceA3.normal = billboard->getBillboardClusterData()->getNormal(); 110 vFaceA3.uv[0] = Ogre::Vector3( 1,1,0);110 vFaceA3.uv[0] = Ogre::Vector3(0.0 ,1.0 ,0.0); 111 111 112 112 // Face B of the billboard quad … … 114 114 vFaceB1.position = billboard->getBillboardClusterData()->getQuadBottomRightCorner(); 115 115 vFaceB1.normal = billboard->getBillboardClusterData()->getNormal(); 116 vFaceB1.uv[0] = Ogre::Vector3( 1,1,0);116 vFaceB1.uv[0] = Ogre::Vector3(0.0, 1.0 ,0.0); 117 117 vFaceB2.position = billboard->getBillboardClusterData()->getQuadBottomLeftCorner(); 118 118 vFaceB2.normal = billboard->getBillboardClusterData()->getNormal(); 119 vFaceB2.uv[0] = Ogre::Vector3( 0,1,0);119 vFaceB2.uv[0] = Ogre::Vector3(1.0, 1.0, 0.0); 120 120 vFaceB3.position = billboard->getBillboardClusterData()->getQuadTopLeftCorner(); 121 121 vFaceB3.normal = billboard->getBillboardClusterData()->getNormal(); 122 vFaceB3.uv[0] = Ogre::Vector3( 0,0,0);122 vFaceB3.uv[0] = Ogre::Vector3(1.0, 0.0, 0.0); 123 123 124 124 subEntity->addUniqueVertex(vFaceA1); -
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/src/LBBCBillboardKMeansClusterData.cpp
r751 r786 181 181 if (iBillboardGroup >= 0) 182 182 { 183 //uvMapMin = billboardNode->ToElement()->InsertEndChild(TiXmlElement("uvMapMin"))->ToElement();184 //Ogre::String sUvMapMinX = Ogre::StringConverter::toString(this->getBillboardUVMapMin(iBillboardGroup).x);185 //uvMapMin->ToElement()->SetAttribute("x",sUvMapMinX.c_str());186 //Ogre::String sUvMapMinY = Ogre::StringConverter::toString(this->getBillboardUVMapMin(iBillboardGroup).y);187 //uvMapMin->ToElement()->SetAttribute("y",sUvMapMinY.c_str());188 189 //uvMapMax = billboardNode->ToElement()->InsertEndChild(TiXmlElement("uvMapMax"))->ToElement();190 //Ogre::String suvMapMaxX = Ogre::StringConverter::toString(this->getBillboardUVMapMax(iBillboardGroup).x);191 //uvMapMax->ToElement()->SetAttribute("x",suvMapMaxX.c_str());192 //Ogre::String suvMapMaxY = Ogre::StringConverter::toString(this->getBillboardUVMapMax(iBillboardGroup).y);193 //uvMapMax->ToElement()->SetAttribute("y",suvMapMaxY.c_str());194 195 183 uvMapMin = billboardNode->ToElement()->InsertEndChild(TiXmlElement("uvMapMin"))->ToElement(); 196 184 Ogre::String sUvMapMinX = Ogre::StringConverter::toString(this->getBillboardUVMapMin(0).x);
Note: See TracChangeset
for help on using the changeset viewer.