Jump to content
Sign in to follow this  
Walkero0

Roadshape texture

Recommended Posts

Can anyone explain whats going on here?

There is the same texture on any roadshape and it becomes a different look depending on the sunlight direction.

How can i fix this?

I tried to reduce specularpower in rvmat but still the same result.

 

 

LbHElO3.jpg

 

 

used rvmat:

ambient[]={1,1,1,1};
diffuse[]={1,1,1,1};
forcedDiffuse[]={0,0,0,1};
emmisive[]={0,0,0,1};
specular[]={1,1,1,1};
specularPower=5;
PixelShaderID="NormalMapDetailSpecularMap";
VertexShaderID="NormalMap";
class Stage1
{
	texture="wlk_roads\data\ab1_hw_nohq.paa";
	uvSource="tex";
	class uvTransform
	{
		aside[]={1,0,0};
		up[]={0,1,0};
		dir[]={0,0,0};
		pos[]={0,0,0};
	};
};
class Stage2
{
	texture="#(argb,8,8,3)color(0.5,0.5,0.5,0.5,DT)";
	uvSource="tex";
	class uvTransform
	{
		aside[]={14,0,0};
		up[]={0,14,0};
		dir[]={0,0,0};
		pos[]={0,0,0};
	};
};
class Stage3
{
	texture="#(argb,8,8,3)color(1.0,0.0,1.0,1.0,SM)";
	uvSource="tex";
	class uvTransform
	{
		aside[]={1,0,0};
		up[]={0,1,0};
		dir[]={0,0,0};
		pos[]={0,0,0};
	};
};

 

Share this post


Link to post
Share on other sites

You have a decal somewhere near it, A3 puddle decal is known for doing this. Delete it and road will fix itself

Share this post


Link to post
Share on other sites

for temporary fix i disabled material file in roadslib.cfg.

but i don't have any decals near it. only trees and roads:

 

5UPuVT7

 

I don't have any puddle or water decal object on my map.

Share this post


Link to post
Share on other sites

Oh just had a thought, can you post your map sampler settings. Cell size etc

 

Also how many surfaces do you export surface mask with?

Share this post


Link to post
Share on other sites

Woah there! 😄 32 cell!! eek

 

Ok got a number of things going on here, that way too high a cell size, also texture layer needs to be min 4 x cell size. But its best to keep it as close to 40 x 40 as you can get it.

Which you did but... your cell size is way too high, you would have had all sorts of issues with AI walking through buildings.

 

So you need to clear your "layers" folder of all files, I also strongly recommend you delete mapName.grid.000.v4w. As that gets corrupted easy when changing samplers. (don't worry it gets remade when you export layers)

Step by step:

1. In TB do file > export > terrain (use .asc). This will export any changes you have done with buldozer.

2. Delete any old imported heightmap from rasters in TB.

3. Import your terrain that you exported in step 1.

4. In map Samplers change it to this

   Grid 4096

   Cell 4

   Leave your other settings you had them correct, make sure texture layer is as close to 40 x 40 as you can get it

5. On Processing tab click "rebuild terrain", this will changed your terrain to new correct settings.

6. Export your surfaces and mask with 6 materials, or 5 if you use a normal map. Don't use 4 as it's broke.

7 Done! roads should show better now, and you can now edit your terrain every 4m, instead of 32m!!!

Share this post


Link to post
Share on other sites

i try..

Step2:

how can i delete imported heightmap?

it won't let me:

EILjrRr.png

 

 

i got it i need the raster on top to delete

Share this post


Link to post
Share on other sites

yep, the indented one is the one TB \ buldozer uses. That's why I said to export terrain first.

Once you hit rebuild terrain, you can even delete the imported one as it isn't used by TB / buldozer at all

Share this post


Link to post
Share on other sites

That grid update worked very well. thank you!

But roads still have shimmer from different angle:

SlSAbzY.png

Share this post


Link to post
Share on other sites

hmm try using a A3 road rvmat in P:\a3\roads_f\Roads\data

 

maybe your normal is too strong or something

Share this post


Link to post
Share on other sites

already tried a normal with high and low transparecy with no difference in the result. thx for your help!

Share this post


Link to post
Share on other sites

You might want to ask on the Arma Discord, way more people on there to help

Share this post


Link to post
Share on other sites

I experienced an issue during your grid update.

I can't pack my project anymore.

Only did your steps for grid update, packed project with pboproject--> works

Then i saw all bridge objects were moved and corrected their height-> packing failed

I rollbacked the project, and that happend twice.

Error in PboProject:

Generic error or premature EOF

Packing fails on ending of crunch and its very annoying

 

Cannot figure out the reason.

 

Logs:

https://cloud.walk3r.info/index.php/s/SN68jbr2QzzqLPX

 

 

 

New Sampler settings:

 

fIqVffH.png

 

P drive & mikero tools should be ok. I can pack old releases. I rollbacked project twice.

I'm creating a new Virtualmaschine with new P drive right now for testing.

 

 

I also moved the new heightfield.asc on top of rasters and i didn't know if this is right

Do i need to export the terrain again when i make Terrain Manipulation changes to it?

 

Share this post


Link to post
Share on other sites

Did you export a fresh .wrp?

 

Make sure you are using latest mikero tools https://mikero.bytex.digital/Downloads

The version before had a nasty error with certain hightmaps.

 

If you are using latest version, try hiding all object layers in TB, then export a fresh wrp so there is 0 objects used. Pack the terrain, if it works, then its a object causing the issue

Share this post


Link to post
Share on other sites

setted up fresh p drive and latest mikero tools.

after correcting bridge height and their street, it fail. I always export wrp.

Trying right now....

 

Share this post


Link to post
Share on other sites

Yeah pbo has to be under 2gb.

 

saved\wlk_lokino_001.v4d etc

 

You need to save you project into the source folder, source folder doesn't get packed into the pbo. So any files you don't want in the pbo move them out of there or into source.

For your TB project just do "save as" and save it in source or some other folder on your pc.

I use P:\source_files\map_name, you only need the .wrp and textures etc in the map folder

Share this post


Link to post
Share on other sites

my normal sat file suffix:

 

CiCq8Ry.png

 

i should change to nohq i think

Share this post


Link to post
Share on other sites

_nomp is not used by Arma, just leave it blank TB will add the correct name itself

Share this post


Link to post
Share on other sites

another issue: i cannot export Shapes to imagery because the shapefiles are moved now.

how can i fix that?

Share this post


Link to post
Share on other sites
11 hours ago, Walkero0 said:

another issue: i cannot export Shapes to imagery because the shapefiles are moved now.

how can i fix that?

 

What do you mean moved?

When you re saved project, TB will have moved them for you to the new location.

Share this post


Link to post
Share on other sites

I copied the saved folder into the source folder and loaded project from there.

Deleted the old one.

Shapefiles are in new folder and exporting shapes fail.

You need to change ProjectDirecoty in Terraibuilder-->Tools-->Preferences-->User Settings-->Path to the new location:

eKpPncH.png

 

Share this post


Link to post
Share on other sites

I wouldn't of copied it, all sorts of stuff could go wrong. That's why I said do File > Save As, as its re saves everything correct.

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  

×