Sign in to follow this  
neviton

[.net] SetLevelOfDetail don't work

Recommended Posts

neviton    122
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
turnpast    1011
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
neviton    122

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
MikeyO    100
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this