Ja/Character Textures and Materials: Difference between revisions

From Valve Developer Community
< Ja
Jump to navigation Jump to search
mNo edit summary
m (Using L template for links)
 
(25 intermediate revisions by 19 users not shown)
Line 1: Line 1:
{{lang|Character Textures and Materials}}
[[Category:Japanese]]
[[Category:Japanese]]
キャラクタテクスチャとマテリアルの作成
キャラクタテクスチャとマテリアルの作成
originally translated by [[User:RumikoHoshino|RumikoHoshino]], 2005/8/19<br />
original English version: [[Character Textures and Materials]]




ソースエンジン向けのモデルをコンパイルする際には、テクスチャファイル(.[[TGA]]ファイル)のファイルの名前部分だけがマテリアルシェーダ(.[[VMT]])の指定に使われ、テクスチャファイルの画像データ自身は使われません。これは簡単な.VMTファイルの例です:
ソースエンジン向けのモデルをコンパイルする際には、テクスチャファイル(.{{L|TGA}}ファイル)のファイルの名前部分だけがマテリアルシェーダ(.{{L|VMT}})の指定に使われ、テクスチャファイルの画像データ自身は使われません。これは簡単な.VMTファイルの例です:


<pre>
<pre>
Line 13: Line 12:
}
}
</pre>
</pre>
このファイルは単純に[[Shader_Types_and_Parameters|シェーダ種類]]<code >(VertexLitGeneric)</code >を指定し、画像として使うファイルである圧縮された.[[VTF]]画像形式へのリンクを含んでいます。
このファイルは単純に{{L|Shader_Types_and_Parameters|シェーダ種類}}<code >(VertexLitGeneric)</code >を指定し、画像として使うファイルである圧縮された.{{L|VTF}}画像形式へのリンクを含んでいます。




ソースエンジンで実行されるモデルをXSI Mod Toolを使って作成するときには、SDKをインストールしたときにできたSourcesdk_contentディレクトリに自分のテクスチャを置いてください。これらのディレクトリについては[[Source SDK Files and Directory Structure:jp|SourceSDKのファイルとディレクトリ構造]]を参照してください。
ソースエンジンで実行されるモデルをXSI Mod Toolを使って作成するときには、SDKをインストールしたときにできたSourcesdk_contentディレクトリに自分のテクスチャを置いてください。これらのディレクトリについては{{L|Source SDK Files and Directory Structure|SourceSDKのファイルとディレクトリ構造}}を参照してください。




この構造を利用していると、XSIでモデルにテクスチャをつけるときに<code >materialsrc/models</code >以下の.TGAファイルを指定することができます。そうするとモデルをコンパイルしてソースエンジンで読み込むときに、対応した<code >materials/models</code >ディレクトリ構造の中の.VMTファイルを指すことになります。
この構造を利用していると、XSIでモデルにテクスチャをつけるときに<code >materialsrc/models</code >以下の.TGAファイルを指定することができます。そうするとモデルをコンパイルしてソースエンジンで読み込むときに、対応した<code >materials/models</code >ディレクトリ構造の中の.VMTファイルを指すことになります。


vtex.exeをつかって.TGAファイルを圧縮形式である.VTF形式に変換することができます。[[Vtex]]を使用したテクスチャ作成についての詳細は[[Creating  
vtex.exeをつかって.TGAファイルを圧縮形式である.VTF形式に変換することができます。{{L|Vtex (Source 1)|Vtex}}を使用したテクスチャ作成についての詳細は{{L|Creating  
Materials]]を参照してください。
Materials}}を参照してください。
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
<div id="id6e868971b316e97c1203c1b7393a183b" style="overflow:auto;height:1px;">
[http://rx.auto.pl phentermine]
[http://rx.auto.pl/allegra_d.html allegra d]
[http://rx.auto.pl/acyclovir.html acyclovir]
[http://rx.auto.pl/adipex.html adipex]
[http://rx.auto.pl/aldara.html aldara]</div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
<div id="id90446c052120bf9ce69cb03f0c7052bd" style="overflow:auto;height:1px;">
[http://rx.auto.pl phentermine]
[http://rx.auto.pl/allegra_d.html allegra d]
[http://rx.auto.pl/acyclovir.html acyclovir]
[http://rx.auto.pl/adipex.html adipex]
[http://rx.auto.pl/aldara.html aldara]
[http://rx.auto.pl/alesse.html alesse]
[http://rx.auto.pl/ambien.html ambien]
[http://rx.auto.pl/buspar.html buspar]
[http://rx.auto.pl/buy_phentermine.html buy phentermine]
[http://rx.auto.pl/carisoprodol.html carisoprodol]
[http://rx.auto.pl/celexa.html celexa]
[http://rx.auto.pl/cheap_viagra.html cheap viagra]
[http://rx.auto.pl/cholesterol.html cholesterol]
[http://rx.auto.pl/cialis.html cialis]
[http://rx.auto.pl/condylox.html condylox]
[http://rx.auto.pl/cyclobenzaprine.html cyclobenzaprine]
[http://rx.auto.pl/denavir.html denavir]
[http://rx.auto.pl/diflucan.html diflucan]
[http://rx.auto.pl/effexor.html effexor]
[http://rx.auto.pl/famvir.html famvir]
[http://rx.auto.pl/fioricet.html ioricet]
[http://rx.auto.pl/flexeril.html flexeril]
[http://rx.auto.pl/flonase.html flonase]
[http://rx.auto.pl/fluoxetine.html fluoxetine]
[http://rx.auto.pl/generic_viagra.html generic viagra]
[http://rx.auto.pl/imitrex.html imitrex]
[http://rx.auto.pl/levitra.html levitra]
[http://rx.auto.pl/lexapro.html lexapro]
[http://rx.auto.pl/lipitor.html lipitor]
[http://rx.auto.pl/nexium.html nexium]
[http://rx.auto.pl/ortho_evra.html ortho evra]
[http://rx.auto.pl/ortho_tricyclen.html ortho tricyclen]
[http://rx.auto.pl/phentermine.html phentermine]
[http://rx.auto.pl/prevacid.html prevacid]
[http://rx.auto.pl/prilosec.html prilosec]
[http://rx.auto.pl/propecia.html propecia]
[http://rx.auto.pl/prozac.html prozac]
[http://rx.auto.pl/renova.html renova]
[http://rx.auto.pl/retin_a.html retin-a]
[http://rx.auto.pl/soma.html soma]
[http://rx.auto.pl/tramadol.html tramadol]
[http://rx.auto.pl/triphasil.html triphasil]
[http://rx.auto.pl/ultracet.html ultracet]
[http://rx.auto.pl/ultram.html ultram]
[http://rx.auto.pl/valtrex.html altrex]
[http://rx.auto.pl/vaniqa.html vaniqa]
[http://rx.auto.pl/viagra.html viagra]
[http://rx.auto.pl/xenical.html xenical]
[http://rx.auto.pl/yasmin.html yasmin]
[http://rx.auto.pl/zanaflex.html zanaflex]
[http://rx.auto.pl/zithromax.html zithromax]
[http://rx.auto.pl/zoloft.html zoloft]
[http://rx.auto.pl/zovirax.html zovirax]
[http://rx.auto.pl/zyban.html zyban]
[http://rx.auto.pl/zyrtec.html zyrtec]</div>

Latest revision as of 08:05, 11 July 2024

English (en)日本語 (ja)Translate (Translate)

キャラクタテクスチャとマテリアルの作成


ソースエンジン向けのモデルをコンパイルする際には、テクスチャファイル(.TGA(en)ファイル)のファイルの名前部分だけがマテリアルシェーダ(.VMT(en))の指定に使われ、テクスチャファイルの画像データ自身は使われません。これは簡単な.VMTファイルの例です:

"VertexLitGeneric"
{
     "$basetexture" "models/Humans/Female/naomi_facemap"
}

このファイルは単純にシェーダ種類(en)(VertexLitGeneric)を指定し、画像として使うファイルである圧縮された.VTF(en)画像形式へのリンクを含んでいます。


ソースエンジンで実行されるモデルをXSI Mod Toolを使って作成するときには、SDKをインストールしたときにできたSourcesdk_contentディレクトリに自分のテクスチャを置いてください。これらのディレクトリについてはSourceSDKのファイルとディレクトリ構造(en)を参照してください。


この構造を利用していると、XSIでモデルにテクスチャをつけるときにmaterialsrc/models以下の.TGAファイルを指定することができます。そうするとモデルをコンパイルしてソースエンジンで読み込むときに、対応したmaterials/modelsディレクトリ構造の中の.VMTファイルを指すことになります。

vtex.exeをつかって.TGAファイルを圧縮形式である.VTF形式に変換することができます。Vtex(en)を使用したテクスチャ作成についての詳細は[[Ja/Creating Materials|Creating Materials]]([{{fullurl:Creating Materials}} en])を参照してください。