View previous topic :: View next topic |
Author |
Message |
huckleberrypie
Member


Joined: 08 Aug 2014 Posts: 213
444 Bank Notes
Items
|
|
Back to top |
|
 |
Duelist
Member


Joined: 06 Nov 2016 Posts: 150 Location: Poland 306 Bank Notes
Items
|
|
There's something about the mesh UVW itself that scripts don't "like". It has nothing do to with skinning.
It's the same issue as described here http://mafiascene.com/forum/viewtopic.php?t=9393
I'll try to look at it. Meanwhile try to import my Trevor or anyother original mafia character, delete skin and apply it with removed values or however are you testing it.
EDIT:
Also in tutorial after adding skin and inserting bones for the first time, first click on X under N, then under M, then under R and now type 0 in the first column, under R again and click remove zero weights.
Last edited by Duelist on Sun Jul 19, 2020 11:51 am; edited 1 time in total |
|
Back to top |
|
 |
huckleberrypie
Member


Joined: 08 Aug 2014 Posts: 213
444 Bank Notes
Items
|
|
Duelist wrote: | There's something about the mesh UVW itself that scripts don't "like". It has nothing do to with skinning.
It's the same issue as described here http://mafiascene.com/forum/viewtopic.php?t=9393
I'll try to look at it. Meanwhile try to import my Trevor or anyother original mafia character, delete skin and apply it with removed values or however are you testing it. |
Out-of-bounds stuff? Overlapping verts? |
|
Back to top |
|
 |
Duelist
Member


Joined: 06 Nov 2016 Posts: 150 Location: Poland 306 Bank Notes
Items
|
|
No, more like an unmapped face among mapped ones. If you strip this mesh from UVW it exports without problems. |
|
Back to top |
|
 |
huckleberrypie
Member


Joined: 08 Aug 2014 Posts: 213
444 Bank Notes
Items
|
|
Duelist wrote: | No, more like an unmapped face among mapped ones. If you strip this mesh from UVW it exports without problems. |
Strange. Wonder what part of the mesh is causing it as I've exported this to other formats with no apparent issues. |
|
Back to top |
|
 |
Duelist
Member


Joined: 06 Nov 2016 Posts: 150 Location: Poland 306 Bank Notes
Items
|
|
Ok, I know what's up. It's not unmapped faces either. These are simply isolated vertices without faces at all. Just click "Remove Isolated Vertices" under Edit Geometry tab for Vertex editing mode. Do this before clicking "Prepare mesh" button or click it again. |
|
Back to top |
|
 |
huckleberrypie
Member


Joined: 08 Aug 2014 Posts: 213
444 Bank Notes
Items
|
|
Duelist wrote: | Ok, I know what's up. It's not unmapped faces either. These are simply isolated vertices without faces at all. Just click "Remove Isolated Vertices" under Edit Geometry tab for Vertex editing mode. Do this before clicking "Prepare mesh" button or click it again. |
Good call on that one fam, thanks! |
|
Back to top |
|
 |
huckleberrypie
Member


Joined: 08 Aug 2014 Posts: 213
444 Bank Notes
Items
|
|
Looks like we have another problem:
The bone assignments are fine prior to export, but they'd end up like a John Carpenter-esque mess after exporting:
Here's what I did when I reproduced the issue with the Trevor mod. I simply imported the 4DS file of his and exported it without touching anything, and the assignments are messed up royally:
Pudingus also got the same glitch when he tried out the exporter on a vanilla Tommy mesh, also sans modifications:
 |
|
Back to top |
|
 |
Duelist
Member


Joined: 06 Nov 2016 Posts: 150 Location: Poland 306 Bank Notes
Items
|
|
Even if you just import it and don't change anything you have to press Prepare mesh button before exporting it back. Try to do this on Trevor or Tommy and let me know if it is still messed up.
Like I mentioned earlier, crucial funtcion changed throughout Max versions so it might be due to this. Which version is Pudingus using? I couldn't test it myself so I was relying on change logs. But now that I'm looking at it I remember different annotations... |
|
Back to top |
|
 |
huckleberrypie
Member


Joined: 08 Aug 2014 Posts: 213
444 Bank Notes
Items
|
|
Duelist wrote: | Even if you just import it and don't change anything you have to press Prepare mesh button before exporting it back. Try to do this on Trevor or Tommy and let me know if it is still messed up.
Like I mentioned earlier, crucial funtcion changed throughout Max versions so it might be due to this. Which version is Pudingus using? I couldn't test it myself so I was relying on change logs. But now that I'm looking at it I remember different annotations... |
That's what we already did as a matter of fact. I am not sure as to what version is Pudingus using but in my case it's 2020. |
|
Back to top |
|
 |
pudingus
New Member


Joined: 20 May 2019 Posts: 16 Location: Czech Republic 35 Bank Notes
Items
|
|
Back to top |
|
 |
Duelist
Member


Joined: 06 Nov 2016 Posts: 150 Location: Poland 306 Bank Notes
Items
|
|
Mhm, can you import Trevor, click prepare mesh button, select model, select skin and in maxscripts listener pink input window part paste this (print (skinOps.GetBoneName $.skin (skinOps.GetVertexWeightBoneID $.skin 10500 1) 1)) press enter and let me know what it outputs? |
|
Back to top |
|
 |
pudingus
New Member


Joined: 20 May 2019 Posts: 16 Location: Czech Republic 35 Bank Notes
Items
|
|
Duelist wrote: | Mhm, can you import Trevor, click prepare mesh button, select model, select skin and in maxscripts listener pink input window part paste this (print (skinOps.GetBoneName $.skin (skinOps.GetVertexWeightBoneID $.skin 10500 1) 1)) press enter and let me know what it outputs? |
|
|
Back to top |
|
 |
Duelist
Member


Joined: 06 Nov 2016 Posts: 150 Location: Poland 306 Bank Notes
Items
|
|
Back to top |
|
 |
huckleberrypie
Member


Joined: 08 Aug 2014 Posts: 213
444 Bank Notes
Items
|
|
There, it works now:
I still need to fix the rigs but I guess that'll do for now. |
|
Back to top |
|
 |
|
|