Using a different vertexcolor for every vertexgroup und VertexCoords, its possible to adjust the deformation manually.
It works, but little experimental.
Anyway, thanks for the help =)
My Code
Code: Select all
EntityParent Findchild(test4,"Shin.Right"),(Findchild(test3,"Shin.Right"))
EntityParent Findchild(test4,"Shin.Left"),(Findchild(test3,"Shin.Left"))
EntityParent Findchild(test4,"Thigh.Right"),(Findchild(test3,"Thigh.Right"))
EntityParent Findchild(test4,"Thigh.Left"),(Findchild(test3,"Thigh.Left"))
EntityParent Findchild(test4,"Hip"),(Findchild(test3,"Back"))
Var tmpSurface=getsurface(test4,1)
For i As Integer = 0 To countvertices(tmpSurface)
If vertexgreen(tmpsurface,i)=255 Then
If vertexX(tmpsurface,i)<0 Then
VertexCoords tmpSurface,i,vertexX(tmpsurface,i)+0.1,vertexY(tmpsurface,i),vertexZ(tmpsurface,i)
ElseIf vertexX(tmpsurface,i)>0 Then
VertexCoords tmpSurface,i,vertexX(tmpsurface,i)-0.1,vertexY(tmpsurface,i),vertexZ(tmpsurface,i)
EndIf
EndIf
If vertexRed(tmpsurface,i)=255 Then
If vertexX(tmpsurface,i)<0 Then
VertexCoords tmpSurface,i,vertexX(tmpsurface,i),vertexY(tmpsurface,i)+0.4,vertexZ(tmpsurface,i)
ElseIf vertexX(tmpsurface,i)>0 Then
VertexCoords tmpSurface,i,vertexX(tmpsurface,i),vertexY(tmpsurface,i)+0.4,vertexZ(tmpsurface,i)
EndIf
If vertexBlue(tmpsurface,i)=255 Then
If vertexX(tmpsurface,i)<0 Then
VertexCoords tmpSurface,i,vertexX(tmpsurface,i)+0.1,vertexY(tmpsurface,i)-0.4,vertexZ(tmpsurface,i)
ElseIf vertexX(tmpsurface,i)>0 Then
VertexCoords tmpSurface,i,vertexX(tmpsurface,i)-0.1,vertexY(tmpsurface,i)-0.4,vertexZ(tmpsurface,i)
EndIf
EndIf
EndIf
Next