Author Topic: OpenCollada and incorrect turret angles  (Read 988 times)

0 Members and 1 Guest are viewing this topic.

OpenCollada and incorrect turret angles
With the newest OpenCollada (1.4.0) any turret that has an off angle (not 0,90,180,270) on the front/back axises is flipped.  I.e. (0,35,0) becomes (0,-35,0).

Looking into the dae file here's a sample for turret 31 (0,35,0)
Code: [Select]
<node id="node-turret31" name="turret31">
          <translate>153.3613 483.8815 26.96726</translate>
          <rotate>0 -1 0 -34.99999</rotate>

shouldn't 0,-1,0 * -35 = 0,35,0?

turret 32 (0,-35,0) has
<rotate>0 1 0 -34.99999</rotate>
That's cool and ....disturbing at the same time o_o  - Vasudan Admiral

"Don't play games with me. You just killed someone I like, that is not a safe place to stand. I'm the Doctor. And you're in the biggest library in the universe. Look me up."

"Quick everyone out of the universe now!"

 
Re: OpenCollada and incorrect turret angles
Some more testing...

I have a sideways turret (0,90,0) this exports to [0,-1,0, -90] = [0,90,0].  This is correct in max and in pcs2.
Then I set the turret to (0,85,0) this exports to [0,-1,0,-85] = [0,85,0].  This is correct in max, but not in Pcs

I'm wondering if it's because I have to mirror the model in the X & Z axis in pcs2  :confused:
That's cool and ....disturbing at the same time o_o  - Vasudan Admiral

"Don't play games with me. You just killed someone I like, that is not a safe place to stand. I'm the Doctor. And you're in the biggest library in the universe. Look me up."

"Quick everyone out of the universe now!"

 
Re: OpenCollada and incorrect turret angles
Oh I just noticed it's not just the turrets, it can be any subobject, although only turrets are seriously effected (everything else can be xform reset)
That's cool and ....disturbing at the same time o_o  - Vasudan Admiral

"Don't play games with me. You just killed someone I like, that is not a safe place to stand. I'm the Doctor. And you're in the biggest library in the universe. Look me up."

"Quick everyone out of the universe now!"

 

Offline Spicious

  • Master Chief John-158
  • 210
Re: OpenCollada and incorrect turret angles
Try this.

 
Re: OpenCollada and incorrect turret angles
Looks good!  :yes:

What did you have to fix?
That's cool and ....disturbing at the same time o_o  - Vasudan Admiral

"Don't play games with me. You just killed someone I like, that is not a safe place to stand. I'm the Doctor. And you're in the biggest library in the universe. Look me up."

"Quick everyone out of the universe now!"

 

Offline Spicious

  • Master Chief John-158
  • 210
Re: OpenCollada and incorrect turret angles
Extra minus sign.