Yes, Heres a piece of my code:
format = bmap_lock(blendmaph,0);
y=0;
x=0;
while(y<40)
{
while(x<40)
{
temp=(heightmap[((x)*400)+y]/255)*100;
pixel = pixel_for_vec(vector(temp,temp,temp),100,format);
pixel_to_bmap(blendmaph,x,y,pixel);
x+=1;
}
x=0;
y+=1;
}
bmap_unlock(blendmaph);
This is run just before applying the material effect to my terrain. The blendmap is a tga file. I have checked that it actually works by setting the bmap up as a panel and it does what I want it to do, but there is no difference as blendmap in effect.