Warning: Undefined array key "translationlc" in /usr/www/users/fabook/_diggets/doc/v2/lib/plugins/translation/action.php on line 237
Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/fabook/_diggets/doc/v2/lib/plugins/translation/action.php:237) in /usr/www/users/fabook/_diggets/doc/v2/inc/parser/code.php on line 33
Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/fabook/_diggets/doc/v2/lib/plugins/translation/action.php:237) in /usr/www/users/fabook/_diggets/doc/v2/inc/parser/code.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/fabook/_diggets/doc/v2/lib/plugins/translation/action.php:237) in /usr/www/users/fabook/_diggets/doc/v2/inc/parser/code.php on line 35
uses
Gorilla.DefTypes,
Gorilla.Model,
Gorilla.FBX.Loader;
[...]
var LOpts : TGorillaLoadOptions;
LMdlPath := IncludeTrailingPathDelimiter('C:\Temp\PACKAGETEST\ASSETS\Astronaut');
LOpts := TGorillaLoadOptions.Create(LMdlPath + 'Astronaut.fbx');
// only allow this exact filename and no automated lookup
LOpts.FileInfo.StrictFilename := true;
// link to a package and/or to a specific asset inside of a package
LOpts.Package := nil;
LOpts.Asset := nil;
// limit to a max. size of textures (textures will be resized in aspect ratio)
LOpts.TextureLimits := Point(512, 512);
// ignore lights and camera for import
LOpts.ImportLights := false;
LOpts.ImportCameras := false;
// user defined animation import
LOpts.ImportAnimations := true;
LOpts.AddAnimation(LMdlPath + 'Astronaut-idle.fbx');
LOpts.AddAnimation(LMdlPath + 'Astronaut-floating.fbx');
LOpts.AddAnimation(LMdlPath + 'Astronaut-hit.fbx');
LOpts.AddAnimation(LMdlPath + 'Astronaut-jump.fbx');
LOpts.AddAnimation(LMdlPath + 'Astronaut-punch-1.fbx');
LOpts.AddAnimation(LMdlPath + 'Astronaut-punch-2.fbx');
LOpts.AddAnimation(LMdlPath + 'Astronaut-walk-forward.fbx');
LOpts.AddAnimation(LMdlPath + 'Astronaut-walk-backward.fbx');
LOpts.AddAnimation(LMdlPath + 'Astronaut-walk-left.fbx');
LOpts.AddAnimation(LMdlPath + 'Astronaut-walk-right.fbx');
LOpts.AddAnimation(LMdlPath + 'Astronaut-run-forward.fbx');
LOpts.AddAnimation(LMdlPath + 'Astronaut-run-backward.fbx');
LOpts.AddAnimation(LMdlPath + 'Astronaut-run-left.fbx');
LOpts.AddAnimation(LMdlPath + 'Astronaut-run-right.fbx');
FModel := TGorillaModel.LoadNewModelFromFile(GorillaViewport1, LOpts);
FModel.Parent := GorillaViewport1;