# 匯出網格資料含材質的顯示有問題

**URL:** <https://cn.discourse.mcneel.com/t/topic/1788>\
**Category:** Rhino Windows 版\
**Created:** [2021年一月26日 10:12 UTC](https://cn.discourse.mcneel.com/t/topic/1788 "2021-01-26T10:12:23Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![angel](https://sea3.discourse-cdn.com/mcneel/user_avatar/cn.discourse.mcneel.com/angel/32/3310_2.png) [@angel](https://cn.discourse.mcneel.com/u/angel)\
**Post date:** [2021年一月26日 10:12 UTC](https://cn.discourse.mcneel.com/t/topic/1788/1 "2021-01-26T10:12:23Z")

</div>

原始3dm檔案材質顯示

 ![3dm](https://global.discourse-cdn.com/mcneel/uploads/mcneel_cn/original/2X/c/ce4e9f0fd8b15d4dbf3ec8dab37361752c316a95.jpeg)

匯出 Vrml

 ![vrml](https://global.discourse-cdn.com/mcneel/uploads/mcneel_cn/original/2X/f/f150aee8610fe0184777b7c69463c7d0babf6c1a.jpeg)

匯出 Obj

 ![obj](https://global.discourse-cdn.com/mcneel/uploads/mcneel_cn/original/2X/6/689907b644c557b2532221ecab32e11e55abae19.jpeg)

測試的3dm與材質  
[ruben.zip](https://cn.discourse.mcneel.com/uploads/short-url/dyEEWj0tCVKyPoAfn3BDL4hZkfm.zip) (10.8 MB)

---

<div class="post-metadata">

**Author:** ![Cafer](https://sea3.discourse-cdn.com/mcneel/user_avatar/cn.discourse.mcneel.com/cafer/32/3277_2.png) [@Cafer](https://cn.discourse.mcneel.com/u/Cafer)\
**Post date:** [2021年一月28日 13:08 UTC](https://cn.discourse.mcneel.com/t/topic/1788/2 "2021-01-28T13:08:22Z")

</div>

Hi Angel

妳指出的VRML跟OBJ檔轉出後材質錯誤的問題，我這裡從Rhino 5測試到Rhino 7都有，我會找機會再跟工程師反應錯誤。目前我測試最佳的狀態是轉出為FBX檔案格式（如圖），妳可以先試試看。

 ![FBX](https://global.discourse-cdn.com/mcneel/uploads/mcneel_cn/original/2X/1/1463320720f7b72a72b6a20ff73051350ac7f1c7.jpeg)

McNeel Asia

- Cafer

---

<div class="post-metadata">

**Author:** ![angel](https://sea3.discourse-cdn.com/mcneel/user_avatar/cn.discourse.mcneel.com/angel/32/3310_2.png) [@angel](https://cn.discourse.mcneel.com/u/angel)\
**Post date:** [2021年一月29日 03:35 UTC](https://cn.discourse.mcneel.com/t/topic/1788/3 "2021-01-29T03:35:06Z")

</div>

您好  
用FBX格式轉出後

如果用匯入的方式 材質顯示 看似OK 但材質有被更動，FBX 的材質光澤跟反射被改了

 ![TextureMapping_Problem](https://global.discourse-cdn.com/mcneel/uploads/mcneel_cn/original/2X/3/3d303f504a60e0406fb844e61ab6a89a5a6cc402.jpeg)

但如果用"開啟舊檔" 開啟 FBX，材質顯示有些地方變粗糙

 ![OpenFBX](https://global.discourse-cdn.com/mcneel/uploads/mcneel_cn/original/2X/e/e133c34d54d1e071484781a2be214770aa46a436.jpeg)

---

<div class="post-metadata">

**Author:** ![KelvinC](https://sea3.discourse-cdn.com/mcneel/user_avatar/cn.discourse.mcneel.com/kelvinc/32/3391_2.png) [@KelvinC](https://cn.discourse.mcneel.com/u/KelvinC)\
**Post date:** [2021年二月17日 02:18 UTC](https://cn.discourse.mcneel.com/t/topic/1788/4 "2021-02-17T02:18:59Z")

</div>

> [@Cafer](#):
>
> 我會找機會再跟工程師反應錯誤。

我找不到這個 bug report?

---

<div class="post-metadata">

**Author:** ![KelvinC](https://sea3.discourse-cdn.com/mcneel/user_avatar/cn.discourse.mcneel.com/kelvinc/32/3391_2.png) [@KelvinC](https://cn.discourse.mcneel.com/u/KelvinC)\
**Post date:** [2021年二月19日 05:28 UTC](https://cn.discourse.mcneel.com/t/topic/1788/5 "2021-02-19T05:28:52Z")

</div>

Hi @angel,

> [@angel](#):
>
> 匯出 Vrml

Rhino 7 輸出 VRML 再匯入 Rhino 材質沒問題，只有 **鞋身白色面** 這個材質，因為 **顏色** 貼圖沒勾，所以貼圖沒匯出到 VRML，也沒有掉面的問題，請下載 Rhino 7 試試看，Rhino 7 可以載入 Rhino 6 的 Plug-in。

 ![image](https://global.discourse-cdn.com/mcneel/uploads/mcneel_cn/original/2X/f/f85d1564261759b5c4f0e8d02674b788502a2455.jpeg)

> [@angel](#):
>
> 匯出 Obj

這個是因為 Rhino 匯入 OBJ 沒讀取中文材質名稱，我寫了這個 bug report。

[RH-62870](https://mcneel.myjetbrains.com/youtrack/issue/RH-62870) File IO: OBJ Import - Material definition with Chinese name does not import

> [@angel](#):
>
> 用FBX格式轉出後
> 
> 如果用匯入的方式 材質顯示 看似OK 但材質有被更動，FBX 的材質光澤跟反射被改了

那是因為匯出 FBX 的材質設定 Lambert 和 Phong 的關係，Lambert 是把光澤和反射值設為 0%，Phong 的光澤和反射值怎麼設我不清楚，說明檔也沒寫，我請我們的工程師解釋。

[RH-62871](https://mcneel.myjetbrains.com/youtrack/issue/RH-62871) File IO: FBX Export - What do Phong and Lambert do?

---

<div class="post-metadata">

**Author:** ![KelvinC](https://sea3.discourse-cdn.com/mcneel/user_avatar/cn.discourse.mcneel.com/kelvinc/32/3391_2.png) [@KelvinC](https://cn.discourse.mcneel.com/u/KelvinC)\
**Post date:** [2021年二月22日 01:41 UTC](https://cn.discourse.mcneel.com/t/topic/1788/6 "2021-02-22T01:41:36Z")

</div>

> [@angel](#):
>
> 如果用匯入的方式 材質顯示 看似OK 但材質有被更動，FBX 的材質光澤跟反射被改了

這是正常的，因為 FBX 的材質的光澤、反射參數和 Rhino 的材質不同。  
例如 Lambert 的這材質型式沒有光澤和反射參數，所以用 Lambert 選項輸出 FBX 再輸入 Rhino，Rhino 材質的光澤和反射值會是 0%。

我在 FBX 說明主題的 Lambert 和 Phong 寫了簡單的描述。  
[https://docs.mcneel.com/rhino/7/help/en-us/index.htm#fileio/motionbuilder\_fbx\_import\_export.htm](https://docs.mcneel.com/rhino/7/help/en-us/index.htm#fileio/motionbuilder_fbx_import_export.htm)

---

<div class="post-metadata">

**Author:** ![angel](https://sea3.discourse-cdn.com/mcneel/user_avatar/cn.discourse.mcneel.com/angel/32/3310_2.png) [@angel](https://cn.discourse.mcneel.com/u/angel)\
**Post date:** [2021年二月22日 02:33 UTC](https://cn.discourse.mcneel.com/t/topic/1788/7 "2021-02-22T02:33:53Z")

</div>

> [@KelvinC](#):
>
> Rhino 7 輸出 VRML 再匯入

原始 3dm 的材質設定如下

 ![3dm_pic](https://global.discourse-cdn.com/mcneel/uploads/mcneel_cn/original/2X/c/c22107cd7db208f1eced3e0a45ce6e870e1d1ec1.jpeg)

匯出Vrml再匯入，發現 凹凸貼圖設定有問題

 ![vrml_pic](https://global.discourse-cdn.com/mcneel/uploads/mcneel_cn/original/2X/c/ce7f8aea8795c4aa3b1720ff86af204960063ebc.jpeg)

---

<div class="post-metadata">

**Author:** ![KelvinC](https://sea3.discourse-cdn.com/mcneel/user_avatar/cn.discourse.mcneel.com/kelvinc/32/3391_2.png) [@KelvinC](https://cn.discourse.mcneel.com/u/KelvinC)\
**Post date:** [2021年二月22日 02:47 UTC](https://cn.discourse.mcneel.com/t/topic/1788/8 "2021-02-22T02:47:19Z")

</div>

好，我再研究研究。

---

<div class="post-metadata">

**Author:** ![angel](https://sea3.discourse-cdn.com/mcneel/user_avatar/cn.discourse.mcneel.com/angel/32/3310_2.png) [@angel](https://cn.discourse.mcneel.com/u/angel)\
**Post date:** [2021年二月22日 03:16 UTC](https://cn.discourse.mcneel.com/t/topic/1788/9 "2021-02-22T03:16:36Z")

</div>

您好  
這個底，原始 3dm 的材質設定如下

 ![sole_3dm_pic](https://global.discourse-cdn.com/mcneel/uploads/mcneel_cn/original/2X/5/5d1fd306af5d37490a72bdb31297068499c660bd.jpeg)

匯出 FBX再匯入，材質設定變化如下，導致底的材質顯示有問題

 ![sole_fbx_pic](https://global.discourse-cdn.com/mcneel/uploads/mcneel_cn/original/2X/1/1a062ec67b66e59c9ba9402f3ec469830a8a4a80.jpeg)

3dm 檔案  
[sole.zip](https://cn.discourse.mcneel.com/uploads/short-url/sGmBlcvNrXS67SrO21f7yFyOQNS.zip) (2.5 MB)

---

<div class="post-metadata">

**Author:** ![KelvinC](https://sea3.discourse-cdn.com/mcneel/user_avatar/cn.discourse.mcneel.com/kelvinc/32/3391_2.png) [@KelvinC](https://cn.discourse.mcneel.com/u/KelvinC)\
**Post date:** [2021年二月23日 15:07 UTC](https://cn.discourse.mcneel.com/t/topic/1788/10 "2021-02-23T15:07:08Z")

</div>

> [@angel](#):
>
> 匯出 Obj
> 
> ![obj](https://global.discourse-cdn.com/mcneel/uploads/mcneel_cn/original/2X/6/689907b644c557b2532221ecab32e11e55abae19.jpeg)
> 
> 測試的3dm與材質  
> [ruben.zip](https://cn.discourse.mcneel.com/uploads/short-url/dyEEWj0tCVKyPoAfn3BDL4hZkfm.zip) (10.8 MB)

[RH-62870](https://mcneel.myjetbrains.com/youtrack/issue/RH-62870) 在 Rhino 7.5 修正了這個問題，正真的原因是匯出的 .obj 是 ASCII 編碼，中文材質名稱變亂碼，.mtl 是 UTF-8 編碼，中文材質名稱正常，兩個檔案的材質名稱無法配合。

貼圖座標不正確的問題，我們的工程師 Tim 的回覆：  
Textures are hard because what is seen in rhino, concerning texture coordinates, is not easy to get at in the file exporters.

The “fancy” texture coordinates (texture mappings added in object properties and by UVEditor) are not the m\_T array on the mesh. That’s what has been used since the beginning of Rhino in file export. There may be a way to get at the fancy ones but I don’t know how to do it. I do think there’s a YT somewhere for Andy to make it easier, I’ll see if I can find it. Actually, just use this search and you’ll see a handful of them. [https://mcneel.myjetbrains.com/youtrack/issues?q=texture%20coordinates%20for%20export](https://mcneel.myjetbrains.com/youtrack/issues?q=texture%20coordinates%20for%20export)

---

<div class="post-metadata">

**Author:** ![KelvinC](https://sea3.discourse-cdn.com/mcneel/user_avatar/cn.discourse.mcneel.com/kelvinc/32/3391_2.png) [@KelvinC](https://cn.discourse.mcneel.com/u/KelvinC)\
**Post date:** [2021年二月23日 15:58 UTC](https://cn.discourse.mcneel.com/t/topic/1788/11 "2021-02-23T15:58:13Z")

</div>

> [@angel](#):
>
> 匯出Vrml再匯入，發現 凹凸貼圖設定有問題

> [@angel](#):
>
> 匯出 FBX再匯入，材質設定變化如下，導致底的材質顯示有問題

這個兩個問題我再問問看。

---

<div class="post-metadata">

**Author:** ![KelvinC](https://sea3.discourse-cdn.com/mcneel/user_avatar/cn.discourse.mcneel.com/kelvinc/32/3391_2.png) [@KelvinC](https://cn.discourse.mcneel.com/u/KelvinC)\
**Post date:** [2021年三月1日 14:46 UTC](https://cn.discourse.mcneel.com/t/topic/1788/12 "2021-03-01T14:46:43Z")

</div>

> [@angel](#):
>
> 匯出 FBX再匯入，材質設定變化如下，導致底的材質顯示有問題

不清楚這個是不是 bug，等我們的工程師 Tim 看看。

[RH-63057](https://mcneel.myjetbrains.com/youtrack/issue/RH-63057) File IO: FBX Export - Material and texture settings are different

---

<div class="post-metadata">

**Author:** ![KelvinC](https://sea3.discourse-cdn.com/mcneel/user_avatar/cn.discourse.mcneel.com/kelvinc/32/3391_2.png) [@KelvinC](https://cn.discourse.mcneel.com/u/KelvinC)\
**Post date:** [2021年三月1日 14:47 UTC](https://cn.discourse.mcneel.com/t/topic/1788/13 "2021-03-01T14:47:37Z")

</div>

> [@angel](#):
>
> 匯出Vrml再匯入，發現 凹凸貼圖設定有問題

[RH-63054](https://mcneel.myjetbrains.com/youtrack/issue/RH-63054) File IO: VRML Export - Is Bump texture supported?

---

<div class="post-metadata">

**Author:** ![KelvinC](https://sea3.discourse-cdn.com/mcneel/user_avatar/cn.discourse.mcneel.com/kelvinc/32/3391_2.png) [@KelvinC](https://cn.discourse.mcneel.com/u/KelvinC)\
**Post date:** [2021年三月2日 02:32 UTC](https://cn.discourse.mcneel.com/t/topic/1788/14 "2021-03-02T02:32:20Z")

</div>

> [@angel](#):
>
> 匯出Vrml再匯入，發現 凹凸貼圖設定有問題

這是因為 VRML 檔案不支援 Bump 貼圖，請參考 VRML 2.0 檔案規格的 Appearance

> **[VRML 2.0, Part1: 5. Node Reference](http://www.graphics.stanford.edu/courses/cs248-98-fall/Assignments/Assignment3/VRML2_Specification/spec/part1/nodesRef.html)**
