

SOPack テクスチャー・マッピング・チュートリアル
このチュートリアルは、SO Image Overlay Sarface Distrib. Version を使用した Texture マッピングについて解説しています。
- Texture サイズの影響度
- Overlay Coverrage Area の設定
- Texture サイズとカバーエリアの関係
- Tiling
1. Texture サイズの影響度
Overlay に使用する Texture サイズがマッピング効果にどのように影響するかを調べます。
3種類の地形(平坦な地形・山岳地形・壁のある地形)を各々2種類の地形サイズ 257 x 257-TGP、513 x 513-TGP で確認します。
Texture は2種類 100 x 100 - pixel、3000 x 3000 - pixel を用意しました。
- 平坦な地形
![]() sample_01 Terrain size 257x257-TGP Texture size 100x100-pixel Camera altitude 240-TU | ![]() sample_04 Terrain size 513x513-TGP Texture size 100x100-pixel Camera altitude 480-TU |
![]() sample_02 Terrain size 257x257-TGP Texture size 3000x3000-pixel Camera altitude 240-TU | ![]() sample_05 Terrain size 513x513-TGP Texture size 3000x3000-pixel Camera altitude 480-TU |
![]() sample_03 Terrain size 257x257-TGP Texture size 3000x3000-pixel Camera altitude 8-TU | ![]() sample_06 Terrain size 513x513-TGP Texture size 3000x3000-pixel Camera altitude 16-TU |
- 山岳地形
![]() sample_07 Terrain size 257x257-TGP Texture size 100x100-pixel Camera altitude 240-TU | ![]() sample_10 Terrain size 513x513-TGP Texture size 100x100-pixel Camera altitude 480-TU |
![]() sample_08 Terrain size 257x257-TGP Texture size 3000x3000-pixel Camera altitude 240-TU | ![]() sample_11 Terrain size 513x513-TGP Texture size 3000x3000-pixel Camera altitude 480-TU |
![]() sample_09 Terrain size 257x257-TGP Texture size 3000x3000-pixel Camera altitude 8-TU | ![]() sample_12 Terrain size 513x513-TGP Texture size 3000x3000-pixel Camera altitude 16-TU |
- 壁のある地形
![]() sample_13 Terrain size 257x257-TGP Texture size 100x100-pixel | ![]() sample_15 Terrain size 513x513-TGP Texture size 100x100-pixel |
![]() sample_14 Terrain size 257x257-TGP Texture size 3000x3000-pixel | ![]() sample_16 Terrain size 513x513-TGP Texture size 3000x3000-pixel |
平坦な地形と山岳地形のレンダリング結果から判るように Texture サイズが大きければその分緻密なマッピング効果を得ることができます。
壁のある地形では壁エリアが縦方向に間延びしていて、3000 × 3000 - pixel の Texture を使用しても望む結果を得られていません。
垂直なエリアへのマッピングは後述する Tiling テクニックが必要です。
2. Overlay Coverrage Area の設定
Texture の配置設定は、Set Image Overlay Option ダイアログボックスの Overlay Coverrage Area で行います。カバーエリアの x 座標・ y 座標は、Terragen の Landscape ダイアログボックスにある Plan View of Landscape により容易に把握できます。
![]() sample_17 | ![]() sample_18 |
| Set Image Overlay Options Overlay Type : Total Over lay. Terragen surface map replaced with image Terrain Size : 257 x 257 Overlay Coverrange Area : Starting X 0, Ending X 128, Starting Y 0, Ending Y 128 Tiling : Tiles in Xdirection : 1, Tiles in Y direction : 1 | Set Image Overlay Options Overlay Type : Total Over lay. Terragen surface map replaced with image Terrain Size : 257 x 257 Overlay Coverrange Area : Starting X 129, Ending X 256, Starting Y 129, Ending Y 256 Tiling : Tiles in Xdirection : 1, Tiles in Y direction : 1 |
3. Texture サイズとカバーエリアの関係
次の二つのサンプルに注目して下さい。
サンプル19は257 × 257 - TGP の地形に200 × 200 - pixel の Texture をマッピング、一方サンプル20は同サイズの地形の x 座標軸・ y 座標軸の2分の1を一辺とする四角形エリアに100 x 100 - pixel の Texture をマッピングしています。何れのサンプルも同じカメラ高度からのレンダリングです。
![]() sample_19 | ![]() sample_20 |
結果から判るように地形を形成する x 座標軸・ y 座標軸のそれぞれの一辺を2分の1とする四角形エリアに Texture をマッピングした場合、地形全体に2倍の一辺をもつ Texture をマッピングした場合と同じ効果を得られることになります。
言い換えると、地形の4分の1のエリアにマッピングして得られる効果は、4倍のエリアもつ Texture で同一地形全体にマッピングして得られる効果と同じになります。
4. Tiling
Tiling 設定は Set Image Overlay Option ダイアログボックスの Tiling にあるTiles X direction と Tiles Y direction に値を入力します。次の三つのサンプルのうちサンプル21と22は、100×100 - pixel の Texture を使用し、サンプル21の Tiles direction 設定値を1に、サンプル22の設定値をサンプル21の10倍でレンダリングした結果です。次にサンプル22とサンプル23を比較してください。サンプル22は、サンプル23の1000 × 1000 - pixel の Texture でマッピング、Tiles direction 値を1に設定したものと同じ効果を得ることができました。Tiles direction 値は、Texture を構成する一辺の長さを乗ずる役割を果たすことが判ります。
![]() sample_21 | Terrain size 257x257-TGP Texture size 100x100-pixel Tiles in X direction 1 Tiles in Y direction 1 Camera altitude 240-TU |
![]() sample_22 | Terrain size 257x257-TGP Texture size 100x100-pixel Tiles in X direction 10 Tiles in Y direction 10 Camera altitude 240-TU |
![]() sample_23 | Terrain size 257x257-TGP Texture size 1000x1000-pixel Tiles in X direction 1 Tiles in Y direction 1 Camera altitude 240-TU |
サンプル24は、Tiles X direction 設定値を Tiles Y direction 設定値の10倍に、サンプル25は、Tiles Y direction 設定値を Tiles X direction 設定値の10倍でレンダリングした結果です。
![]() sample_24 | ![]() sample_25 |
| Set Image Overlay Options Overlay Type : Total Over lay. Terragen surface map replaced with image Terrain Size : 257 x 257 Overlay Coverrange Area : Starting X 0, Ending X 256, Starting Y 0, Ending Y 256 Tiling : Tiles in Xdirection : 10, Tiles in Y direction : 1 | Set Image Overlay Options Overlay Type : Total Over lay. Terragen surface map replaced with image Terrain Size : 257 x 257 Overlay Coverrange Area : Starting X 0, Ending X 256, Starting Y 0, Ending Y 256 Tiling : Tiles in Xdirection : 1, Tiles in Y direction : 10 |
Tiling は、x 方向と y 方向に対して各々に密度を変えた設定が可能ですから垂直に近いエリアへのマッピングに効果を発揮します。
* NO reproduction or republication without written permission.
Copyright © 2001 - 2006 by yshima
投稿された内容の著作権はコメントの投稿者に帰属します。


























