Max Texture Size?
BlitzMax Forums/MiniB3D Module/Max Texture Size?
| ||
What's the maximum texture size supported by miniB3D for b3d models?! |
| ||
It's not MiniB3D that limits the texture size, it's the user's graphic-card. Therefore, some computers will have different limits (it's just as varied as there are different cards out there). I have no statistic to back up my claims, but I presume it's usually 4096. You have two ways to go: - pick a size small enough so it 'should' encompass a large range of computers -> 1024² (not such a good choice) - query the hardware for the max. texture size (much better) For option 2, check THardwareInfo.BMX inside the INC directory of the MiniB3D mod folder. If you just want a quick 'n' dirty test to see your computer's capabitilities, do this. Open THardwareInfo.BMX, and paste these 3 lines at the beginning of that code: GLGraphics 640,480 THardwareInfo.GetInfo() THardwareInfo.DisplayInfo() 'THardwareInfo type declaration lies below... '[...] Run the code and look in the Output tab. PS: For option 2 to work, you'll need some sort of multiple-size textures in your game distribution, so you can load the appropriate sized ones. Perhaps you can also have a big texture and at load-time down-sample it or load the mipmap level with the biggest size the user's hardware can handle. |