We are trying to export a model from Maya2009 of a vehicle. On this vehicle we have joints for each wheel, and a turret. I can see in the exported .egg that we have the joints, but apparently there is no geometry attached to them, as no matter what we try, we can’t seem to get them to rotate.
self.mdl = Actor("assets/stryker_skel_model01") self.mdl.reparentTo(render) self.turretJoint = self.mdl.controlJoint(None, 'modelRoot', 'turret_main') taskMgr.add(self.turnTurret, "turnTurret") def turnTurret(self, task): if base.mouseWatcherNode.hasMouse(): mpos = base.mouseWatcherNode.getMouse() self.turretJoint .setP(restrain(mpos.getX()) * 50) self.turretJoint .setH(restrain(mpos.getY()) * 20)
This code is verbatim to the eve example, and I would post the model but it is very lengthy.
Is there any way we can get the eve model in its text format instead of binary? This may give us some insight on how a properly formatted egg is supposed to look.