Post by asketo on Aug 14, 2019 16:00:07 GMT -5
Hi. Sorry for my English.
With wonderful tutorial by Necrodog I made some objects with rigs. And they are work.
and adding different weights between bones
with big objects I don't see problem
The problem begins if I make small object or resize it to small size
Resize to Y axis for better view
I think the problem in import script because then I watching in import and export model I see this
And in many objects I see what on each vertex with two or more weights I lose about 0.004-0.008 weight units
Bone A Bone B Bone C Bone D Bone A Bone B Bone C Bone D Results for Two weights on vertex
0,833333 0,166667 0,831373 0,164706 1,000000 0,996079 0,003921
0,666667 0,333333 0,662745 0,329412 1,000000 0,992157 0,007843
0,500000 0,500000 0,498039 0,498039 1,000000 0,996078 0,003922
0,333333 0,666667 0,333333 0,666667 1,000000 1,000000 0,000000
0,166667 0,833333 0,164706 0,831373 1,000000 0,996079 0,003921
0,800000 0,200000 0,800000 0,200000 1,000000 1,000000 0,000000
0,600000 0,400000 0,600000 0,400000 1,000000 1,000000 0,000000
0,400000 0,600000 0,400000 0,600000 1,000000 1,000000 0,000000
0,200000 0,800000 0,200000 0,800000 1,000000 1,000000 0,000000
0,250000 0,750000 0,749020 0,247059 1,000000 0,996079 0,003921
0,500000 0,500000 0,498039 0,498039 1,000000 0,996078 0,003922
0,750000 0,250000 0,247059 0,749020 1,000000 0,996079 0,003921
0,909091 0,090909 0,905882 0,090196 1,000000 0,996078 0,003922
0,818182 0,181818 0,815686 0,180392 1,000000 0,996078 0,003922
0,727273 0,272727 0,725490 0,270588 1,000000 0,996078 0,003922
0,636364 0,363636 0,635294 0,360784 1,000000 0,996078 0,003922
0,545455 0,454545 0,545098 0,450980 1,000000 0,996078 0,003922
0,454545 0,545455 0,450980 0,545098 1,000000 0,996078 0,003922
0,363636 0,636364 0,360784 0,635294 1,000000 0,996078 0,003922
0,272727 0,727273 0,270588 0,725490 1,000000 0,996078 0,003922
0,181818 0,818182 0,180392 0,815686 1,000000 0,996078 0,003922
0,090909 0,909091 0,090196 0,905882 1,000000 0,996078 0,003922
Bone A Bone B Bone C Bone D Bone A Bone B Bone C Bone D Results for Four weights on vertex
0,826446 0,082645 0,082645 0,008264 0,823529 0,082353 0,082353 0,007843 1,000000 0,996078 0,003922
0,743802 0,074380 0,165289 0,016529 0,741176 0,070588 0,164706 0,015686 1,000000 0,992156 0,007844
0,661157 0,066116 0,247934 0,024793 0,658824 0,062745 0,247059 0,023529 1,000000 0,992157 0,007843
0,578512 0,057851 0,330579 0,033058 0,576471 0,054902 0,329412 0,031373 1,000000 0,992158 0,007842
0,495868 0,049587 0,413223 0,041322 0,494118 0,047059 0,411765 0,039216 1,000000 0,992158 0,007842
0,413223 0,041322 0,495868 0,049587 0,411765 0,039216 0,494118 0,047059 1,000000 0,992158 0,007842
0,330579 0,033058 0,578512 0,057851 0,329412 0,031373 0,576471 0,054902 1,000000 0,992158 0,007842
0,247934 0,024793 0,661157 0,066116 0,247059 0,023529 0,658824 0,062745 1,000000 0,992157 0,007843
0,165289 0,016529 0,743802 0,074380 0,164706 0,015686 0,741176 0,070588 1,000000 0,992156 0,007844
0,082645 0,008264 0,826446 0,082645 0,082353 0,007843 0,823529 0,082353 1,000000 0,996078 0,003922
Bone A Bone B Bone C Bone D Bone A Bone B Bone C Bone D Results for Three weights on vertex
0,750000 0,187500 0,062500 0,749020 0,184314 0,058824 1,000000 0,992158 0,007842
0,750000 0,125000 0,125000 0,749020 0,121569 0,121569 1,000000 0,992158 0,007842
0,750000 0,062500 0,187500 0,749020 0,058824 0,184314 1,000000 0,992158 0,007842
0,500000 0,375000 0,125000 0,498039 0,372549 0,121569 1,000000 0,992157 0,007843
0,500000 0,250000 0,250000 0,498039 0,247059 0,247059 1,000000 0,992157 0,007843
0,500000 0,125000 0,375000 0,498039 0,121569 0,372549 1,000000 0,992157 0,007843
0,250000 0,562500 0,187500 0,247059 0,560784 0,184314 1,000000 0,992157 0,007843
0,250000 0,375000 0,375000 0,247059 0,372549 0,372549 1,000000 0,992157 0,007843
0,250000 0,187500 0,562500 0,247059 0,184314 0,560784 1,000000 0,992157 0,007843
With two weights on vertex I tried edit values manually, sometimes well, sometimes the result was bad.
With more then two weights on vertex I don't know what to do.
Couple notes:
If I bound more than 59 bones to one mesh, then the vertex tied to 60 or higher bones simply disappeared. If I bound more than 108 bones to one mesh, then the game would crash.