Jump to content
Sign in to follow this  
Graptik

TerrainBuilder file cannot be opened?

Recommended Posts

I am very new to creating terrains and am following the PMC tutorial.

I have loaded my project into terrain builder but I am getting the following error:

 

Rvmat conf - LayerRvmatCFG.cpp

bool ClayerRvmatCFG::Open( const char*filename - "p:\a3\tut\tut_tutorial_terrain\data\tut_grass_green.rvmat" )

Source file cannot be opened...

 

The contents of my layers.cfg file are:

 

class Layers
{
    class tut_grass_green
    {
        texture = "";
        material = "tut\tut_tutorial_terrain\data\tut_grass_green.rvmat";
    };
};
 
class Legend
{
    picture = "maplegend.png";
 
    class Colors
    {
        tut_grass_green[] = {{ 230, 230, 120 }};
    };
};

 

The contents of my Rvmat file are:

 

ambient[] = { 1, 1, 1, 1 };
diffuse[] = { 1, 1, 1, 1 };
forcedDiffuse[] = { 0.02, 0.02, 0.02, 1 };
specular[] = { 0, 0, 0, 0 };
specularPower = 1;
emmisive[] = { 0, 0, 0, 0 };
 
PixelShaderID = "NormalMapDiffuse";
VertexShaderID = "NormalMapDiffuseAlpha";
 
class Stage1
{
    texture = "a3\map_data\gdt_grass_green_nopx.paa";
    uvSource = "tex";
    class uvTransform
    {
        aside[] = { 10, 0, 0 };
        up[]    = { 0, 10, 0 };
        dir[]   = { 0, 0, 10 };
        pos[]   = { 0, 0, 0 };
    };
};
 
class Stage2
{
    texture = "a3\map_data\gdt_grass_green_co.paa";
    uvSource = "tex";
    class uvTransform
    {
        aside[] = { 10, 0, 0 };
        up[]    = { 0, 10, 0 };
        dir[]   = { 0, 0, 10 };
        pos[]   = { 0, 0, 0 };
    };
};

 

I would be very grateful for any help.

Share this post


Link to post
Share on other sites

Just wanted to add an update - I have the same issue using the source files for someone else's project. The project loads into TerrainBuilder but then gives an error saying the layers.cfg files cannot be loaded/opened for write operation. This is a completely dfifferent layers.cfg file on a completely different project so I am thinking this is an issue with my TerrainBuilder or my P drive. Any help is appreciated.

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  

×