Is there a way to splat more then 4 textures?

alex_dergian

03-05-2006 03:37:52

I thoght this would be simple just change
if (opt->NumMatHeightSplat < 4)
return false;


To

if (opt->NumMatHeightSplat < 20)
return false;


but when i do that it switchs my map back to instent base texture mapping and disables splating alltogether; so is there a way to change the plugin source to have more then 4 splats par map cause 4 is really small and i would like a number grater then 4 more like 20 or 30

OvermindDL1

03-05-2006 04:05:23

As I recall, it is a limitation of the shader, make new shaders to handle more if you want more.

alex_dergian

03-05-2006 04:11:24

How would i go about creating a new shader and would it cut my fps down alot?

tuan kuranes

03-05-2006 10:21:22

splat number depends on Texture Units on the video card.
On a 8 TU card:

- Without shader you can have 4 splat (4 alpha, 4 slpats) per pass. if you want 8 splat, that's 2 pass, 16 is 4 pass... Each pass make it slower.

- With Shader (2 coverage map, 6 splat) per pass, so 12 splat is 2 pass, etc...

20 pass is a bit unrealistic...

You should rather compose images, use small tiles an big heightmaps so that it's not too much blurred.