Hi,
When i use set object normals it seems to only apply to 2 of my many polygons leaving the rest look unshaded any suggestions why?
Dave
for x = 2 to width
for y = 2 to depth
if (islandpoints(x,y)>-1 and islandpoints(x+1,y)>-1 and islandpoints(x,y+1)>-1)
counter = counter + 1
make object plain counter,1,1
lock vertexdata for limb counter,0
set vertexdata position 0,x*5-centerX,-islandpoints(x,y),y*5-centerZ
set vertexdata position 1,(x+1)*5-centerX,-islandpoints(x+1,y),y*5-centerZ
set vertexdata position 2,x*5-centerX,-islandpoints(x,y+1),(y+1)*5-centerZ
unlock vertexdata
set object normals counter
endif
if (islandpoints(x,y)>-1 and islandpoints(x-1,y)>-1 and islandpoints(x,y-1)>-1)
counter = counter + 1
make object plain counter,1,1
lock vertexdata for limb counter,0
set vertexdata position 0,x*5-centerX,-islandpoints(x,y),y*5-centerZ
set vertexdata position 1,(x-1)*5-centerX,-islandpoints(x-1,y),y*5-centerZ
set vertexdata position 2,x*5-centerX,-islandpoints(x,y-1),(y-1)*5-centerZ
unlock vertexdata
set object normals counter
endif
next y
next x