LoginSignup
6
2

More than 3 years have passed since last update.

TriplanarっぽいMaterialを作成する

Last updated at Posted at 2018-06-21

この記事はUE4.19時点のものです
UE4.24で再検証しています(2020-01-28)

AnswerHubで求められたので作りました

基本UVでテクスチャ貼るはずのゲームエンジンでなぜこれが必要なのか?
…多分建築系ですかね(経験あり

Triplanar??

3軸からテクスチャを投影する手法
https://www.youtube.com/watch?time_continue=10&v=eHaJHMyG-6U

今回の要件

  • ActorのTransformに影響されない
    • つまりWorld座標を基準に貼るのはNG
    • 移動しようが回転しようがテクスチャがずれないこと
  • テクスチャの境界はブレンドをかける

完成品

image.png

全体

Triplanar_A.PNG

スケール部分

Triplanar_B.PNG

Triplanar実現部分

Triplanar_C.PNG

合成

Triplanar_D.PNG

サンプル

(UE4.19以降)
ダウンロード

追記参照のこと

BugFix (2020-01-28)

オブジェクトのScaleを不均一に変更するとTextureが歪む事象に対応
変更点は下の画像の通り

2020-01-28_00h50_25.png

サンプルを修正しました
(UE4.24以降)

ダウンロード

6
2
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
6
2