Changeset 76
- Timestamp:
- 05/03/05 02:51:34 (20 years ago)
- Location:
- trunk/VUT/work/TestCullingTerrain
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/work/TestCullingTerrain/TerrainContentGenerator.cpp
r75 r76 63 63 sprintf(msg, "pos: %3.3f %3.3f %3.3f\n", position.x, position.y, position.z); 64 64 65 if (mRayQueryExecutor->executeRayQuery(&queryResult, position, Vector3 ::NEGATIVE_UNIT_Y))65 if (mRayQueryExecutor->executeRayQuery(&queryResult, position, Vector3(0,-1,0)/*::NEGATIVE_UNIT_Y*/)) 66 66 { 67 67 char name[16]; 68 68 sprintf(name, "%s%d", entName.c_str(), mCount++); 69 69 OutputDebugString("Creating new object "); OutputDebugString(msg); 70 70 71 Entity *ent = mSceneMgr->createEntity(name, entName); 71 72 SceneNode *currentObject = mSceneMgr->getRootSceneNode()-> 72 73 createChildSceneNode(String(name) + "Node", queryResult); 74 73 75 currentObject->attachObject(ent); 74 76 currentObject->setScale(0.1f, 0.1f, 0.1f); -
trunk/VUT/work/TestCullingTerrain/TestCullingTerrainApplication.cpp
r75 r76 192 192 if (e->getButtonID() & InputEvent::BUTTON0_MASK) 193 193 { 194 CEGUI::MouseCursor::getSingleton().hide( 194 CEGUI::MouseCursor::getSingleton().hide(); 195 195 196 196 // Setup the ray scene query
Note: See TracChangeset
for help on using the changeset viewer.