I thought i would upload a few screenshots of my work with creating patches/surfaces in 3D using both a Bézier and B-Spline solution.
Above is an overview of a simple 3D environment. The blue objects are created using a Bézier based implementation while the other objects use a B-Spline based solution. The lines in yellow represent my control points that are used to create the curves.
The Bézier based implementation is a cubic and also deals with normal values, which you can see in the shading on the image above. These are obtained by doing a standard method of finding the tangents in both directions and then getting the cross product of those two vectors. Higher "t" and "s" values would make the shading look more realistic.
The two B-Spline shapes do not have shading, but as you can see create quads on the patches correctly. The capsule model (in green) was drawing by entering control points myself, showing that any shape could really be drawn with ease as a quick demo of B-Spline curves and its C2 continuity.
I have done much more work in 3D graphics programming (particularly in OpenGL 3) which is more involved in the shading and lighting side of things. Maybe ill share more on some other projects i have done.
No comments:
Post a Comment