CCG/Example: Bogey

From TrainzOnline
< CCG
Jump to: navigation, search

Contents

Bogey

Directory Structure

A typical asset of this kind has the following File\Directory Structure:

CCG bogey dir1.jpg


Required Files

config.txt - The config file for the asset.

thumb.jpg' - The thumbnail image for this asset. A 240x180 jpeg.

37_bogey.lm.txt - Level of Detail (or `LOD') file. See the section on LOD meshes for more information.

37_bogey_vlow.im - Lowest quality LOD mesh.

37_bogey_low.im - Low quality LOD mesh.

37_bogey_med.im - Medium quality LOD mesh

37_bogey.im - The bogey mesh file.

anim.kin - The bogey animation file - not listed in the config.txt, a kind bogey knows to reference this file.

37bogie2.tga, 37bogie4.tga, 37bogie.tga, envmap1.tga - Various texture files.

37bogie2.texture.txt, 37bogie4.texture.txt, 37bogie.texture.txt, envmap1.texture.txt - Various texture.txt files.

See the section on Texture.txt files for more information.


Config.txt File Listing

kuid                <kuid:56113:1228>
trainz-build        2.9
category-class	     "ZB"
username            "testBogey"
kind                "bogey"
direct-drive        0
category-region     "00"
category-era        "2000s;2010s"
description         "Test Bogey. This bogey is based on the Class 37 Green bogey
                       and is oriented to be used on that particular vehicle."
  
mesh-table
{
  default
    {
       mesh         "37_bogey.lm"
       auto-create  1
    }
}
   
thumbnails
{
  0
    {
      image         "thumb.jpg"
      width         240
      height        180
    }
}

LOD lm.txt File Listing

This file is created in a text editor outside of CCP. It is important to use the correct capitalisation and brackets in this file.

37_bogey.lm.txt
version 1.0
   
  offset = 0.01;
  calcPoint = center;
  multiplier = 1.0;
  animationCutOff = 0.00;
   
  mesh("0.1")
  { 
    name="37_bogey_vlow.im";
  }
  mesh("0.2")
  {
    name="37_bogey_low.im";
  }
  mesh("0.3")
  {
    name=”37_bogey_med.im”
  }
  mesh(“1.0”)
  {
    name=”37_bogey.im”
  }


Download this asset This asset is available for download from the TRS2006 website at: http://files.auran.com/TRS2006/Downloads/Example_Download.zip


Return to CCG Index

Content Creator's Guide

Kind Examples

Personal tools