Jump to content

Viewmodels & Ghoul2


Recommended Posts

Posted

@@eezstreet

 

I have a port of your code (you'll be credited in the DF2 readme ;) ) from JK2HD to DF2 almost done. It's using worldModel & skinfile, but from the weapons.dat and no json. The rotation of the model and the muzzle flash need fixing, but I'm not sure where to look and I'm pretty sure I copy-pasted everything over:

 

dq4oht.jpg

Posted

Thanks, I forgot to add nohandmodel for the weapons.dat which fixed the gun rotation, now the flash just needs its rotation fixed.

 

 

EDIT:

 

All fixed now, just had to rotate the viewmodel flash tag in Max.

  • 3 weeks later...
Posted

@@eezstreet, I figured I should just post this here since altering the code to reorient the tags for viewmodels probably would bork other GLM models since GLM and MD3 handle tags differently. This picture should explain.

 

JnJQGxJ.png

 

So if you were say to just convert all existing MD3 view models to GLM you'd have to alter all the tags simply just because both formats do not handle tags the same way even though they both use tags which is strange IMO. Also in case most people who don't model didn't know the local transforms of a tag have absolutely no value once in GLM or MD3 format, it uses the edges and their length to determine it's new local transforms once converted.

 

I know this is a really late post but figured it could help people see what edge of a right triangle determines the axis in the 2 formats, from there game code dictates what axis does what. Like for instance saber blades always go along the tags -X for GLM.

Posted

Looking at the axis in modview with show actual tag surfaces checked will show you, I don't think all effects are the same. Saber blades do go along -X.

 

I know it seems odd but that's just the way it is.

Posted

Shouldn't the long edge of the triangle point in direction of effect?

Long vs Short makes no difference whatsoever, it's purely a matter of order. Which makes tags a pain to create since modeller's usually don't need to care about vertex order, so few tools support it well. Even Raven screwed it up occasionally, just look at r2's torso_head_cap.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...