Jump to content
  • Advertisement
Sign in to follow this  
JohnnyCode

super small distant renderables

This topic is 2113 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 have quite a question towards GPU rasterizing mechanizm. Consider a mesh that covers only 1x2 pixels in my render target, but, is consisting of 10000 triangles. How exactly are those two pixels shaded if every resterized triangle covers only 1% of the pixel, an extremly small area? I have heard that GPU, when rasterizing a triangle, it makes sure that only exactly one pixel is written to (in the manner of whole rasterized geometry or a rasterized triangle primitive?). I wonder for this, becouse, I would like to use my own technique of LOD. But not down detailed geometry aproach, but down detailed shader aproach: in case of high fill rate (close to camera) I would compute as much as possible in vertex function, and in oposite extreme, I would do nothing but vertex position transform in vertex function, and fire all routine to pixel function, in case that pixel function will run only twice in case of 1x2 scenario. But this fact is vital towards this idea. So I wonder how rasterizer works in this extreme.

Share this post


Link to post
Share on other sites
Advertisement

A triangle is shaded for a pixel if the rasterization sample point is covered by the triangle. So most of your triangles will never get shaded at all, and those 1 or 2 pixel will alias like hell as the sample point rapidly shifts from one triangle to another due to camera or object movement.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!