chriscalef Posted April 16, 2020 Share Posted April 16, 2020 Just wanted to drop a comment here, in case anyone else ever runs across this issue, it took me a second to figure out what the problem was. The symptom: I was trying to import a set of building models which all reference the same huge texture, in order to reduce load on the graphics card. Great strategy, but when I tried to load it in Torque I got a hard crash every time. On debugging, I got a message about mipLevels greater than maxMipLevels.The solution: after searching around a while I found the following in gfx/bitmap/gBitmap.h: c_maxMipLevels = 13; The comments indicate that 13 takes you up to 4000 pixels or so, but my situation requires 16384 pixels high, so I jacked that up to 15 and now it works.I don't know if there are any negative side effects to doing this, does it allocate a giant buffer somewhere for every image now, or something terrible like that? I haven't noticed any ill effects so far anyway. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.