seems i have broken something, i can't understand why this is happening, my code for loading raw heightmaps is as follows:
Code:
SetLength(vertices, F_Vertices);
iVertices := 0;
AssignFile(f, filename);
Reset(f, 1);
// Loop across and up
for iy := 0 to F_VertsY-1 do begin
for ix := 0 to F_VertsX-1 do begin
BlockRead(f, height, 1);
// Create the verts
vertices[iVertices].x := (ix*tScale);
vertices[iVertices].y := height*tHeight;
vertices[iVertices].z := (iy*tScale);
vertices[iVertices].u := ix;
vertices[iVertices].v := iy;
Inc(iVertices);
end;
end;
CloseFile(f);
I have not changed anything since last night regarding heightmaps, but today it is doing some weird sheeat
screenshot >
any ideas?
Never mind, seems my heightmap was corrupt
new screenshot >
Bookmarks