Download as a PDF
Transcript
CHAPTER 4. DESIGN AND IMPLEMENTATION (a) Graph of Body Shape 13 (b) Hawk Fish Figure 4.1: Body Shape for the Hawk fish (a) Angel Fish Figure 4.2: Body Shape for the Angel fish which implements a sine curve. We elected to use this function as it approximates the body shape of a large number of fish. There are many different types of fish body shapes and we want to allow the VRFish to be easily extended to incorporate more of them. For example one can see the body shape for the Hawk and Angel fish. The graph in Figure 4.1 could be used in order to get the shape for the Hawk fish, similarly the graph in Figure 4.2 to achieve the top half of the body for the Angel fish. One could use a cubic spline interpolation [2] to approximate the curve of the shape of the body and to create additional subclasses of FishShapeFunction class. This would allow a wider variety of different body shapes to be created using VRFish, within the same environment. We feel that by implementing one, it is sufficient for proof of concept. The user specifies two values which control the level of detail of the fish. The two values, which we will called BodySections and CircleSections, control how many points are used in the cre-