SpiderPig Posted July 17 Share Posted July 17 Both of these DDS files, which will load okay as a texture, will not load as a pixmap. LoadPixmap() returns null. EDIT : Okay the DIFF texture needed the ISPCTexComp plugin loaded and it works. But the NORM texture stills fails to load as a pixmap. EDIT : I know what the problem is now. The following code will not load the pixmap because I think loading it as a texture first has marked the file sas in use or something. If this is the cause I think LoadPixmap() needs an error to be printed to the console. auto mat = LoadMaterial("MyMat.mat"); //<- contains Stone_DIFF.dds in slot 0 auto pixmap = LoadPixmap("Stone_DIFF.dds"); //<- returns null Stone.zip Quote Link to comment Share on other sites More sharing options...
Josh Posted July 17 Share Posted July 17 Interesting. Pixmaps and textures are actually supposed to be stored in separate caches... Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Solution Josh Posted July 17 Solution Share Posted July 17 Okay, the system was using the same STL map internally for both pixmaps and textures, which it should not do. The fix will be included in the first build of 0.9.7 that goes up. (Soon). 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.