Jump to content

stackSymmetry mirror weirdness


Recommended Posts

Hi,

I'm very confused and getting tired of a problem with stackSymmetry and mirror mode. I'm getting very different results from different parts and I don't understand why. 

It works fine with stock parts:

KSP_StackSymmetry02.jpg

Then it almost works with a custom part ( it was rotated 180 degrees instead of being mirrored)

KSP_StackSymmetry01.jpg

And sometimes it doesn't even rotate. It just copies it!

KSP_StackSymmetry00.jpg

They are all mirror symmetry. Radial symmetry works as it should. And I can't seem to find a difference between those parts that would explain the different results.

Any ideas?

The node configs just in case below:

Spoiler

The plane's fuselage


	node_stack_gear = 0.0, 13.271, 1.9268, 0.0, 0.0, 1.0, 2
	node_stack_wing = -1.725, 2.9649, 0.8453, -1.0, 0.0, 0.0, 2
	node_stack_wing2 = 1.725, 2.9649, 0.8453, 1.0, 0.0, 0.0, 2
	node_stack_stabilizer1 = -0.8063, -13.7459, -1.2748, -1.0, 0.0, 0.0, 1
	node_stack_stabilizer2 = 0.8059, -13.7459, -1.2748, 1.0, 0.0, 0.0, 1
	node_stack_tail = -0.000052, -11.1938, -1.9254, 0.0, 0.0, -1.0, 2
	node_stack_decoupler = 0.00166, 4.4368, -1.7104, 0.0, 0.0, -1.0, 2
	.
	.
	attachRules = 1,0,1,1,0
	stackSymmetry = 1

the wing


	node_stack_fuselage =   0.0, 0.0, 0.0, 1, 0, 0, 2
	node_stack_engine = -3.5409, 0.3855, -0.2392, 0,0, 1,2
	node_stack_gear = -1.2035, -1.9887, 0.1167, 0.0,0,1,2
	attachRules = 1,0,1,1,0

the stabilizer


	node_stack_top =   0.0, 0.0, 0.0, 1, 0, 0, 2
    attachRules = 1,0,1,1,0

 

 

Edited by Nookos
Link to comment
Share on other sites

The stock parts are rotated too, nothing gets "mirrored" in terms of inverting the model, or anything like that. The custom lifting-body you used as an example is the normal behavior. So wings and fins and the like need to look the same on top & bottom, or else you need to make separate left/right versions of them.

 

The issue with them always facing the same way, and pointing through the center stack is something I think I ran into once or twice, with different causes. KSP I think has gotten slightly more picky about which way parts are oriented in the model, enforcing node orientation, and so on.

 

My suspicion (and I'm not really sure), is that the wings are set up as stackable parts, but are oriented horizontally in the model. kSP is having a hard time figuring out the direction of the part since it expects parts to be oriented vertically if they're functioning as "stack" parts.

 

If you want do it as true radial parts (like the stock wings), then you'll need a "node_attach". That would look more like this:

 

node_attach = 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1
// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
attachRules = 0,1,0,1,0

 

If you want the wings to work as stack parts AND as radial parts, I'd rotate them in blender or Unity (or whatever) to be vertical and change the attachment nodes to reflect that.

Link to comment
Share on other sites

On 9/12/2015 15:13:28, NecroBones said:

The stock parts are rotated too, nothing gets "mirrored" in terms of inverting the model, or anything like that. The custom lifting-body you used as an example is the normal behavior. So wings and fins and the like need to look the same on top & bottom, or else you need to make separate left/right versions of them.

 

The issue with them always facing the same way, and pointing through the center stack is something I think I ran into once or twice, with different causes. KSP I think has gotten slightly more picky about which way parts are oriented in the model, enforcing node orientation, and so on.

 

My suspicion (and I'm not really sure), is that the wings are set up as stackable parts, but are oriented horizontally in the model. kSP is having a hard time figuring out the direction of the part since it expects parts to be oriented vertically if they're functioning as "stack" parts.

 

If you want do it as true radial parts (like the stock wings), then you'll need a "node_attach". That would look more like this:

 


node_attach = 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1
// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
attachRules = 0,1,0,1,0

 

If you want the wings to work as stack parts AND as radial parts, I'd rotate them in blender or Unity (or whatever) to be vertical and change the attachment nodes to reflect that.

Oh indeed I didn't look closely enough to the SRB. The yellow number is not on the other side so I though it was correct mirroring but no indeed. Still weird results though: in SPH values the SRB was rotated 180 on Y and 180 on X. The small shuttle was only rotated 180 on Y and the wing was not rotated.

And I had the same suspicion regarding stackable parts so I created a top and bottom node on the wing but it didn't change a thing. I guess I should go further as you suggest and export it vertically too. I will try as soon as I can. But it might mess up my lifting surfaces. I had a similar problem with the rudder. It was lifting the wrong way and not yawing when exported correctly. So I exported it horizontally and it needs to be rotated 90 degrees ingame to have proper lift.

So as you mentionned those wings wouldn't work anyway as they have a top / bottom and inclination. I guess they'll stay as two parts. Thanks for the information. I could have wasted a lot more time trying to do sthg that can t be done.

Link to comment
Share on other sites

On December 8, 2015 at 4:22:31 PM, Nookos said:

Hi,

I'm very confused and getting tired of a problem with stackSymmetry and mirror mode. I'm getting very different results from different parts and I don't understand why. 

It works fine with stock parts:

KSP_StackSymmetry02.jpg

Then it almost works with a custom part ( it was rotated 180 degrees instead of being mirrored)

KSP_StackSymmetry01.jpg

And sometimes it doesn't even rotate. It just copies it!

KSP_StackSymmetry00.jpg

They are all mirror symmetry. Radial symmetry works as it should. And I can't seem to find a difference between those parts that would explain the different results.

Any ideas?

The node configs just in case below:

  Hide contents

The plane's fuselage



	node_stack_gear = 0.0, 13.271, 1.9268, 0.0, 0.0, 1.0, 2
	node_stack_wing = -1.725, 2.9649, 0.8453, -1.0, 0.0, 0.0, 2
	node_stack_wing2 = 1.725, 2.9649, 0.8453, 1.0, 0.0, 0.0, 2
	node_stack_stabilizer1 = -0.8063, -13.7459, -1.2748, -1.0, 0.0, 0.0, 1
	node_stack_stabilizer2 = 0.8059, -13.7459, -1.2748, 1.0, 0.0, 0.0, 1
	node_stack_tail = -0.000052, -11.1938, -1.9254, 0.0, 0.0, -1.0, 2
	node_stack_decoupler = 0.00166, 4.4368, -1.7104, 0.0, 0.0, -1.0, 2
	.
	.
	attachRules = 1,0,1,1,0
	stackSymmetry = 1

the wing



	node_stack_fuselage =   0.0, 0.0, 0.0, 1, 0, 0, 2
	node_stack_engine = -3.5409, 0.3855, -0.2392, 0,0, 1,2
	node_stack_gear = -1.2035, -1.9887, 0.1167, 0.0,0,1,2
	attachRules = 1,0,1,1,0

the stabilizer




	node_stack_top =   0.0, 0.0, 0.0, 1, 0, 0, 2
    attachRules = 1,0,1,1,0

 

 

I love how that thing looks.  

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...