Mounting images onto images
by Jeff Trier · in Artist Corner · 06/17/2003 (5:39 am) · 2 replies
Not sure if this should be in the Mod or Model forum...
I have created a laboratory where the player can invent weapons and other objects. It all works fine, but when I enter the game, I can't seem to get the players weapon to represent its appearance correctly.
Basically how I am attempting this is by having a set of base models. Pistol, Rifle, SMG, MG and a Launcher. Each one of these models has the same set of nodes: muzzlePoint, mountPoint, ejectPoint, mount0, mount1, mount2.
Then, I have different sets of the mountable objects: 4 barrel pieces, 3 Mechanism pieces, 4 scope pieces. All of these pieces have a mountPoint node.
Now with all of this, I have it so when the player is in game, they can spawn a soldier, then it will spawn with the correct weaponImage base model. It just wont spawn with the base models attachments.
I have scoured the internet for info on how to attach a weapon image to another weapon image in game, but I can't get any info on this. I have found plenty of info on how to attach a weapon image to a car or player, and I have tried to use the same method to attach images to images, but I had no luck.
So my question is, is this possible? I am assuming it is, I just can't figure it out. Do I have the nodes set right? With the current set up, it works perfectly with the GuiObjectView resource.
Any insight would be just dandy. :)
Thanks,
-Jeff
I have created a laboratory where the player can invent weapons and other objects. It all works fine, but when I enter the game, I can't seem to get the players weapon to represent its appearance correctly.
Basically how I am attempting this is by having a set of base models. Pistol, Rifle, SMG, MG and a Launcher. Each one of these models has the same set of nodes: muzzlePoint, mountPoint, ejectPoint, mount0, mount1, mount2.
Then, I have different sets of the mountable objects: 4 barrel pieces, 3 Mechanism pieces, 4 scope pieces. All of these pieces have a mountPoint node.
Now with all of this, I have it so when the player is in game, they can spawn a soldier, then it will spawn with the correct weaponImage base model. It just wont spawn with the base models attachments.
I have scoured the internet for info on how to attach a weapon image to another weapon image in game, but I can't get any info on this. I have found plenty of info on how to attach a weapon image to a car or player, and I have tried to use the same method to attach images to images, but I had no luck.
So my question is, is this possible? I am assuming it is, I just can't figure it out. Do I have the nodes set right? With the current set up, it works perfectly with the GuiObjectView resource.
Any insight would be just dandy. :)
Thanks,
-Jeff
About the author
Originally a Classical/Metal musician, I've always been attracted to anything involving computers, including: Networking, PC Building and Repair, software design and coding. I've been involved with game design and development for over 10 years.
#2
I was afraid of this when I did a dump on the image class and didn't see a mountImage function... drat!
Yeah, I have to avoid as much overhead as posible, the game is going to be pushing it already. I don't think I should mount a shapebase to the player.
Hmm... I suppose I could model all of the variations, but I think with what I have now that would be about 212 models to create just for the weapons.
Maybe I can have 4 nodes in one hand, each to support a segment of the weapon. That would still give me 4 nodes for attachments elsewhere.
I am going to have to think about this for a while.
Thanks Anthony,
-Jeff
06/17/2003 (6:51 am)
Doh!I was afraid of this when I did a dump on the image class and didn't see a mountImage function... drat!
Yeah, I have to avoid as much overhead as posible, the game is going to be pushing it already. I don't think I should mount a shapebase to the player.
Hmm... I suppose I could model all of the variations, but I think with what I have now that would be about 212 models to create just for the weapons.
Maybe I can have 4 nodes in one hand, each to support a segment of the weapon. That would still give me 4 nodes for attachments elsewhere.
I am going to have to think about this for a while.
Thanks Anthony,
-Jeff
Associate Anthony Rosenbaum