StargateInvasion / SGI

Stargate Invasion is a mod for Sins of a Solar Empire.
85 stars 43 forks source link

Vector3::IsNormalized #90

Open eljeffeg opened 5 years ago

eljeffeg commented 5 years ago

We're getting this error on some models. In particular, I noticed it on the two Human Titans. Not sure if it's something that we need to fix, but I thought I would document it for review in case the fix was easy.

Assert @ C:\Projects\P4\SinsDiplomacy\Release\CodeSource\GS/Galaxy/GalaxyOrientation.cpp(23) Vector3::IsNormalized(m_orientation.GetCross())

Explosions on a bad model.

The error is caused by lines in the model that were not polys, the explosion attaches to one of the lines it spits the error. And when a lot of models have it, trying to run test games is a real nightmare.

badmodel

Have to raycast select all the polys and hide them, get a section done like above and delete the lines, unhide and weld everything where the lines were to get proper tangent lighting.