Jump to content
  • Advertisement
Sign in to follow this  
edwinnie

pointsizes

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

hey guys, juz wondering what would the fragments look like for a vertex which uses point rendering with different pointsizes? for example, a vertex(point) which renders with pointsize 2 could have fragments that covers: 1)like this with 4 fragments? xx xx or 2)like a cross? -x- xxx -x- or 3)like a 8-neightbour splat? xxx xxx xxx thx! edwynn

Share this post


Link to post
Share on other sites
Advertisement
It depends on whether point smoothing is enabled. With smoothing disabled (the default state), it should look like case 1. The width is 2, so the point should be 2x2 pixels.

However, if point smoothing is enabled, which fragments are generated depends not on whether they are within a square centered at the points coordinate, but whether they are within a circle of diameter equal to the point size. In that case, I don't really know for sure, but a combination of case 1 and 2 I would guess (pixels can be "partially" rendered, where the alpha channel represents pixel coverage).

For questions like this, consult the API specification. Page 95, section 3.3, in the OpenGL 2.0 specification described how points should behave.

Share this post


Link to post
Share on other sites
ok i jus have a look at those few pages of the glspec.

jus one other qn:
lets say i got 2 points that have pointsize 3, such that these overall area covered by the 2 points are overlapped for some parts. Would it be the case that fragments that cover the overlapped region, are rasterized twice?

thx!

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!