Method and apparatus for generating and interfacing with a haptic virtual reality environment

Information

  • Patent Grant
  • 7319466
  • Patent Number
    7,319,466
  • Date Filed
    Thursday, May 18, 2000
    24 years ago
  • Date Issued
    Tuesday, January 15, 2008
    16 years ago
Abstract
A method for generating a haptic interactive representation including the steps of defining a haptic interaction space and building a hierarchical construct, for use within the haptic interaction space, using a plurality of underlying constructs. In one embodiment the method includes determining the forces to be applied to a user by generating a haptic interactive, sensing a position of a user in real space, determining a haptic interface location in the haptic interaction space in response to the position of the user in real space and determining whether the virtual object collides with the haptic interface location. The invention also relates to a method for interacting with a haptic interactive representation. The method includes creating a haptic process having the haptic interactive representation, associating a callback with the haptic process, connecting to a second process which interacts with the haptic process and associating the callback which is associated with the haptic process with the second process. The method further includes requesting the callback by the second process, and returning, by the haptic process through the callback to the second process, at least one parameter associated with the haptic interactive representation.
Description
FIELD OF THE INVENTION

The invention relates generally to methods for defining a virtual reality environment and more specifically to methods for haptically creating and manipulating objects within a virtual reality environment.


BACKGROUND OF THE INVENTION

Virtual Reality (VR) is an artificial environment constructed by a computer which permits the user to interact with that environment as if the user were actually immersed in the environment. Early VR devices permitted the user to see three dimensional (3D) depictions of an artificial environment and to move within that environment. Thus a VR flight simulator incorporating such a device would allow a user to see a 3D view of the ground, which changed both as the virtual aircraft passed over the virtual ground and as the user's eyes looked in different directions. What the user saw in such a simulator is what a pilot would see when actually flying an aircraft.


The reality of the VR environment was enhanced by the ability of a user to manipulate virtual objects within the virtual environment using hand motions and gestures. Special gloves and devices were developed which permitted the user to interact with the virtual objects within the virtual environment. In such a system the user typically saw an image of his or her hand within the virtual environment and was able to determine where in the virtual environment the user's hand was relative to the virtual object to be manipulated. Moving the glove or device resulted in a corresponding movement of the hand image in the virtual environment. Thus a user wearing the special gloves or using the special device would cause virtual objects to move, simply by moving the glove in such a way that the virtual object is touched by the image of the hand in the virtual environment.


The addition of force generators to the gloves or devices further enhanced the reality of VR by providing to the user with a tactual response to interacting with virtual objects within the virtual environment. For example a user moving such a force generation enhanced device in a direction such that the image of the device moved toward a virtual wall in the virtual environment, would experience a stopping force when the image of the device in the virtual environment collided with the virtual wall. Such tactual sensation creating devices, or haptic devices, thus provided a stimulus to another of the user's senses.


Although the early VR devices were oriented to providing realistic graphical interfaces, the progress in haptic VR devices has made it possible to define a haptic VR environment which may be completely independent of the graphical VR environment. As such, haptic VR environments may now be constructed which respond to manipulation by the user in the way that the early graphical VR environments responded to the visual actions of a user.


This ability to define a haptic VR space independently of a graphical, or other space, provides a greater degree of flexibility in the design and creation of such VR environments. The present invention seeks to further add to this flexibility.


SUMMARY OF THE INVENTION

The invention relates to a method for generating a haptic interactive representation. The method includes defining a haptic interaction space and building a hierarchical construct for use within the haptic interaction space. In one embodiment the step of building the hierarchical construct for use within the haptic interaction space includes the step of creating a hierarchical representation of an object using a plurality of underlying constructs. The hierarchical representation of the object may be created in the haptic interaction space or outside of the haptic interaction space and then placed into the haptic interaction space.


The underlying constructs include geometric representations, of the same or dissimilar form. Such representations include primitive objects, polygonal objects, algebraic objects, constructed solid geometry objects, algebraic surface representations and volumetric object representations. Other underlying constructs include constructs associated with translation parameters, rotation parameters, scaling parameters, mass parameters, velocity parameters, acceleration parameters, angular velocity parameters, angular acceleration parameters, friction parameters, texture parameters, viscosity parameters, and compliance parameters.


In one embodiment, the invention includes a method for determining forces to be applied to a user through a haptic interface. The method includes generating a haptic interactive representation including a virtual object in a haptic interaction space, sensing a position of a user in real space, determining a haptic interface location in the haptic interaction space in response to the position of the user in real space and determining whether the virtual object collides with the haptic interface location. If the virtual object does not collide with the haptic interface location, a force to be applied to the user in real space in response to the haptic interface location is calculated. If the virtual object collides with the haptic interface location, a proposed surface contact point for the virtual object based on the haptic interface location is determined and a force to be applied to the user in real space, in response to the proposed surface contact point, is calculated.


In another embodiment the method includes determining forces to be applied to a user through a haptic interface by generating a haptic interactive representation including at least two virtual objects in a haptic interaction space, sensing a position of a user in real space, determining a current haptic interface location in the haptic interaction space in response to the position of the user in real space and determining whether each of the virtual objects collides with the haptic interface location. If none of the virtual objects collide with the haptic interface location, a force to be applied to the user in real space in response to the haptic interface location is calculated. If only one of the virtual objects collides with the haptic interface location, a proposed surface contact point for that virtual object colliding with the haptic interface location is determined, and a force to be applied to the user in real space, in response to the proposed surface contact point, is calculated. If more than one of the virtual objects collide with the haptic interface location, a proposed surface contact point for each of the virtual objects colliding with said haptic interface location is determined to thereby define a plurality of proposed surface contact points. A force to be applied to the user in real space, in response to the plurality of proposed surface contact points, is then calculated.


The invention also relates to a method for interacting with a haptic process. The method includes the steps of creating a haptic process having the haptic interactive representation, associating a callback with the haptic process, connecting to a second process which interacts with the haptic process and associating the callback, which is associated with the haptic process, with the second process. The method further includes requesting the callback by the second process, and returning, by the haptic process through the callback to the second process, at least one parameter associated with the haptic interactive representation.


In one embodiment the step of creating a haptic process includes the steps of defining a haptic interaction space, and building a hierarchical construct for use within the haptic interaction space. In another embodiment the step of connecting to the second process includes the steps of establishing a communications link between the haptic process and the second process, and permitting the haptic process and the second process to communicate over the communications link.


In one embodiment the communications link is a computer network and the second process is active on a node different from the haptic process. In one embodiment the second process is a graphics process and the at least one parameter includes graphical data. In another embodiment the second process is a second haptic interactive process and the at least one parameter is comprises haptic data.





BRIEF DESCRIPTION OF THE DRAWINGS

This invention is pointed out with particularity in the appended claims. The above and further advantages of this invention may be better understood by referring to the following description taken in conjunction with the accompanying drawings, in which:



FIG. 1 is a flowchart representation of an embodiment of a process for generating a haptic interactive representation;



FIG. 1A is a flowchart representation of an embodiment of a process for creating a hierarchical representation of an object;



FIG. 2 is a pictorial view of an embodiment of a hierarchical construct for use within a haptic interaction space;



FIG. 3 is a flowchart representation of an embodiment of a process for determining a feedback force to be applied to a user through a haptic interface when the haptic interactive representation contains only one virtual object;



FIG. 4 is a flowchart representation of an embodiment of a process for determining a feedback force to be applied to a user through a haptic interface when the haptic interactive representation contains a plurality of virtual objects;



FIG. 5 is a flowchart representation of an embodiment of a process for determining a feedback force to be a applied to a user through a haptic interface when more than one virtual object collides with the haptic interface location;



FIG. 6 is a pictorial view of a surface of a virtual object and a surface contact point located on the surface;



FIG. 7 is a flowchart representation of an embodiment of a process for determining a friction force to be applied to a user through a haptic interface;



FIG. 8 is a flowchart representation of an embodiment of a process for determining the initial proposed surface contact points for algebraic objects contained in the haptic interactive representation;



FIG. 9 is a flowchart representation of an embodiment of a process for determining proposed surface contact points for algebraic objects contained within the haptic interactive representation after initial contact with the virtual objects;



FIG. 9A is a pictorial view of an algebraic surface and a haptic interface point which has penetrated the algebraic surface;



FIG. 10A is a flowchart representation of an embodiment of a process for determining proposed surface contact points for polygonal objects contained within the haptic interactive representation;



FIG. 10B is a flowchart representation of an embodiment of a process for determining a proposed surface contact point for a polygonal object when the haptic interface is not located solely within one facet of the polygonal object;



FIG. 11 is a flowchart representation of another embodiment of a process for determining a feedback force to be applied to a user through a haptic interface;



FIG. 11A is a flowchart representation continuing the steps of the process of FIG. 11;



FIG. 12A is a pictorial view of a virtual object colliding with a haptic interface;



FIG. 12B is a pictorial view of two virtual objects colliding with a haptic interface;



FIG. 13 is a block diagram of an embodiment of multiple processes communicating with a haptic process using callback mechanism;



FIG. 14 is a flow diagram of a method of establishing and using a callback to communicate between a haptic process and another process;



FIG. 15 is a flowchart representation of another embodiment of a process for determining the reaction forces to be applied to a user in real space through a haptic interface device;



FIG. 16 is a flow diagram of one embodiment of the invention; and



FIG. 17 is a flowchart representation of an embodiment of a process for generating a virtual reality environment.





Like reference characters in the respective drawn figures indicate corresponding parts.


DETAILED DESCRIPTION OF THE INVENTION

In brief overview, the flowchart of FIG. 1 shows the steps performed by one embodiment of the method of the present invention for generating a haptic interactive representation. As used herein, a “haptic interactive representation” is defined as a computer generated virtual environment which can be explored by a user through the sense of touch. First, (step 10) a haptic rendering application defines a haptic interaction space. As used herein, “haptic rendering” is defined as the creation of a virtual environment with which a user can interact through the sense of touch. “Haptic rendering application” refers to the computer application which generates the virtual environment and determines the forces to be applied to a user through a haptic interface. The haptic rendering application generates representations of real world objects in the virtual environment. As used herein, “haptic interaction space” is defined as the region in the computer generated virtual environment with which the user can interact through the sense of touch. The haptic interaction space defines the boundaries of the haptic interactive representation with which the user can interact. In one embodiment, the haptic interaction space is a two-dimensional region. In another embodiment, the haptic interaction space is a three-dimensional region. The user selects the desired dimensions for the haptic interaction space.


After the user has defined the haptic interaction space, the user builds a hierarchical construct for use within the haptic interaction space. The hierarchical construct provides the virtual environment for interaction with the user. Hierarchical constructs are used to model objects that are made up of several parts which are linked together and which can interact with each other. FIG. 2 shows an example of a hierarchical construct 12 for use within a haptic interaction space. The hierarchical construct 12 is a model of a virtual world 13 which contains three virtual objects 14, 16 and 18. The world 13 is a hierarchical construct because the world 13 is made up of parts (i.e. the three objects 14, 16, 18), the parts consist of subparts, and so on. The three objects 14, 16 and 18 are sub-constructs of the hierarchical construct 12. Each of the sub-constructs 14, 16 and 18 are composed of a plurality of further underlying sub-constructs which are linked together to form a hierarchy. For example, OBJECT1 14 is a virtual representation of a body 20. The body 20 includes two arms 22, 24. The arms 22, 24 are sub-constructs or “children” of the body 20 which are linked together to form the body 20. As used herein, a “child” is a sub-construct that has a position and orientation which is dependent upon the position and orientation of a construct higher up in the hierarchy. The arms 22, 24 are children of the body 20 because the position and orientation of the arms 22, 24 are dependent upon the position of the body 20. The arm 22 includes a hand 26, which includes two fingers 28, 30. The two fingers 28, 30 are sub-constructs or children of the hand 26 and the hand 26 is a sub-construct or child of the arm 22.


Referring again to FIG. 1, to build the hierarchical construct, in step 32 the user determines the real world objects that the user desires to exist in the haptic interaction space. Each of these desired objects are sub-constructs of the hierarchical construct representing the entire haptic interactive representation. In step 34, the user creates a hierarchical representation of each of the desired objects. Next, in step 36 the user places the hierarchical representations of the desired objects into the haptic interaction space to create the haptic interactive representation. In another embodiment, the user creates the hierarchical representation directly in the haptic interaction space. After the user creates the haptic interactive representation, in step 38 the user may interact with the representations of the desired objects within the haptic interaction space.


In more detail and referring to FIG. 1A, a flowchart illustrates a more detailed sequence of steps performed by a user in one embodiment of the present invention to create a hierarchical representation of each of the objects the user desires to exist in the haptic interaction space. In step 40, the user decomposes each hierarchical representation into a plurality of simpler sub-constructs. In the example illustrated in FIG. 2, the hierarchical representation of the body 20 is decomposed into simpler sub-constructs which include the arms 22, 24, the hand 26, and the fingers 28, 30. After decomposing each hierarchical representation into a plurality of sub-constructs, the user builds each of the sub-constructs using a plurality of underlying constructs. The underlying constructs include the attributes and properties that a user may use to build the sub-constructs. The underlying constructs affect how the object appears in the haptic interaction space. For example, the set of underlying constructs the user may select from to build the sub-constructs include geometric representations, translation parameters, rotation parameters, and scaling parameters. Similarly, the underlying representations may also include mass parameters, velocity parameters, acceleration parameters, angular velocity parameters, angular acceleration parameters, friction parameters, texture parameters, viscosity parameters and compliance parameters.


In step 42, the user selects a base geometric representation for each of the sub-constructs. As used herein, a “geometric representation” is defined as a geometric shape. The geometric representation for each sub-construct may be a primitive object, a polygonal object, an algebraic object, a constructed solid geometry object, a volumetric object representation or a representation utilizing Octree decompositions of the haptic interaction space. Examples of primitive objects include lines, circles and curves. Polygonal objects are objects created by linking polygons. Algebraic objects are objects that are defined by an algebraic equation. Volumetric objects are objects which are formed by filling a region of the haptic interaction space with a volume and removing pieces of that volume to form a shape. An Octree object is one defined by successively dividing haptic spaces into octants until a predetermined volume element, voxel, resolution is reached. At this resolution, each voxel is marked to indicate whether the volume element contains a portion of the object. In one embodiment, the geometric representations used to build the sub-constructs are of dissimilar form. For example, one sub-construct in the haptic interactive representation may utilize a primitive object as its base geometric representation, while a second sub-construct utilizes an algebraic object as its base geometric representation.


After selecting a base geometric representation for each of the sub-constructs, in step 44 the user operates on the sub-constructs by translating, rotating and scaling the geometric representations. If the user did not operate on the sub-constructs, each of the sub-constructs would be located at a default position within the haptic interactive representation, and would have a default orientation and a default size. For example, in the hierarchical construct shown in FIG. 2, the sub-construct FINGER1 28 has a base geometric representation 46. In one embodiment, the base geometric representation 46 is a sphere. The user then associates a translation parameter 48, a rotation parameter 50 and a scaling parameter 52 with the sub-construct FINGER1 28. Associating the translation parameter 48, the rotation parameter 50 and the scaling parameter 52 with the sub-construct FINGER1 28 has the effect of translating the geometric representation to the desired position within the haptic interactive representation, rotating the geometric representation to the desired orientation and scaling the geometric representation until it more closely resembles a finger. To cause the geometric representation to more closely resemble a finger in shape, the user may scale one point of the sphere until the sphere is more oblong in shape.


In another embodiment, the user may associate a stiffness, compliance, and friction parameter with each sub-construct.


After the user translates, rotates and scales the geometric representations, in step 54 the user may associate dynamic properties with each sub-construct. The dynamic properties that a user may associate with each sub-construct include velocity, acceleration, angular velocity and angular acceleration. Finally, in step 56, the user links the sub-constructs together to form the hierarchical representations of the desired objects.


Referring now to FIG. 3, a flowchart shows the steps performed by one embodiment of the method of the present invention for determining the forces to be applied to a user through a haptic interface device. In step 60, the haptic rendering application generates a haptic interactive representation which includes only one representation of a real world object. As used herein, “virtual object” is defined as the representation of a real world object in the haptic interactive representation. In one embodiment, the virtual object is a hierarchical representation of a real world object. The user may create the hierarchical representation of the object using underlying constructs as described above. In the embodiment illustrated by the flowchart in FIG. 3, the haptic interactive representation contains only one virtual object. The haptic interactive representation may contain more than one object. An embodiment of a haptic interactive representation containing more than one virtual object will be described in more detail below.


In step 62, sensors of the haptic interface system sense the position of the user in real space. As used herein, “real space” is defined as the real world environment. In step 64, the haptic rendering application utilizes the information obtained by the sensors to determine the haptic interface in haptic interaction space. The location of the haptic interface describes the position of the user in the haptic interaction space. In step 66, the haptic rendering application determines whether the virtual object collides with the haptic interface location. A virtual object “collides” with the haptic interface location if the surface of the virtual object is in contact with the haptic interface location or if the virtual object encompasses the haptic interface location. If the virtual object does not collide with the haptic interface location, in step 68 the haptic rendering application calculates the force to be applied to the user in real space in response to the haptic interface location. If the virtual object collides with the haptic interface location, in step 70 the haptic rendering application determines a proposed surface contact point (SCP) for the virtual object. The surface contact point represents the location on the surface of the virtual object at which the haptic interface would be located if the haptic interface could be prevented from penetrating virtual objects. The purpose of the surface contact point is to enable the haptic rendering application to accurately determine the forces to be applied to the user in real space. The methods used to determine the proposed surface contact point will be described in more detail below.


After the haptic rendering application determines the proposed SCP for the virtual object, in step 72 the haptic rendering application calculates the force to be applied to the user in real space based on the location of the proposed SCP. After the haptic rendering application has calculated the force to be applied to the user in either step 68 or step 72, in step 74 this force may be generated and applied to a user in real space through a haptic interface device. After the force has been applied to the user, the haptic rendering application repeats steps 62, 64, 66, 68, 70, 72 and 74 for the duration of time that the user interacts with the haptic interactive representation.



FIG. 4 shows a flowchart illustrating the steps performed by another embodiment of the method of the present invention for determining the forces to be applied to a user through a haptic interface device. In the embodiment illustrated by the flowchart of FIG. 4, the user's interactions with the haptic interactive representation are reduced to those of a point interacting with three dimensional objects in a three dimensional virtual environment. In other embodiments, the user's interactions are not reduced to those of a point interacting with three dimensional virtual objects. In other embodiments, the haptic interface may be a set of points. In still other embodiments, the haptic interface may be a three-dimensional object.


In step 76, the haptic rendering application generates a haptic interactive representation which includes at least two representations of virtual objects. Once the haptic rendering application has generated a haptic interactive representation which includes at least two virtual objects, in step 78 the haptic interface device senses the position of the user in real space. In step 80, the haptic rendering application uses the position of the user in real space to determine the location of the haptic interface in the haptic interaction space. When the user changes position, the haptic interface device senses this change in position and the haptic rendering application updates the location of the haptic interface in haptic interaction space to reflect the change of the user's position in real space.


Once the haptic rendering application determines the location of the haptic interface, in step 82 it determines whether any of the virtual objects collide with the haptic interface location. A method for determining whether a virtual object collides with the haptic interface location will be discussed in more detail below. If no virtual objects collide with the haptic interface, in step 84 the haptic rendering application calculates the force to be applied to the user in real space based on the location of the haptic interface. If at least one of the virtual objects collides with the haptic interface location, in step 86 the haptic rendering application calculates a proposed surface contact point (SCP) for each virtual object colliding with the haptic interface location. In step 88, the haptic rendering application determines if more than one virtual object collides with the haptic interface location. If only one virtual object collides with the haptic interface location, in step 90 the haptic rendering application calculates a force to be applied to the user in real space in response to the proposed SCP. If more than one virtual object collides with the haptic interface location, in step 92 the haptic rendering application calculates a force to be applied to a user in real space in response to the set of proposed SCPs. The method for determining the SCP to use to calculate the force will be described in more detail below in the discussion of FIG. 5.



FIG. 5 shows a flowchart illustrating the steps performed by one embodiment of the method of the present invention for determining a force to be applied to a user through a haptic interface when more than one virtual object collides with the haptic interface location. As discussed above, when more than one virtual object collides with the haptic interface location the haptic rendering application determines a proposed SCP for each virtual object colliding with the haptic interface location. In step 94, the haptic rendering application determines if any of the proposed SCPs is not located within any of the virtual objects in the haptic interactive representation. If at least one of the proposed SCPs is not located within any of the virtual objects, in step 96 the haptic rendering application calculates a force to be applied to the user in response to that proposed SCP. If more than one proposed SCP is not located within any of the virtual objects, the haptic rendering application will use the first SCP it determines not to be located within any of the virtual objects to calculate the force to be applied to the user.


If all of the proposed SCPs are located within at least one virtual object, in step 98 the haptic rendering application determines if more than two virtual objects collide with the haptic interface location. If more than two virtual objects collide with the haptic interface, in step 100 the haptic rendering application discards the proposed SCPs and calculates a force to be applied to the user in response to the current SCP. If only two virtual objects collide with the haptic interface location, in step 102 the haptic rendering application determines a surface contact point normal for both proposed surface contact points. As used herein, a “surface contact point normal” is the vector normal to the surface of the virtual object at the location of that object's proposed SCP. In step 104, the haptic rendering application calculates the cross product of the two surface contact point normals to determine a vector (VPERP) perpendicular to the two surface contact point normals as illustrated by equation (1) below. In equation (1), SCP1NORMAL and SCP2NORMAL represent the surface contact point normals for the two virtual objects colliding with the haptic interface location.

VPERP=SCP1NORMAL×SCP2NORMAL  (1)


In step 106, the haptic rendering application determines the line which passes through the current SCP and which is parallel to the vector VPERP. In step 108 the haptic rendering application projects the haptic interface location onto the line determined in step 106 in order to determine an updated SCP location. Finally in step 110, the haptic rendering application calculates a force to be applied to the user in real space in response to the updated SCP location determined in step 108.



FIGS. 6 and 7 illustrate the steps performed by one embodiment of a haptic rendering application to calculate a friction force to be applied to the user in real space. FIG. 6 shows a surface 112 of a portion of a virtual object 114. FIG. 6 shows the haptic interface point moving from a first haptic interface point location (PHI) 116 to a second haptic interface point location (P′HI) 118. The point SCPCURRENT 120 represents the current location of the surface contact point. The haptic rendering application calculated the point SCPCURRENT 120 in response to the first haptic interface point location (PHI) 116. The point SCPPROPOSED 122 represents the haptic rendering application's proposed new surface contact point. The haptic rendering application calculated the point SCPPROPOSED 122 in response to the change in location of the haptic interface point from PHI 116 to P′HI 118.



FIG. 7 shows a flowchart of the steps performed by one embodiment of the method of the present invention for determining the friction forces to be applied to a user in the real world through a haptic interface device. The method illustrated by the flowchart in FIG. 7 determines both the static and kinetic friction forces to be applied to the user in real space. The method calculates a static friction force to be applied to the user if the user has made contact with a virtual object, but has not provided enough tangential force to “break away” from the object. Once the user applies enough force to break away from the object, the haptic rendering application determines a kinetic friction force to be applied to the user. The kinetic friction force is applied in a direction to oppose the direction of motion of the user. All friction forces are applied to the user in directions tangential to the surface of the virtual object being contacted.


In step 124, the haptic rendering application determines the displacement (ΔSCP) between the proposed surface contact point SCPPROPOSED 122 and the current surface contact point SCPCURRENT 120. Next, in step 126, the haptic rendering application determines the displacement (d) between the proposed surface contact point SCPPROPOSED 122 and the current haptic interface point P′HI 118. In step 128, the haptic rendering application multiplies the displacement d by a coefficient of friction (kf) to determine a product. The haptic rendering application then determines if the product of the displacement d and the coefficient of friction kf is less than the displacement ΔSCP as illustrated by equation (2) below.

d·kf<ΔSCP  (2)

If the product of the displacement d and the coefficient of friction kf is less than the displacement ΔSCP, the haptic rendering application proceeds to step 130 and places the proposed surface contact point SCPPROPOSED 122 at the location of the current surface contact point SCPCURRENT 120. Next, in step 132, the haptic rendering application calculates a friction force to be applied to the user in response to the current surface contact point SCPCURRENT 120. In calculating the friction force, the haptic rendering application uses the coefficient of static friction associated with the location of the current surface contact point SCPCURRENT 120. If the product of the displacement d and the coefficient of friction kf is greater than or equal to the displacement ΔSCP, the haptic rendering application proceeds to step 134 and updates the location of the proposed surface contact point SCPPROPOSED 122 to an new proposed surface contact point (SCP′PROPOSED) according to equation (3) below.








(

SCP


)

PROPOSED

=


SCP
CURRENT

+



(
ΔSCP
)



ΔSCP



·

(



ΔSCP


-

d
·

k
f



)








In equation (3), SCP′PROPOSED represents the updated location of the proposed surface contact point, SCPCURRENT represents the location of the current surface contact point, ΔSCP represents the displacement between SCPCURRENT 120 and the initial proposed surface contact point SCPPROPOSED 122, d represents the displacement between the current surface contact point SCPCURRENT 120 and the current haptic interface point P′HI 118, and kf represents the coefficient of kinetic friction.


Once the haptic rendering application has updated the location of the proposed surface contact point, in step 136 the haptic rendering application calculates a friction force to be applied to the user in response to the updated location. In calculating the friction force, the haptic rendering application uses the coefficient of kinetic friction associated with the location of the updated proposed current surface contact point SCP′PROPOSED.



FIG. 8 shows a flowchart illustrating the steps performed by one embodiment of the method of the present invention for determining the initial proposed surface contact points for algebraic objects contained within the haptic interactive representation. As discussed above, an algebraic object is an object that is defined by an algebraic equation. The proposed surface contact points calculated with the method illustrated in FIG. 8 are utilized in the methods outlined in the flowcharts in FIGS. 3, 4, 5 and 7. The method illustrated by the flowchart in FIG. 8 is used for the first collision of each algebraic object with the haptic interface. The method for determining the proposed surface contact point for an algebraic object once the object has collided with the haptic interface and a first surface contact point has been determined will be discussed in more detail below in the description of FIG. 9.


In step 140, the user initiates interaction with the haptic interactive representation. As described above, the sensors of the haptic interface system sense the position of the user in real space. The haptic rendering application utilizes the information obtained by the sensors to determine the user's haptic interface location in haptic interaction space. Once the haptic rendering application has determined the user's haptic interface, in step 142 the haptic rendering application determines if the haptic interface is free of collision with a virtual object. If the haptic interface collides with at least one virtual object, the haptic rendering application proceeds to step 144 and waits for the haptic interface to be free of collision with any virtual objects. In other words, before the haptic rendering application determines any proposed surface contact points, the haptic interface must be free of collision with any of the virtual objects in the haptic interactive representation. The position of the user in real space must change in order for the haptic interface to become free of collision with the virtual objects.


If the haptic interface is free of collision with any of the virtual objects upon the user initiating interaction with the haptic interactive representation, in step 146 the haptic rendering application determines if the location of the haptic interface has changed. If the location of the haptic interface has not changed, in step 148 the haptic rendering application waits for the location of the haptic interface to change. If the location of the haptic interface has changed, in step 150 the haptic rendering application determines if the haptic interface has collided with a virtual object. To determine if the haptic interface has collided with an object, the haptic rendering application evaluates the function (S(P)=0) defining the surface of algebraic object using the point defining the location of the haptic interface point. If the function S(P) is equal to zero at the location of the haptic interface, then the haptic interface is located directly on the surface of the algebraic object and the haptic interface is deemed to have collided with the object. If the function S(P) is less than zero at the location of the haptic interface, then the haptic interface is located within the surface of the object and the haptic interface is deemed to have collided with the algebraic object. If the function S(P) is greater than zero at the location of the haptic interface, then the haptic interface is located outside the algebraic object and the haptic interface is deemed not to have collided with the algebraic object. If the haptic interface has not collided with a virtual object, the haptic rendering application returns to step 146 and waits for the haptic interface to change its location again.


If the haptic interface has collided with at least one virtual object, in step 152 the haptic rendering application determines the gradient of the surface (S′(P)) of the collided object at the current haptic interface location. Next, in step 154, the haptic rendering application places the proposed surface contact point at the current haptic interface location. The object of the remaining next group of steps 156, 158 and 160 is to move the proposed surface contact point closer to the surface defined by S(P)=0. The method moves the proposed surface contact point in successive steps from the haptic interface location toward the surface in the direction of the gradient of the surface S′(P) until the size of the step taken toward the surface is less than a predetermined amount. To calculate the size of the step to be taken, in step 156 the haptic rendering application evaluates the surface function S(P) using the proposed surface contact point. The haptic rendering application then calculates the vector (dP) representing the step to be taken from the current proposed surface contact point toward the surface of the object according to equation (4) below.






dP
=




S


(
P
)


·


S




(
P
)






S




(
P
)


·


S




(
P
)




.






In equation (4), S(P) represents the value of the surface function at the location of the current proposed surface contact point and S′(P) represents the gradient of the surface defined by the equation S(P). Once the haptic rendering application has determined the vector dP, it calculates the magnitude (|dP|) of the vector dP. Next, in step 158 the haptic rendering application determines if the magnitude |dP| of the step needed to be taken toward the surface of the algebraic object is greater than a predetermined step size. The predetermined step size indicates the proposed surface contact point is acceptably close to the virtual object.


If the magnitude |dP| of the step is not greater than the predetermined amount, then the haptic rendering application proceeds to step 160 and calculates the force to be applied to the user in response to the current proposed surface contact point. Next, in step 162, the haptic rendering application waits for a change in the location of the haptic interface to determine a new surface contact point. If the magnitude |dP| of the step is greater than the predetermined amount, the haptic rendering application proceeds to step 164 and updates the location of the current surface contact point to a new surface contact point SCPNEW according to equation (5) below.

SCPNEW=SCPCURRENT−dP  (5)

In equation (5), SCPNEW represents the vector pointing from the origin of the coordinate system defining the haptic interface space to the new proposed surface contact point, SCPCURRENT represents the vector pointing from the origin to the current proposed surface contact point and dP represents the step to be taken from the current surface contact point to the surface of the object.


After the location of the surface contact point has been updated, the haptic rendering application returns to step 156 and repeats steps 156, 158 and 164 until the magnitude of the step taken toward the surface of the object is less than the predetermined amount.


In another embodiment, in step 158, rather than determining whether the magnitude of the step taken towards the surface of the object is greater than a predetermined amount, the haptic rendering application determines if the result of evaluating the surface function equation S(P) in step 156 for the current surface contact point is less than a predetermined amount. Evaluating the surface function equation S(P) provides a result that is a measure of the distance of the proposed surface contact point to the surface of the algebraic object.



FIG. 9 shows a flowchart illustrating the steps performed by one embodiment of the method of the present invention for determining the proposed surface contact point for an algebraic object contained within the haptic interactive representation after the initial contact with the algebraic object has been made and a first proposed surface contact point has been calculated. The haptic rendering application executes the method of FIG. 9 after the haptic interface location changes in step 162 of FIG. 8.



FIG. 9A shows an example of an algebraic surface 166 of an object 167 defined by the function S(P) which has been generated by one embodiment of the present invention. FIG. 9A shows the haptic interface point moving from a current haptic interface point location (PHI) 168 to a second haptic interface point location (P′HI) 170. The point SCPCURRENT 172 represents the current location of the surface contact point as calculated by the haptic rendering application upon the user's first contact with the algebraic object 167. The haptic rendering application calculated the point SCPCURRENT 172 in response to the first haptic interface point location (PHI) 168. The point SCPPROPOSED 174 represents the haptic rendering application's proposed new surface contact point. The haptic rendering application calculated the point SCPPROPOSED 174 in response to the change in location of the haptic interface point from PHI 168 to P′HI 170.


In step 164, the haptic rendering application determines the plane (T1) 176 tangent to the collided virtual object 167 at the current surface contact point location SCPCURRENT 172. Next in step 178, the haptic rendering application determines the point (SCPTANGENT) 180 on the tangent plane T1 176 that is closest to the new haptic interface location P′HI 170. The tangent plane T1 176 is defined by NT1 182, a vector normal to the plane T1 176 and dT1, a scalar distance from the origin of the coordinate system defining the haptic interaction space. To compute the location of SCPTANGENT 180, the haptic rendering application determines the line 184 parallel to NT1 182 which passes through the point P′HI 170. The haptic rendering application then determines the point of intersection 180 of the line 184 with the plane T1 176. The point of intersection is the point SCPTANGENT 180. The haptic rendering application uses equation (6) below to calculate the location of SCPTANGENT 180.

SCPTANGENT=P′HI+(dT1−P′HI·NT1)NT1  (6)

In equation (6), SCPTANGENT represents the vector pointing from the origin of the coordinate system to the point SCPTANGENT 180. SCPTANGENT 180 is now the new proposed surface contact point location.


Next, the haptic rendering application determines the point SCPPROPOSED 174 on the surface 166 of the virtual object 167. To iteratively move the point SCPTANGENT 180 toward the surface, in step 186 the haptic rendering application evaluates the surface function S(P) defining the surface 166 using the point SCPTANGENT 180. In step 188, the haptic rendering application determines if the step taken from SCPTANGENT 180 to the surface 166 is greater than a predetermined amount. If the step to be taken toward the surface is not greater than a predetermined amount, in step 190, the haptic rendering application places the current surface contact point at the current proposed surface contact point and calculates the force to be applied to the user in real space in response to the new current surface contact point. Next, in step 192, the haptic rendering application waits for the haptic interface location to change. Once the haptic interface location changes, the haptic rendering application returns to step 164 and repeats the process to calculate the next surface contact point location.


If the magnitude of the step to be taken toward the surface is greater than a predetermined amount, the haptic rendering application proceeds to step 194 and updates the proposed surface contact point location. In one embodiment, the haptic rendering application uses a method similar to the method described above in steps 156, 158 and 164 of FIG. 8 to iteratively move the point SCPTANGENT 180 closer to the point SCPPROPOSED 174.



FIG. 10A shows a flowchart illustrating the steps performed by one embodiment of the method of the present invention for determining a proposed surface contact point for a polygonal object contained within the haptic interactive representation. As discussed above, a polygonal object is an object created by linking polygons. Similar to the method for calculating the initial proposed surface contact point for algebraic objects, after the user initiates interaction with the haptic interactive representation, the haptic rendering application waits for the haptic interface to be free of collision with any virtual object. Once the haptic interface is free of collision with any virtual object, the haptic rendering application then waits for the haptic interface to collide with a virtual object. In one embodiment, to determine if the haptic interface point collides with a virtual polygonal object, the haptic rendering application determines a line intersecting the current haptic interface location and the previous haptic interface location. If this line intersects any facets of a polygonal object, then the haptic interface has collided with that object.


In step 200, the haptic rendering application sets the current surface contact point (SCPCURRENT) equal to the last haptic interface point (POUTSIDE) not located within the polygonal object. Next, in step 202 the haptic rendering application determines whether the currently collided object collided with the haptic interface location during the previous iteration. If the virtual object did not collide with the haptic interface locator during the previous iteration, then the haptic rendering application proceeds to step 204 and sets the proposed surface contact point (SCPPROPOSED) equal to the current haptic interface location (PHI). Next, in step 206 the haptic rendering application determines the line segment L1 connecting POUTSIDE and SCPPROPOSED. The haptic rendering application then determines if the line segment L1 intersects any of the polygonal facets that compose the collided polygonal object. If the line segment L1 intersects more than one facet, the haptic rendering application determines the facet (Poly1) that has a point of intersection that is closest to SCPCURRENT. The haptic rendering application repeats step 206 for all of the facets of the collided polygonal object.


Once the haptic rendering application has completed step 206 for all of the facets of the collided polygonal object, it proceeds to step 208 and determines if the line segment L1 intersected any of the polygonal object's facets in step 206. If the line segment L1 did not intersect any of the polygonal facets in step 206, the polygonal object is not colliding with the haptic interface. In step 210 the haptic rendering uses the proposed surface contact point SCPPROPOSED as the proposed surface contact point for that virtual object. If the line segment L1 did intersect at least one of the polygonal facets in step 206, the polygonal object is colliding with the haptic interface and the haptic rendering application proceeds to step 212 which will be discussed in more detail below.


If in step 202 the haptic rendering application determines that the currently collided object collided with the haptic interface location during the previous iteration, the haptic rendering application proceeds to step 214. In step 214, the haptic rendering application determines a line segment L2 connecting the current surface contact point SCPCURRENT to the current haptic interface point PHI. Then the haptic rendering application determines if the line segment L2 intersects the previously intersected facet (POLY1). If the line segment L2 does not intersect the previously intersected facet of the polygonal object, then the haptic rendering application proceeds to step 204 discussed above. If the line segment L2 intersects the previously intersected facet POLY1, then the haptic rendering application proceeds to step 212. In step 212, the haptic rendering application determines the point (PPOLYINTERSECT) at which the line segment L2 intersects the polygonal object's facet POLY1. Next, the haptic rendering application projects the current haptic interface point PHI onto the plane containing the facet POLY1. The projected point is referred to herein as PPLANEPROJECT.


Next, in step 216, the haptic rendering application determines if the point PPLANEPROJECT lies outside of any of the edges of facet POLY1. To determine if the point PPLANEPROJECT lies outside any of the edges of facet POLY1, the haptic rendering application determines a line segment L3 which connects the point PPOLYINTERSECT to the point PPLANEPROJECT. If the line segment L3 does not cross any of the edges of POLY1 then the point PPLANEPROJECT lies within the facet POLY1. If the point PPLANEPROJECT lies entirely within the boundaries of the facet POLY1, the haptic rendering application proceeds to step 218 and places the new proposed surface contact point at the point PPLANEPROJECT. In another embodiment, the haptic rendering application places the new proposed surface contact point at a location slightly above the surface of the facet POLY1. The haptic rendering application calculates the point slightly above the facet POLY1 according to equation (7) below in which ε represents a predetermined distance from the surface of the polygonal object, SCPPROPOSED represents the vector pointing from the origin of the coordinate system defining the haptic interaction space to the proposed surface contact point, PPLANEPROJECT represents the vector pointing from the origin to point PPLANEPROJECT, and POLY1NORMAL represents the unit vector normal to the facet POLY1.

SCPPROPOSED=PPLANEPROJECT+ε·POLY1NORMAL  (7)

The value of ε is determined by how far above the surface the proposed surface contact point should be located.


If the point PPLANEPROJECT lies outside one of the boundaries of the facet POLY1, the haptic rendering application proceeds to step 220 in FIG. 10B. FIG. 10B shows a flowchart illustrating the steps performed by one embodiment of the method of the present invention for determining a proposed surface contact point for a polygonal object when the haptic interface is not located solely within one facet of the polygonal object. In step 220, the haptic rendering application determines which edge (EDGECROSSED) of POLY1 was crossed and the facets of the polygonal object which share EDGECROSSED. The haptic rendering application also determines which of the facets sharing EDGECROSSED are intersected by the line segment L3, which connects the point PPOLYINTERSECT to the point PPLANEPROJECT. The haptic rendering application then selects one of the facets (POLY2) which shares EDGECROSSED. Next, in step 222 the haptic rendering application determines if the point PPLANEPROJECT is below the facet POLY2. The haptic rendering application evaluates the equation defining the plane containing the facet POLY2 using the point PPLANEPROJECT. If the result of the equation is greater than zero, the point PPLANEPROJECT is above the facet POLY2. If the result of the equation is less than zero the point PPLANEPROJECT is below the facet POLY2. If the point PPLANEPROJECT is above the facet POLY2, then the point PPLANEPROJECT is located outside the surface of the virtual polygonal object and the haptic rendering application proceeds to step 224. In step 224, the haptic rendering application determines the point (PEDGECROSSING) where the line segment L3 intersects the edge EDGECROSSED and places the proposed surface contact point at the point PEDGECROSSING.


In another embodiment, the haptic rendering application places the new proposed surface contact point at a location slightly above and to the side of the edge EDGECROSSED. The haptic rendering application calculates the point slightly above and to the side of the edge EDGECROSSED according to equation (8) below in which ε represents a predetermined distance from the surface of the polygonal object, PJUST-BEYOND-EDGE represents the vector pointing from the origin of the coordinate system defining the haptic interaction space to the new proposed surface contact point, PEDGECROSSING represents the vector pointing from the origin to point PEDGECROSSING, EDGECROSSED represents the vector along the edge EDGECROSSED, and POLY1NORMAL represents the unit vector normal to the facet POLY1.

PJUSTBEYONDEDGE=PEDGECROSSING+ε·POLY1NORMAL+2·ε(POLY1NORMAL×EDGECROSSED)  (8)


If the point PPLANEPROJECT is below the facet POLY2, then the point PPLANEPROJECT is located within the surface of the virtual polygonal object and the haptic rendering application proceeds to step 226. In step 226, the haptic rendering application projects the haptic interface point PHI along the edge EDGECROSSED to determine a point PEDGEPROJECT. In step 228, the haptic rendering application determines if the point PEDGEPROJECT is between the two vertices (end points) of the edge EDGECROSSED. If the point PEDGEPROJECT is between the two vertices, then the haptic rendering application proceeds to step 230 and places the new proposed surface contact point at PEDGEPROJECT. In another embodiment, the haptic rendering application places the new proposed surface contact point at a location slightly above the edge EDGECROSSED and inside the facet POLY1 The haptic rendering application calculates the point slightly above the edge EDGECROSSED according to equations (9) and (10) below in which ε represents a predetermined distance from the surface of the polygonal object, SCPPROPOSED represents the vector pointing from the origin of the coordinate system defining the haptic interaction space to the new proposed surface contact point, PEDGEPROJECT represents the vector pointing from the origin to point PEDGEPROJECT, POLY1NORMAL represents the unit vector normal to the facet POLY1, and POLY2NORMAL represents the unit vector normal to the facet POLY2.

SCPNORMAL=normalize(POLY1NORMAL+POLY2NORMAL)  (9)
SCPPROPOSED=PEDGEPROJECT+ε·SCPNORMAL  (10)


If the point PEDGEPROJECT is not between the two vertices, then the haptic rendering application proceeds to step 232 and determines the vertice (VERTICECORNER) of the edge EDGECROSSED that PEDGEPROJECT is closest to. Next in step 238, the haptic rendering application places the proposed surface contact point at the point VERTICECORNER.


In another embodiment, the haptic rendering application does not place the proposed surface contact point at the point VERTICECORNER. Instead, the haptic rendering application determines whether the point PEDGEPROJECT is behind any of the other facets of the polygonal object other than POLY1 and POLY2 that meet at the vertice VERTICECORNER. If the point is not behind any other facets, the haptic rendering application places the new proposed surface contact point at a point (PJUSTBEYONDVERTICE) slightly above the point VERTICECORNER. The haptic rendering application calculates the point slightly above the point VERTICECORNER according to equation (11) below in which E represents a predetermined distance from the surface of the polygonal object, PJUSTBEYONDVERTICE represents the vector pointing from the origin of the coordinate system defining the haptic interaction space to the new proposed surface contact point, PEDGEPROJECT represents the vector pointing from the origin to point PEDGEPROJECT, VERTICECORNER represents the vector normal to the surface at the point VERTICECORNER, POLY1NORMAL represents the unit vector normal to the facet POLY1, and POLY2NORMAL represents the unit vector normal to the facet POLY2.

PJUSTBEYONDVERTICE=VERTICECORNER+ε·normalize(POLY1NORMAL+POLY2NORMAL)+2ε·normalize(PEDGEPROJECT−VERTICECORNER)  (11)


If the point is behind another facet, it is located within a corner and the haptic rendering application places the new proposed surface contact point at a point slightly above the point VERTICECORNER. However, in this case, the haptic rendering application calculates the point slightly above the point VERTICECORNER according to equation (12) below in which ε represents a predetermined distance from the surface of the polygonal object, PSCP represents the vector pointing from the origin of the coordinate system defining the haptic interaction space to the new proposed surface contact point, VERTICECORNER represents the vector normal to the surface at the point VERTICECORNER and SCPaNORMAL represents the average normal of the surface normals of all the facets sharing VERTICECORNER.

PSCP=VERTICECORNER+ε·SCPaNORMAL  (12)



FIG. 11 shows a flowchart illustrating the steps performed by another embodiment of the method of the present invention for determining the forces to be applied to a user through a haptic interface device. In the embodiment illustrated by the flowchart of FIG. 11, the user's interactions with the haptic interactive representation are reduced to those of a point interacting with three dimensional objects in a three dimensional virtual environment. In other embodiments, the user's interactions are not reduced to those of a point interacting with three dimensional virtual objects. In other embodiments, the haptic interface may be a set of points. In still other embodiments, the haptic interface may be a three-dimensional object.


In step 250, the haptic rendering application generates a haptic interactive representation which includes at least two representations of virtual objects. FIG. 12A shows an example of a haptic interactive representation created by one embodiment of the present invention which contains two virtual objects 252, 254 which do not overlap. FIG. 12B shows an example of a haptic interactive representation created by one embodiment of the present invention which contains two virtual objects 252′, 254′ which overlap. Once the haptic rendering application has generated a haptic interactive representation which includes at least two virtual objects, in step 256 the haptic interface device senses the position of the user in real space. In step 258, the haptic rendering application uses the position of the user in real space to determine the location of the haptic interface in the haptic interaction space. In FIGS. 12A and 12B the points PHI 260 and P′HI 260′ represent the user's haptic interface point in the haptic interaction space. When the user changes position, the haptic interface device senses this change in position and the haptic rendering application updates the location of the haptic interface in haptic interaction space to reflect the change of the user's position in real space.


Once the haptic rendering application determines the location of the haptic interface, in step 262 it determines whether any of the virtual objects collide with the haptic interface location. A method for determining whether a virtual object collides with the haptic interface location will be discussed in more detail below. If no virtual objects collide with the haptic interface, in step 264 the haptic rendering application calculates the force to be applied to the user in real space based on the location of the haptic interface. If at least one of the virtual objects collides with the haptic interface location, the haptic rendering application proceeds to step 266. The objects which collide with the haptic interface are termed current collision objects. In FIG. 12A, object 254 is a current collision object and in FIG. 12B, objects 252′ and 254′ are current collision objects.


In step 266, the haptic rendering application assigns one of the current collision objects to be the master collision object (MCO). In FIG. 12A, the object 254 is the MCO because there is only one current collision object. In FIG. 12B, the haptic rendering application assigned the object 254′ to be the MCO. Next, in step 268, the haptic rendering application calculates a proposed surface contact point for the MCO. In FIG. 12A, the point SCPPROPOSED 270 represents the proposed surface contact point for the MCO 254 and in FIG. 12B, the point SCP′PROPOSED 270′ represents the proposed surface contact point for the MCO 254′. Once the haptic rendering application has determined a proposed surface contact point for the MCO, in step 272 it determines a line segment between the proposed surface contact point and the current surface contact point. In step 274, the haptic rendering application determines if any virtual objects in the haptic interaction space other than the MCO intersect this line segment. For example, in FIG. 12A, the haptic rendering application determines the line 276 which intersects the point SCPPROPOSED 270 and the current surface contact point SCPCURRENT 278. Since no objects other than the MCO 254 intersect the line segment 276, the haptic rendering application proceeds to step 280 and places the current surface contact point at the location of the MCO's proposed surface contact point, SCPPROPOSED 270. Next, in step 282 the haptic rendering application calculates the force to be applied to the user in real space in response to the new current surface contact point.


If another virtual object intersect the line segment between the MCO's proposed surface contact point and the current surface contact point, the haptic rendering application proceeds to step 284. For example, in FIG. 12B the line segment 276′between the points SCP′PROPOSED 270′ and SCP′CURRENT 278′ intersects the virtual object 252′. In step 284, the haptic rendering applicant determines the collision point (PCOLLISION) 286 between the line segment 276′ and the collision object 252′. Next, in step 288 the haptic rendering application determines the surface normal PCOLLISION 290 of the collision object 252′ at the collision point PCOLLISION 286. In step 292 the haptic rendering application determines the surface normal S CPPROPOSED 294 at the MCO's proposed surface contact point SCP′PROPOSED 270′. Next, in step 296 the haptic rendering, application calculates the cross products of the vectors PCOLLISION 290 and S CPPROPOSED 294. Next, in step 298 the haptic rendering application determines the line passing through the point PCOLLISION 286 and parallel to the vector resulting from the cross product of the vectors PCOLLISION 290 and S CPPROPOSED 294. Next in step 300, the haptic rendering application projects the MCO's proposed surface contact point SCP′PROPOSED 270′ onto the line determined in step 298 to determine an updated proposed surface contact point location (SCP″PROPOSED). After the haptic rendering application has determined the updated proposed surface contact point SCP″PROPOSED, it proceeds to step 302 in FIG. 11A.


In step 302, the haptic rendering application determines if the updated proposed surface contact point SCP″PROPOSED, collides with any other virtual objects, other than the objects 252′ and 254′. If the point SCP″PROPOSED does not collide with any other virtual objects, the haptic rendering application proceeds to step 304 and places the current surface contact point at the location of the updated proposed surface contact point SCP″PROPOSED. Finally in step 306 the haptic rendering application calculates the force to be applied to the user in real space in response t the new current surface contact point.


If the point SCP″PROPOSED does collide with any other virtual objects, the haptic rendering application proceeds to step 308 and places the current surface contact point at the intersection.


The computational independence of the haptic space from the other spaces, such as graphics space and acoustic space which make up and interact with the virtual environment permits the computational manipulation of each of the spaces to occur at a rate which is optimal for the particular space. For example, although a user's haptic interaction with the virtual environment may be sampled, processed and fed back to the user at a rate of 1000 times per second, the graphics display depicting the interaction needs to be refreshed only at a rate of fifty times per second. Therefore only one in every twenty samples of what is occurring in haptic space need be depicted in graphics space. Similarly, the communication between, for example, haptic processes over a network also occurs at a rate slower than the rate at which the haptic space is updated. Therefore, a mechanism to permit the synchronization of processes executing at different rates is used to make use of the computational independence of the various processes manipulating and interacting with a virtual environment.


Other advantages of computational independence include the use of different representations for haptic and graphic rending—such that representations best suited to each particular modality, for a given application, may be used. In addition, the use of dissimilar representations for the graphics and haptics processes, allows completely artificial worlds to be created where haptic and graphical stimuli do not correspond.


One embodiment of a system using such synchronization is shown in FIG. 13. In this system, a haptic process 1300 manipulating and interacting with haptic space 1320 interacts with other processes such as a graphics process 1340 and a communications process 1360 using a “callback” mechanism 1400. A callback 140 is a data structure which is associated with a virtual object by a process 1300 which created it. The data structure contains the parameters necessary for an object in one space to be manipulated in a second space.


In the embodiment of the system as shown, each callback 1400, 1400′, 1400″ (generally 1400) is associated by the haptic process 1300 which created the callback 1400 with an object in haptic space 1320. For example, the data structure associated with the object in haptic space would include its X-, Y- and Z-coordinates in haptic space. A process, such as the graphics process 1340, wishing to communicate with the haptic space 1320 in order to update the graphics space 1420, also associates the callback 1400 with same object in graphics space 1420. Thus when the graphics process 1340 wishes to know the new location of the object for its depiction in graphics space 1420, the graphics process 1340 accesses the callback 1400 associated with the object and the haptic process 1300 supplies the data structure with the latest X-, Y- and Z-coordinate information regarding the object. The graphics process 1340 then accesses the callback 1400 to retrieve the coordinate information and after making the appropriate transformations displays the new object location in graphics space 1420.


Similarly a second haptic process 1460 manipulating and interacting with a second haptic space 1480 can interact with the first haptic process 1300 through a communications process 1360. In this case the communications process 1360 interacts with each haptic process 1300, 1460 through a callback 1400′, 1400″ respectively associated with each process. Thus when one haptic process 1300 needs information regarding the forces on an object generated by a user using another haptic process 1460, the communications process 1360 requests information from the second process 1460 through the callback 1400″. The haptic process request information from a second process through the same callback with which the second process requests data from the haptic process.


The steps therefore involved in using a callback are shown in FIG. 14. A haptic process is first created (step 1500) which defines objects in the haptic space. The haptic process then creates a callback data structure and associates the data structure with an object in the haptic space (Step 1520). A connection is then made with a second process, such as a graphics process (Step 1540) and the callback is associated with an object in the space of the second process (Step 1560).


The capability of two haptic processes to communicate over a communications link permits a user on one network node to experience the tactile sensation from a process operating on a second network node. This permits haptic virtual reality environments to be shared across the network as easily as graphic virtual reality environments are presently shared.


Many typical virtual reality applications provide an image of an object on a display with which a user can interact. Each of these images, or virtual objects, are composed of many points. The complexity of the virtual object determines how many points are needed to define the object. Very complex objects require thousands of points in order for the object to seem real to the user. In order for the virtual objects to seem “real” to the user, all the points defining the surface of the object must be presented to the user at the same time. When the user interacts with the object, all of the points composing the object must be updated to display the result of the interaction to the user.


For example, if a user moves a virtual cube from a first location to a second location, each point of the cube must be transformed to appear at the second location on the display.


In contrast, in one embodiment of the present invention, only one point of a haptic interactive representation is presented to a user at a time. A user is only able to “touch” and interact with one point of the haptic interactive representation at a time. In one embodiment, to determine the reaction forces to be applied to the user, the haptic rendering application transforms every point of each virtual object to determine the corresponding points in real space and then calculates the reaction forces to be applied to a user in real space. In another embodiment, the haptic rendering application transforms the position of the user in real space into each virtual objects' space in the haptic interaction space. As used herein, an “object's space” refers to the coordinate system defining a particular object. Each object has its own coordinate system which defines and travels with that object. The advantage of this method is that the haptic rendering application only has to transform a single point from real space into each of the object spaces rather than transforming each of the points defining each of the objects in the object spaces into real space. In the majority of cases, utilizing this method significantly decreases the amount of computations necessary to calculate the appropriate reaction forces to be applied to the user in real space. This method cannot be used by graphics applications because graphics applications present many points to a user at a time.



FIG. 15 shows a flowchart illustrating the steps performed by this embodiment to determine the reaction forces to be applied to the user in real space through a haptic interface device. In step 320, the haptic interface device senses the position of the user in real space. The user's position in real space is represented by a set of real world coordinates. Next, in step 322, the haptic rendering application determines a first transform to transform the position of the user in real space into a position in an object's space. In one embodiment, the first transform is a transformation matrix which transforms the user's real space coordinates into coordinates in the object's space. The haptic rendering application determines a transform for each object in the haptic interaction space. In step 324 the haptic rendering application applies the transform to the user's real space coordinates to obtain the user's coordinates in the object's space. In step 326, the haptic rendering application determines if the user's coordinates in the object's space collide with the virtual object. Also in step 326 the haptic rendering application calculates the resulting reaction forces to be applied to the user. The resulting reaction forces are represented by vectors. In step 328, the haptic rendering application determines a second transform to transform the reaction force vectors calculated in step 326 from the object's space into a vector in real space. In one embodiment, the second transform is a transformation matrix which transforms the vector in object space coordinates in to a vector in real space coordinates. The haptic rendering application determines a transform for each object in the haptic interaction space. In step 330, the haptic rendering application applies the second transform to the reaction force vector in the object's space that was calculated in step 326. Finally in step 332, the transformed reaction force vector is applied to the user in real space.


In another embodiment, the haptic rendering application transforms a set of points representing the user' position in real space into each object's space.


The present invention also relates to an apparatus for generating and interfacing with a haptic virtual reality environment. FIG. 16 shows an embodiment of an apparatus for enabling a user to generate and interface with a haptic virtual reality environment. The apparatus includes a haptic interface device 350, a haptic rendering processor 352, a display processor 354 and a display 356. The haptic interface device 350 includes a sensor for sensing the position of the user 358 in real space and a force actuator for applying forces to the user in real space.


The haptic rendering processor 352 is in electrical communication with the haptic interface device 350. The haptic rendering processor 352 executes an algorithm to generate a haptic interactive representation and determine the forces to be applied to the user 358 in real space. In one embodiment, the algorithm includes a module generating a haptic interactive representation, a module determining the user's haptic interface location in haptic interaction space, and a module calculating a force to be applied to the user in real space. The module determining the user's haptic interface in haptic interaction space translates the position of the user in real space into a position in haptic interaction space. The module calculating a force to be applied to the user determines whether the user's haptic interface location collides with any of the virtual objects. If the user's haptic interface location does not collide with any virtual objects, then this module calculates a force to be applied to the user in response to the user's haptic interface location. If the user's haptic interface location does collide with at least one virtual object then this module calculates a force to be applied to the user in response to proposed surface contact points for each virtual object. The haptic interface device 350 produces the force calculated by the haptic rendering processor 352 and applies the calculated force to the user 358.


The display processor 354 is in electrical communication with the haptic rendering processor 352. The display processor 354 displays the representation of the virtual object created by the haptic rendering processor on a display 356. The display 356 may be a computer screen, television screen, or any other device known in the art for displaying images of objects. In one embodiment, the apparatus also includes an audio processor 360 and a speaker 362. The audio processor 360 is in electrical communication with the haptic rendering processor 352. The audio processor produces audio sounds in response to the interactions of the virtual objects and the user in the virtual environment. The speaker 362 is in electrical communication with the audio processor 360. The speaker 362 outputs the sounds produced by the audio processor.


In one embodiment, the haptic rendering processor 352, the display processor 354 and the audio processor 360 are different processors. In another embodiment, the haptic rendering processor 352, the display processor 354 and the audio processor 360 are the same processor. In yet another embodiment, the module generating a haptic interactive representation, the module determining the user's haptic interface location in haptic interaction space, and the module calculating a force to be applied to the user in real space are separate devices.


In one embodiment, the apparatus shown in FIG. 16 for generating and interfacing with a haptic virtual reality environment is a real-time, object-oriented, virtual environment creation tool which allows the user 358 to create, modify, save and restore three-dimensional multi-modal virtual environments using visual and haptic interaction techniques. The resulting virtual environment can be felt, seen and heard by the user 358.



FIG. 17 shows a flowchart illustrating the steps a user would perform to create and interface with a virtual environment using an embodiment of the apparatus described above and shown in FIG. 16. In step 370, the user initiates the toolkit application. In one embodiment the display processor 354 displays a graphical user interface on the display 356. In one embodiment, the graphical user interface contains icons which performs functions when selected by the user 358. The icons may consist of geometric representations the user can select to build virtual objects in the virtual environment. The icons may represent functions for operating on the geometric representations. The icons may also include different parameters that may be associated with a geometric representation. These parameters may include textures, mass, velocity, acceleration, angular velocity, angular acceleration, inertia, friction, viscosity, compliance and other behavior parameters which may be assigned to the surfaces of virtual objects. In another embodiment, the graphical display contains pull-down menus from which the user may select functions to be performed by the application.


To create the haptic interactive representation, in step 372 the user selects a base geometric representation for the virtual object that the user desires to create. To select the object, the user manipulates the haptic interface device 350 until the display 356 displays an image of the user's haptic interface location over the icon representing the geometric representation. The user then elects the geometric representation by “pressing” the icon. When the user presses the icon, the user experiences a force fed back through the haptic interface device 350 which simulates the feel of pressing a button. Selecting the geometric representation icon sends a signal to the haptic rendering processor 352 to create a virtual object. The haptic rendering processor 352 then places a virtual object in the shape of the selected geometric representation into the haptic interactive representation. The user may now haptically interact with the virtual object through the haptic interface device 350. The display processor 354 also places an image of the virtual object on the display 356. If the user desires, in step 374 the user may translate the virtual object anywhere within the haptic interaction space. To translate the object, the user selects the translate command and uses the haptic interface device 350 to come into contact with the object. Once the user is in contact with the object, the user may “pick up” the object and place the object in the desired location. Similarly, in step 376, the user may rotate the virtual object. In step 578, the user may scale the virtual object to the desired shape and size by selecting the scale command and contacting a point on the surface of the virtual object. Once the user has contacted a point, the user may “grab” that point and stretch the virtual object to the desired size and shape. In step 380, the user may assign any other desired properties to the object. These properties may include mass, velocity, acceleration, texture, or any of the other surface and dynamic properties described above. The user may then repeat this process to place another virtual object in the haptic interactive representation.


In another embodiment, the user may manipulate the visual appearance of the virtual objects on the display 356. In yet another embodiment, the user may assign audio sounds to the interactions in the virtual environment.


In one embodiment, the user may save the haptic interactive representation and recall it later. Upon recall, the user may interact with the virtual objects in the haptic interactive representation.


Having described preferred embodiments of the invention, it will now become apparent to one of skill in the art that other embodiments incorporating the concepts may be used. It is felt, therefore, that these embodiments should not be limited to disclosed embodiments but rather should be limited only by the spirit and scope of the following claims.

Claims
  • 1. A method for interacting with a haptic interactive representation, comprising the steps of: creating a haptic interactive space;populating said haptic interactive space with at least one virtual object, wherein at least one of said virtual object(s) has a voxel representation; andallowing a user to penetrate a surface of at least one of said virtual object(s), wherein said user experiences a corresponding force through a haptic interface device.
  • 2. The method of claim 1 where said user changes at least one parameter of said virtual object including at least one of a location, a rotation, and a size.
  • 3. The method of claim 2 further comprising the step of allowing said user to create, modify, save, and restore a haptic interaction representation.
  • 4. The method of claim 1, comprising allowing a user to contact a point on a surface of at least one of said virtual object(s) and stretch said virtual object, wherein said user experiences a corresponding force through said haptic interface device during said stretch.
  • 5. A method for depicting a user interaction in a virtual environment, the method comprising the steps of: (a) updating a force to be applied to a user through a haptic interface device in response to a user interaction with at least one virtual object in a virtual environment;(b) refreshing a graphics display depicting said user interaction, wherein step (a) and step (b) are performed by independent processes; and(c) synchronizing said independent processes using a callback mechanism, wherein: (i) step (a) is performed by a haptic process;(ii) step (b) is performed by a graphics process;(iii) said haptic process provides parameters associated with said at least one virtual object to said callback mechanism; and(iv) said graphics process accesses said parameters in said callback mechanism.
  • 6. The method of claim 5, wherein step (a) is performed at about twenty times the rate of step (b).
  • 7. The method of claim 5, wherein step (a) comprises transforming a single point corresponding to a position of the user in real space into a coordinate in object space.
  • 8. The method of claim 7, wherein step (b) comprises refreshing a plurality of points of said graphics display.
  • 9. The method of claim 5, wherein step (a) comprises updating said force for one point of a haptic interactive representation of said at least one virtual object at a time, wherein said point corresponds to a position of said user in real space.
  • 10. The method of claim 5, wherein said parameters comprise haptic parameters.
  • 11. An apparatus for interacting with a haptic interactive representation, the apparatus comprising: (a) a haptic interface device; and(b) a processor configured to: (i) create a haptic interactive space;(ii) populate said haptic interactive space with at least one virtual object, wherein at least one of said virtual object(s) has a voxel representation; and (iii) allow a user to penetrate a surface of at least one of said virtual object(s), wherein said user experiences a corresponding force through said haptic interface device.
  • 12. The apparatus of claim 11, wherein said processor is configured to allow a user to contact a point on a surface of at least one of said virtual object(s) and stretch said virtual object, wherein said user experiences a corresponding force through said haptic interface device during said stretch.
RELATION TO OTHER APPLICATIONS

This application is a continuation of U.S. Ser. No. 08/691,247, filed Aug. 2, 1996, now U.S. Pat. No. 6,084,587, issued Jul. 4, 2000 to Tarr et al.

US Referenced Citations (189)
Number Name Date Kind
2475484 DeNise Jul 1949 A
3168203 Gallistel Feb 1965 A
3263824 Jones et al. Aug 1966 A
3449008 Colechia Jun 1969 A
3531868 Stevenson Oct 1970 A
3618786 Fick Nov 1971 A
3637092 George et al. Jan 1972 A
3920972 Corwin et al. Nov 1975 A
3944798 Eaton Mar 1976 A
4062455 Flatau Dec 1977 A
4150803 Fernandez Apr 1979 A
4216467 Colston Aug 1980 A
4302138 Zarudiansky Nov 1981 A
4367532 Crum et al. Jan 1983 A
4420808 Diamond et al. Dec 1983 A
4510574 Guittet et al. Apr 1985 A
4521685 Rebman Jun 1985 A
4604016 Joyce Aug 1986 A
4632341 Repperger et al. Dec 1986 A
4638798 Shelden et al. Jan 1987 A
4653011 Iwano Mar 1987 A
4654648 Herrington et al. Mar 1987 A
4655673 Hawkes Apr 1987 A
4661032 Arai Apr 1987 A
4670851 Murakami et al. Jun 1987 A
4676002 Slocum Jun 1987 A
4680519 Chand et al. Jul 1987 A
4686522 Hernandez et al. Aug 1987 A
4703443 Moriyasu Oct 1987 A
4729098 Cline et al. Mar 1988 A
4769763 Trieb et al. Sep 1988 A
4791934 Brunnett Dec 1988 A
4795296 Jau Jan 1989 A
4800721 Cemenska et al. Jan 1989 A
4819195 Bell et al. Apr 1989 A
4823634 Culver Apr 1989 A
4837734 Ichikawa et al. Jun 1989 A
4839838 LaBiche et al. Jun 1989 A
4853874 Iwamoto et al. Aug 1989 A
4888538 Dimitrov et al. Dec 1989 A
4893981 Yoshinada et al. Jan 1990 A
4907970 Meenen, Jr. Mar 1990 A
4907973 Hon Mar 1990 A
4942538 Yuan et al. Jul 1990 A
4945305 Blood Jul 1990 A
4945501 Bell et al. Jul 1990 A
4961138 Gorniak Oct 1990 A
4973111 Haacke et al. Nov 1990 A
4973215 Karlen et al. Nov 1990 A
4982504 Söderberg et al. Jan 1991 A
4988981 Zimmerman et al. Jan 1991 A
5004391 Burdea Apr 1991 A
5007300 Siva Apr 1991 A
5018922 Yoshinada et al. May 1991 A
5019761 Kraft May 1991 A
5038089 Szakaly Aug 1991 A
5040306 McMurtry et al. Aug 1991 A
5044956 Behensky et al. Sep 1991 A
5053975 Tsuchihashi et al. Oct 1991 A
5072361 Davis et al. Dec 1991 A
5088046 McMurtry Feb 1992 A
5088055 Oyama Feb 1992 A
5103404 McIntosh Apr 1992 A
5105367 Tsuchihashi et al. Apr 1992 A
5116051 Moncrief et al. May 1992 A
5116180 Fung et al. May 1992 A
5130632 Ezawa et al. Jul 1992 A
5131844 Marinaccio et al. Jul 1992 A
5142931 Menahem Sep 1992 A
5143505 Burdea et al. Sep 1992 A
5184319 Kramer Feb 1993 A
5185561 Good et al. Feb 1993 A
5189806 McMurtry et al. Mar 1993 A
5193963 McAffee et al. Mar 1993 A
5204824 Fujimaki Apr 1993 A
5220260 Schuler Jun 1993 A
5223776 Radke et al. Jun 1993 A
5237647 Roberts et al. Aug 1993 A
5239246 Kim Aug 1993 A
5255211 Redmond Oct 1993 A
5264768 Gregory et al. Nov 1993 A
5266875 Slotine et al. Nov 1993 A
5333257 Merrill et al. Jul 1994 A
5354162 Burdea et al. Oct 1994 A
5382885 Salcudean et al. Jan 1995 A
5389865 Jacobus et al. Feb 1995 A
5396265 Ulrich et al. Mar 1995 A
5414337 Schuler May 1995 A
5429140 Burdea et al. Jul 1995 A
5438529 Rosenberg et al. Aug 1995 A
5446834 Deering Aug 1995 A
5459382 Jacobus et al. Oct 1995 A
5482051 Reddy et al. Jan 1996 A
5489830 Fernandez Feb 1996 A
5497452 Shimizu et al. Mar 1996 A
5506785 Blank et al. Apr 1996 A
5515078 Greschler et al. May 1996 A
5555894 Doyama et al. Sep 1996 A
5559412 Schuler Sep 1996 A
5576727 Rosenberg et al. Nov 1996 A
5587937 Massie et al. Dec 1996 A
5589854 Tsai Dec 1996 A
D377932 Schena et al. Feb 1997 S
5623582 Rosenberg Apr 1997 A
5623642 Katz et al. Apr 1997 A
5625576 Massie et al. Apr 1997 A
5629594 Jacobus et al. May 1997 A
5642469 Hannaford et al. Jun 1997 A
5659493 Kiridena et al. Aug 1997 A
5666138 Culver Sep 1997 A
5691898 Rosenberg et al. Nov 1997 A
5694013 Stewart et al. Dec 1997 A
5701140 Rosenberg et al. Dec 1997 A
5721566 Rosenberg et al. Feb 1998 A
5724264 Rosenberg et al. Mar 1998 A
5731804 Rosenberg Mar 1998 A
5734373 Rosenberg et al. Mar 1998 A
5737505 Shaw et al. Apr 1998 A
5739811 Rosenberg et al. Apr 1998 A
5742278 Chen et al. Apr 1998 A
5751289 Myers May 1998 A
5754023 Roston et al. May 1998 A
5767839 Rosenberg Jun 1998 A
5769640 Jacobus et al. Jun 1998 A
5774130 Horikawa et al. Jun 1998 A
5784542 Ohm et al. Jul 1998 A
5790108 Salcudean et al. Aug 1998 A
5798752 Buxton et al. Aug 1998 A
5800177 Gillio Sep 1998 A
5800178 Gillio Sep 1998 A
5800179 Bailey Sep 1998 A
5802353 Avila et al. Sep 1998 A
5803738 Latham Sep 1998 A
5805140 Rosenberg et al. Sep 1998 A
5821920 Rosenberg et al. Oct 1998 A
5825308 Rosenberg Oct 1998 A
5828197 Martin et al. Oct 1998 A
5831408 Jacobus et al. Nov 1998 A
5844392 Peurach et al. Dec 1998 A
5847956 Bronfeld et al. Dec 1998 A
5859934 Green Jan 1999 A
5872438 Roston Feb 1999 A
5873106 Joseph Feb 1999 A
5880714 Rosenberg et al. Mar 1999 A
5881178 Tsykalov et al. Mar 1999 A
5882206 Gillio Mar 1999 A
5889670 Schuler et al. Mar 1999 A
5898599 Massie et al. Apr 1999 A
5903270 Gentry et al. May 1999 A
5903886 Heimlich et al. May 1999 A
5907487 Rosenberg et al. May 1999 A
5913727 Ahdoot Jun 1999 A
5929607 Rosenberg et al. Jul 1999 A
5929846 Rosenberg et al. Jul 1999 A
5956484 Rosenberg et al. Sep 1999 A
5963212 Bakalash Oct 1999 A
5973678 Stewart et al. Oct 1999 A
5988862 Kacyra et al. Nov 1999 A
6040840 Koshiba et al. Mar 2000 A
6061004 Rosenberg May 2000 A
6064394 Morrison May 2000 A
6084587 Tarr et al. Jul 2000 A
6111577 Ziles et al. Aug 2000 A
6131097 Peurach et al. Oct 2000 A
6191796 Tarr Feb 2001 B1
6211848 Plesniak et al. Apr 2001 B1
6219032 Rosenberg et al. Apr 2001 B1
6226003 Akeley May 2001 B1
6308144 Bronfeld et al. Oct 2001 B1
6337678 Fish Jan 2002 B1
6342880 Rosenberg et al. Jan 2002 B2
6369834 Zilles et al. Apr 2002 B1
6384822 Bilodeau et al. May 2002 B1
6417638 Guy et al. Jul 2002 B1
6421048 Shih et al. Jul 2002 B1
6552722 Shih et al. Apr 2003 B1
6608631 Milliron Aug 2003 B1
6671651 Goodwin et al. Dec 2003 B2
6707458 Leather et al. Mar 2004 B1
20020075283 Payne Jun 2002 A1
20020089500 Jennings et al. Jul 2002 A1
20020154132 Dumesny et al. Oct 2002 A1
20020158842 Guy et al. Oct 2002 A1
20030117411 Fujiwara et al. Jun 2003 A1
20030128208 Shih et al. Jul 2003 A1
20030191554 Russell et al. Oct 2003 A1
20050060130 Shapiro et al. Mar 2005 A1
20050062738 Handley et al. Mar 2005 A1
20050168460 Razdan et al. Aug 2005 A1
Foreign Referenced Citations (19)
Number Date Country
0 915 434 May 1999 EP
2389764 Dec 2003 GB
2410351 Jul 2005 GB
WO 9502801 Jan 1995 WO
WO 9616397 May 1996 WO
WO 9622591 Jul 1996 WO
WO 9642078 Dec 1996 WO
WO 9706410 Feb 1997 WO
WO 9712337 Apr 1997 WO
WO 9712357 Apr 1997 WO
WO 9719440 May 1997 WO
WO 9721160 Jun 1997 WO
WO 9744775 Nov 1997 WO
WO 9806024 Feb 1998 WO
WO 9826342 Jun 1998 WO
WO 9830951 Jul 1998 WO
WO 9858308 Dec 1998 WO
WO 9858323 Dec 1998 WO
WO 9910872 Mar 1999 WO
Continuations (1)
Number Date Country
Parent 08691247 Aug 1996 US
Child 09574131 US