Help with spline end caps.

Discuss Scenery Creations.
Post Reply
User avatar
Marky7890
Site Admin
Posts: 1473
Joined: Sun Dec 12, 2010 1:57 pm
Trainz Version: TRS2019
Trainz Build: 90945
Author KUID: 179051
Location: Near Penryn, Cornwall
Contact:

Help with spline end caps.

Post by Marky7890 »

Hi all.

So I am making an industrial style canopy to go over tracks and join to buildings in spline form for flexible length. I am wondering is it possible for the end cap to be inside the main mesh rather than on the outside? As I can only seem to get it on the outside, I am hoping to just have the end triangle of the canopy as the cap rather than having to build an additional roof and side wall section too.

Thanks,
Mark
clam1952
Forum Veteran
Posts: 1528
Joined: Sun Dec 12, 2010 3:16 pm
Trainz Version: TRS22
Trainz Build: 116243
Author KUID: 425700
Location: Crewe, Cheshire, UK

Re: Help with spline end caps.

Post by clam1952 »

You can actually leave out the endcaps if it's just to go between buildings, they won't be seen anyway. For things like a viaduct spline I ignored end caps and made the abutments as trackside assets and just drop over the track at the ends. My hedges have no endcaps either.

I just use a config along these lines.

Code: Select all

mesh-table
{
  track-lod0
  {
    mesh                                "default.im"
  }
}

track
{
  mesh-length                           6
  adjust-cross-section-to-ground        0
  
  track-lod-tree
  {
    mesh                                "track-lod0"
  }
}
Cheers

Malc

Member of Trainz Carriage and Wagon Works
http://www.trainz-carriage-wagon-works.com/
User avatar
Marky7890
Site Admin
Posts: 1473
Joined: Sun Dec 12, 2010 1:57 pm
Trainz Version: TRS2019
Trainz Build: 90945
Author KUID: 179051
Location: Near Penryn, Cornwall
Contact:

Re: Help with spline end caps.

Post by Marky7890 »

I mean the track and canopy will be alongside the buildings so end triangles are needed at the ends of the canopy.
clam1952
Forum Veteran
Posts: 1528
Joined: Sun Dec 12, 2010 3:16 pm
Trainz Version: TRS22
Trainz Build: 116243
Author KUID: 425700
Location: Crewe, Cheshire, UK

Re: Help with spline end caps.

Post by clam1952 »

Ah misunderstood there,

Try this make the endcaps as 2 planes one on zero and other at the end of the spline mesh, use a size 0.001 for the endcaps, that should work OK, just tried it here.
Cheers

Malc

Member of Trainz Carriage and Wagon Works
http://www.trainz-carriage-wagon-works.com/
Post Reply