Actorms3dD.dpr 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {: This demo shows how easy it is to use milkshape animations in GLScene. The
  2. animations are courtesy of Carnegie-Mellon's motion capture project.
  3. Animations also make use of MS3D's weighted vertexes. This was really needed as
  4. it makes animations much more realistic, as you will see.
  5. The demo also shows the use of double sided textures (her hair), specular lighting,
  6. and transparency. To make a texture doublesided, just give it a tiny bit of transparency
  7. in Milkshape. This will cause the loader to turn off backface culling for any group that
  8. uses that material.
  9. I have also utilized one of Yar's shader demos modified a little so the spotlight
  10. will always follow the actor during the animation sequence.
  11. Model was made with MS3D, UVMapping and texturing were done with Paintshop and UVMapper Pro
  12. Note on the animations: There is a flaw in the MakeSkeletalTranslationStatic routine if you
  13. want to stop all root node translations. I'll be adding an overloaded method in the real soon.
  14. For now, if you do not want root node transformations (i.e. you want her to stay in one spot)
  15. uncomment the line: //pos:=ms3d_joints^[i].Base.Position.V; where the animations are loaded
  16. in GLFileMS3D.
  17. TL
  18. }
  19. program Actorms3dD;
  20. uses
  21. Forms,
  22. fActorms3dD in 'fActorms3dD.pas' {FormActorms3d};
  23. {$R *.res}
  24. begin
  25. Application.Initialize;
  26. Application.MainFormOnTaskbar := True;
  27. Application.CreateForm(TFormActorms3d, FormActorms3d);
  28. Application.Run;
  29. end.