Menu

how to create a parent for a form

leon
2026-08-19
6 days ago
  • leon

    leon - 2026-08-19

    I have an SMD model with bones. Can I attach a cap to the upper bone? (FreeForm1)

    GLActor1.LoadFromFile('model\model2.smd');
    GLFreeForm1.LoadFromFile('model\hair1.obj');
    for i := 0 to 66  do begin
    memo1.Lines.Add(GLActor1.Skeleton.BoneByID(i).Name);
    end;
    

    error

    GLFreeForm1.Parent:=(GLActor1.Skeleton.BoneByName('Name:bone1');
    
     

    Last edit: leon 2026-08-20
  • leon

    leon - 2026-08-19

     
  • leon

    leon - 2026-08-20

    is it really possible to create it? Help

     

    Last edit: leon 2026-08-21
  • leon

    leon - 2026-08-22
    var m: TMatrix4f;
    begin
    m := GLActor1.Skeleton.BoneByName('Name:bone1').GlobalMatrix;
    GLActor2.Matrix := MatrixMultiply(m, GLActor1.AbsoluteMatrix);
    

    error = GLActor2.Matrix

    or

    m:=GLActor1.Skeleton.BoneByID(66).GlobalMatrix;
    GLActor2.SetMatrix(MatrixMultiply(m, GLActor1.AbsoluteMatrix));
    

    The hair doesn't move :((

     

    Last edit: leon 2026-08-22
  • leon

    leon - 2026-08-22

    Does anyone understand this?
    Alguien entiende eso? como hacerlo

     
  • leon

    leon - 6 days ago
    procedure TForm1.GLCadencer1Progress(Sender: TObject; const DeltaTime,
      NewTime: Double);
    begin
    GLActor1.Skeleton.BoneByID(63).GlobalMatrix.V[3].X;
    end; 
    

    is it possible to do this.... 1. CPU load 2. memory ?????

    GLActor1.Position.X := GLActor1.Skeleton.BoneByID(63).GlobalMatrix.V[3].X;
    
     

    Last edit: leon 5 days ago

Log in to post a comment.