Original Post
I have a massive texture on disk that I want to load into my program and use in pieces. It is a texture that covers my whole landscape (4096*4096) so I can''t have it in one piece. Does anyone have any suggestions on how I can load it and break it up? The resulting textures should be 256*256.
I tried tackling this problem by saving the file as a .raw file in photoshop and then using basic binary input into a WORD array (16 bit bitmap) and then creating all the D3DTextures, locking their rectangles, and dumping all the image data in but all that came out was garbage. I then tried using windows bitmaps but that was clunky and I still couldn''t get it to work (just turned one shade of brown). The last thing I tried was to use the D3DXLoadTextureFromFile() function, but as I expected it tried to put it all in video memory and just... died. So if anyone has any ideas that could help me out I would be very thankfull.
-Greg