Generating Closed Shapes with B-Splines

text only
 
progress indicator progress indicator progress indicator progress indicator

In Conclusion

This chapter explained how to subdivide curves for more efficient rendering. As you can see in Figure 6.6, the process can make your curves much more efficient with a minimal loss of visual quality. The technique described here was very basic, but there are many papers and books that highlight different and faster methods . Once you understand the basic ideas, chances are you will find tweaks that directly address your needs.

This chapter concludes the material on simple 2D curves. Here are some of the points to remember:

  • Adaptive subdivision is a method that approximates a curve based on some criteria about the shape of the curve.

  • There are many types of tests that can be used to determine whether a curve should be subdivided at a given point. The method in this chapter measures the distance between the midpoint of a given line segment with the midpoint along that interval and compares it to some tolerance factor.

  • The method described in this chapter supports subdivision based on a maximum number of segments, a tolerance factor, or both. You might want to spend some time experimenting with the parameters to see how the results change.

  • Once you understand this method, a Web search will produce many others. It should be easy to find one that fits your specific needs.

progress indicator progress indicator progress indicator progress indicator


Focus on Curves and Surfaces
Focus On Curves and Surfaces (Focus on Game Development)
ISBN: 159200007X
EAN: 2147483647
Year: 2003
Pages: 104
Authors: Kelly Dempski

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net