Skip to content

Instantly share code, notes, and snippets.

@longjie
Created July 15, 2015 02:55
Show Gist options
  • Save longjie/976dd847d927a1692951 to your computer and use it in GitHub Desktop.
Save longjie/976dd847d927a1692951 to your computer and use it in GitHub Desktop.
テクスチャのついていないCOLLADAファイルに色とテクスチャをMeshlabでつける手順
rvizではメッシュの色(Vertex Color)は反映されず、テクスチャにする必要があるみたい。
meshlabでテクスチャ付きのCOLLADAファイルを作る方法をメモ。
meshlab ver.1.33
* メッシュをインポート
* Z-paintingツールでメッシュに色をつける
* Filters->Texture->Parametrization:Trivial Per Triangleを選択
* パラメータはデフォルトのままでApply
* Filters->Texture->Vertex Color to Textureを選択
* Assing Textureにチェックを入れてApply
* Export MeshでCOLLADAファイル(*.dae)として保存。テクスチャ用のpngも保存される。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment