Planetside Software Forums

General => Terragen Discussion => Topic started by: digitalguru on August 24, 2019, 03:09:47 PM

Title: Tex coord from XYZ
Post by: digitalguru on August 24, 2019, 03:09:47 PM
Hopefully this is a basic question for more experienced TG users :)

I'm using a vector displacement map for a terrain which in parts has very steep vertical sides to it. Trying out some textures and they were very stretched, so I put a Tex Coord from XYZ in before and it fixes it nicely. But the vector displacement feeds into the first compute terrain and Ithought that was supposed to do the job? (along with computing normals etc) Quite happy with the result, just wondering why....
texture stretched:
texture_stretched.jpg
texture fixed:
texture_fixed.jpg
node tree:
tex_coords.jpg
Title: Re: Tex coord from XYZ
Post by: Matt on August 24, 2019, 05:01:59 PM
If the textures coordinates are different between Compute Terrain and Tex Coords From XYZ, I think the difference is caused by the patch size. A smaller patch size should make them more similar. Does that work?
Title: Re: Tex coord from XYZ
Post by: digitalguru on August 24, 2019, 05:42:57 PM
Yes, taking it down to 0.1 - I did try it before but didn't go that low.
Title: Re: Tex coord from XYZ
Post by: digitalguru on August 25, 2019, 07:21:53 AM
Mmm... taking down the patch size to fix the stretching does strange things to the displacement ( getting cracks in the surface ) - replaced it with a compute nomal and tex coords xyz and that seems to work