Ogre中解决 1.6 到 1.7 的移植问题
来源:互联网 发布:女人购物软件 编辑:程序博客网 时间:2024/04/27 18:35
从 Ogre1.6 到 1.7 可谓问题多呀,自己学习wiki 教程的时候就经常遇到以下
常见问题 :
error C2039: “getWorldPosition”: 不是“Ogre::SceneNode”的成员
查阅 Ogre wiki 得知:
SceneNode - A SceneNode is a logical element of the scene graph hierachy, which is used to organise objects in a -scene. It can have multiple child nodes or -MovableObjects (such as -Entity, -Camera, ManualObject, -Light, -ParticleSytem?, etc.) attached to it. Rather than moving these individual items around, you move the nodes they are attached to.
Note for world and derived properties
The functions getWorldPosition(), getWorldOrientation() and getWorldScale() are removed since Ogre 1.6.
Instead you have to use _getDerivedPosition(), _getDerivedOrientation() and _getDerivedScale().
In normal cases you shouldn't use underscore functions if you don't really need them. Related to the SceneNode class ist just a warning symbol.
http://www.ogre3d.org/tikiwiki/-scenenode
getWorldPosition已被 _getDerivedPosition()取代了
怎样解决呢? 我采取的办法是
Vector3 _getDerivedPosition()
{
return mMainNode->_getDerivedPosition(),
}
方法解决的。可能还有更好的方法解决,欢迎回帖交流
- Ogre中解决 1.6 到 1.7 的移植问题
- VC6编写的程序移植到VS2010中编译时error C2440: “static_cast”问题的解决
- Linux C++代码移植到Windows要解决的问题
- ubuntu 中下载openssh源码移植到 arm开发,出现you don't exist, go away问题的解决
- Ogre中渲染到纹理的步骤
- 13.Cocos2dx中解决iconv库的移植问题。
- OGRE中常见问题解决
- 移植bootloader到2440中遇到的问题
- linux代码移植到cygwin过程中遇到的问题
- ogre中每个骨骼动画分多个文件导出,解决动作变形的问题
- 解决MyEclipse 的Web项目移植到Eclipse中无法添加到Tomcat的方法
- 移植smdk2410的rtc驱动到jk2410开发板碰到的问题的解决:
- cpe移植到framework后,原有数据库存放问题的解决。
- 解决 OGRE 多边形总在最前的问题
- 从tomcat移植到weblogic中session丢失的解决法
- 移植uip-0.9到u-boot中出现undefined reference to `strstr'错误的解决过程
- 从tomcat移植到weblogic中session丢失的解决法
- 移植linux3.6至mini2451过程中遇到的问题及解决(持续更新中...)
- 反射的最基本API的调用
- SALVIA Shading Language中的表达式值的表示与Graphics Pipeline语义的表达
- c语言:指针变量作为函数参数,求两个数的最大值
- 大学感悟
- 心里好不平静
- Ogre中解决 1.6 到 1.7 的移植问题
- 取消控件上的聚焦框
- properties文件不能保存中文问题
- 上课做的MATLAB滤波器仿真
- 第三人称 摄像机系统 (基于 Ogre )
- 寻人启事
- ListView动态更新
- 基于FPGA的SOPC的几个概念
- Arrays.sort()的用法