Re: [Plib-devel] texture support for ssgLoadOBJ
Brought to you by:
sjbaker
From: Wolfram K. <w_...@rz...> - 2000-04-04 20:04:46
|
Dave wrote: > >> - I had a texture with a size that is not a power of two. >> plib complained (map is not a power-of-two in size) >> and exits the program! >i'll track that down if you want to send me the texture Lets first decide what we want :-). I think most or all graphics cards want to have texture-sizes that are a power of two. So, internally, we should only have such textures. I see two ways to deal with this: - Dont load wrong textures, give an error-message, go on loading everything else. - Resample the texture when loading. This, of course, slows loading the texture. Therefore, authors (of games or whatever) should resample their textures once in a paint-program anyway. If we go this way, I want a dialog saying "this is not a nice texture, if you want to go on using it or even distribute it, resample it". It is surprising how uniformed people can be, even if they create textures professionally. For a long time, we had monochrome textures with a size of, for example 118x112 pixels :-(. So, our program was used with the hand brake on :-(. (German idiom, translated into English. I dont know whether there is an English one). Bye bye, Wolfram Kuss. |