• Advertisement
Sign in to follow this  

[.net] SetLevelOfDetail don't work

This topic is 4833 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Please, help-me! In my code, the SetLevelOfDetail, work only whether I load it using TextureLoader.FromFile. If I load a texture with FromBitmap, the SetLevelOfDetail don't work. Why? I'm using DirectX on c#.

Share this post


Link to post
Share on other sites
Advertisement
Everybody seems to have trouble with FromBitmap.

Save your bitmap to a file or memory stream and load it with the methods in TextureLoader.

Share this post


Link to post
Share on other sites

The textures loads normally.
Only the method SetLevelOfDetail doesn´t change the texture´s quality, like happens when loading FromBitmap.

Share this post


Link to post
Share on other sites
Bitmaps only have one level of detail (I believe), if you export a DDS file with multiple levels of detail then they're all in the same file..

Maybe try looking at your texture's levelcount and levelofdetail properties, and try GenerateMipSubLevels(),

Then again, I have heard that D3d will automatically create the other levels.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement