snake terrestrial locomotion synthesis in 3d virtual environments

Download Snake terrestrial locomotion synthesis in 3D virtual environments

Post on 14-Jul-2016

214 views

Category:

Documents

1 download

Embed Size (px)

TRANSCRIPT

  • Visual Comput (2006) 22: 562576DOI 10.1007/s00371-006-0035-1 O R I G I N A L A R T I C L E

    Costas PanagiotakisGeorgios Tziritas

    Snake terrestrial locomotion synthesis in 3Dvirtual environments

    Published online: 12 July 2006 Springer-Verlag 2006

    C. Panagiotakis () G. TziritasComputer Science Department, Universityof Crete,Greece, P.O. Box 2208{cpanag, tziritas}@csd.uoc.gr

    Abstract We present a methodfor a 3D snake model constructionand terrestrial snake locomotionsynthesis in 3D virtual environmentsusing image sequences. The snakeskeleton is extracted and partitionedinto equal segments using a newiterative algorithm for solving theequipartition problem. This methodis applied to 3D model constructionand at the motion analysis stage.Concerning the snake motion, thesnake orientation is controlled bya path planning method. An anima-tion synthesis algorithm, based ona physical motion model and tracking

    data from image sequences, describesthe snakes velocity and skeletonshape transitions. Moreover, theproposed motion planning algorithmallows a large number of skeletonshapes, providing a general methodfor aperiodic motion sequences syn-thesis in any motion graph. Finally,the snake locomotion is adaptedto the 3D local ground, while itsbehavior can be easily controlled bythe model parameters yielding theappropriate realistic animations.

    Keywords Snake motion modeling Graph exploration Snake animation

    1 Introduction

    The analysis of image sequences containing moving an-imals in order to create a 3D model of the animal andits physical motion is a difficult problem because of theunpredictable and complicated (most of the time) animalmotion. On the other hand, there are many techniques andmethods in character modeling. We can distinguish themin canned animation from motion capture data and numer-ical procedural techniques such as inverse kinematics [11].Canned animations are more expressive, but less inter-active than numerical procedural techniques, which oftenappear as robotic creatures and require parameter tuningby hand.

    Motion capturing can be performed by means ofimage analysis. Ramanan and Forsyth [23] present a sys-tem that builds appearance models of animals fromimage sequences. Many systems use direct motion cap-ture technology [5] having high accuracy on tracking tar-

    gets. Motion graphs [15] constructed from motion capturedata generate different styles of locomotion by build-ing walks on the graph. The motion graph consists bothof pieces of original motion and automatically gener-ated transitions. Our motion planning algorithm is ex-ecuted in a similar graph. The computer vision basedtechniques in specific environments can also give highaccuracy tracking data using predefined 2D [22] or 3Dmodels [26], or without using explicit shape models [25].One of the first attempts to reconstruct animal motionfrom videos was Wilhelms work [29]. Deformable con-tours (snakes) are used to extract the 2D motion ofeach limbs contour in a video sequence of a runninghorse. However, the active contours methods are verysensitive to noise and have parameters that are diffi-cult to tune. Favreau et al. present a 3D animal mo-tion reconstruction method from segmented video ob-jects [6]. The user provides the object pose in somekey frames and the other poses are computed usinginterpolation.

  • Snake terrestrial locomotion synthesis in 3D virtual environments 563

    In robotics, a lot of work has been done on the con-struction of snake-like robots with elegant and flexiblemotion, which can move in two or three dimensions [4, 24,27]. Usually, these robots have many degrees of freedomin order to achieve the flexibility of the real snake and theirmotion is periodic. Snake-like robots can move in rugged,sandy, terrestrial environments, such as rough or muddyterrains, where wheeled mechanisms are not effective.

    To date, a lot of work has been done in 3D animal mod-eling. A 3D animal model and its texture mapping can becomputed using images captured from specific views anda predefined animal model. This methodology has beenapplied successfully in snake, lizard and goat 3D modelconstruction [21]. A.J. Ijspeert [9] designed the 3D modelof a salamander using neural controllers. Nougaret et al.describe an approach for the design of simple proportionalderivative controllers for dynamic locomotion applying itin fish locomotion [18]. Miller [16] simulates muscle con-tractions of snakes and worms by animating spring ten-sions. In [30] a physics-based method for synthesis of birdflight animations is described. A set of wing-beats is com-puted, which enables a bird to follow a specified trajectory.The most recent works try to model the muscle system ofa character getting realistic results. Morphing techniquescan be applied for creating and controlling the metamor-phosis of two animated and textured models [2]. A lot ofwork has been done on human animation. Albrecht et al.present a deformation algorithm to create hand animationsfrom images using muscle models [1]. Yang et al. simulatea human swimmer attempting to follow a dynamic user-defined target by augmenting cyclic stroke control witha set of pre-specified variations, based on the current stateof the character and its environment [31].

    The motion planning capability in the obstacle avoid-ance problem supports the autonomy of a virtual character.It has been studied using probabilistic roadmap methods(PRM) [13]. Under PRM, a random sample of configura-tion space constructs an accessible point graph (roadmap),which is used to search for a path during the planningstage, yielding good performance. In [7], a motion plan-ning method, based on finite state machines, is used tosolve the path planning problem under dynamic obstacleavoidance for virtual humans without knowledge of theenvironment topology.

    Realistic snake movement depends on the mode of lo-comotion used by the snake. When snakes encounter dif-ferent environments, they are remarkably adept at chang-ing their pattern of movement so that they can propelthemselves effectively. Gray [8] provides a good review ofhis earlier papers, some of which emphasized modeling,while others made direct observations of snake movement.In [10] the first quantitative kinematic analysis of the ma-jor modes of terrestrial snake locomotion using lateralbending of the vertebral column to generate propulsiveforces is presented. In [17] the muscular basis and propul-sive mechanism of terrestrial lateral undulation in gopher

    snakes are examined using patch electrodes. The snakemass center trajectory depends mainly on the snake orien-tation. Thus, depending on exactly how periodic motionis defined, most of the modes of snake locomotion in-volve some sort of periodic motion or repetitive pattern.In both aquatic and terrestrial locomotion, a given point onthe body periodically moves to the left (L) and then to theright (R). During swimming, the frequency of L, R move-ments is constant along the entire length of the snake.During terrestrial lateral undulation, which is the kind ofundulation that we are going to animate, the amplitudeand wavelength of the wave of bending can be variablealong the length of the snake. Thus, the duration of a cycleof L, R movement can be variable, producing aperiodicmotion. During concertina locomotion, snakes moving ata steady speed periodically (at regular time intervals) stop,although the pattern of left and right movement is highlyvariable. As our experiments show, the most impressiveresults are provided when the motion sequence is aperi-odic, since if the snake motion is periodic, the motion willbe predictable. For this reason, the proposed motion plan-ning algorithm obtains aperiodic motion sequences.

    A preliminary version of our work was presentedin [21]. In this paper, motion synthesis has been sig-nificantly improved by adding a model of acting forces,modifying the motion planning algorithm, using mathe-matical models on skeleton shape transitions derived bytracking data from image sequences, adding the snake be-havior control module and by better fitting the snake 3Dshape into the 3D virtual world. The basic purpose of ourwork is to create simple and accurate 3D models and re-alistic animations of terrestrial snakes in any 3D virtualenvironments. We study the curve equipartition problem,whose solution is used in the creation of the 3D model andon motion analysis stage. The proposed snake model co-efficients can be distinguished as those that describe therotation, translation, and scaling of the snake, and as thosethat describe the snakes shape. Moreover, the minimalnumber of proposed snake model coefficients, without ac-curacy loss, provide an easily tuned method that controlsthe snake behavior. Thus, the proposed snake model co-efficients and the motion planning algorithm are the maincontributions of this work.

    The rest of the paper is organized as follows. Section 2presents the proposed method. The experimental resultsare presented in Sect. 3. Finally, in Sect. 4 we summarizeand discuss the results.

    2 Methodology

    2.1 System overview

    The main stages of the proposed method for computing3D snake animations are the following:

  • 564 C. Panagiotakis, G. Tziritas

    Fig. 1. a Snake image, b background image and c extracted snakesilhouette

    Creation of a 3D snake model State graph construction Motion Synthesis

    Initially, a 3D animal model is produced using segmentedimages obtained by background subtraction. For the 3Dmodel construction process, a set of points located on theskeleton of the snake is extracted. These points are here-after called skeleton points. During the motion analysisstage, the skeleton points are tracked through time in thevideo sequence. Then a graph of snake skeleton states iscreated. Each state describes only the snake shape inde-pendent of position

Recommended

View more >