Changeset 76


Ignore:
Timestamp:
05/03/05 02:51:34 (20 years ago)
Author:
mattausch
Message:
 
Location:
trunk/VUT/work/TestCullingTerrain
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/work/TestCullingTerrain/TerrainContentGenerator.cpp

    r75 r76  
    6363        sprintf(msg, "pos: %3.3f %3.3f %3.3f\n", position.x, position.y, position.z); 
    6464 
    65         if (mRayQueryExecutor->executeRayQuery(&queryResult, position, Vector3::NEGATIVE_UNIT_Y)) 
     65        if (mRayQueryExecutor->executeRayQuery(&queryResult, position, Vector3(0,-1,0)/*::NEGATIVE_UNIT_Y*/)) 
    6666        { 
    6767                char name[16]; 
    6868                sprintf(name, "%s%d", entName.c_str(), mCount++); 
    6969                OutputDebugString("Creating new object "); OutputDebugString(msg); 
     70 
    7071                Entity *ent = mSceneMgr->createEntity(name, entName); 
    7172                SceneNode *currentObject = mSceneMgr->getRootSceneNode()-> 
    7273                        createChildSceneNode(String(name) + "Node", queryResult); 
     74 
    7375                currentObject->attachObject(ent); 
    7476                currentObject->setScale(0.1f, 0.1f, 0.1f); 
  • trunk/VUT/work/TestCullingTerrain/TestCullingTerrainApplication.cpp

    r75 r76  
    192192     if (e->getButtonID() & InputEvent::BUTTON0_MASK) 
    193193     { 
    194                  CEGUI::MouseCursor::getSingleton().hide( ); 
     194                 CEGUI::MouseCursor::getSingleton().hide(); 
    195195 
    196196                 // Setup the ray scene query 
Note: See TracChangeset for help on using the changeset viewer.