Jump to content
Sign in to follow this  
RoF

Clutter not working

Recommended Posts

This is most likely something simple (I hope!) but I can't get clutter to work. My mask is just one colour (122, 255, 0). Which is wild grass texture which shows fine but no clutter at all.

 

layers.cfg

class Layers
{
class rof_arran_dirt
{
texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
material = "rof\rof_arran\data\rof_arran_dirt.rvmat";
};
class rof_arran_dry_grass
{
texture = #(rgb,1,1,10)color(0.5,0.5,0.5,1,cdt);
material = "rof\rof_arran\data\rof_arran_dry_grass.rvmat";
};
class rof_arran_forest_pine
{
texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
material = "rof\rof_arran\data\rof_arran_forest_pine.rvmat";
};
class rof_arran_grass_green
{
texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
material = "rof\rof_arran\data\rof_arran_grass_green.rvmat";
};
class rof_arran_soil
{
texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
material = "rof\rof_arran\data\rof_arran_soil.rvmat";
};
class rof_arran_concrete
{
texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
material = "rof\rof_arran\data\rof_arran_concrete.rvmat";
};
class rof_arran_wild_grass
{
texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
material = "rof\rof_arran\data\rof_arran_wild_grass.rvmat";
};
class rof_arran_beach
{
texture = #(rgb,1,1,1)color(0.5,0.5,0.5,1,cdt);
material = "rof\rof_arran\data\rof_arran_beach.rvmat";
};


};

class Legend
{
picture="rof\rof_arran\source\mapLegend.png";
class Colors
{
rof_arran_dirt[]={{255,0,241}};
rof_arran_dry_grass[]={{240,134,0}};
rof_arran_forest_pine[]={{255,218,0}};
rof_arran_grass_green[]={{0,255,0}};
rof_arran_soil[]={{27,15,1}};
rof_arran_concrete[]={{255,0,0}};
rof_arran_wild_grass[]={{122,255,0}};
rof_arran_beach[]={{0,4,255}};
};
};

 

cfgSurfaces.hpp

class CfgSurfaces
{
class Default{};
class Water{};
class GdtConcrete;
class GdtSoil;
class GdtRock;
class GdtDirt;
class GdtDesert;
class GdtGrassDry;
class GdtStony;
class rof_arran_dirt_Surface : GdtDirt
{
files = "rof_arran_dirt_*";
rough = 0.05;
maxSpeedCoef = 0.9;
dust = 0.5;
soundEnviron = "dirt";
character = "empty";
soundHit = "soft_ground";
lucidity = 1;
grassCover = 0.03;
};
class rof_arran_dry_grass_Surface : GdtGrassDry
{
files = "rof_arran_dry_grass_*";
rough = 0.05;
maxSpeedCoef = 0.9;
dust = 0.75;
soundEnviron = "drygrass";
character = "empty";
soundHit = "soft_ground";
lucidity = 2;
grassCover = 0.1;
};
class rof_arran_forest_pine_Surface : GdtGrassDry
{
files = "rof_arran_forest_pine_*";
rough = 0.05;
maxSpeedCoef = 0.8;
dust = 0.4;
soundEnviron = "drygrass";
character = "empty";
soundHit = "soft_ground";
lucidity = 3.5;
grassCover = 0.04;
};
class rof_arran_grass_green_Surface : GdtGrassDry
{
files = "rof_arran_grass_green_*";
rough = 0.05;
maxSpeedCoef = 0.9;
dust = 0.15;
soundEnviron = "grass";
character = "empty";
soundHit = "soft_ground";
lucidity = 4;
grassCover = 0.85;
};
class rof_arran_soil_Surface : GdtDirt
{
files = "rof_arran_soil_*";
rough = 0.05;
maxSpeedCoef = 0.9;
dust = 0.5;
soundEnviron = "dirt";
character = "Empty";
soundHit = "hard_ground";
lucidity = 1;
grassCover = 0.0;
};
class rof_arran_concrete_Surface : GdtRock
{
files = "rof_arran_concrete_*";
rough = 0.05;
maxSpeedCoef = 0.9;
dust = 0.5;
soundEnviron = "Concrete";
character = "Empty";
soundHit = "Concrete";
lucidity = 1;
grassCover = 0.0;
};
class rof_arran_wild_grass_Surface : GdtGrassDry
{
files = "rof_arran_wild_grass_*";
rough = 0.05;
maxSpeedCoef = 0.8;
dust = 0.1;
soundEnviron = "grass";
character = "rof_arran_wild_grass_Character";
soundHit = "soft_ground";
lucidity = 3.5;
grassCover = 0.08;
};

class rof_arran_beach_Surface : GdtDesert
{
files = "rof_arran_beach_*";
rough = 0.05;
maxSpeedCoef = 0.3;
dust = 0.8;
soundEnviron = "sand";
character = "empty";
soundHit = "soft_ground";
lucidity = 3.5;
grassCover = 0.02;
};

};

class CfgSurfaceCharacters
{

class rof_arran_wild_grass_Character
{
probability[] = {
0.40,
0.50
};
names[] = {
"rof_arran_BigFallenBranches_pine",
"rof_arran_GrassGreenGroup"
};
};


};

 

cfgClutter.hpp

class Clutter
{
class rof_arran_BigFallenBranches_pine: DefaultClutter
{
model = "A3\Plants_F\Clutter\c_bigFallenBranches_pine.p3d";
affectedByWind = 0.0;
swLighting = "false";
scaleMin = 0.3;
scaleMax = 0.7;
};
class rof_arran_BigFallenBranches_pine02: DefaultClutter
{
model = "A3\Plants_F\Clutter\c_bigFallenBranches_pine02.p3d";
affectedByWind = 0.0;
swLighting = "false";
scaleMin = 0.3;
scaleMax = 0.7;
};
class rof_arran_BigFallenBranches_pine03: DefaultClutter
{
model = "A3\Plants_F\Clutter\c_bigFallenBranches_pine03.p3d";
affectedByWind = 0.0;
swLighting = "false";
scaleMin = 0.3;
scaleMax = 0.7;
};
class rof_arran_GrassGreenGroup: DefaultClutter
{
model = "A3\plants_f\Clutter\c_StrGrassGreen_group.p3d";
affectedByWind = 0.4;
swLighting = "true";
scaleMin = 0.7;
scaleMax = 0.9;
};
class rof_arran_GrassDry: DefaultClutter
{
model = "A3\plants_f\Clutter\c_StrGrassDry.p3d";
affectedByWind = 0.5;
swLighting = "true";
scaleMin = 0.7;
scaleMax = 0.9;
};
class rof_arran_GrassDryGroup: DefaultClutter
{
model = "A3\plants_f\Clutter\c_StrGrassDry_group.p3d";
affectedByWind = 0.65;
swLighting = "true";
scaleMin = 0.65;
scaleMax = 1.0;
};
class rof_arran_GrassDryMediumGroup: DefaultClutter
{
model = "A3\plants_f\Clutter\c_StrGrassDryMedium_group.p3d";
affectedByWind = 0.7;
swLighting = "true";
scaleMin = 0.8;
scaleMax = 1.0;
};
class rof_arran_WeedBrownTallGroup: DefaultClutter
{
model = "A3\plants_f\Clutter\c_StrWeedBrownTall_group.p3d";
affectedByWind = 0.3;
swLighting = "true";
scaleMin = 0.7;
scaleMax = 1.0;
};
class rof_arran_WeedGreenTall: DefaultClutter
{
model = "A3\plants_f\Clutter\c_StrWeedGreenTall.p3d";
affectedByWind = 0.3;
swLighting = "true";
scaleMin = 0.7;
scaleMax = 1.0;
};
class rof_arran_PlantMullein: DefaultClutter
{
model = "A3\plants_f\Clutter\c_StrPlantMullein.p3d";
affectedByWind = 0.35;
swLighting = "true";
scaleMin = 0.7;
scaleMax = 1.0;
};
class rof_arran_ThistleYellowShrub: DefaultClutter
{
model = "A3\plants_f\Clutter\c_StrThistleYellowShrub.p3d";
affectedByWind = 0.2;
swLighting = "true";
scaleMin = 0.7;
scaleMax = 1.0;
};
class rof_arran_ThistleThornGreen: DefaultClutter
{
model = "A3\plants_f\Clutter\c_Thistle_Thorn_Green.p3d";
affectedByWind = 0.3;
swLighting = "false";
scaleMin = 0.3;
scaleMax = 1.0;
};
class rof_arran_ThistleThornGreenSmall: DefaultClutter
{
model = "A3\plants_f\Clutter\c_Thistle_Thorn_Green.p3d";
affectedByWind = 0.25;
swLighting = "false";
scaleMin = 0.4;
scaleMax = 0.7;
};
class rof_arran_FlowerLowYellow2: DefaultClutter
{
model = "A3\plants_f\Clutter\c_Flower_Low_Yellow2.p3d";
affectedByWind = 0.4;
swLighting = "true";
scaleMin = 0.6;
scaleMax = 1.0;
};

};

 

And the include bit from config.cpp

 

midDetailTexture = "rof\rof_arran\data\rof_arran_middle_mco.paa";
#include "cfgClutter.hpp"
class Names
{
#include "rof_arran.hpp"
};
loadingTexts[] = {
""
};

};
};



class CfgWorldList
{
class rof_arran {};
};
class CfgMissions
{
class Cutscenes
{

};
};



//SURFACES
#include "cfgSurfaces.hpp"

 

It's doing my head in :(

 

Share this post


Link to post
Share on other sites

Do you get any errors when you load the map? Have you tried looking at your RPT file (C:\Users\<userName>\AppData\Local\Arma 3) for errors?

 

I didn't notice anything immediately sticking out. What does rof\rof_arran\data\rof_arran_wild_grass.rvmat look like?

Share this post


Link to post
Share on other sites

Do you get any errors when you load the map? Have you tried looking at your RPT file (C:\Users\<userName>\AppData\Local\Arma 3) for errors?

 

I didn't notice anything immediately sticking out. What does rof\rof_arran\data\rof_arran_wild_grass.rvmat look like?

 

I got it working in the end, not sure how... But think it might have been the rof_arran.grid.000.v4w file. I deleted that and surface image and reimported. Then it started working! But it might have been something else, as I had same problem on a couple of test maps  :wacko: I'm just putting it down to arma being arma tbh lol

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  

×