2010年2月20日 星期六

讀連續obj的obj loader

Script 名稱 : OBJ Loader v1.4.1
Script 作者 : Andy E
網站 : http://andye.myweb.hinet.net/maxscript_1.html
 OBJ Loader的UI與代表物件

    這個script用來讀連續obj檔案,移動時間滑桿來讀入不同的obj形狀.關閉animated state來保持形狀.可以改變起始frame.

OBJ Loader
  1. 載入連續obj檔案
  2. 支援不同結構的obj檔案
  3. 支援UV
  4. 可設緩衝
  5. 可不改變本地座標而旋轉

     使用方法
  1. 將檔案放入Max主要目錄中的"Scripts\Startup",從開MAX
  2. 在Create>Geometry>Scripted Primitives
  3. 如果有面數高的模型,在Preference Setting>MAXScript增加script記憶體.

 教學影片




Script Name : OBJ Loader v1.4.1
Script Author : Andy E


UI of OBJ Loader and it's representative model

A friend used Houdini to create fluid model with varied number of polygons, and need to be rendered in 3DS MAX. He got a piece of script from internet, which can import only one single obj file. With regard to where the piece of scipt comes from, I don't know, but  appreciate the owner. Finally, you know that I implememted it as a primitive node or object in 3DS MAX enviroment.Though I rewrited it, definitely, I canged a lot , including efficiency, sequential loading , and many other functions. I thought it is a new script ,and free for all , not just money, but source code.  I cannot name it OBJ importer ,but named it OBJ Loader, because there was a plugin called OBJ importer.
Using this script you can load sequence obj files, and animate it by sliding time slider. You can keep it in certain state by turning off animated state. You can also move starting frame of  animation to another frame, and some features listed below.

*Buffers.
*Load sequential obj files.
*Support each obj file with different structure.
*Support uv map.
*Rotation offset.

How to use it?
*Put the file in "Scripts\Startup" , then restart 3DS MAX
*It is in [Create>Geometry>Scripted Primitives].
*Increase MAXScript Memory in [Preference Setting>MAXScript], when processing a HI-res OBJ.
Double click on tutorial video below to go to youtube to see big view.

4 則留言:

  1. hi,

    Max 2010 64bit好像會出錯

    可以檢查一下嗎?

    感謝你!

    回覆刪除
  2. 可以給我錯誤訊息及幾個obj檔嗎?這樣才能判斷.
    ann99@seed.net.tw

    回覆刪除
  3. hey andy, I0m trying to use your script to import a bunch of pointclouds in obj format coming from kinect.

    I get a Runtime error: Read past en of file...
    which highlights this line in your script:
    arrVal = filterString (readLine objStream) "\t, " --getArrFromLine (readLine objStream)

    any tips? thx J.

    回覆刪除

LinkWithin

Related Posts Plugin for WordPress, Blogger...