Jump to content
Sign in to follow this  
ronhillultra

Generating layer problem... can someone please help

Recommended Posts

sorry to jump in here chaps [new user] but im really having trubs with terrain making.

all im after is just to get a heightfield and google sat image [or ordinance survey] in game.

my latest attempt is using global mapper.

1. imported the heightfield in terrainbuilder in xyz format.

2. imported the ordinance survey map in tiff.

3. done all the easting northing stuff...200000...0

4. generated folders and layers.cfg

now when I try to generate layers I get 'zero layers in layers.cfg. error.

if I can get help past this stage and get this basic image in game then I can go for masks,objects :)

by the way, this is just a small tile, area im trying here! lol

any help greatly appreciated.

jim.

Share this post


Link to post
Share on other sites
1. imported the heightfield in terrainbuilder in xyz format.

2. imported the ordinance survey map in tiff.

3. done all the easting northing stuff...200000...0

4. generated folders and layers.cfg

now when I try to generate layers I get 'zero layers in layers.cfg. error.

Did you add appropriate groundtextures and rvmats in "projectfolder\data" and path Layers.cfg to those rvmats?

(The built-in TerrainBuilder "auto config and layers.cfg maker" option doesn't work properly, and in any case produces "VBS2"-style output... You need to manually add A3-compatible files for these items yourself...

See Jakerods Sample Tutorial for examples of both files (Though at the Layers generation in TB stage it's really only Layers.cfg and those groundtextures/rvmats you need to worry about...

B

Share this post


Link to post
Share on other sites

thanx for reply.

no I didn't add any textures/rvmats as I didn't think I needed them as I want to actually project the streetmap lol.

just had a quick look at jakerods tute..rvmat stuff looks a bit complicated :( I was hoping to start textures later.

Share this post


Link to post
Share on other sites

Call me stupid but I have exactly the same problem and I don't know why..

directories2_zps924fd835.jpg

error2_zps93fd034a.jpg

error3_zps32603ffc.jpg

This is my layers.cfg

  class Layers
 { 
 class gdt_strbeach 
 { 
 texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt); 
 material = "newmap\newmap\data\gdt_strbeach.rvmat"; 
 }; 
 class gdt_strgreengrass 
 { 
 texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt); 
 material = "newmap\newmap\data\gdt_strgreengrass.rvmat"; 
 }; 
 class gdt_stony 
 { 
 texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt); 
 material = "newmap\newmap\data\gdt_stony.rvmat"; 
 }; 
 class gdt_strconcrete 
 { 
 texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt); 
 material = "newmap\newmap\data\gdt_strconcrete.rvmat"; 
 }; 
 }; 

 class Legend
 { 
 picture = "newmap\newmap\source\maplegend.png"; 
 class Colors 
 { 
 gdt_strbeach [] = {{230, 230} 120}; 
 gdt_strgreengrass [] = {{50, 160, 50}}; 
 gdt_stony [] = {{0, 100, 250}}; 
 gdt_strconcrete [] = {{170, 70, 170}}; 
 }; 
 }; 

Any help is much appreciated! Thanks guys.

Edited by ViciousCircularity
Added pics

Share this post


Link to post
Share on other sites

error = {{230, 230} 120};

should be = {{230, 230, 120}};

Also issue as Texture should be i belive your .paa example:-

texture = "xx\data\xxx_strdeepsea_co.paa";

Share this post


Link to post
Share on other sites

Thanks, I changed the code to this and i'm still getting same error.

  class Layers
 { 
 class gdt_strbeach 
 { 
 texture = "newmap\newmap\data\gdt_strbeach_co.paa"; 
 material = "newmap\newmap\data\gdt_strbeach.rvmat"; 
 }; 
 class gdt_strgreengrass 
 { 
 texture = "newmap\newmap\data\gdt_strgreengrass_co.paa"; 
 material = "newmap\newmap\data\gdt_strgreengrass.rvmat"; 
 }; 
 class gdt_stony 
 { 
 texture = "newmap\newmap\data\gdt_stony_co.paa"; 
 material = "newmap\newmap\data\gdt_stony.rvmat"; 
 }; 
 class gdt_strconcrete 
 { 
 texture = "newmap\newmap\data\gdt_strconcrete_co.paa"; 
 material = "newmap\newmap\data\gdt_strconcrete.rvmat"; 
 }; 
 }; 

 class Legend
 { 
 picture = "newmap\newmap\source\maplegend.png"; 
 class Colors 
 { 
 gdt_strbeach [] = {{230, 230, 120}}; 
 gdt_strgreengrass [] = {{50, 160, 50}}; 
 gdt_stony [] = {{0, 100, 250}}; 
 gdt_strconcrete [] = {{170, 70, 170}}; 
 }; 
 }; 

Share this post


Link to post
Share on other sites
Yes, the image I posted 2 posts back shows my data directory with the rvmats etc.

How about your path?

"newmap\newmap\data\gdt_strconcrete_co.paa";

I would expect just

"newmap\data\gdt_strconcrete_co.paa";

Also you can change

texture path for each class to

texture = "";

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×