Orbiter-Forum  

Go Back   Orbiter-Forum > Projects > ORBITER: 2010-P1 and newer > Bug
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Parent rotation animations not applied correctly to scale animations Issue Tools
issueid=1349 12-02-2017 01:22 PM
GLS GLS is offline
Addon Developer
Parent rotation animations not applied correctly to scale animations

A scale animation that has a parent rotation animation isn't performed correctly. A 90 rotation animation switches the scale axis of the scale animation, and the scale group is scaled in the wrong direction.
The following code shows the problem using the HST_STS-109 mesh:
Code:
	static UINT ROTGrp[1] = {1};
	static MGROUP_ROTATE ROT( mesh_idx, ROTGrp, 1, _V( 0.0, 2.0647, 0.1189 ), _V( 1.0, 0.0, 0.0 ), static_cast<float>(90.0 * RAD) );
	asROT.Set( AnimState::OPEN, 1.0 );
	anim_ROT = CreateAnimation( 1.0 );
	ANIMATIONCOMPONENT_HANDLE parent = AddAnimationComponent( anim_ROT, 0.0, 1.0, &ROT );

	static UINT SCAGrp[1] = {3};
	static MGROUP_SCALE SCA( mesh_idx, SCAGrp, 1, _V( 0.0, 2.1533, 4.8221 ), _V( 1.0, 10.0, 1.0 ) );
	asSCA.Set( AnimState::OPEN, 1.0 );
	anim_SCA = CreateAnimation( 1.0 );
	AddAnimationComponent( anim_SCA, 0.0, 1.0, &SCA, parent );
The intent here is (1) to stow the antenna mast and then (2) "unflatten" the dish. If the scale animation doesn't have a parent, it each group does what is intended, but if one wants to keep the dish connected to the mast, the dish is now compressed in the wrong direction.
More, if only the rotation animation is performed and the sim exited, upon loading the scale group will now be animated correctly.

Using Orbiter BETA r71.
Issue Details
Project ORBITER: 2010-P1 and newer
Status Unconfirmed
Priority 3
Affected Version Revision denoted in description
Fixed Version (none)
Users able to reproduce bug 0
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)

Reply

Issue Tools
Subscribe to this issue

All times are GMT. The time now is 09:31 PM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.