OGRE学习杂记-2012.11.21

本文记录了作者使用OGRE 1.8.1版本进行学习的过程。重点介绍了引擎的架构特点,如资源数据与逻辑的良好隔离、监听者模式的应用等,并提到了计划从渲染流程的frameRendering系列函数入手进行深入研究。

决定开始有系统有、有针对性地学习一下OGRE,并以此来好好地了解一款引擎。
每天写点学习杂记,可以督促自己坚持下去。

1.8.1版的代码,例子依旧是DLL库形式,用一个SampleBrower来查找、切换例子
大量采用了监听者模式,不过相比来说,我更喜欢CEGUI的事件触发机制,也是用习惯的关系
Ogre::Root这是个核心类
资源数据跟逻辑做了一个很好的隔离,不过还没仔细深究
渲染方面,只找到了frameRenderingXX系列函数,打算先从这入手试试
不喜欢里面把左大括号写在代码末尾的方式,还是喜欢单独占一行,比较清晰明确
例子里好多类成员函数都是内联的,即定义实现都在头文件里,感觉头文件相当臃肿,不明白这样写的意义,难道只是为了图个省事?

-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found suitable version "1.71.0", minimum required is "1.40.0") found components: thread system filesystem program_options regex iostreams date_time -- Looking for ignition-math6 -- found version 6.15.1 -- Searching for dependencies of ignition-math6 -- Looking for OGRE... -- Found Ogre Ghadamon (1.9.0) -- Found OGRE: optimized;/usr/lib/x86_64-linux-gnu/libOgreMain.so;debug;/usr/lib/x86_64-linux-gnu/libOgreMain.so -- Looking for OGRE_Paging... -- Found OGRE_Paging: optimized;/usr/lib/x86_64-linux-gnu/libOgrePaging.so;debug;/usr/lib/x86_64-linux-gnu/libOgrePaging.so -- Looking for OGRE_Terrain... -- Found OGRE_Terrain: optimized;/usr/lib/x86_64-linux-gnu/libOgreTerrain.so;debug;/usr/lib/x86_64-linux-gnu/libOgreTerrain.so -- Looking for OGRE_Property... -- Found OGRE_Property: optimized;/usr/lib/x86_64-linux-gnu/libOgreProperty.so;debug;/usr/lib/x86_64-linux-gnu/libOgreProperty.so -- Looking for OGRE_RTShaderSystem... -- Found OGRE_RTShaderSystem: optimized;/usr/lib/x86_64-linux-gnu/libOgreRTShaderSystem.so;debug;/usr/lib/x86_64-linux-gnu/libOgreRTShaderSystem.so -- Looking for OGRE_Volume... -- Found OGRE_Volume: optimized;/usr/lib/x86_64-linux-gnu/libOgreVolume.so;debug;/usr/lib/x86_64-linux-gnu/libOgreVolume.so -- Looking for OGRE_Overlay... -- Found OGRE_Overlay: optimized;/usr/lib/x86_64-linux-gnu/libOgreOverlay.so;debug;/usr/lib/x86_64-linux-gnu/libOgreOverlay.so -- Looking for ignition-math6 -- found version 6.15.1 -- Looking for ignition-transport8 -- found version 8.5.0 -- Searching for dependencies of ignition-transport8 CMake Error at /mnt/d/anaconda3/Library/lib/cmake/protobuf/protobuf-targets.cmake:42 (message): Some (but not all) targets in this export set were already defined. Targets Defined: protobuf::libprotobuf-lite, protobuf::libprotobuf, protobuf::libprotoc, protobuf::protoc Targets not yet defined: protobuf::libupb, protobuf::protoc-gen-upb, protobuf::protoc-gen-upbdefs, protobuf::protoc-gen-upb_minitable Call Stack (most recent call first): /mnt/d/anaconda3/Library/lib/cmake/protobuf/protobuf-config.cmake:16 (include) /usr/share/cmake/ignition-cmake2/cmake2/FindIgnProtobuf.cmake:29 (find_package) /usr/lib/x86_64-linux-gnu/cmake/ignition-transport8/ignition-transport8-config.cmake:92 (find_package) /usr/lib/x86_64-linux-gnu/cmake/gazebo/gazebo-config.cmake:244 (find_package) try5/uav_simulator/CMakeLists.txt:21 (find_package) -- Configuring incomplete, errors occurred! See also "/home/vivien/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/vivien/catkin_ws/build/CMakeFiles/CMakeError.log". make: *** [Makefile:2658: cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed
11-17
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值