Could someone please explain to me, why the below snippet of code fails ?
I'm using this in B3D to load in a pic and read off the heightmap data - but its bringing up the error 'Buffer does not exist - a=ReadPixel(xmap#,ymap#,heightmap)'
Thanks Paul.
heightmap=LoadImage("testh.bmp") offset#=256/225 For y=1 To 255 For x=1 To 255 a=ReadPixel(xmap#,ymap#,heightmap) xmap#=xmap#+offset# Next ymap#=ymap#+offset# xmap#=0 Next
I'm using this in B3D to load in a pic and read off the heightmap data - but its bringing up the error 'Buffer does not exist - a=ReadPixel(xmap#,ymap#,heightmap)'
Thanks Paul.