1,entity是沒有getPosition的
2,node的默認position是原點
3,材質腳本中定義的程序段中的source文件名后綴必須與定義的shader文件類型匹配。
如:
vertex_program Ogre/CelShadingVP1 hlsl
{
source Example_CelShading1.hlsl
entry_point main_vp
target vs_2_0
}
注意target是hlsl中獨占,cg中是profile,且參數不同
4,Plugin_CgProgramManager_d.dll 插件一定要有cg.dll配合
5,OGRE不支持的中文路徑用下面解決:
setlocale(LC_ALL, "chinese-simplified");
記得讀取完資源要還原
6, Ogre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups()一定要在rendersystem初始化完畢才能調用。也就是在root的createRenderWindow 之后
7,想要你的OIS中的mouse何keboard響應你得記得在frameStarted
中每次去capture;
記得在
mKeyboard = static_cast<OIS::Keyboard*>(mInputManager->createInputObject(OIS::OISKeyboard, true));
mMouse = static_cast<OIS::Mouse*>(mInputManager->createInputObject(OIS::OISMouse, true));
之后
mMouse->setEventCallback(this);
mKeyboard->setEventCallback(this);