Any good tutorials on asset creation for t3D?

There are no stupid questions, just stupid answers.
10 posts Page 1 of 1
romangiggles
by romangiggles » Mon Mar 04, 2019 7:34 am
I'm trying to set up a first person weapon for a gun model I've made, but I can't seem to find any tutorials on how to get it set up correctly, like how to get the hud hands in the right place, how to get the gun in the right position relative to the camera, etc. Any links would be appreciated, and maybe we could set up a list of resources for asset creation.
Last edited by romangiggles on Mon Mar 04, 2019 8:30 pm, edited 1 time in total.
Duion
Posts: 1370
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Mon Mar 04, 2019 10:08 am
You can't find them, because they don't exist.

But I think I know how it works, even though I did not do first person hands and chose to use the third person model instead, because I was lazy.

So what you need to do is ignore the first person hands and gun for a while and finish your third person or regular player character, animate him and implement him.
What I did was put a gun into his hand and so I could give him animations for the gun, like reloading it. So I was left with a third person model and a gun, so I removed the gun and exported him. In-game I then would mount the gun onto the hand and everything lined up nicely.

If you finished those steps of implementing the player, then you can consider using first person hands, since they give you more control, look nicer and prevent clipping. I'm not a fan of those, since they mean extra work, which I will explain now.

To now make first person hands, you take your player character, you already have, that has it's origin meaning the position below the feet at coordinates 0 0 0 aka the objects origin and move the eye point of the player character to coordinates 0 0 0.
The reason for that is, that the gun gets mounted on the camera, aka you, aka coordinates 0 0 0. Now you should have a full model of the player character with its head at the origin point.
That's your first person hands now, of course you can delete the other parts of the model now except the hands and animate them more detailed or add more model details, though you should derive those extra detail from the first model you made, since the arms have to match up the player model, so you need new arms for every model.

Now you may wonder how you do different weapons, well I think that is done by adding the hands into the first person view of the weapon, so the weapon and hands are glued together, this has the benefit of the animations matching up perfectly. If you have similar guns, you can re-use the hands models and just switch the weapon.

Well those are the steps I think. It is a bit complex, that is why I dislike that system, so if you can get away without first person arms I would go that route, if you want high quality, make them. Later you also get more work, since the third person player model needs to roughly match the animations of the first person, so when you open the default Torque3D soldier you can see new sets of animations for each weapon, since the player walks, shoots etc differently holding each weapon.

This may sound complicated, but if you go through it step by step, you should get it done, if you have more questions just ask me.
Azaezel
Posts: 461
Joined: Tue Feb 03, 2015 9:50 pm
 
by Azaezel » Mon Mar 04, 2019 9:26 pm
In the interest of getting a few shots together to prime the pump a bit for a wiki entry should folks be so inclined...
https://github.com/GarageGames/Torque3D ... er.cs#L145 shapeFileFP refers to the first person model file, so you can divorce, as you say, the hud hands position from the third person one's with impunity.

Image

For third person it'll use the mountpoint0 on the player model in conjunction with the origin point of the weapon for carrying position,
Image
Image
and the muzzlepoint for particle/projectile emission
Image

https://github.com/GarageGames/Torque3D ... er.cs#L162 (correctMuzzleVector) will adjust the vector of the projectile so that it instead uses the player's eye orientation in first person.

there's also a https://github.com/GarageGames/Torque3D ... e.cpp#L700 (correctMuzzleVectorTP) for doing the same for third person view. using the cam node:
Image
Duion
Posts: 1370
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Mon Mar 04, 2019 10:07 pm
Don't reply he is a spammer.
LukasPJ
Site Admin
Posts: 414
Joined: Tue Feb 03, 2015 7:25 pm
 
by LukasPJ » Tue Mar 05, 2019 5:59 pm
I'm letting the thread stay up because it might benefit others, even though the original poster was a bot.
Duion
Posts: 1370
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Tue Mar 05, 2019 6:08 pm
You should delete the spam links as well, you have to consider that tactic of the spammers is to copy legit posts, leave them up and later edit them with spam links, so you actually need to check all posts the spammer made, if they have been edited, if you leave them up.
LukasPJ
Site Admin
Posts: 414
Joined: Tue Feb 03, 2015 7:25 pm
 
by LukasPJ » Tue Mar 05, 2019 9:15 pm
Yeah, deleted all other posts, only left this one
Duion
Posts: 1370
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Wed Mar 06, 2019 9:44 am
Yeah, deleted all other posts, only left this one
Yes and he added his spam links into this one, I will not quote them, since I would add them again then.
LukasPJ
Site Admin
Posts: 414
Joined: Tue Feb 03, 2015 7:25 pm
 
by LukasPJ » Wed Mar 06, 2019 1:49 pm
Oh wow, I had dark theme on, and he had changed the colour of the link so I couldn't see it... Wow..
Removed the link.
Duion
Posts: 1370
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Wed Mar 06, 2019 9:41 pm
He is more intelligent than you, kind of a spammer end boss.
10 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests