What is path rendering?

What is path rendering? What is path rendering?

gputechconf.com
from gputechconf.com More from this publisher
13.07.2015 Views

3D Path Rendering DetailsStencil step usesGLfloat slope = -0.05;GLint bias = -1;glPathStencilDepthOffsetNV(slope, bias);glDepthFunc(GL_LESS);glEnable(GL_DEPTH_TEST);Stenciling step usesglPathCoverDepthFuncNV(GL_ALWAYS);ObservationStencil step is testing—but not writing—depthStencil won’t be updated if stencil step fails depth test at a sampleCover step is writing—but not testing—depthCover step doesn’t need depth test because stencil test would only pass if prior stencilstep’s depth test passedTricky, but neat because minimal mode changes involved

Without glPathStencilDepthOffsetBad Things HappenEach tiger is layered 240 pathsWithout the depth offset during the stencil step, all the—essentially co-planar—layers wouldZ-fight as shown belowterrible z-fighting artifacts

3D Path Rendering DetailsStencil step usesGLfloat slope = -0.05;GLint bias = -1;glPathStencilDepthOffsetNV(slope, bias);glDepthFunc(GL_LESS);glEnable(GL_DEPTH_TEST);Stenciling step usesglPathCoverDepthFuncNV(GL_ALWAYS);ObservationStencil step <strong>is</strong> testing—but not writing—depthStencil won’t be updated if stencil step fails depth test at a sampleCover step <strong>is</strong> writing—but not testing—depthCover step doesn’t need depth test because stencil test would only pass if prior stencilstep’s depth test passedTricky, but neat because minimal mode changes involved

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!