Wang/terrain texture

Tips and discussion about scenery creation for RailWorks.

Wang/terrain texture

Unread postby aksingha » Thu Feb 04, 2016 5:14 am

Hi, following Derek's tutorial on railworksart blog..I have made my own custom terrain texture and it works, but only if I create a new route and choose my route template...but it is not working when I reference the texture to my existing route..I edited the route properties.xml in the content\routes folder...and referenced my newly made terraintexture xml..but as soon as I start my route..all it shows is a black screen and then the game crashes..can anyone please point out the problem..
aksingha
 
Posts: 197
Joined: Thu Apr 10, 2014 9:25 am

Re: Wang/terrain texture

Unread postby wacampbell » Thu Feb 04, 2016 8:51 am

Some thoughts ..

1. Your 'existing route' references a texture slot that is not provided in your 'newly made terraintexture.xml' . Test for this by temporarily renaming your MixMap folder to XMixMap. This disables all terrain painting.

2. Your 'existing route' doesn't include the Provider/Product of the new terraintexture.xml in its object set filter. If this is the case, you can add your PP to the RBlueprintSetPreLoad section of your route's RouteProperties.xml

3. The elevation based texture indexes, eg LowGroundTextureIndex, in your new terraintexture.xml are not pointing to valid texture slots, and your 'existing route' contains those elevations. Test for this by temporarily renaming your Terrain folder to XTerrain. This sets all elevations to 0.

I'll check back if I think of any others.

Wayne
Wayne Campbell
wacampbell
 
Posts: 510
Joined: Tue Sep 27, 2011 12:45 pm
Location: BC, Canada

Re: Wang/terrain texture

Unread postby aksingha » Thu Feb 04, 2016 10:02 am

wacampbell wrote:3. The elevation based texture indexes, eg LowGroundTextureIndex, in your new terraintexture.xml are not pointing to valid texture slots, and your 'existing route' contains those elevations. Test for this by temporarily renaming your Terrain folder to XTerrain. This sets all elevations to 0.

Wayne

Thanks...renaming the terrain folder worked and the ground level with my texture is way below the station/objects...where do I need to make corrections..some advice please
aksingha
 
Posts: 197
Joined: Thu Apr 10, 2014 9:25 am

Re: Wang/terrain texture

Unread postby wacampbell » Thu Feb 04, 2016 10:08 am

At the bottom of your terraintexture.xml, set the following all to 1

<LowGroundTextureIndex d:type="sUInt32">1</LowGroundTextureIndex>
<MidGroundTextureIndex d:type="sUInt32">1</MidGroundTextureIndex>
<HighGroundTextureIndex d:type="sUInt32">1</HighGroundTextureIndex>
<RockTextureIndex d:type="sUInt32">1</RockTextureIndex>

Then see if you can restore your Terrain folder.

EDIT - corrected default value to 1
Last edited by wacampbell on Thu Feb 04, 2016 2:29 pm, edited 1 time in total.
Wayne Campbell
wacampbell
 
Posts: 510
Joined: Tue Sep 27, 2011 12:45 pm
Location: BC, Canada

Re: Wang/terrain texture

Unread postby aksingha » Thu Feb 04, 2016 11:05 am

The game crashes if I restore the terrain folder
aksingha
 
Posts: 197
Joined: Thu Apr 10, 2014 9:25 am

Re: Wang/terrain texture

Unread postby wacampbell » Thu Feb 04, 2016 11:21 am

PM me your terraintextures.bin and I'll check it out.
Wayne Campbell
wacampbell
 
Posts: 510
Joined: Tue Sep 27, 2011 12:45 pm
Location: BC, Canada


Return to Scenery Design

Who is online

Users browsing this forum: No registered users and 1 guest