Sign in to follow this  
Tasaq

Mipmaps on Windows Phone 8

Recommended Posts

Tasaq    1530

Hi,

 

I encountered a problem while porting application to WP8. I am using SharpDX and use down and upsampling method for bluring. The problem is that when I generate mipmaps for render targets I get black (reading from texture returns 0) results, but when I have single level everything works fine, but quality is just terrible. I heard it's a bug in WP8, can someone confirm this? If it's a bug, do you have any neat workaround or am I stuck with 'manual' downsampling?

Edited by Tasaq

Share this post


Link to post
Share on other sites
Tasaq    1530

Oh, I just noticed that I didn't menton I am using toolkit, I am using RenderTarged2D.New:
This one works

RenderTarget2D rTarget = RenderTarget2D.New(GraphicsDevice, textureWidth, textureHeight, PixelFormat.B8G8R8A8.UNorm);

And this one doesn't

RenderTarget2D rTarget = RenderTarget2D.New(GraphicsDevice, textureWidth, textureHeight, MipMapCount.Auto, PixelFormat.B8G8R8A8.UNorm);

I also want to point out that the code works correctly on PC version. This problem only occurs in WIndows Phone 8.

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