Author Topic: multipart turrets on angled surfaces  (Read 17310 times)

0 Members and 1 Guest are viewing this topic.

Offline chief1983

  • Still lacks a custom title
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: multipart turrets on angled surfaces
Usually, you use the detail0 turret subobject not the detail1 subobject.  Not sure if that alone could break it.  They're also set to no movement.  Is the ball supposed to move and shoot or remain stationary?  I'm also not sure what the purpose of the turretholder object is.  It's not visible as far as I can tell, nor part of the turret.  Why not just make it part of the main mesh?  Seems a waste of a subobject to me.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 
Re: multipart turrets on angled surfaces
Wow, that's just a few dumb mistakes... :nervous: It moves and fires alright now, thanks.
The ball is supposed to move and shoot, yeah. As for the turretholder thing, I split that off for convenient unwrapping. Made it an untargetable subsystem now.

 

Offline Talon 1024

  • 29
  • How do you turn this on?
    • Mods, Games, and Stuff
Re: multipart turrets on angled surfaces
If you are using Blender and you want to use Scooby Doo's utility for calculating the uvec and fvec:
- Copy the angle of the turret (or an empty with it's "z" as the uvec and it's "y" as the fvec) into the converter
- Click "Adjust for 3dmax"
- Press Calculate
« Last Edit: May 25, 2010, 08:52:57 pm by Talon 1024 »
To understand religion, you need to understand morality first. | WCSaga website | WCSaga Forum | 158th website | 158th forum | Project Leader: WC: Hostile Frontier | WCHF Thread at CIC | Wing Blender | Twist of Fate | Multipart turrets on angled surfaces, tutorial included. | My Google Drive stuff | To convert speeds from WC to WCS, multiply both the cruise speed and the Afterburner speed by 0.15625 (5/32)

FS2 Mods I'm waiting on: Inferno 10th Anniversary
Current Project: Contestant Android app, Learn4Life iOS app, Blender Commander (importer).
The FreeSpace Font Foundry is back in action!

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: multipart turrets on angled surfaces
Important notes...

  • When viewing model in PCS2 and setting uvec and fvec values using PCS2 vectors it is important to notice that first vector element ('X') needs to be reversed.
  • Turret uvec and turret normal need to match (while remembering the above rule) or otherwise turret rotation matrix will not work as it should.
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline Talon 1024

  • 29
  • How do you turn this on?
    • Mods, Games, and Stuff
Re: multipart turrets on angled surfaces
You may also need to reverse the "z" element on the uvec and the "y" element on the fvec in some cases, particularly if you've got a multipart rotated on the x-axis only.

The "x" element almost always needs to be reversed.
« Last Edit: April 14, 2011, 11:05:56 am by Talon 1024 »
To understand religion, you need to understand morality first. | WCSaga website | WCSaga Forum | 158th website | 158th forum | Project Leader: WC: Hostile Frontier | WCHF Thread at CIC | Wing Blender | Twist of Fate | Multipart turrets on angled surfaces, tutorial included. | My Google Drive stuff | To convert speeds from WC to WCS, multiply both the cruise speed and the Afterburner speed by 0.15625 (5/32)

FS2 Mods I'm waiting on: Inferno 10th Anniversary
Current Project: Contestant Android app, Learn4Life iOS app, Blender Commander (importer).
The FreeSpace Font Foundry is back in action!

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: multipart turrets on angled surfaces
As this thread was revived i could add a note that it is no longer necessary to match turret uvec and turret normal. Assuming you have a valic turret fvec and uvec the uvec will override (and overwrite) the turret normal.
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline Kusanagi

  • A man, a van, a plan, Vanama!
  • 27
  • Enemy vessel captured
Re: multipart turrets on angled surfaces
As this thread was revived i could add a note that it is no longer necessary to match turret uvec and turret normal. Assuming you have a valic turret fvec and uvec the uvec will override (and overwrite) the turret normal.

This also means that the firing points will look very messed up in PCS2, but as long as you rigged them just fine in your 3d program they'll work in game.
Cum historia
mutat valde Razgriz
revelat ipsum
primum daemon scelestus est.