TECHNIQUES FOR FACILITATING INTERACTIONS BETWEEN AUGMENTED REALITY FEATURES AND REAL-WORLD OBJECTS
Introduced here are computer programs and computer-implemented techniques for facilitating the placement of augmented reality features in close proximity to a variety of real-world objects, such as tableware objects, drinkware objects, etc. By placing a reference object in a real-world environment, physical objects can be made more recognizable/useful within in the context of augmented reality. For example, a pattern may be printed along the surface of a real-world object to facilitate in the cropping, positioning, and/or animating of an augmented reality feature. Additionally or alternatively, a removable item may be placed on the surface of a real-world object to define a reference orientation.
1 . A computer-implemented method comprising:
receiving input indicative of a request to initiate a computer program residing on an electronic device;
launching the computer program in response to receiving the input;
capturing an image of a real-world environment that includes a foodstuff and a reference object;
parsing the image to identify the foodstuff and the reference object;
generating an augmented reality feature that is at least partially hidden beneath the foodstuff,
wherein the augmented reality feature is positioned within the real-world environment based on a known characteristic of the reference object.
2 . The computer-implemented method of claim 1 , wherein the reference object includes a patterned surface.
3 . The computer-implemented method of claim 2 , further comprising:
defining a three-dimensional (3D) reference space based the patterned surface; and
establishing a spatial relationship between the augmented reality feature, the foodstuff, and the reference object within the 3D reference space.
4 . The computer-implemented method of claim 1 , wherein the augmented reality feature is a digital creature or a digital item.
5 . The computer-implemented method of claim 1 , further comprising:
animating at least a portion of the augmented reality feature,
wherein the at least a portion of the augmented reality feature is animated based on the known characteristic of the reference object.
6 . The computer-implemented method of claim 5 , wherein the at least a portion of the augmented reality feature is exposed from the foodstuff.
7 . A non-transitory computer-readable medium with instructions stored thereon that, when executed by a processor, cause the processor to perform operations comprising:
acquiring an image of a real-world environment captured by an image sensor of an electronic device;
parsing the image to identify a reference object having a known characteristic;
defining a three-dimensional (3D) reference space with respect to the reference object; and
generating an augmented reality feature whose features, position, or any combination thereof are determined based on the reference object.
8 . The non-transitory computer-readable medium of claim 7 , wherein the reference object includes at least one surface having a pattern printed thereon.
9 . The non-transitory computer-readable medium of claim 8 , wherein the pattern includes geometric shapes, alphanumeric characters, symbols, images, or any combination thereof.
10 . The non-transitory computer-readable medium of claim 8 , wherein the pattern includes element of at least two different colors.
11 . The non-transitory computer-readable medium of claim 8 , wherein the pattern is designed to be visually indistinguishable from other markings along an outer surface of the reference object.
12 . The non-transitory computer-readable medium of claim 7 , wherein the reference object is a tableware object designed to retain a foodstuff.
13 . The non-transitory computer-readable medium of claim 12 , wherein the augmented reality feature is at least partially embedded within the foodstuff.
14 . The non-transitory computer-readable medium of claim 8 , further comprising:
establishing, based on an orientation of the pattern, a location of the reference object within the 3D reference space;
modeling the reference object based on the known characteristic; and
cropping at least a portion of the augmented reality feature to account for a structural feature of the reference object.
15 . The non-transitory computer-readable medium of claim 8 , further comprising:
establishing, based on an orientation of the pattern, a location of the reference object within the 3D reference space;
modeling the reference object based on the known characteristic; and
animating at least a portion of the augmented reality feature to account for a structural feature of the reference object.
16 . The non-transitory computer-readable medium of claim 7 , wherein the reference object is detachably connectable to a physical object in the real-world environment.
17 . An electronic device comprising:
a memory that includes instructions for populating a real-world environment with augmented reality features in an authentic manner,
wherein the instructions, when executed by a processor, cause the processor to:
cause an image of a real-world environment that includes a reference object having a known characteristic to be captured;
parse the image to identify an orientation of the reference object in the real-world environment;
generate an augmented reality feature related to the reference object; and
cause the augmented reality feature to perform an animation involving the reference object.
18 . The electronic device of claim 17 , wherein the processor is configured to continually execute the instructions such that a determination is made as to whether a modification of the augmented reality feature is necessary for each image in a series of images representing a live video feed.
19 . The electronic device of claim 17 , wherein the instructions further cause the processor to;
generate a signal indicative of the animation; and
transmit the signal to the reference object,
wherein receipt of the signal prompts the reference object to generate a sensory output.
20 . The electronic device of claim 19 , wherein the sensory output is visual, auditory, haptic, somatosensory, or olfactory in nature.