HowTo/Bridge/casts shadows

From TrainzOnline
< HowTo | Bridge(Difference between revisions)
Jump to: navigation, search
(Created page with " == casts_shadows == '''This is a required tag''' Defines whether or not the shadows are cast. 0 = shadows off 1 = shadows on If shadows are on there needs to be a bridge...")
 
 
(5 intermediate revisions by one user not shown)
Line 14: Line 14:
 
mesh-table
 
mesh-table
 
{
 
{
   default
+
   [[/default/]]
 
   {
 
   {
     mesh                                "bridge.im"
+
     [[/mesh/]]                               "bridge.im"
 
   }
 
   }
 
    
 
    
   initator
+
   [[/initator/]]
 
   {
 
   {
     mesh                                "bridge_start\bridge_start.im"
+
     [[/mesh prev/ |mesh]]                               "bridge_start\bridge_start.im"
 
   }
 
   }
 
    
 
    
  terminator
+
  [[/terminator/]]
 
   {
 
   {
     mesh                                "bridge_end\bridge_end.im"
+
     [[/ mesh next/ | mesh]]                               "bridge_end\bridge_end.im"
 
   }
 
   }
 
    
 
    
   shadow
+
   [[/shadow/]]
 
   {
 
   {
     mesh                                "bridge_shadow\bridge_shadow.im"
+
     [[/mesh/]]                               "bridge_shadow\bridge_shadow.im"
 
   }
 
   }
 
    
 
    
   initiator-shadow
+
   [[/initiator-shadow/]]
 
   {
 
   {
     mesh                                "bridge_start\bridge_start_shadow.im"
+
     [[/mesh prev shadow/ |mesh]]                               "bridge_start\bridge_start_shadow.im"
 
   }
 
   }
 
    
 
    
   terminator-shadow
+
   [[/terminator-shadow/]]
 
   {
 
   {
     mesh                                "bridge_end\bridge_end_shadow.im"
+
     [[/mesh next shadow/ |mesh]]                               "bridge_end\bridge_end_shadow.im"
 
   }
 
   }
 
}
 
}

Latest revision as of 09:35, 10 February 2022

[edit] casts_shadows

This is a required tag

Defines whether or not the shadows are cast.

0 = shadows off

1 = shadows on

If shadows are on there needs to be a bridge_shadow.im model, for the bridge spline model, and the initiator and terminator segments (if they are used). Below is a example of what would be need to be added to the mesh table if you are going to have meshes for the bridge sections -

mesh-table {

 default
 {
   mesh                                "bridge.im"
 }
 
 initator
 {
   mesh                                "bridge_start\bridge_start.im"
 }
 
terminator
 {
    mesh                                "bridge_end\bridge_end.im"
 }
 
 shadow
 {
   mesh                                "bridge_shadow\bridge_shadow.im"
 }
 
 initiator-shadow
 {
   mesh                                "bridge_start\bridge_start_shadow.im"
 }
 
 terminator-shadow
 {
   mesh                                "bridge_end\bridge_end_shadow.im"
 }

}

Personal tools