im trying to Resize a Terrain Texture after painting colors on it.
i will show you 2 pictures and i think you will understand what the problem is.
before resizing , the textured applied to the terrain that acts as a mask texture which i paint on is set to 512x512

after painting , i want a higher resulotion for the final result
so i resize the ImageId using 2 new Bitmaps
sorry for the DarkGDK example as i use DarkGDK and not DarkBasicPro but the commands are the same in everyway so dont feel ohh its DarkGDK, the commands are the same.
void ResizeBitmap(int ImgId,int NewImgId,int NewWidth,int NewHeight)
{
int b = GetFreeBitmap();
dbCreateBitmap(b,dbGetImageWidth(ImgId),dbGetImageHeight(ImgId));
dbSetCurrentBitmap(b);
dbPasteImage(ImgId,0,0);
int c = GetFreeBitmap();
dbCreateBitmap(c,NewWidth,NewHeight);
dbSetCurrentBitmap(c);
dbCopyBitmap(b,c);
dbGetImage(NewImgId,0,0,NewWidth,NewHeight);
dbDeleteBitmap(b);
dbDeleteBitmap(c);
dbSetCurrentBitmap(0);
}
so after resizing it to 1024x1024 and texturing using
dbTextureObject(terrain,ResizedImage);
it only covers quarter of the terrain.. is there anyway to fix this?
if you can help it will be very kind of you.
ty for your time, Nadav.