八月份什么星座| 1970年五行属什么| 我们为什么会笑| 3月7号是什么星座| 木辛读什么| 蜂王浆什么时间吃最好| 耄耋是什么意思| 什么争什么斗| 虫草什么时候吃最好| 为什么午觉睡醒后头疼| 吃什么能提高免疫力| 几月初几是叫什么历| 孔雀鱼吃什么食物| 喝醋有什么好处| 肝异常一般是什么情况| 什么是优质蛋白| 靖五行属性是什么| 吐司是什么意思| 西南属什么五行| 后面的牙齿叫什么| 什么是乙肝病毒携带者| 什么口袋| 此生不换什么意思| 衣服最小码是什么字母| 7月7号是什么星座| 放线菌是什么| 粽子叶子是什么叶子| 护肝养肝吃什么好| 息肉是什么病| 肌肉一跳一跳什么原因| 零八年属什么| 意志力什么意思| 曹操的父亲叫什么名字| 没有力气是什么原因| 深沉是什么意思| gln是什么氨基酸| 民警是干什么的| 女人梦见掉头发是什么征兆| 陈皮是什么水果的皮| 盗汗和自汗有什么区别| 什么的珊瑚| 8月20号什么星座| 特殊门诊是什么意思| 甲功四项是什么检查项目| 液基薄层细胞制片术是检查什么的| 继发性高血压什么意思| 尾插是什么| 什么的恐龙| 普高和职高有什么区别| 这个表情什么意思| 有恙是什么意思| 九三年属鸡是什么命| 石榴石是什么材质| est是什么意思| 鹅什么时候开始下蛋| 杨花是什么| 吃什么可以增强记忆力| 租赁费计入什么科目| 胃胀不舒服吃什么药| 滴虫性阴炎有什么症状表现| 孩子注意力不集中是什么原因| 双侧肾盂无分离是什么意思| 不显怀的人有什么特点| 7.1是什么星座| 为什么会尿道感染| 便秘吃什么润肠通便| a型血为什么叫贵族血| 林俊杰为什么不结婚| 妇科检查清洁度3度什么意思| 心率过快挂什么科| 吃什么能增强记忆力| 总胆固醇高有什么危害| 唇炎吃什么药| 点痣后需要注意什么事项| 手足口吃什么药| 为什么种牙那么贵| 小排畸主要查什么| nap是什么意思| 病原体是什么| smile是什么牌子| 秦五行属什么| 是什么字| 前列腺液是什么| c2是什么| 什么的摇动| 一落千丈是什么生肖| 本色出演是什么意思| 10000mah是什么意思| 社保缴纳基数是什么意思| 腚什么意思| 红班狠疮的早期症状是什么| 悟性高是什么意思| 腋窝淋巴结肿大挂什么科| 无能为力是什么意思| 私处变黑是什么原因| 幼儿睡觉出汗多是什么原因| 激素六项都是查什么| 6月17号是什么星座| 今年72岁属什么生肖| 查肺部挂什么科| 胆囊炎是什么原因引起的| 动脉硬化吃什么药最好| 小孩贫血有什么症状| 什么茶降血压效果最好| 1999年发生了什么事| 发晕是什么原因引起的| 孕晚期吃什么长胎不长肉| 白球比偏低吃什么补| 红白相间是什么意思| 吃什么可以增强抵抗力和免疫力| 日语牙白什么意思| 解脲脲原体阳性是什么| 血常规crp是什么意思| 丝状疣用什么药| 心里紧张吃什么药缓解| 补气血喝什么茶| 原生家庭什么意思| 苹果是什么季节的水果| 痛心疾首的疾是什么意思| 枳是什么意思| 痰培养是检查什么的| 耳朵痒是什么原因引起的| 丧是什么意思| 编者按是什么意思| 121什么意思| 今是什么结构| 想吐头晕是什么原因| 32岁属什么生肖| 什么大叫| 饺子都有什么馅| 是什么原因造成的| 输卵管堵塞有什么样症状| 饕餮是什么| 免疫缺陷是什么意思| 身上经常痒是什么原因| 摩羯座和什么座最配| 胡萝卜不能和什么一起吃| sk是什么牌子| 雌二醇过高是什么原因| 香云纱是什么面料| 父亲节出什么生肖| 阑尾炎吃什么药见效快| 粑粑黑色是什么原因| 什么是bg| 属猴和什么属相相冲| hairy什么意思| 天秤座男生喜欢什么样的女生| 红豆有什么功效| 导盲犬一般是什么品种| 尿毒症吃什么最好| 羊水偏多是什么原因| 肺气肿是什么原因导致的| 回忆杀是什么意思| 什么人不适合做纹绣师| 什么药治痒效果最好| 脾虚喝什么泡水比较好| o型血父母是什么血型| 什么首阔步| 做病理是什么意思| 25分贝相当于什么声音| 胃寒吃什么药最有效| 入职需要准备什么材料| 试管是什么意思| 海洋中最大的动物是什么| 锡兵是什么意思| 巨蟹女跟什么星座最配| 进重症监护室意味什么| 一直放臭屁是什么原因| 鲁冰花是什么意思| 缺黄体酮会有什么症状| 灵芝长什么样子| 缠头是什么意思| 蛇鼠一窝是什么生肖| 婧读什么| 蚊虫叮咬用什么药| 经常不吃晚饭对身体有什么影响| 八段锦是什么| 出家当和尚有什么要求| 迷瞪是什么意思| 大便带血丝是什么原因| 肛门被捅后有什么影响| 胆囊切除后对身体有什么影响| 孙子的儿子叫什么| 空气炸锅能做什么| 梦到伟人有什么兆头| 宽宽的什么| 小孩咳嗽吃什么药效果最好| 为什么地球是圆的| 归脾丸治什么病| 贫血吃什么补血效果最好| 副营级是什么军衔| 牙疼吃什么食物能缓解| 梦见自己找工作是什么意思| 什么蔬菜| on是什么牌子| 发烧呕吐是什么原因| 咽喉炎吃什么药能治好| 做脑部ct挂什么科| 梦到死人了有什么兆头| 50年婚姻是什么婚| 什么去疤痕效果最好| 素颜霜是干什么用的| 36是什么码| 武则天原名叫什么| 喝酒手掌发红是什么原因| 解脲脲原体阳性是什么病| 羊的尾巴有什么作用| 毛遂自荐什么意思| 山梨酸钾是什么添加剂| 香港身份证有什么好处| 白事是什么意思| 莲藕炒什么好吃| 正方形纸能折什么| 钓鲤鱼用什么饵料| 苯是什么味道| 大米发霉是什么样子| 慢性荨麻疹吃什么药| 梦见病人好了什么预兆| 什么人容易得心梗| g代表什么| 蚊子喜欢什么| 验孕棒什么时候测比较准| 大姨妈来能吃什么水果| 汕头市花是什么花| 2月12号是什么星座| 胃溃疡吃什么药好| 翻盘是什么意思| 白莲子和红莲子有什么区别| 伤寒现在叫什么病| 辟邪剑谱和葵花宝典有什么关系| 走路腿软没劲是什么原因引起的| 愚者是什么意思| 锌中毒是什么症状| 蜂王浆是什么味道| 泌尿系统感染吃什么药| rio是什么酒| 医保定点医院是什么意思| 母亲节买什么礼物| 党参不能和什么一起吃| 坐月子不能吃什么| 说三道四的意思是什么| 腱鞘炎看什么科| 羊奶粉和牛奶粉有什么区别| 经常感觉饿是什么原因| 血脂稠是什么原因造成的| 女人喝什么茶好减肥| 什么东西含铅| 血氧饱和度是什么| 中成药是什么意思| 大象的耳朵有什么作用| 感冒吃什么消炎药| 血管变窄吃什么能改善| 什么通便效果最快最好| 香港脚是什么意思| 12月10号什么星座| 勒索是什么意思| 淋巴癌有什么症状| 轻微食物中毒吃什么药| 瓜子脸适合什么发型| 70年的狗是什么命| 吃红糖有什么好处和坏处| 桃字五行属什么| 智齿前面一颗牙叫什么| 妇女是什么意思| 百度Jump to content

鼓楼--江苏频道--人民网

From Wikibooks, open books for an open world
百度 佛陀进入涅槃,虽然令弟子们悲痛不已,但是诚如佛陀的教言所说:要佛陀永久住于世间,这是违背法性的自然规则。

 Back to the Top 

logo
Trainz Asset Maintenance and Creation

Trainz Annotated Reference Pages
TOC | BeginningsFun | AM&C | Creation | InBook Refs ORP Refs:  • Index • Containers • Kinds • Tags | Appendixes  • Vers
 Glossary
 HKeys-CM
 HKeys-DVR
 HKeys-SUR
 HKeys-WIN
 Mouse use
 Notations

Main article: Trainz/references/texture.txt file (This page should be merged-to if more detailed, and otherwise rewritten as primer and introduction, both (and firstly) for error fixing and then for simpler forms of content creation.


Scope: This guideline applies to each of the following Trainz type specifications:

KIND Texture, KIND Groundtexture, , , and the thumbnails container.
Related data types: "Texture-variants"_container "Texture-variants" container (asset provides alternative material configurations for the texture to display as seasonal variants.)

 

Description

[edit | edit source]

Trainz Texture files are ASCII text format specification files describing a single texture (per N3V's article names[note 1]) or in common usage, a Trainzer might be referring to the graphics formatted files such a texture.txt file controls. These texture.txt files are not the compressed .texture files which are binary generated as described below, but like the graphics texture images, become one component of a pair of files forcibly married and compacted in a Auran format, the resultant '.texture file' which is constructed by CM when the asset is committed. These are sometimes visible when the asset is opened, especially when it is a new clone.

Texture files have a ".texture.txt" name extension, however when a texture file is specified within a config.txt file, the ".txt" must be omitted, leaving just the ".texture" extension in the tag data value field. (This looks odd and seems counter-intuitive, but to Trainz, '.texture' implies '.texture.txt', and the latter form (which is the Operating System format) is understood when CM manipulates the data, but is not when TrainzUtil, Driver, Railyard, or Surveyor use the committed and processed ready to use data. (TrainzUtil is a background process which does many data base operations commanded by the other Trainz modules.)


  Files with *.texture.txt suffix and extension are used to configure texture behavior in Trainz. These files may also control how textures are processed by Content Manager. These files are located in the same folder as the source texture files, typically .bmp, .tga or .jpg files (and .png's in TANE), and make 'pathspec connection' reference to them. Fixing these pathspecs is often the only tweak a faulty asset requires, as after TS09, more stringent file references were demanded by the software. These texture.txt files are generated automatically by the respective 3D graphics software exporter or importer utilities from the CC's asset source folders but may be edited by hand when specialization of effects they control is required—which is an occasional need in repairing faulty content.

File format

[edit | edit source]

The user-editable *.texture.txt files are ASCII text formatted key-value pairs with the following options. Please note that this format is not the same (despite some similarities) as other text-based formats used by Trainz. Please be aware of the filename character restrictions when naming texture and image files.

Syntax

Each token is specified on a new line. There is no white space on either side of the '=' sign. A empty value is sometimes valid. The syntax is:

<token>=<value>
Example
Primary=WayCoolTexture.tga
Alpha=WayCoolTexture.tga
Tile=st
AlphaHint=masked
Anisotropy=16
MagFilter=linear
MinFilter=linear
MipFilter=linear

(Example only, not recommended settings)


Tokens and Values

[edit | edit source]
Primary=diffusemap.bmp

This tag specifies the filename of the image file representing the color (R, G, B) channels of the texture. Any alpha channel in the image file is ignored. The resultant texture will have a pure white (100%) alpha channel.

Primary, diff Alpha

[edit | edit source]
Primary=diffusemap.jpg
Alpha=diffusemap.bmp

This tag combination specifies the filenames of the image file representing the color (R, G, B) channels of the texture and the image file representing the alpha (A) channel of the texture. The alpha channel image should be grayscale. Neither file should contain an alpha channel.

Primary, same Alpha

[edit | edit source]
Primary=diffusemap.tga
Alpha=diffusemap.tga

This tag combination specifies the filename of a single image file representing the color and alpha (R, G, B, A) channels of the texture. In this case both tags must reference the same filename. The image file must contain an alpha channel.

Compression

[edit | edit source]
Compression=dxt1

This tag forces the usage of a particular texture compression scheme. If omitted, Trainz will choose an appropriate texture compression scheme based on the contents of the supplied image files. If you don't have a specific effect in mind, don't include this tag. Valid options are 'none', 'dxt1', 'dxt3', 'dxt5'. Refer DXT Compression.

NormalMapHint

[edit | edit source]
NormalMapHint=normalmap

The 'NormalMapHint' tag allows the texture to be specified as a normal map. By default, Trainz will assume that your texture is a diffuse map and will apply some processing options which are not appropriate for normal maps. You must specify this option for normal maps. Valid options are 'none' and 'normalmap'.

ModifyMap

[edit | edit source]
ModifyMap=flipgreen

The 'ModifyMap' option allows a texture's green color channel to be flipped. Some programs such as 3ds Max create normal maps with the Y axis facing the opposite way to what is expected by the Trainz shaders. This option can be used to make the bump effect look correct in Trainz. The option is applied by the Content Manager upon Commit. Valid options are 'none' and 'flipgreen'.

AlphaHint

[edit | edit source]
AlphaHint=opaque

The 'AlphaHint' tag allows you to force a particular alpha mode on the texture. Valid options are 'opaque' (meaning that the alpha channel is unused and effectively pure white), 'semitransparent' (meaning that the alpha channel is a grayscale blend) and 'masked' (meaning that the alpha channel is a pure black&white bitmap.) If omitted, Trainz will supply an appropriate value for this tag based on the Alpha channel. Specifying this option prevents slight discoloration in a mask texture from triggering the blended alpha path.

Anisotropy

[edit | edit source]
Anisotropy=1

Anisotropic sampling quality. The higher the number, the better the visual quality but at significant performance cost. Where texture quality is needed specify a higher value. Trainz currently defaults to Very High anisotropic filtering, which is then subsequently restricted by the in-game Anisotropy slider. Valid values are integers "1" (default) - No anisotropic filtering, "2" - Low, "4" - Medium, "8" - High, and "16" - Very High

MagFilter

[edit | edit source]
MagFilter=linear

Controls the filtering style for texel magnification. This is used when a texel is displayed at larger than real size (eg. a single texel is represented with more than a single pixel.) Valid settings for the magnification filter are 'nearest', 'linear', and 'default'. Trainz currently defaults to linear interpolation. Selecting 'nearest' will use a nearest-neighbor filtering mode which results in a "pixelated" output.

MinFilter

[edit | edit source]
MinFilter=linear

Controls the filtering style for texel minification. This is used when a texel is displayed at smaller than real size (eg. a single pixel is represented with more than a single texel.) Valid settings for the minification filter are 'nearest', 'linear', and 'default'. Trainz currently defaults to linear interpolation. Selecting 'nearest' will use a quantized filtering mode which results in a "noisy" output.

MipFilter

[edit | edit source]
MipFilter=linear

Controls the filtering style for texture mipmap selection. Mipmaps are used during minification to help prevent the moire effect pattern. The cost of using mipmaps is that the resultant image will blur slightly. The benefits of using mipmaps are reduced quantization noise and reduced memory footprint (since the higher detail mip levels can be unloaded when not in use.) Valid settings for the mip filter are 'nearest', 'linear', 'default' and 'none'. Trainz currently defaults to trilinear interpolation. Selecting 'nearest' will cause the hardware to select a single mipmap for each pixel, which results in visible banding at mipmap boundaries. Selecting 'none' will disable mipmaps, resulting in lower performance, higher memory usage, and "noisy" output.


Tile=st

Tiling refers to the ability for texture coordinates outside the range of (0.0 .. 1.0) to be treated as valid coordinates on an infinitely tiled texture. With tiling active, coordinates which pass the right/bottom side of the texture effectively wrap back onto the left/top side, and so on. Valid options include 's' (tile horizontally), 't' (tile vertically), 'st' (tile both horizontally and vertically), and 'none' (do not tile the image).


Comments & Suggestions

[edit | edit source]

The token Hint is intended for internal use only, but has been used and abused by well meaning people since its discovery. Anisotropy should be used to improve texture quality, and MipFilter=none should be used to disable mip mapping only for interface textures.


Image formats

[edit | edit source]

The following image formats are acceptable as source data for the Texture file:

  • Targa (.tga) files. Targa is a lossless image format with optional compression and optional alpha channel.
  • JPEG (.jpg) files. JPEG is a lossy image compression format with no alpha channel support.
  • Windows Bitmap (.bmp) files. BMP is a lossless image format with no compression and optional alpha channel.

These images in association with the appropriate *.texture.txt file are used by Content Manager to create the Auran/N3V binary textures (*.texture files, no other extension!) that are used in the Trainz simulators. The N3V binary textures use and contain image LOD information.

  • All built-in content has only N3V binary textures that cannot be opened with normal imaging software. Appropriate tools to view these can be found on the page.

Any image larger than 2048x2048 will be resized to that maximum, so there is no point in using images larger than that in the asset. It is preferable to resize your images using your preferred resampling option in your favorite image editing program than to allow Content Manager to resize the image. In practice, images should be no larger than needed to provide the appropriate level of detail at the closest typical viewing distance. Uniform-color images should be as small as possible - certainly no larger than 16x16.

Notes on Image Editors

[edit | edit source]
  • The Targa Exporter plugin shipped with some older versions of Adobe Photoshop is broken and silently corrupts or discards alpha channels; a free update is available which resolves this issue.
  • Some image editors do not support alpha channels on BMP files.


.txt file extension

[edit | edit source]

Texture files have a ".texture.txt" name extension, however when a texture file is specified within a config.txt file or similar, the ".txt" must be omitted, leaving the ".texture" extension. For example, a texture file named grass.texture.txt is specified in a kind groundtexture config file using the syntax texture "grass.texture".

Use of image files in place of texture files

[edit | edit source]

Trainz has historically supported using any supported image file type in place of a Texture file. This technique has obvious limitations and is no longer recommended.


Notes

[edit | edit source]
  1. The TrainzOnline wiki has both the titles 'Texture File' and 'texure.txt file' as topic titles, and an edit made by Chief programmer Chris Bergman indicates he'd prefer the two pages be merged. In truth, the information in both is pretty much identical, so we replicate it herein on the texture.txt file page and just note the dual location of source 'authority' exists, and has done so for a very long time.
为什么指甲会凹凸不平 呕吐发烧吃什么药 ahc是韩国什么档次 什么叫根管治疗 茅台酒为什么这么贵
世事无常是什么意思 韭菜有什么功效 什么是阴虚火旺 牙龈肿痛吃什么药最好 缺铁性贫血吃什么水果
毓婷是什么 ysy是什么意思 膝关节置换后最怕什么 11月9号是什么星座 西加一横读什么
怀孕吃什么菜最有营养 柔和是什么意思 2000属什么生肖 感觉是什么意思 水能是什么
乌鸡卷是什么肉做的hcv9jop3ns9r.cn 干净的反义词是什么520myf.com 糖化血红蛋白是什么hcv9jop0ns0r.cn 梳子断了有什么预兆hcv9jop6ns2r.cn sherry是什么意思hcv9jop5ns2r.cn
南明为什么打不过清朝hcv8jop6ns4r.cn 家里来猫是什么征兆hcv8jop4ns9r.cn 国色天香是什么生肖hcv9jop1ns2r.cn 晚饭吃什么hcv8jop5ns9r.cn 三岁看大七岁看老什么意思hcv7jop9ns6r.cn
腰疼看什么科hcv9jop2ns3r.cn 波罗蜜多什么意思hcv9jop6ns7r.cn 姑息什么意思hcv8jop6ns4r.cn 1218是什么星座hcv7jop9ns8r.cn 蓝莓树长什么样hcv9jop2ns9r.cn
拉屎擦屁股纸上有血什么原因hcv8jop2ns4r.cn luxury什么牌子hcv7jop6ns8r.cn m代表什么单位xscnpatent.com OK镜适合什么年龄hcv8jop8ns6r.cn 三黄鸡是什么鸡hcv7jop7ns2r.cn
百度