Jump to content

DDS won't load as pixmap


SpiderPig
 Share

Go to solution Solved by Josh,

Recommended Posts

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

Link to comment
Share on other sites

  • Solution

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).

  • Thanks 1

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...