View Issue Details

IDProjectCategoryView StatusLast Update
0002737FSSCPmath-relatedpublic2012-12-15 19:20
ReporterFUBAR-BDHR Assigned ToValathil  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.6.15 
Summary0002737: Null vec3d launching fighters
DescriptionI've run into another Null vec3d error. Any fighters launched from the DI Sekhmet in TBP (attaching retail compatible version) will trigger this. Ignoring it does result in proper fighter launch but I can't figure out why it is happening with this ship.

I have stepped through in the debugger. Tracing back and adding a Break point vm_orthogonalize_matrix() in vecmat.cpp shows the issue occurs in the vm_vec_normalize() at line 1255. Going back a bit farther and stepping into the vm_vec_crossprod() 2 lines above showed that it changed the rvec to 0,0,0.
Steps To ReproduceDrop pof, tbm, and mission into the appropriate directories and run the mission. 10 seconds in the wing launches triggering the issue.
Additional Informationr9384 but apparently(haven't tested myself) happens in 3.6.14 as well.
TagsNo tags attached.

Activities

FUBAR-BDHR

2012-11-30 06:12

developer  

2737.rar (802,452 bytes)

FUBAR-BDHR

2012-11-30 07:18

developer   ~0014235

After trying a few things with the model it appears that the cause is point 5 of the bay paths being directly below point 6. Moving them 5 forward works around the issue. The code should still be able to handle this case.

FUBAR-BDHR

2012-12-05 06:01

developer   ~0014301

It would appear my theory about having a ship pointing straight down proved correct. Attaching retail mission with the issue. Any bay path pointing straight down when a fighter launches causes the issue. It doesn't matter the orientation of the path on the model but the orientation in the game when launching.

FUBAR-BDHR

2012-12-05 06:02

developer  

2737.fs2 (4,782 bytes)

Valathil

2012-12-15 19:20

developer   ~0014471

Fix committed to trunk@9438.

Related Changesets

fs2open: trunk r9438

2012-12-15 14:51

Valathil


Ported: N/A

Details Diff
Fix for Mantis 2737: Recreate the entire orientation matrix not just the forward vector when ships spawn from docking bays. Affected Issues
0002737
mod - /trunk/fs2_open/code/mission/missionparse.cpp Diff File

Issue History

Date Modified Username Field Change
2012-11-30 06:08 FUBAR-BDHR New Issue
2012-11-30 06:12 FUBAR-BDHR File Added: 2737.rar
2012-11-30 07:18 FUBAR-BDHR Note Added: 0014235
2012-12-05 06:01 FUBAR-BDHR Note Added: 0014301
2012-12-05 06:02 FUBAR-BDHR File Added: 2737.fs2
2012-12-15 19:17 Valathil Assigned To => Valathil
2012-12-15 19:17 Valathil Status new => assigned
2012-12-15 19:20 Valathil Changeset attached => fs2open trunk r9438
2012-12-15 19:20 Valathil Note Added: 0014471
2012-12-15 19:20 Valathil Status assigned => resolved
2012-12-15 19:20 Valathil Resolution open => fixed