View Issue Details

IDProjectCategoryView StatusLast Update
0002807FSSCPlabpublic2013-11-08 20:36
ReporterFUBAR-BDHR Assigned ToWanderer  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.6.19 
Summary0002807: Null vec3d caused by viewing laser weapons in lab
DescriptionAccidentally hit laser instead of missile when trying to view a weapon model in the lab. Clicked on the default player weapon just to see what would display and was presented with a nice null vec3d. Trying to continue past it results in what appears to be an endless stream of null vec3ds.
Steps To ReproduceFire up debug, go to lab, choose the first laser weapon on the list in retail.
TagsNo tags attached.

Activities

MjnMixael

2013-03-14 04:04

manager   ~0014764

This doesn't happen if you select a ship first. Weird.

Wanderer

2013-11-04 11:58

developer   ~0015381

It may happen even if you select a ship first, catch is that you need to turn the ship a bit (or allow it rotate) in order to avoid the code from crashing.

Problem is how the the matrix is formed in g3_draw_laser_htl - currently it allows for two parallel vectors to be used when computing vector crossproduct which fails (as it should). Technically you could randomly stumble upon the issue just by rotating the laser around in the lab even when it has successfully loaded - assuming you could get an accurate number out of a float that is.

Wanderer

2013-11-08 20:36

developer   ~0015401

Fix committed to trunk@10031.

Related Changesets

fs2open: trunk r10031

2013-11-08 16:02

Wanderer


Ported: N/A

Details Diff
Fix for Mantis 0002807 - not particularly elegant fix but enough to prevent the reported null vec issue Affected Issues
0002807
mod - /trunk/fs2_open/code/render/3dlaser.cpp Diff File

Issue History

Date Modified Username Field Change
2013-03-14 01:54 FUBAR-BDHR New Issue
2013-03-14 04:04 MjnMixael Note Added: 0014764
2013-11-04 11:58 Wanderer Note Added: 0015381
2013-11-04 15:09 Wanderer Assigned To => Wanderer
2013-11-04 15:09 Wanderer Status new => assigned
2013-11-08 20:36 Wanderer Changeset attached => fs2open trunk r10031
2013-11-08 20:36 Wanderer Note Added: 0015401
2013-11-08 20:36 Wanderer Status assigned => resolved
2013-11-08 20:36 Wanderer Resolution open => fixed