我要发帖 回复

正式会员

11

主题

53

积分

0

专家分

:

私信
发表时间 : 2006-11-29 16:41:06 | 浏览 : 2592    评论 : 13
向在场景中缩放模型,使用的方法是改变模型的VGOBJ_SCALE属性。结果缩放后模型的位置发生了变化,如图所示。请问这是为什莫?是不是模型的局部坐标原点一定要在模型的中心?

缩放移位

缩放移位

最近VR访客

obuil 评论于2006-11-29 18:49:13
模型以creator中的坐标原点为缩放中心进行缩放
thunderbolt 评论于2006-11-30 09:05:15
非常感谢,再问一下不能改变吗?有没有什莫解决方法?
独山子 评论于2006-11-30 20:01:02
A scale can be specified for a static or dynamic object by setting the VGOBJ_SCALE property to the desired scale using vgProp or by entering a value in the LynX Objects panel. For a static object, this scale must be set BEFORE the object is made as this scale is 'built into' the static object and may not be changed after the object has been made. Dynamic objects may have their scales changed after system configuration, or after the objects are made. Scaling is uniform in x, y, and z. The LOD (Level of Detail) ranges for the object are multiplied by the scale factor. A dynamic object may also have a built-in scale. As with static objects, setting VGOBJ_SCALE through the ADF or through vgProp BEFORE a dynamic object is 'made' with vgMakeObj builds the scale factor into the object. Further scaling of the dynamic object is against this base scale. For example, if the ADF has a scale of 2 for a dynamic object and during runtime the user scales the object by 3, the object then appears 6 times larger than it was modeled.

When a dynamic object with an offset (non-identity offset) is scaled during runtime, the object's position changes as well as its size. To avoid this effect, give no offsets to objects that are to be scaled during runtime.
逆水行舟,不进则退。
thunderbolt 评论于2006-12-1 15:10:53
没太看明白,但还是非常感谢!
connyzone 评论于2007-5-26 05:47:18
对,模型以creator中的坐标原点为缩放中心进行缩放,不信的话你在Creator里面试试,的确是这样.
lvxueqiao 评论于2007-9-12 20:41:38
非常感谢
obuil 评论于2007-9-12 21:59:41
可以改变缩放中心的位置 呵呵
jasonfifa 评论于2007-10-19 10:53:11
学习一下.
thunderbolt 评论于2007-11-23 20:38:57
请问Obuil版主,如何改变缩放中心的位置啊?能具体说说吗?或者在那里可以得到参考资料啊?
obuil 评论于2007-11-23 21:55:44
在creator修改模型的位置 不就可以了吗
windgoing 评论于2007-11-24 23:13:25
yumen
thunderbolt 评论于2007-11-25 16:36:18
Creator里修改当然没有问题了,我想用程序在进行缩放前对其进行动态的修改,原来下载过一个转换应用程序,不知道是谁做的,能不能告诉我用程序修改的方法 !谢谢
一剑西来 评论于2007-11-26 12:27:35
帮你顶一下,这个我也有兴趣

手机版|VR开发网 统计 津ICP备18009691号
网安备12019202000257

GMT+8, 2021-2-25 07:30 AM

返回顶部