0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

WebGLAdvent Calendar 2016

Day 3

three.jsでmtlloaderをhack

Last updated at Posted at 2016-12-28

#概要
three.jsでobjのmtlを差し替える。
objとmtlは、suketchupで、書き出してる。
#写真

#環境
three.js r83

#調査
print_rでobjのプロパティ探したが、マテリアル見つからない。
mtlで見つかったので、いじる。

#調査の実際
http://jsdo.it/ohisama1/c9bq

#仕掛け
mtlloaderで読み込んで、preloadしたら、materialsを書き換える。

#hackの実際
http://jsdo.it/ohisama1/A0T1

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?