   Lookup texture file creation
  Hi All,Can anyone tell me how to create a texture file for lookup table purpose? Is there any tool or source code in DirectX available?Thanks a lot.Simon   
  You can create a texture using Device::CreateTexture (using the SYSMEM pool should do). After that, you can LockRect it to access the raw data, and write the values you want to the texture. When you're done, you can save it to a file using D3DXSaveTextureToFile.Hope this helps   ;Quote:Original post by sirobYou can create a texture using Device::CreateTexture (using the SYSMEM pool should do). After that, you can LockRect it to access the raw data, and write the values you want to the texture. When you're done, you can save it to a file using D3DXSaveTextureToFile.Hope this helpsThanks!   ;  D3DXFillTexture() and D3DXFillTextureTX() are also useful if you can't be bothered with all the plumbing surrounding a LockRect() call. Although note that this route probably isn't a good idea if you need specific bit-level control over the results...hthJack   