Jump to content

FP images being rendered upside down?


Recommended Posts

Posted

So, i'm trying to replace the player arms and weapon model in first-person. I've made a new player_arms.dae file with the arms rigged to my skeleton, plus a player_pistol.dae containing the weapon attached to the hand bone, and no arms mesh. Finally, there's a few DAE files with the animations: idle, fire, etc. Everything works fine: the states, the animations, except for one thing: the model is rendered in a completely wrong position:


http://imgur.com/VxWfenk


That's me, in FP camera, looking down. That mesh over there is the player arms. I'm rendering in wireframe because they're below the ground. It seems to be rotated about 180 in the Z axis. Or something like that. My skeleton, the mesh and all the animations are correctly set up in the Y-Front, Z-Up orientation. And the scale is based on the original Torque player model. Any ideas of what i might be doing wrong here?

Posted

"My skeleton, the mesh and all the animations are correctly set up in the Y-Front, Z-Up orientation."


So, yes, the arms, the weapon and the skeleton are all facing the positive Y, having Z up and are located at the center. By the way, being at the center shouldn't really matter for anything, since the FP camera is translated to the eye node in the player model.


@shoiko, you are probably not setting useEyeNode in your datablocks. Try that out.


http://docs.garagegames.com/torque-3d/reference/classShapeBaseImageData.html#ac398de7e09bdd5c0713af499ae56508c

https://github.com/GarageGames/Torque3D/blob/2044b2691e1a29fa65d1bdd163f0d834995433ce/Engine/source/T3D/player.cpp#L5393

Posted

They have to be at the center, that is most important, since that is where the model gets mounted on, you can also define an extra mountpoint, but center is easier.

You also need to reset transformations and rotations, in case you have something applied.

Posted

Mount points are used for third-person world view. shapeName is mounted on mountX and shapeNameFP is placed at the position of the eye node.


Mounting a first-person image to the third-person world view mount points makes no sense.

Posted

A mount point is a mount point, an eye node is an eye node. Both are named joints, but there is a reason they have different names. Either way, his problem is not related to a center or anything, you're wrong.


Just check if useEyeNode is set and/or check the eyeOffset, if you don't have an eye node for each weapon model.

Posted

So where do you build your model? Randomly somewhere in the coordinate system? Of course not, you build it at the center, so it is properly aligned. Alternatively you can use a mountpoint, to mount the shape on.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...