topameng's profileQuake3 启示录PhotosBlogListsMore Tools Help

Blog


    April 15

    ogre 无法解析的外部符号 _IID_IDirect3DBaseTexture9

    RenderSystem_Direct3D9 工程加入dxguid.lib
    解决办法 DX9SDK\Lib\x86 目录放到vc平台 sdk 目录前面

    March 21

    Pro.OGRE.3D.Programming

    http://www.rockay.com/ogre/Apress.Pro.OGRE.3D.Programming.pdf
    BT下载可以从此处下载到,现在很多0day都可以下载到。
    一个有很多该书读书笔记的blog
    ogre 中文wiki,有部分文档的翻译 
    November 04

    在OGRE中使用CEGUI

    From CEGUIWiki

    开始你必须得到Ogre渲染窗口指针mWindow 变量。这个变量在Ogre初始化时被设置
       mWindow = mRoot->initialise(true);  //在ExampleApplication框架的configure()函数中
    Gui 初始化 (TaharezLook)  //在CreateScene()函数中添加如下代码
    mGuiRenderer = new CEGUI::OgreCEGUIRenderer(mWindow, Ogre::RENDER_QUEUE_OVERLAY,
             false, 3000,Ogre::ST_EXTERIOR_REAL_FAR);
    mGuiSystem = new CEGUI::System(mGuiRenderer);
    mWindowManager = &CEGUI::WindowManager::getSingleton();
    CEGUI::Logger::getSingleton().setLoggingLevel(CEGUI::Informative);
    CEGUI::SchemeManager::getSingleton().loadScheme((CEGUI::utf8*)"TaharezLook.scheme");
    mGuiSystem->setDefaultMouseCursor((CEGUI::utf8*)"TaharezLook", (CEGUI::utf8*)"MouseArrow");
    mGuiSystem->setDefaultFont((CEGUI::utf8*)"Tahoma-12");
    mSheet = mWindowManager->createWindow((CEGUI::utf8*)"DefaultGUISheet", (CEGUI::utf8*)"root");
    mGuiSystem->setGUISheet(mSheet); 

    mGUIRenderer 和 mGuiSystem 是 ExampleApplication 派生类私有成员:
    private:
          CEGUI::OgreCEGUIRenderer* mGUIRenderer;
          CEGUI::System* mGUISystem;

    如果你安装了Ogre vc wizard ,可以在生成Ogre工程时选择支持CEGUI,这样就可以省掉上面的代码,而且还包含向CEGUI注册鼠标键盘事件等

    November 01

    使用OGRE SDK VC生成向导

    The Complete Blanks Guide To Using The OGRE SDK AppWizard

    From Ogre Wiki

    Created by --Jacmoe 23:36, 30 April 2006 (CDT)

    Contents

     

    Introduction

    This is a brief, but detailed guide to use the OGRE SDK and the OGRE SDK AppWizard.

    Remember: you don't need anything but Visual C++, the OGRE SDK and the AppWizard.

    And you don't need to configure any project options. The wizard takes care of that.

    Get It

    Get the OGRE SDK for your compiler : Here


    Get the OGRE SDK AppWizard for your compiler : Here

    Make sure that the AppWizard matches the version of the OGRE SDK!

    Install It

    OGRE SDK

    Very important!

    Do not install this into a directory name with spaces in it, like "My Documents" or the like. You are only asking for trouble.

    Choose a sensible no-spaces-in-it name, like C:\OgreSDK.


    Install the OGRE SDK.

    After installation, we are checking that everything is alright. We want the OGRE_HOME environment present,
    and we want it to point to where the OgreSDK is installed.

    It happens by default, but we are checking anyway.

    Right-Click the "My Computer" icon, go to the Advanced tab and click on the Environment Varibles button.


    image:Enviroment_vars.gif

    You should see an OGRE_HOME environment variable pointing to your newly installed OGRE SDK.

    OGRE AppWizard

    OK. Now unzip the OGRE AppWizard to somewhere safe. Jump into the folder, and find the installation script:


    image:Wizard_install.gif

    Double-click on it. Hopefully it is succesful:
    Forget about this directory! You don't need to see it again, nor use it. Just leave it where it is, alright? :-)
    You will create new projects from Visual Studio, not from here.

    Use it

    Now, it is time to fire up Visual Studio.

    Create a New Project

    Create a new project:

    image:New_project.gif


    Locate the OGRE SDK Application Icon, and don't forget to give your project a name and a place to stay!

    Again, you are advised to choose a no-spaces-in-it-path. :-)


    image:SDKApp.gif

    Follow the Wizard

    Click OK and watch the first page of the OGRE SDK Application Wizard:

    image:Appwizard1.gif


    Go to the next page - make sure that the post-build copy is checked:

    image:Appwizard2.gif


    Click on "Finish" - and watch your new project:

    image:Test1.gif 

    Build your Project

    Build your project:

    image:Test1_build.gif


    Watch the output window for success:

    image:Build_success.gif

    Notice that the exe is copied to the OgreSDK/bin/debug directory.

    Run it

    Go to your OgreSDK/bin/debug directory and find your creation:

    image:New_creation.gif

    Run it goddamnit! :-))

    OGRE_SDK_AppWizard"