KIND Texture
From TrainzOnline
(Difference between revisions)
(+{{ORP-top}}+{{ORP-bot}} and clarify) |
Builderbob (Talk | contribs) (Rewrite.) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | + | [[KIND Texture]] defines a single texture as an asset that can be referenced from another asset or via scripting. | |
− | + | ||
− | [[KIND Texture]] | + | |
− | + | Making a texture available as an asset may reduce resource requirements where the texture is used by a number of assets, and may assist in maintaining consistency between different variations of the same basic asset. [[KIND Texture-group]] serves a similar function where there are multiple textures associated with a group of assets. | |
− | + | ||
− | + | ||
==Parent Classes== | ==Parent Classes== | ||
* [[KIND TrainzBaseSpec]] | * [[KIND TrainzBaseSpec]] | ||
==Child Classes== | ==Child Classes== | ||
− | * | + | * [[KIND Groundtexture]] |
==Supported Tags== | ==Supported Tags== | ||
− | TBD. | + | The KIND Texture config.txt file supports the following tags. Each tag is shown here with its default value. |
+ | |||
+ | texture <null> | ||
+ | subblend 0 | ||
+ | subrotation 0 | ||
+ | |||
+ | ====texture==== | ||
+ | :Type: [[Texture file]] | ||
+ | :Compulsory: 3.4 | ||
+ | :Default: None | ||
+ | :Description: Name of texture. Note that this is a [[texture file]], not an image file. See example below. | ||
+ | |||
+ | ====subblend==== | ||
+ | :Type: Float | ||
+ | :Compulsory: No | ||
+ | :Default: 0.00 | ||
+ | :Description: ''TBD'' | ||
+ | |||
+ | ====subrotation==== | ||
+ | :Type: Float | ||
+ | :Compulsory: No | ||
+ | :Default: 0.00 | ||
+ | :Description: ''TBD'' | ||
==Example Config.txt== | ==Example Config.txt== | ||
− | + | ||
− | + | kuid <kuid:101046:104687> | |
− | + | username "Corona Red diffuse" | |
− | < | + | kind "texture" |
− | + | trainz-build 3.5 | |
− | + | texture "orange.texture" | |
− | + | category-class "JC" | |
− | + | category-era "1800s" | |
− | + | category-region "AU" | |
− | + | description "A Red corona. | |
− | + | subblend 0.50 | |
− | + | subrotation 45.00 | |
− | + | thumbnails | |
− | + | { | |
− | + | 0 | |
− | + | { | |
− | + | image "$screenshot$.jpg" | |
− | + | width 240 | |
− | + | height 180 | |
− | + | } | |
− | + | } | |
− | + | ||
− | + | The above "texture" tag value 'orange.texture' specifies a [[Texture file]] which contains the information about the image to be used for the texture. | |
− | + | ||
− | + | ==See Also== | |
− | + | * [[KIND Texture-group]] | |
− | + | * [[KIND Groundtexture]] | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | The above "texture" tag specifies a [[Texture file]] | + | |
==Categories== | ==Categories== | ||
[[Category:Asset KIND|Texture]] | [[Category:Asset KIND|Texture]] | ||
[[Category:TBD|Texture]] | [[Category:TBD|Texture]] | ||
− |
Latest revision as of 15:49, 28 April 2019
KIND Texture defines a single texture as an asset that can be referenced from another asset or via scripting.
Making a texture available as an asset may reduce resource requirements where the texture is used by a number of assets, and may assist in maintaining consistency between different variations of the same basic asset. KIND Texture-group serves a similar function where there are multiple textures associated with a group of assets.
Contents |
[edit] Parent Classes
[edit] Child Classes
[edit] Supported Tags
The KIND Texture config.txt file supports the following tags. Each tag is shown here with its default value.
texture <null> subblend 0 subrotation 0
[edit] texture
- Type: Texture file
- Compulsory: 3.4
- Default: None
- Description: Name of texture. Note that this is a texture file, not an image file. See example below.
[edit] subblend
- Type: Float
- Compulsory: No
- Default: 0.00
- Description: TBD
[edit] subrotation
- Type: Float
- Compulsory: No
- Default: 0.00
- Description: TBD
[edit] Example Config.txt
kuid <kuid:101046:104687> username "Corona Red diffuse" kind "texture" trainz-build 3.5 texture "orange.texture" category-class "JC" category-era "1800s" category-region "AU" description "A Red corona. subblend 0.50 subrotation 45.00 thumbnails { 0 { image "$screenshot$.jpg" width 240 height 180 } }
The above "texture" tag value 'orange.texture' specifies a Texture file which contains the information about the image to be used for the texture.