CCG/Example: Displacements
From TrainzOnline
		< CCG(Difference between revisions)
		
		
|  (New page: ==Displacements==  <font color="red">This is obsolete...  New data needed here as displacements are now 'normal' assets..</font>  This is a special Kind that is not created in CCP as it do...) | Builderbob  (Talk | contribs)  m (Link) | ||
| (2 intermediate revisions by one user not shown) | |||
| Line 1: | Line 1: | ||
| ==Displacements== | ==Displacements== | ||
| − | + | Displacements are now normal Trainz Assets with an image file and a config.txt file. The images are usually 256x256 grey scale 8 bit bitmap files, such as Displacement01.bmp below. | |
| + | |||
| + | [[Image:CCG_Displacement01.jpg]] | ||
| + | |||
| + | Note the new [[KIND Groundbrush]] kind for this asset. | ||
| + | |||
| + | '''Config.txt''' | ||
| + |  kuid                                    <kuid:401543:1013> | ||
| + |  kind                                    "groundbrush" | ||
| + |  username                                "Displacement01" | ||
| + |  trainz-build                            2.9 | ||
| + |  displacement-bitmap                     "Displacement01.bmp" | ||
| + | |||
| + | =Obsolete Type (pre TS2009)= | ||
| This is a special Kind that is not created in CCP as it does not require a config.txt file. Displacement maps are used to create the differing height/depth and shape of an area of terrain, based on shades of grey in a .bmp file. | This is a special Kind that is not created in CCP as it does not require a config.txt file. Displacement maps are used to create the differing height/depth and shape of an area of terrain, based on shades of grey in a .bmp file. | ||
| Line 10: | Line 23: | ||
| Create the required greyscale file (256 by 256 Greyscale 8bit .bmp file). Place it in the Displacements directory. | Create the required greyscale file (256 by 256 Greyscale 8bit .bmp file). Place it in the Displacements directory. | ||
| − | |||
| − | |||
| − | + | ==Return to CCG Index== | |
| + | [[Content Creator's Guide]] | ||
| − | + | [[CCG/Kind_Examples|Kind Examples]] | |
Latest revision as of 09:22, 24 April 2019
[edit] Displacements
Displacements are now normal Trainz Assets with an image file and a config.txt file. The images are usually 256x256 grey scale 8 bit bitmap files, such as Displacement01.bmp below.
Note the new KIND Groundbrush kind for this asset.
Config.txt
kuid <kuid:401543:1013> kind "groundbrush" username "Displacement01" trainz-build 2.9 displacement-bitmap "Displacement01.bmp"
[edit] Obsolete Type (pre TS2009)
This is a special Kind that is not created in CCP as it does not require a config.txt file. Displacement maps are used to create the differing height/depth and shape of an area of terrain, based on shades of grey in a .bmp file.
For a default installation the Displacements directory is found in:
C:\Program Files\Auran\TC\World\Custom\displacements
Create the required greyscale file (256 by 256 Greyscale 8bit .bmp file). Place it in the Displacements directory.

