How to load a texture in ppm format in DX11?

Started by
1 comment, last by pnt1614 10 years, 8 months ago

I am trying to load mesh in obj format in DX11, and there is a problem with loading ppm texture. I have tried to use D3DX11CreateShaderResourceViewFromFile function to load but it failed. Is there anybody knows how to solve it?

Please, help me. Thanks

Advertisement

I found some examples of loading such a file:

Documented: http://netpbm.sourceforge.net/doc/ppm.html

Example: http://www.cse.unr.edu/~bebis/CS308/Code/RGB/ReadImage.cpp

-MIGI0027

FastCall22: "I want to make the distinction that my laptop is a whore-box that connects to different network"

Blog about... stuff (GDNet, WordPress): www.gamedev.net/blog/1882-the-cuboid-zone/, cuboidzone.wordpress.com/

Thank Migi0027, ppm format is not supported from DX10, Therefore, I have just used photoshop to convert it into another format like bmp or jpg.

This topic is closed to new replies.

Advertisement