DragonFF icon indicating copy to clipboard operation
DragonFF copied to clipboard

Distorted player model

Open R4HUL-R opened this issue 1 year ago • 9 comments

Hello, I'm new to Vice City modding, and tried to mod the player model. I've rigged my model exactly like Tommy, and the only difference is my .txd file has more than one textures packed in it. Screenshot (5279) The first image is my model in Blender Screenshot (5284) The second image is the exported result. I'm not sure where I went wrong, I'm currently using the latest DragonFF plugin on Blender 3.0.1.

R4HUL-R avatar Mar 04 '23 07:03 R4HUL-R

It's fine, it's just break-dancing. Jokes aside, maybe I'm starting with the obvious, but have you checked if the model has any transformations like scale or rotation in object mode left unapplied? Is the model deforming properly when testing it within the viewport? I haven't tested exporting any peds with this addon yet, so I can't tell for sure if there are bugs in that process.

ThePortuguesePlayer avatar Mar 04 '23 22:03 ThePortuguesePlayer

Hello and thank you for the lightning-fast reply! Here's the update: I've done the installation on my separate mod copy properly this time (it was conflicting with my vanilla copy). I had left an armature modifier unapplied thinking it might be necessary, but applied it now, and don't know if the problem is better or worse. It hangs up on about 98% loading and gives me this: Screenshot (5337)

R4HUL-R avatar Mar 08 '23 10:03 R4HUL-R

You must NOT apply the armature modifier. Applying it removes the armature.

Regarding your issue, try to import the model again after exporting it. Try applying transformation using the keybind ctrl+a, (refer https://docs.blender.org/manual/en/latest/scene_layout/object/editing/apply.html)

Parik27 avatar Mar 08 '23 11:03 Parik27

Screenshot (5340) Screenshot (5341)

Here's what both the .dff imports look like. I re-exported my model without applying the last armature modifier. Despite all similarities, ~~mine doesn't show any bones, even though clearly listed in its player.dff collection.~~

Also I tried applying the transformations but there doesn't seem to be anything to apply.

Edit: The bones are there but way away from the position they were exported in Screenshot (5342)

Edit 2: I hadn't set the origin of my model to cursor where it should be, so I did that, but the re-imported model bones have only moved but not in proper scale and rotation.

R4HUL-R avatar Mar 08 '23 12:03 R4HUL-R

I'm back to the distorted model situation and the error window behind the crash that happens when I try to move around in-game looks similar: Screenshot (5339)

R4HUL-R avatar Mar 08 '23 13:03 R4HUL-R

Update: Turns out I transformed the armature according to my model, thinking it will be fine, but I've realized that the model format/plugin forces you to transform the model according to the exact armature that Tommy uses. Is there any way to disable this? Whenever I export and import back the armature dimensions change back to those of Tommy's.

R4HUL-R avatar Mar 15 '23 03:03 R4HUL-R

Not sure what you mean by that. Are you translating/scaling/rotating the armature? The add-on doesn't enforce any specific transformation, it won't set it back to Tommy's dimensions.

You might not be applying the transformations for scale/rotation, try doing that (Ctrl+A > All Transforms)

Parik27 avatar Mar 16 '23 08:03 Parik27

Screenshot (5418) Screenshot (5417)

Thank you very much for the advice, I finally understood what you meant by "apply all transforms" on the object, it retained its transformations on export. This is the update.

Despite little to no differences in left and right skinning (I did them separately because model was not symmetric) the model seems to be somewhat alright in left half but has both right limbs up on its head. I could strafe around, get into cars, and use a few weapons but if I tried moving forward the game would crash. Apart from the textures and world rendering problems, which are due to the fact that I'm using high-poly models and wrong format textures, there still seems to be this distortion problem.

R4HUL-R avatar Mar 22 '23 06:03 R4HUL-R

Can you share your blend file? It will be easier to debug that way.

Parik27 avatar Mar 23 '23 06:03 Parik27