Author Topic: Assert failure and cob conversion  (Read 1257 times)

0 Members and 1 Guest are viewing this topic.

Offline Darius

  • 211
Assert failure and cob conversion
Just managed to get a ship ingame, converted from Collada DAE in 3ds Max 9. Runs fine so far, except in battle when I get a random Assert failure message with the description:
Quote
Assert: vm_vec_mag(plane_normal) > 0.999f && vm_vec_mag(plane_normal) < 1.001f

Now searching for similar errors in HLP comes up with VA's Model Assert Failure thread where the Iceni has this problem. Apparently converting it to COB fixes the problem.

I tried to do the same to this ship, but this resulted in turret boxes being out of scale with the submodel. What's the underlying mechanism behind this? I tried to search for a similar topic, but couldn't come up with anything.

I'm quite happy to get it ingame via COB and get it over and done with, but the turret thing needs fixing. Any ideas?

Using debug nightly build 5506. Other ships in the battle are Raynor, Horus, Perseus and Uhlan.

[attachment deleted by Tolwyn]

 

Offline blowfish

  • 211
  • Join the cult of KILL MY ROUTER!!!!!!!!!!1
Re: Assert failure and cob conversion
The assert problem has to do with a geometry of the model being slightly messed up.  If 3DS MAX has the ability to recalculate face normals, you might want to try that.  In terms of the problem with your COB conversion, that is usually caused by the turret's center point being moved (not really sure why this is happening).

 
Re: Assert failure and cob conversion
First make sure the turret meshes pivot point is correct.  Then I think you'll have to do an reset x-form on the turret.  I've had similar problems with some of my subsystems. 
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 Darius

  • 211
Re: Assert failure and cob conversion
Cool, thanks. Turns out I was importing some dodgy turrets, so did some new ones from scratch which were a lot better. :)

Nope: Same vm_vec_mag(plane_normal) > 0.999f assert as before, even after converting to COB. Back to the drawing board...
« Last Edit: August 14, 2009, 04:46:07 am by Darius »