Game Development Community

Mounting image on a ship

by Papoute · in Torque Game Engine · 12/07/2006 (7:08 am) · 9 replies

I'm actually trying to mount 8 canon (shapebaseImageData) on a ship.
I'm using 3dsmax8 for the modeling.

1- I would like to know how many shapebaseimage we can mount on the same shape?

2- How and on what we link the mount0,mount1.... dummy in 3dsmax?

i would be grateful if somenone could respond me...that project is for school.
I must give my gold version of that game in 1 week so pleeeeeaaaaassee help me !

#1
12/07/2006 (7:16 am)
1 - You can have 8 mounted images in Stock TGE so thats good.
2- Link mount0-7 to anything you want the respective mount to follow. Presumably if its a simple ship shape, link them directly to the shipmesh.
Good Luck on that Project.
#2
12/07/2006 (7:35 am)
Thank you thak for your interest on the subject

actually i am able to mount 4 shapebaseimagedata on one side of the ship.

on the other side i cant see the canon so im doing a :

echo("" @ (%AIBoatTest.getSlotTransform( 0 )));

echo("" @ (%AIBoatTest.getSlotTransform( 7 )));

for the slot 0 i get the good transformation : -30.2495 543.534 195.537 0 0 -0.999934 1.57086

but for the slot 7 i get 0 0 0 1 0 0 0

its like if the engine could not detect the mount4,mount5,mount6,mount7 but they are linked the same way as the first 4 nodes !!
#3
12/07/2006 (8:52 am)
Hrm... I wonder. Have you tried this in the Showtool? (Maybe the latter 4 nodes where not exported at all?) In the showtool you can mount any object to any mount node as well as see what nodes are really present in your model. At least in Showtool Pro but I reckon if you have 1.5 then ya got TSP with it as a bundle.
#4
12/07/2006 (9:15 am)
Yeah i can see all the nodes in showtool and i can mount the canon on them but not in the engine ?
#5
12/08/2006 (4:18 pm)
Check your mount slot in the weapon's datablock. You may need to create specific datablocks to create a unique weapon for each mount point.
#6
12/08/2006 (4:21 pm)
Thats whats i've done, i've created 8 datablock for 8 canon

datablock ShapeBaseImageData( canon0 )
{
shapeFile = bla bla bla.dts
moutPoint = 0;
}
datablock ShapeBaseImageData( canon1 )
{
shapeFile = bla bla bla.dts
moutPoint = 1;
}

and here we go to 8 mountpoint
BTW thx for the reply
#7
12/08/2006 (5:49 pm)
You might want to check your spellling.
moutPoint should be mountPoint.
#8
12/08/2006 (5:50 pm)
Lol that because i didnt paste the code

the spelling is alright thx for your concern :P
#9
12/09/2006 (10:28 am)
Well i will put only 4 canon on the boat...now tell me where should i link the muzzlepoint on those canon cuz the engine seem to not detect those muzzlepoint....my ship can shoot but not from the canon...it shoot from the front deck so its not really realistic !