Jump to content
  • Advertisement
Sign in to follow this  
zonozz

Tutorial From RasterTek, Question about Down Sampling

This topic is 1324 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 everbody:

 

I'm doing the Blur in DirectX11 tutorial which is from previous website called RasterTek (Now it seems has been shutdown).

I've some trouble about down sampling and two types bluring (Horizontal & Vertical). I use a little window for monitoring if the "render to texture"'s result is correct. I have some pictures you may interested in. I don't know whether it is a correct look or not. Could you guys give me some ideas?

 

 

The small window shows a downsampling result from the last stage.

[attachment=24131:DownSampling.bmp]

 

The small window shows a horizontal blured result from the last stage

[attachment=24132:Horizontal.bmp]

 

Thank you guys.

Edited by zonozz

Share this post


Link to post
Share on other sites
Advertisement

uh... you don't really give us a lot to go on. What exactly are you trying to do? What is the problem you're experiencing?

 

From what I can tell, it looks like you're trying to create a screen shot texture of the current window and are rendering it as a quad. You say something about blurring, though it looks like you're doing it manually?

One option is to take a screenshot of the current buffer, apply it to a texture, and then scale the texture down. This has the downside in that it consumes a lot more video memory, but does the blurring on the graphics card.

The other option is to dynamically create a smaller texture. The process is similar to the method above, but you'd want to apply "super sampling" to your original scene based on the resolution of your target texture size. You pretty much map a pixel from your target texture to your original scene. If the target resolution is smaller than the original scene, you should have overlap of more than one pixel from the original scene. You take the collection of these overlapped pixels and average all of the RGB values into a final pixel color result. This is done manually on the CPU, so it can be a bit more expensive.

Share this post


Link to post
Share on other sites

uh... you don't really give us a lot to go on. What exactly are you trying to do? What is the problem you're experiencing?

 

From what I can tell, it looks like you're trying to create a screen shot texture of the current window and are rendering it as a quad. You say something about blurring, though it looks like you're doing it manually?

One option is to take a screenshot of the current buffer, apply it to a texture, and then scale the texture down. This has the downside in that it consumes a lot more video memory, but does the blurring on the graphics card.

The other option is to dynamically create a smaller texture. The process is similar to the method above, but you'd want to apply "super sampling" to your original scene based on the resolution of your target texture size. You pretty much map a pixel from your target texture to your original scene. If the target resolution is smaller than the original scene, you should have overlap of more than one pixel from the original scene. You take the collection of these overlapped pixels and average all of the RGB values into a final pixel color result. This is done manually on the CPU, so it can be a bit more expensive.

Hi, sorry, I will make sense about it.

 

I try to scale the texture down, but the result of the texture were looked weird. I used a smaller texture ( screenwidth / 2, screenheight / 2 ) for scaling down. but finally ,I got 1 of 4 , a part of original texture (I mean I got only left-top part of the original texture, not the whole scene). I don't know how to fix it in DirectX 11, because the scaling down procedure was totally handled by DirectX.

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!