zoukankan      html  css  js  c++  java
  • OGRE小记

    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); 
  • 相关阅读:
    Android进程生命周期与ADJ
    四大组件之综述
    Linux进程pid分配法
    Linux的进程管理
    Linux硬盘管理
    Linux用户管理
    Linux命令行使用
    vim技巧5 常用操作
    vim技巧4 删除/保留文本中匹配行
    如何绘制UML图?
  • 原文地址:https://www.cnblogs.com/minggoddess/p/1964006.html
Copyright © 2011-2022 走看看