Skip to Main Content
3D Game Engine Design, 2nd Edition
book

3D Game Engine Design, 2nd Edition

by David Eberly
November 2006
Intermediate to advanced content levelIntermediate to advanced
1040 pages
26h 31m
English
CRC Press
Content preview from 3D Game Engine Design, 2nd Edition
12.5 NURBS Rectangle Patches 583
Point BSplineSurface::X (float u, float v)
{
int i0 = Nu.Compute(u), i1 = Nv.Compute(v);
Point result = ZERO;
for (int j0 = i0 - d0; j0 <= i0; j0++)
{
for (int j1 = i1 - d1; j1 <= i1; j1++)
result += Nu.Basis(j0) * Nv.Basis(j1) * P[j0][j1];
}
return result;
}
12.5 NURBS Rectangle Patches
B-spline surface patches are piecewise polynomial functions of two variables. NURBS
surface patches are piecewise rational polynomial functions of two variables. Just as
for curves, the construction involves fitting homogeneous points in one higher di-
mension with a B-spline surface (Y(u, v), w(u, v)), then projecting back to your ap-
plication ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

3D Game Engine Architecture

3D Game Engine Architecture

David Eberly
Blender 3D By Example - Second Edition

Blender 3D By Example - Second Edition

Oscar Baechler, Xury Greer
Computer Graphics

Computer Graphics

Alexey Boreskov, Evgeniy Shikin

Publisher Resources

ISBN: 9781482267303