12 第1页 | 共2 页下一页
返回列表 发新帖
查看: 3919|回复: 10
打印 上一主题 下一主题

[Anark] Exporting a Model from Maya to Anark

[复制链接]
Asen    

867

主题

0

听众

1万

积分

外协人员

Rank: 7Rank: 7Rank: 7

纳金币
17488
精华
1
跳转到指定楼层
楼主
发表于 2011-9-29 08:57:12 |只看该作者 |倒序浏览

Summary
This tutorial provides a quick summary on the model export process from maya versions 5 through 6.5 to Anark. This tutorial only covers the model data translation. The steps here provide a simple workflow for correcting common export problems with such as scale, orientation, flipped normals and smoothing issues.
Other online tutorials will also provide more details into the preparing supporting data for export such as materials, images, baked lighting, etc..
Prerequisites:

� 3D Model optimized for real-time playback

� Materials have been prepped and images have been assigned to proper channels

   
        
            Category
            Tutorials
        
        
            Author
            Eric
        
        
            Difficulty
            Beginner
        
        
            Time to Complete
            10-20Min
        
   





Downloads
Click Here to download the associated files.
Work on a Copy of your scene


    Save a copy of your model to a new file as some of the export process will delete any history that you may have on the model. Go to File -> Save As... and save your work to an alternate file.


Get the Latest plugins and scripts

   
    Make sure you have the latest AMX export plugin downloaded from the Anark Assistant Palette. For the latest exporters, check the "Latest Exptorters" section of the Online Assistant Palette.
   
        
        There is also a version of the exporter that is available in the Anark Studio 3.0 program folder.
        
        
        The location of this folder for Anark 2.5 is: Crogram FilesAnarkAnark Studio 2Third-partyMayaPC
        
        
        The Location for the plugin in the Anark Studio 3.0 installation is: Crogram FilesAnarkAnark Studio 3AMX Exporter Plug-insMaya
        
   
   
   
    Extract the zip and copy plugin file named "Maya2AMXExport_6.mll" plugin into the folder: Crogram FilesAliasMaya6.0.1inplug-ins
   
   
    Within Maya, go to Window -> Settings/Preferences -> Plugin-Manager...
     
   
   
    Find the plugin called Maya2AMXExport plugin listed and check on "loaded" and "auto load."

   
   
   
    Download the associated files with this tutorial and extract the .mel script called ResetPivots.mel. Copy the extracted ResetPivots.mel script into your scripts folder:
   
        
        (Windows) driveocuments and SettingsusernameMy Documentsmayascripts
        
        
        (Mac OS X) Users/username/Library/Preferences/Alias/maya/6.0/scripts
        
        
        For More information to install a downloaded Mel script, refer to the Maya Documentation: Downloading Alias MELscript
        
   
   

Working with Maya's Scale

   
    Maya's internal scale is much different than Anark's scale so you must obtain a proper scale in your Maya scene to match that of Anark's.
   
   
    Bring up the Maya General Preferences from the Window->Settings/Preferences->references menu.

   
   
   
    Click on the Settings Category and check that the Working Unitsinear units is set to Centimeter.

   
   
        
        If you do not want to work in another unit scale, in the upcoming steps, adjust the value entries to match the scale. For eample, the next step create the sphere with a radius of 3 if the linear units are in meters.
        
   
   
   
    Create a polygon sphere at the origin with a radius of 300.
   
   
    Depending on your view, the sphere could be much larger than the view.
   
     
   
   
    Select the sphere and press the"f" key to fit the view to the sphere. You may notice that the view has become blank. This is because the default clipping planes for the camera are smaller than the visible sphere.
   
   
    Select the current view camera by going to the viewport menu View -> Select Camera

   
   



   
    Bring up the Attribute Editor(Ctrl-A).
   
   
    Set the "Far Clip Plane" to 10000 or more.

    f
   
   
    The sphere and origin should now come back into view.
   
        
        The volume of the sphere represents a good viewing area of a standard Anark presentation using default cameras.
        
   
   
   
    Select the model(s) you wish to export and scale/move the model to approximately fit within the bounds of the sphere.

   
   


   
        
        This approach to scale your model to the volume to the sphere provides a "quick and easy" way to scale model to an Anark presentation. Experimentation with units and building your models starting at a larger scale unit will yield a good workflow as well.
        
        
        Under normal Maya opertation with Y-up coordinate system, the Front view/camera represents the view in which models will appear when imported into a default presentation with the Anark camera untouched. If desired, orient the models into the best view.
        
   
   
    Delete the polygon sphere.
   
   
    Select all the meshes in the scene and go to Display->Custom Polygon Display [].

   
   
   
    Turn the Backface Culling option to ON.

   

    and click Apply.
   
   
    If any meshes in the scene appear inside-out (normals facing the wrong direction) select the polygon mesh that appears bad and go to the menu Edit Polygons -> Normals -> Reverse

   
   
   
    Go to the Edit Menu -> Select All by Type -> Geometry.

   
   
   
    Go to the Edit Menu and select Freeze Transforms.
   
   
    Go to the Edit Menu and select Center Pivots.

   
   
   
    For any models that could animate in the Anark presentation around a specific axis or pivot point, the mesh's pivot points will be adjusted individually. For this demonstration, the beard trimmer on this model will rotate animate up.
   
   
    Select the mesh that you wish to adjust the pivot point.
   
   
    Press the "Insert" key on your keyboard and move the pivot point to the desired location.
   
   
    Go to the Edit Menu -> Select All by Type -> Geometry.
   
   
    In the Command Line, enter resetAMXPivots(); and press return.
   
        
        If you receive an error stating the command is not found, you may need to "source the mel script. To source the script, bring up the MEL script editor and choose Source Script... from the File menu.

        

        Browse to the ResetPivots.mel script and open the script.
        
   
   
   
    Go to Edit Menu -> Delete All by Type -> History.
   
   
    Go to the File Menu -> Export All...

   
   
        
        The Export Selection menu item is not functional at this time.
        
   
   
   
    Choolse AMX from the Files of Type pulldown.

   
   
   
    Enter a Name and click Export.
   

Import the Model into Anark
Your model is now Exported. It抯 time to get it into Anark.

   
    From Anark Studio, Select 揑mport Resource� from the File Menu.

   
   
   
    Browse to your model and import the model The model is now listed in the Library Palette

   
   
   
    Click and drag your model onto the desired layer in the Timeline palette.

   
   
   
    The model will now be a good useable scale in the presentation window.

   
   
   
    If any meshes had their pivot points adjusted during the export process, ensure that any models rotate along the correct axis.

   
   

分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

5969

主题

1

听众

39万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

沙发
发表于 2012-4-9 23:19:04 |只看该作者
既来之,则看之!
回复

使用道具 举报

1023

主题

3

听众

359

积分

设计实习生

Rank: 2

纳金币
335582
精华
0

最佳新人

板凳
发表于 2012-4-19 23:23:46 |只看该作者
我就看看,我不说话
回复

使用道具 举报

5969

主题

1

听众

39万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

地板
发表于 2012-5-12 23:21:47 |只看该作者
百度的叫度娘,网易的叫易娘,新浪内部还在为是叫新娘还是浪娘而争论不休!……不管你们是企鹅的额娘,豆瓣的伴娘,还是华为的伪娘,都要记得,淘宝才是你们的亲娘啊!亲!!
回复

使用道具 举报

462

主题

1

听众

31万

积分

首席设计师

Rank: 8Rank: 8

纳金币
2
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

5#
发表于 2012-6-9 23:24:16 |只看该作者
你们都躲开,我来顶
回复

使用道具 举报

   

671

主题

1

听众

3247

积分

中级设计师

Rank: 5Rank: 5

纳金币
324742
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

6#
发表于 2012-8-22 00:22:43 |只看该作者
顶!学习了!阅!
回复

使用道具 举报

tc    

5089

主题

1

听众

33万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

7#
发表于 2012-9-19 23:25:54 |只看该作者
有意思!学习了!
回复

使用道具 举报

1023

主题

3

听众

359

积分

设计实习生

Rank: 2

纳金币
335582
精华
0

最佳新人

8#
发表于 2012-10-31 23:19:35 |只看该作者
凡系斑竹滴话要听;凡系朋友滴帖要顶!
回复

使用道具 举报

tc    

5089

主题

1

听众

33万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

9#
发表于 2012-11-11 23:20:54 |只看该作者
好铁多多发,感激分享
回复

使用道具 举报

tc    

5089

主题

1

听众

33万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

10#
发表于 2013-1-31 23:20:02 |只看该作者
有意思!学习了!
回复

使用道具 举报

12 第1页 | 共2 页下一页
返回列表 发新帖
您需要登录后才可以回帖 登录 | 立即注册

手机版|纳金网 ( 闽ICP备2021016425号-2/3

GMT+8, 2025-7-27 17:24 , Processed in 0.214325 second(s), 28 queries .

Powered by Discuz!-创意设计 X2.5

© 2008-2019 Narkii Inc.

回顶部