love0rdie Posted February 28, 2022 Posted February 28, 2022 1.How to set connectors for gun EX: tank guns? 2.How do make UV shift textures for tank treads movement? kindly help.Thanks
razo+r Posted February 28, 2022 Posted February 28, 2022 Place a dummy at the end of the barrel, name it (and add the same in user defined properties. I don't know if that is necessary, I just did it) and then you also have to add the name into the lua (check existing models and mods how they've done it)
love0rdie Posted February 28, 2022 Author Posted February 28, 2022 do you know any existing mods for example videos or something if u know pls share here
love0rdie Posted March 2, 2022 Author Posted March 2, 2022 Why my connectors is working like this do u have any idea? i named it exactly whats in .LUA
prccowboy Posted March 2, 2022 Posted March 2, 2022 (edited) 4 hours ago, love0rdie said: Why my connectors is working like this do u have any idea? i named it exactly whats in .LUA 1. try rotating the connectors (they have more than x,y,z coord info - there is also rotation and scale info in that connector). 2. have you rigged it for animation yet? if so, there could also be problems with your animation 3. the lua code for connectors also allows you to move and rotate objects in relation to the connector. is your lua correct? Edited March 2, 2022 by prccowboy
love0rdie Posted March 2, 2022 Author Posted March 2, 2022 Please can u explain with some example .... i add the connectors for Guns to release point of shells from cannon....(connectors means POINT in 3ds max right? i am not added dummies i was added it but after that removed it ) i rigged my tank by arg based rotation etc ... i m not rotating connectors i just add them and name them exact as .lua and link them with the concern part like Turret chase Without this point connectors its rotating good so there is problem between connectors and .lua i cant figured it out which is one Help me .Thanks
prccowboy Posted March 2, 2022 Posted March 2, 2022 (edited) 1 hour ago, love0rdie said: Please can u explain with some example .... i m not rotating connectors i just add them and name them exact as .lua and link them with the concern part like Turret chase 1. look at your model in modelviewer, the connectors have direction (rotation). In the connector box you will see a purple line extending from center and facing a direction (see example photo). With your model, which way are they pointed when the animation is at rest (args = 0)? Also, see @razo+r comment about using dummies (I don't know 3DS, in Blender you use empties and export as connector) Edited March 2, 2022 by prccowboy
love0rdie Posted March 2, 2022 Author Posted March 2, 2022 Here the image is my connectors via model viewer have to type something in user defined in object properties for connectors? like -NO_CONNECTOR = 0 and i use this thread as reference - they using point instead of dummies
prccowboy Posted March 2, 2022 Posted March 2, 2022 the main gun connectors look ok to me but the others are rotated incorrectly. next thing to check is your animation and the lua code: Your animation for horizontal traverse should be -1 (facing fully to rear) to 1 (rotating counter clockwise until it faces to rear again) and vertical elevation should be -1 (fully facing down) to 1 (facing fully up). lua code angles: reference_angle_Y, reference_angle_Z (resting position), and GT.WS[ws].angles which control rotation range I suggest looking at a working example and see what you have done differently.
love0rdie Posted March 9, 2022 Author Posted March 9, 2022 Ok how to do UV texture shift for track animation ???
BRONYA Posted March 8 Posted March 8 Have you solved this problem? I'm also experiencing it; the muzzle keeps tilting upwards and can't function properly.
Recommended Posts