Jump to content
  • Advertisement
Sign in to follow this  
Tasaq

Mipmaps on Windows Phone 8

This topic is 1617 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

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
Advertisement

Please provide more code sample and context, this is really too vague (e.g. "generate mipmaps"? Is it by using DeviceContext.GenerateMips or your own shader using separate texture for each mipmaps or using render target view on mipmaps?...etc.)

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!