emadurandal / GLBoost

A Useful WebGL Library for Small Turning (Outdated, Deprecated to use)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can not display glTF model with primitive type LINES.

cx20 opened this issue · comments

commented

GLBoost + glTF Loader で以下のモデルが表示できないようです。
https://github.com/mrdoob/three.js/tree/dev/examples/models/gltf/snowflake
https://github.com/mrdoob/three.js/tree/dev/examples/models/gltf/snowflakes

以下は Three.js r84dev + glTF Loader での表示例です。
http://jsdo.it/cx20/EOVG
image

恐らく、primitive.mode が LINES のケースに対応できていない為と思います。

commented

追加情報です。
javagl さんによるとモデル側にも問題があるかも?とのことです。
javagl/JglTF#11

commented

モデル側の問題(glTF-Validator でエラーになる箇所)は修正されました。以下のモデルにて確認をお願いします。
尚、修正に伴いモデルのバージョンが glTF 1.1 になっています。

https://github.com/mrdoob/three.js/tree/dev/examples/models/gltf/snowflake
https://github.com/mrdoob/three.js/tree/dev/examples/models/gltf/snowflakes