Help making muzzlePoint work :)
by Jeff Murray · in Artist Corner · 08/01/2006 (9:37 am) · 6 replies
Hello again!
We're having some trouble getting the muzzlePoint (or eyeOffset) to work with a gun model... I wonder if anyone here can help with it?
It was made in Maya ... I've uploaded a zip file with both the Maya source file and the actual DIF to see if you guys have any clues :)
http://www.psychicparrot.com/gun1.zip
I'm sure the nodes are in the right places and are oriented correctly, but I just feel like I'm missing something because it just isn't firing out the end of the gun! Also, the minute I try to use any kind of eyeOffset it makes the gun appear far away from the player...
Any help would be GREATLY appreciated on this, as my poor 3d guy is losing his marbles!
Thanks in advance!
We're having some trouble getting the muzzlePoint (or eyeOffset) to work with a gun model... I wonder if anyone here can help with it?
It was made in Maya ... I've uploaded a zip file with both the Maya source file and the actual DIF to see if you guys have any clues :)
http://www.psychicparrot.com/gun1.zip
I'm sure the nodes are in the right places and are oriented correctly, but I just feel like I'm missing something because it just isn't firing out the end of the gun! Also, the minute I try to use any kind of eyeOffset it makes the gun appear far away from the player...
Any help would be GREATLY appreciated on this, as my poor 3d guy is losing his marbles!
Thanks in advance!
#2
What about the character, is there anything in the building of the character model that could cause the gun to work incorrectly?
I'm using the exact same code as the M16 weapon ... I've tried copying in the crossbow code, but nothing I do in code seems to work - as I said, as soon as we set the eyeoffset the weapon orientation goes wierd.
Thanks for your help again btw, David :)
08/01/2006 (12:02 pm)
My modeller is telling me that he has followed the tutorial ... but it's still not working. Did you see anything odd in the maya file?What about the character, is there anything in the building of the character model that could cause the gun to work incorrectly?
I'm using the exact same code as the M16 weapon ... I've tried copying in the crossbow code, but nothing I do in code seems to work - as I said, as soon as we set the eyeoffset the weapon orientation goes wierd.
Thanks for your help again btw, David :)
#3
z_up your model is exported using the bounds settings and thats always z_up the gun will be placed at your player models mount0 node and that node needs to face "Z_up" "Y_Forword" as well.
You move the guns in game prospective around in script.
08/01/2006 (1:02 pm)
Make sure the nodes orientation is right "Z_up" "Y_Forward" and you don't need to have your maya scenez_up your model is exported using the bounds settings and thats always z_up the gun will be placed at your player models mount0 node and that node needs to face "Z_up" "Y_Forword" as well.
You move the guns in game prospective around in script.
#4
The crazy thing is ... after days of searching around the code, I noticed that my modeller had spelt 'muzzle' wrong. Doh.
Painful stuff!
:)
08/09/2006 (4:19 pm)
Thanks again, Dave, for the help. That was very useful and helped get things going.The crazy thing is ... after days of searching around the code, I noticed that my modeller had spelt 'muzzle' wrong. Doh.
Painful stuff!
:)
#5
08/09/2006 (4:27 pm)
Lol happens
#6
Next time we're doing the whole 'problem is in code vs modelling' argument, all I'll have to say is 'muzzels' ;)
08/09/2006 (5:06 pm)
He cringes like crazy when I mention it ...Next time we're doing the whole 'problem is in code vs modelling' argument, all I'll have to say is 'muzzels' ;)
Torque Owner Dave MacIsaac
Guns are not that hard to setup also you should addthis
Your gun needs three nodes "mountpoint" "ejectpoint"if you have it scripted for that "muzzlepoint"
for the projectile make sure the models triangulated and freeze transforms delete history
but don't do that to your nodes!!