Welcome, Unregistered.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Prev Previous Post   Next Post Next
Old 18-Jun-2010, 14:50   #1
gjaegy
Junior Member
 
Join Date: Mar 2007
Posts: 68
Default smooth particles + half-size render target

Hi,

I am experiencing an issue due to MSAA, and I am not sure how to properly resolve it.

What I am doing:

- render the scene normal objects using two full size render targets:
- RT_col = color RT
- RT_camZ = camera depth (camera Z)
- resolve RT_camZ to a non-MSAA texture (RT_camZ_no_aa)
- set a 1/2 screen size render-target (RT_col_half)
- bind "RT_camZ_no_aa" as a texture
- render the particle system to this render target, and use the ps load() instruction to sample "RT_camZ_no_aa", compare this with each particle fragment cam_Z_depth (computed by VS and passed to the PS stage) to compute fragment opacity
- finally blit "RT_col_half" on the main full size color RT (RT_col)

this allows me to save some bandwith/fillrate when rendering the particle system.

However, I am experiencing some issues at the edges of the normal objects, see the screenshot below (red sections):



I am not completely sure how I could resolve this, any idea ? I guess this has to do with MSAA, but I have no idea how to properly solve this !!

Thanks for your help !
Greg
gjaegy is offline   Reply With Quote

 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:30.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.