FiringSquad: Home of the Hardcore Gamer - Games, Hardware, Reviews and NewsSubmit your own or view users' CPU overclocking results!

  
 Home   News   THE MATRIX   Deals   Hardware   Games   Features   Media   Products   Forums   FS China 
AddThis Social Bookmark Button

Home : Guides : Articles : 3D Basics 2: Anti-Aliasing, RAM, and Z
» Join the Greatest Gaming Community NOW! (It's free)

Already a member? Login
 


Random Gallery >> 
Click to view high-res Image!
Tony Hawk's Project 8 Preview Screenshots [30] (3)


AMD Game Review Writing Contest Rules! (12) by FS-Lyle
The Orange Box Review in 500 Words! [Preliminary #2] (7) by Swatt
The Witcher Review, The Polish RPG that could. (6) by McStu
Round 2 Rules! (20) by FS-Lyle
Guitar Hero 3 - The thing that should not be (UPDATED) (5) by Beefysworld
World in Conflict (PC) Review (6) by Kessandra
Puzzle Quest (PC) Preview (3) by Beefysworld
slugbug's Biostar Entry (0) by slugbug
Civilization IV Review for contest (9) by Joluha
Half Life 2 (Round 2) *runs* (8) by exe3

More Blogs >>




3D Basics 2: Anti-Aliasing, RAM, and Z
August 02, 2001  
Product Info | User Reviews | Article Images(9) | Image Gallery | Comments | Forum Thread
Depth Testing and Buffering

Is that a Z-buffer bug or are you just happy to see me?

The next part of the graphics pipeline determines whether or not the pixel that has just been rendered is actually visible - is it being blocked from view by another object in front of it? Here the depth of the pixel is compared to other pixels that have already been rendered. This can be done by an alpha test or a Z compare.

Every pixel has an x and y coordinate that tells where the pixel rests on-screen. This, however, only works for two dimensions. We render in a 3D world, so a third dimension must be represented by a Z value. Z values are an assigned screen depth for each pixel, with a floating point value falling between 0 and 1. The accuracy of the pixel depth depends on the level of accuracy used in the Z buffer (this is typically 16 or 24-bits, as "32-bit" values often include 8 stencil bits)

After a pixel has been rendered, it must be determined whether or not a pixel is visible. Traditionally, the most accurate way of doing this has been to do a comparison of the Z values. To do this, the Z value of the pixel that has just been rendered is compared against the Z value of any pixel that is in the Z-buffer at the same x and y coordinate of the pixel that is to be written. If the Z value of this new pixel falls behind the values of those currently in the Z-buffer, it would be behind the new pixel, and is thus ignored. However, if this pixel is at a higher level than the other pixel at the same x, y location, it means that the pixel we're working with is in front of the other pixel; a new Z value is written to the buffer, and the new pixels color is written to the back color buffer.

Memory Interface

Video memory typically interfaces with the graphics chip over a 64 or 128-bit internal data bus. The numbers of bits define how wide the data path is, allowing the specified number of bits to be transferred in each clock cycle. Wider data paths are expensive and difficult to implement unfortunately, making paths beyond 128-bits very uncommon. Going wider requires an increase in pin count on graphics chips, which can significantly increase the cost of each chip.

The data bus is extremely important because everything travels across it. This includes texture data when doing texture fetches, Z data for doing Z compares, frame-buffer data for read/writes, and frame data. All of these items require bandwidth, and thus it is important that we have sufficient speed to send this data, as it comprises the totality of the information required to render the final image.

Back! Page 1     Where does video memory come in? Next!
Blog + Share: Digg Del.icio.us Reddit SU furl • More: AddThis Social Bookmark Button
Send This Article to a Friend!  
Table of Contents
  Print Entire Article  

MATRIX CONTENT » RANDOM MEDIA BLOG More Blogs >>
No ratings yet
» Please rate this
I am an AMD AgentRead this Media-Blog entry!» The Bland Addiction: World of Warcraft (17)
by Discobiscuits (62) Talk with this user on their Shout Box (My other blogs) Posted 12 months ago

Sponsored Links
:
[GO]


 Latest Headlines
Valve's Gabe Newell: 'most DRM strategies are just dumb' (6)
Atari hints at new Baldur's Gate, Test Drive games (3)
Xbox 360 outsells PS3 3:1 on Black Friday (5)
The Witcher: Rise of the White Wolf announced for PS3/Xbox 360 (2)
Hitachi to partner with Intel on SSDs (1)
Today's News >>
Today's Siteseeing >>


 Table of Contents


 Quick Fact
While a video card claims to be able to display 16.7 million colors, consider the fact that most monitors can't display more than 3 million pixels.

At 1024x768, you'll never see more than 800,000 colors just based on the pixel count alone.


FiringSquad is powered by... Back to Top Site MapContact UsAdvertise With Us Privacy StatementAbout Us  
News RSSSiteseeing RSSArticle RSS   © 1998-2008 FS Media, Inc. All Rights Reserved