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:
	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 1
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)

02-28-2018 07:50 AM
If I understood the code. I definitely have spheres turning ovoid in a amazing manner. These are just coloured spheres docked together

A sample image. ( sadly No: Cannot create system file)

Regards Lee Palmer.

Got it.
03-02-2018 05:48 PM
More images of spheres turning ovoid after docking, and their related shadows misaligned.

The shadow wanders depending on viewing angle.

Issue Tools
Subscribe to this issue

All times are GMT. The time now is 11:42 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 - 2019, Jelsoft Enterprises Ltd.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.