Methods and systems for blend shape animation of a three-dimensional (3D) object
By identifying and removing unnecessary motion data for vertices with minimal movement and updating the model file to use sub-meshes for common blend shapes, the system addresses inefficiencies in 3D animation, resulting in reduced file size and improved rendering performance.
Patent Information
- Application Number
- PCT/US2023/015226
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-14
- Publication Date
- 2024-09-19
AI Technical Summary
Existing 3D animation systems face inefficiencies due to large model files resulting from unnecessary motion vectors for vertices that do not move or move slightly during blend shape animations, leading to increased memory usage and rendering time, which can cause latency and decreased system efficiency, especially in real-time rendering applications.
The system identifies vertices with minimal motion and removes corresponding data from the model file, updating it to associate vertices with common blend shapes into sub-meshes, allowing for reduced data processing and faster rendering by focusing on motion data relevant to the animation.
This approach reduces the size of model files, decreases memory consumption, and enhances rendering efficiency by processing fewer motion vectors, thereby reducing latency and improving overall system performance in real-time 3D object rendering.
Smart Images

Figure US2023015226_19092024_PF_FP_ABST
Abstract
Description
METHODS AND SYSTEMS FOR BLEND SHAPE ANIMATION OF A THREE-DIMENSIONAL (3D) OBJECTTECHNICAL FIELD
[0001] Aspects and implementations of the present disclosure relate to blend shape animation of a three-dimensional (3D) object.BACKGROUND
[0002] Computer animation refers to the process of digitally generating animation. In an illustrative example, objects (models) are built on the computer monitor and 3D models are rigged with a virtual skeleton. The limbs, eyes, mouth, clothes, etc. of the object canbe moved by the animator on key frames. The differences in appearance between key frames are automatically calculated by the computer and then the animation is rendered.
[0003] The 3D animated objects can be used by certain applications, such as video games in virtual reality (VR), applications in augmented reality (AR), avatars in certain programs, etc. to representthe objects to a user. In an example, a sports game played by a user in a virtual reality environment may require the generation of a virtual field, equipment, and players. In some applications, each object (e.g., each player) includes a one or more polygon meshes (e.g, triangular mesh) each having a set of vertices, i.e., points in space that form the polygon (e.g, triangle). In some instances, a mesh can be applied to a bone structure (also referred to as a “skeleton”) of the object, which includes a hierarchy of connected bones that, when moved, deform the polygon mesh. In other instances, a mesh can be applied to a blend shape (also referred to as a morph target), corresponding to one or more pre-defined shapes (e.g., facial expressions) of a 3D object. The mesh can be deformed between a default blend shape (e.g, an expressionless face) and another blend shape (e.g., a face including a laugh, a frown, pursed lips, a flared nose, etc. according to an animation associated with the 3D object.SUMMARY
[0004] The below summary is a simplified summary of the disclosure in order to provide a basic understanding of some aspects of the disclosure. This summary is not an extensive overview of the disclosure. It is intended neither to identify key or critical elements of the disclosure, nor delineate any scope of the particular implementations of the disclosure or any scope of the claims. Its sole purpose is to present some concepts of the disclosure in a simplified form as a prelude to the more detailed description that is presented later.
[0005] An aspect of the disclosure provides a computer-implemented method that includes obtaining a model file including data associated with a mesh of a three-dimensional (3D) obj ect. The data indicates a motion of each vertex of the mesh in accordance with each of a set of animations of the 3D object. The method further includes identifying, based on the data of the model, a set of vertices of the mesh each having a motion that satisfies one or more motion criteria with respect to the set of animations of the 3D object. The method further includes updating the model file to remove a portion of the data that corresponds to the identified set of vertices of the mesh. The method further includes providing the updated model file for renderingthe 3D object in accordance with atleastone of the set of animations of the 3D object.
[0006] As aspect of the disclosure provides a system including a memory and a processor communicatively coupled to the memory. The processor performs operations including obtaining a model file including data associated with a mesh of a three-dimensional (3D) obj ect. The data indicates a motion of each vertex of the mesh in accordance with each of a set of animations of the 3D object. The operations further include identifying, based on the data of the model, a set of vertices of the mesh each having a motion that satisfies one or more motion criteria with respect to the set of animations of the 3D object. The operations further include updating the model file to remove a portion of the data that corresponds to the identified set of vertices of the mesh. The operations further include providing the updated model file for renderingthe 3D object in accordance with atleastone of the set of animations of the 3D object.
[0007] An aspect of the disclosure provides a non-transitory computer readable storage medium including instructions for a server that, when executed by a processing device, cause the processing device to perform operations including receiving a request to render a mesh of a three-dimensional (3D) object in accordance with an animation of a set of animations of the 3D object. The operations further include identifying a model file associated with the 3D object stored at a first region of a memory. The model file includes an indication of one or more other regions of memory that store data indicating a motion of one or more vertices of the mesh in accordance with each of the set of animations of the 3D object. The operations further include determining a second region of the memory that stores data indicating a motion of a set of vertices correspondingto the animation indicatedby the request. The operations further include obtaining data indicating the motion of the set of vertices corresponding to the animation from the second region of the memory. The operations further include rendering the mesh of the 3D object in accordance with the animation based on the obtained data from the second region of the memory.
[0008] An aspect of the disclosure provides a computer-implemented method that includes receiving a request to render a mesh of a three-dimensional (3D) object in accordance with an animation of a set of animations of the 3D object. The method further includes identifying a model file associated with the 3D object stored at a first region of a memory. The model file includes an indication of one or more other regions of memory that store data indicating a motion of one or more vertices of the mesh in accordance with each of the set of animations of the 3D object. The method further includes determining a second region of the memory that stores data indicating a motion of a set of vertices corresponding to the animation indicated by the request. The method further includes obtaining data indicating the motion of the set of vertices corresponding to the animation from the second region of the memory. The method further includes rendering the mesh of the 3D object in accordance with the animation based on the obtained data from the second region of the memory.
[0009] An aspect of the disclosure provides a computer program including instructions that, when the program is executed by a computer, cause the computer to carry out a method that includes obtaining a model file including data associated with a mesh of a three- dimensional (3D) object. The data indicates a motion of each vertex of the mesh in accordance with each of a set of animations of the 3D object. The method further includes identifying based on the data of the model, a set of vertices of the mesh each having a motion that satisfies one or more motion criteria with respect to the set of animations of the 3D object. The method further includes updating the model file to remove a portion of the data that corresponds to the identified set of vertices of the mesh. The method further includes providingthe updated model file for rendering the 3D object in accordance with at least one of the set of animations of the 3D object.
[0010] An aspect of the disclosure provides a computer program including instructions that, when the program is executed by a computer, cause the computer to carry out a method that includes receiving a request to render a mesh of a three-dimensional (3D) object in accordance with an animation of a set of animations of the 3D object. The method further includes identifying a model file associated with the 3D object stored at a first region of a memory. The model file includes an indication of one or more other regions of memory that store data indicating a motion of one or more vertices of the mesh in accordance with each of the set of animations of the 3D object. The method further includes determining a second region of the memory that stores data indicating a motion of a set of vertices corresponding to the animation indicated by the request. The method further includes obtaining data indicating the motion of the set of vertices corresponding to the animation from the second region of thememory. The method further includes rendering the mesh of the 3D object in accordance with the animation based on the obtained data from the second region of the memory.BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Aspects and implementations of the present disclosure will be understood more fully from the detailed description given below and from the accompanying drawings of various aspects and implementations of the disclosure, which, however, should not be taken to limit the disclosure to the specific aspects or implementations, but are for explanation and understanding only.
[0012] FIG. 1 illustrates an example system architecture, in accordance with implementations of the present disclosure.
[0013] FIG. 2 illustrates an example user management engine, and example model engine, and an example rendering engine, in accordance with some aspects of the present disclosure.
[0014] FIGs. 3A-3B illustrate example blend shapes for a 3D object, in accordance with some aspects of the present disclosure.
[0015] FIGs. 4A-4B illustrate example model files, in accordance with some aspects of the present disclosure.
[0016] FIG. 5 illustrates a flow diagram for an example method for blend shape animation of a three-dimensional (3D) object, in accordance with some aspects of the present disclosure.
[0017] FIG. 6 illustrates a flow diagram for another example method for blend shape animation of a three-dimensional (3D) object, in accordance with some aspects of the present disclosure.
[0018] FIG. 7 is a block diagram illustrating an exemplary computer system, in accordance with implementations of the present disclosure.DETAILED DESCRIPTION
[0019] Aspects of the present disclosure are directed to blend shape animation of a three- dimensional (3D) object. Skeletal rigging is a technique in animation in which a 3D object (e.g., a character, an animal, a building, a vehicle, etc.) is represented in two parts. The first part includes a surface representation of the object, referred to as a polygon mesh, a mesh, or skin. The second part includes a hierarchical set of interconnected parts. The entirety of the hierarchical set is referred to as a skeleton structure, a skeleton, or a rig, while each part of the hierarchical set is referred to as a bone. The polygon mesh can include a collection of vertices, edges, and faces that define a shape of a polyhedral object. Specifically, the polygon mesh caninclude a set of polygons composed to make up the surface for the object. For example, data representing the object can include an indication of a triangular mesh having a set of vertices that form triangles (and / or other attributes such as normals, color, orUV coordinates associated with corresponding texture images). The bones collectively form the skeleton or the rig, which is used as a virtual framework to animate the vertices of the polygons. The animation can be composed of key frames and in-between frames. The key frames represent markers or anchor points that define the start and end points for an action by the object. For example, the key frames can represent significant poses of a character’s actions, such as the first and last positions of a jumping motion. In-between frames represent the poses between the key frames. That is, the in-between frames move the animation from one key frame to another.
[0020] A mesh for some regions of a 3D object can include a significant numb er of vertices that, when animated, depict a higher level of detail than other regions of the 3D object. For example, a mesh for a face of a virtual avatar can include a significant number of vertices that illustrate detail of the face (e.g., eyes, eye lashes, eye brows, nose, lips, etc.). Other types of animation can be used for rendering such regions of the 3D object, which can include blend shape animation (also referred to as morph target animation), per-vertex animation, and so forth. In blend shape animation, a “deformed” version of a mesh for a region of a 3D object is created (e.g., by an artist or a developer) as a series of vertex positions. Each “deformed” version of the mesh is referred to as a respective blend shape or a respective morph target. In an example of a face for a virtual avatar, an artist can create (e.g., using computer animation tools) a blend shape representing a neutral expression of the virtual avatar, a blend shape representing a smiling mouth of the virtual avatar, a blend shape representing one or more closed or open eyes of the virtual avatar, a blend shape representing a raised eyebrow of the virtual avatar. In each key frame of an animation, position of each vertex of the mesh is interpolated based on weights of each blend shape.
[0021] In conventional systems, a model file for a 3D objectthat can be rendered according to blend shape animation (or morph target animation) techniques includes an indication of each vertex of the mesh for the 3D object and, for eachvertex ofthe mesh, a motion vector indicating a degree and / or direction of motion of each vertex in accordance with each blend shape created for the 3D object. In an illustrative example, an artist can create, for a face of a virtual avatar, a neutralblend shape (e.g., representinganeutral expression ofthe virtual avatar), a smileblend shape (e.g., representing a smiling expression for the virtual avatar, a frowning blend shape (e.g., representing a frowning expression for the virtual avatar), and a blinking blend shape (e.g., representing a blinking or closed eye expression for the virtual avatar). The model fileforthe 3D object can indicate each vertex of the mesh for the 3D object and, for each vertex, a set of motion vectors each indicating a direction or degree of motion of the vertex when the neutral blend shape, the smiling blend shape, the frowning blend shape, and the blinking blend shape is applied. If the mesh forthe face of the virtual avatar includes 100 vertices, the model file will include four different motion vectors for each vertex, each motion vector corresponding to a distinct blend shape. Accordingly, the model file will include a total of 400 different motion vectors.
[0022] As computer animation becomes more detailed and complex, 3D objects can include a larger number of vertices to express such detail and complexity. In addition, artists and developers can create a large number (e.g., hundreds, etc.) of blend shapes to represent different forms (e.g., different faces) of the 3D object. Accordingly, model files for rendering 3D objects can be significantly large, which can consume a significantly large amount of memory space. When a model file is rendered according to blend shape animation and / or morph target animation, a value of each motion vector is accessed by a rendering engine and processed (e.g., added together with other values) to render the motion of one or more vertices of the mesh in accordance with the animation. Some animations involve motion for only a subset of vertices of a mesh, while othervertices do notmovein order to perform the animation. For example, animating between a neutral blend shape and a smile blend shape of a virtual avatar can involve a motion between vertices at or around a mouth of the face forthe virtual avatar, while vertices at or around the eyes, nose, forehead, etc. of the virtual avatar may not move during the animation. Some vertices of a mesh for a 3D object may never move during any animation of the 3D object or may have a very slight movement that is not easily distinguishable by a viewer viewing the animation. However, as indicated above, the model file forthe 3D object can include, for each vertex of the mesh, a motion vector for eachblend shape, regardless of the degree and / or direction of motion of the vertex between animation of the blend shapes.
[0023] The inclusion of motion vectors in a model file for vertices that do not move or move very slightly during animation between two or more blend shapes can significantly increase a size of the model file, and the model file can therefore consume a large amount of memory space. Such memory space is unavailable for other processes of a computing system. Similarly, for model files that are transmitted over a network, network bandwidth and other resources can be limited, and reducing model file size can reduce the network resources required and also potentially reduce network related lag in sending the model file, which is especially beneficial for real time or near real time or on the fly rendering. Further, therendering engine that renders the animation of a 3D object accesses and processes each motion vector of the model file, regardless of the degree and / or direction of motion of vertices according to the animation. Accordingly, the rendering engine can access and process motion vectors for vertices that do not move during animation between blend shapes, which can increase the amount of time to render the 3D object. As the amount of time to render the 3D object increases, computing resources (e.g., processing cycles, etc.) accessed by the rendering engine are not available to other processes running on the computing system, which can increase an overall latency and / or decrease an overall efficiency of the computing system. Reducing processing cycles would be beneficial in general, and especially beneficial for real time or near real time or on the fly / run-time rendering.
[0024] Implementations of the present disclosure address the above and other deficiencies by providing techniques for clustered blend shape rendering. In some embodiments, a computing system (e.g., a platform, a computer animation system, etc.) can obtain a model file associated with rendering a 3D object, such as a virtual avatar. The model file can include data associated with a mesh of the 3D object (e.g., a polygon mesh), the data indicating a motion of each vertex of the mesh in accordance with each of a set of animations of the 3D object. In some embodiments, each animation of the 3D object can correspond to one or more blend shapes of the 3D object, each blend shape indicating an outcome of a motion of one or more vertices of the mesh in accordance with the corresponding animation. Data of the model file can include, for each vertex of the mesh, a motion vector indicating a degree and / or direction of a motion of the vertex according to animation of each blend shape associated with the 3D object. In an illustrative example, the 3D object can be or otherwise include a virtual avatar and the mesh can represent a head, including a face, of the virtual avatar. The mesh can include 1000 vertices each corresponding to a region of the head and / or face of the virtual avatar. The virtual avatar may be associated with 100 blend shapes (e.g., created by an artist of the virtual avatar). Accordingly, the model file can include 100,000 motion vectors.
[0025] The computing system can identify a set of vertices of the mesh that each have a motion that satisfies one or more motion criteria with respect to each of the set of animations of the 3D object. In some embodiments, the one or more motion criteria can include a threshold degree of motion. A vertex of the mesh can satisfy the one or more criteria if the degree of motion for the vertex falls below the threshold degree of motion in accordance with each animation of the set of animations (e.g., the vertex does not move or moves only slightly according to each of the set of animations). In other or similar embodiments, the one or more motion criteria can include a threshold number of common blend shapes between two or morevertices. A vertex can satisfy the one or more criteria if a number of blend shapes that involve a motion of the vertex and at least one other vertex of the mesh falls below the threshold number of common blend shapes.
[0026] In response to identifying the set of vertices of the mesh that satisfy the motion criteria, the computing system can update the model file to remove a portion of data of the model file that corresponds to the identified set of vertices. In some embodiments, the computing system updates the model file by identifying data of the model file that corresponds to a set of motion vectors for each of the identified set of vertices and removing the identified data from the model file. The computing system provides the updated model file to a rendering engine for rendering the 3D object in accordance with at least one of the set of animations of the 3D object. The rendering engine can render the animation of the 3D object based on the updated model file obtained from the computing system. In some embodiments, the updated model file has a smaller size than the model file that was provided to the computing system (e.g., by an artist or developer of the virtual avatar).
[0027] As indicated above, the computing system can determine one or more common blend shapes that involve motion of a particular vertex of the mesh for the 3D object and other vertices of the mesh. In some embodiments, responsive to determining that the number of common blend shapes between the particular vertex and the other vertices exceeds a threshold number of blend shapes, the computing system can further update the model file for the 3D object to associate the particular vertex and the other vertices with a sub-mesh. Upon receiving the updated model file, the rendering engine can render the animation of the vertices of the submesh rather than rendering the animation of all vertices of the mesh, in some embodiments.
[0028] Accordingly, aspects of the present disclosure provide techniques for enabling computing systems to reduce an amount of data included in a model file used for rendering an animation of a 3D object, which can reduce the amount of computing resources consumed to transmit, store and process the model file. Embodiments, of the present disclosure provide that motion data (e.g., motion vectors) forvertices of a mesh that do notmove or move very slightly are removed from a model file for a 3D object. Accordingly, an overall size of the model file is reduced, and a smaller amount of memory is consumed to store the model file. Further, a rendering engine processing a model file that is updated according to embodiments of the present disclosure accesses and processes a fewer number of motion vectors and therefore can render the animation of the 3D object more quickly and using a fewer amount of processing cycles. Accordingly, an overall latency of the computing system is reduced, and an overall efficiency of the computing system is increased. As indicated above, in some embodiments,the model file can be further updated^ Lo associated vertices that involve motion for a threshold number of common blend shapes with a sub-mesh. The rendering engine can render the animation of the vertices of the sub-mesh when an animation for one or more blend shapes associated with the sub-mesh is requested (e.g., by the computing system), rather than rendering the animation of all vertices of the mesh. Rendering the animation of the vertices of the sub-mesh rather than rendering all vertices of the mesh can further enable the rendering engine to render the animation more quickly, which can consume an even fewer amount of processing cycles, in some embodiments.
[0029] FIG. 1 illustrates an example system architecture 100, in accordance with implementations of the present disclosure. The system architecture 100 (also referred to as “system” herein) includes client devices 102A-N, a data store 110, a platform 120 (e.g., a content sharing platform), and / or one or more server machines 130-150, each connected to a network 104. In implementations, network 104 may include a public network (e.g., the Internet), a private network (e.g., a local area network (LAN) or wide area network (WAN)), a wired network (e.g., Ethernet network), a wireless network (e.g., an 802.11 network or a WiFi network), a cellular network (e.g., a Long Term Evolution (LTE) network), routers, hubs, switches, server computers, and / or a combination thereof.
[0030] The client devices 102A-N (collectively and individually referred to as client device(s) 102 herein) may each include computing devices such as personal computers (PCs), laptops, mobile phones, smart phones, tablet computers, netbook computers, network- connected televisions, etc. In some implementations, client devices 102A-N may also be referred to as “user devices.” Each client device may include a content viewer. In some implementations, a content viewer may be an application that provides a user interface (UI) for users to view or upload content, such as images, video items, web pages, documents, etc. For example, the content viewer may be a web browser that can access, retrieve, present, and / or navigate content(e.g., web pages such as Hyper TextMarkup Language (HTML) pages, digital media items, etc.) served by a web server. The content viewer may render, display, and / or present the content to a user. The content viewer may also include an embedded media player (e.g., a Flash® player or an HTML5 player) that is embedded in a web page (e.g., a web page that may provide information about a product sold by an online merchant). In another example, the content viewer may be a standalone application (e.g., a mobile application or app) that allows users to view digital media items (e.g., digital video items, digital images, electronic books, etc.).
[0031] In some embodiments, platform 120 can provide one or more client devices 102 with access to an application (not shown) associated with 3D objects. The application can provide one or more 3D objects (e.g., virtual avatars) for display via a UI of client device(s) 102. Data store 110 can store data associated with rendering the object, in some embodiments. In some implementations, data store 110 is a persistent storage that is capable of storing data as well as data structures to tag, organize, and index the data. Data store 110 may be hosted by one or more storage devices, such as main memory, magnetic or optical storage based disks, tapes or hard drives, NAS, SAN, and so forth. In some implementations, data store 110 may be a network-attached file server, while in other embodiments data store 110 may be some other type of persistent storage such as an object-oriented database, a relational database, and so forth, that may be hosted by platform 120 or one or more different machines coupled to platform 120 via network 104.
[0032] In some embodiments, the 3D objects provided by the application can be or correspond to virtual avatars associated with one or more users of platform 120. A virtual avatar refers to a virtual character or representation associated with a user. The user can control the virtual avatar (e.g., via an associated client device 102) and / or can interact with virtual avatars associated with other users via the application. In some embodiments, the virtual avatar associated with the user can be generated based on image data (e.g., photos, video data, etc.) provided to platform 120 (e.g., by the user) and can depict one or more characteristics of the user. In other or similar embodiments, the virtual avatar can depict one or more characteristics of a character selected by the user. It should be noted that embodiments of the present disclosure apply to any type of virtual avatar and / or any type of 3D object.
[0033] Platform 120 can include a user management engine 132 and / or a model engine 142, in some embodiments. In additional or alternative embodiments, user management engine 132 can reside at server machine 130 and model engine 142 can reside at server machine 140. Platform 120 can access user management engine 132 and / or model engine 142 via network 104, in such embodiments. System 100 can additionally or alternatively include rendering engine 152. Rendering engine 152 can reside at server machine 150, in some embodiments, or at platform 120, in additional or alternative embodiments.
[0034] User management engine 132 can be configuredto manage data associated with one or more users of platform 120. In some embodiments, user management engine 132 can obtain data associated with a virtual avatar associated with the user (e.g., from client device 102) and can store the obtained data at data store 110. The obtained data can include image data associated with the user, one or more avatar characteristics associated with the virtual avatar(e.g., clothing style, hair style, hair color, accessories), and so forth. Model engine 142 can be configured to generate object data associated with the virtual avatar for the user. The object data can include data used by rendering engine 152 to render the virtual avatar, in some embodiments. In some embodiments, the object data can be included in a model file that is used by rendering engine 152 to renderthe virtual avatar. In other or similar embodiments, modeling engine 142 may obtain a model file (e.g., from user management engine 132, from another engine or component of system 100, etc.) and can update or otherwise modify the model file prior to rendering of the 3D object, as described herein.
[0035] Object data associated with the virtual avatar (or any other type of 3D object) can include an indication of a bone structure for the virtual avatar, and / or an indication of a mesh (e.g., a polygon mesh) for the virtual avatar, and / or an indication of one or more blend shapes (also referred to as morph targets) for the avatar. The bone structure can include one or more bones that are each indicated by a bone index. The mesh can include one or more polygons made up of vertices, edges, and faces. Each blend shape can indicate a distinct representation of at least a portion of the 3D object. For example, object data can include blend shapes for one or more faces for the virtual avatar, including a frowning face, a smiling face, and so forth. In some embodiments, the object data can additionally or alternatively include an indication of a motion vector for each vertex of at least a portion of the mesh. The motion vector can indicate a degree and / or a direction of a motion of a respective vertex in accordance with an animation of the 3D object. In an illustrative example, a motion vector can include at least three values each indicating a degree of movement of the vertex according to a respective axis of motion (e.g., an x-axis, a y-axis, a z-axis, etc.). A positive value can indicate movement in a positive direction along the axis, while a negative value can indicate movement in a negative direction along the axis. Further details regarding the motion vectors are provided with respect to FIGs. 4A and 4B. In some embodiments, the object data for a 3D object can be provided by a client device 102 associated with an artist or developer of the 3D object. In other or similar embodiments, the object data can be determined or otherwise generated by model engine 142 (e.g., based on a model template provided by an artist or developer of the 3D object and / or a developer of platform 120).
[0036] As indicated above a model file for a 3D object can include an indication of motion vectors for each vertex of the mesh according to each animation associated with the 3D object (e.g., as defined by an artist of the 3D object, etc.). In some embodiments, the model file can include a motion vector for each vertex of the mesh according to each animation. In an illustrative example, the mesh can include over 1000 vectors and the 3D object can beassociated with 100 distinctblend shapes. Accordingly , the model file can include over 100,000 vectors. Model engine 142 can identify one or more vertices having a motion that satisfies one or more motion criteria and, in some embodiments, can remove motion vectors for the identified one or more vertices from the model file (e.g., prior to rendering). In other or similar embodiments, model engine 142 can identify vertices that have motion for one or more common blend shapes and can further update the model file to associate the identified vertices with a sub-mesh. Model engine 142 can provide the updated model file to rendering engine 152 (e.g., in response to a request to render a particular animation of the 3D object), in some embodiments. Further details regarding updating the model file are provided herein.
[0037] Rendering engine 152 can be configured to render a 3D object (e.g., a virtual object). As indicated above, rendering engine 152 can be a part of platform 120 or can be separate from platform 120, in some embodiments. In some embodiments, rendering engine 152 can render the 3D object based on a model file obtained from model engine 142. As indicated above, the model file can indicate vertices of a mesh of the 3D object and, for each vertex of the mesh, a motion vector according to each animation associated with the 3D object. Rendering engine 152 can render an animation of the 3D object by executing the model file, in some embodiments. In some embodiments, rendering engine 152 can provide the rendered object 112 to platform 120 (e.g., via network 104). Platform 120 can provide the rendered obj ect 112 to a user associated with client device 102 via a UI of the application at client device 102, as described above. Further details aboutrendering engine 152 and providingthe rendered object 112 to client device 102 are described herein.
[0038] In some implementations, platform 120 and / or server machines 130-150 may operate on one or more computing devices (such as a rackmount server, a router computer, a server computer, a personal computer, a mainframe computer, a laptop computer, a tablet computer, a desktop computer, etc.), data stores (e.g., hard disks, memories, databases), networks, software components, and / or hardware components. In some implementations, the functions of platform 120 and / or server machines 130-150 may be provided by a more than one machine. For example, in some implementations, the functions ofuser management engine 132, model engine 142, and / or rendering engine 152 may be provided by two or more separate server machines. Platform 120, and / or server machines 130-150 may also include a website (e.g., a webpage) or application back-end software that may be used to enable a user to access media items, as described herein.
[0039] In general, functions described in implementations as being performed by platform 120 can also be performed on the client devices 102 in other implementations, if appropriate.In addition, the functionality attrib utedto a particular component can be performed by different or multiple components operating together. Platform 120 can also be accessed as a service provided to other systems or devices through appropriate application programming interfaces, and thus is not limited to use in websites.
[0040] It should be noted that although some embodiments of the present disclosure are directed to a content sharing platform, embodiments of this disclosure can be applied to other types of platforms. For example, embodiments of the present disclosure can be applied to a content archive platform, a content storage platform, etc.
[0041] In implementations of the disclosure, a “user” can be represented as a single individual. However, other implementations of the disclosure encompass a “user” being an entity controlled by a set of users and / or an automated source. For example, a set of individual users federated as a community in a social network can be considered a “user.” In another example, an automated consumer can be an automated ingestion pipeline, such as a topic channel, of the platform 120.
[0042] In situations in which the systems discussed here collectpersonal information about users, or can make use of personal information, the users can be provided with an opportunity to control whether platform 120 collects user information (e.g., information about a user’s social network, social actions or activities, profession, a user’s preferences, or a user’s current location), or to control whether and / or how to receive content from the content server that can be more relevant to the user. In addition, certain data can be treated in one or more ways before it is stored or used, so that personally identifiable information is removed. For example, a user’s identity can be treated so that no personally identifiable information can be determined for the user, or a user’ s geographic location can be generalized where location information is obtained (such as to a city, ZIP code, or state level), so that a particular location of a user cannot be determined. Thus, the user can have control over how information is collected about the user and used by the platform 120.
[0043] FIG. 2 illustrates an example user management engine 132, and example model engine 142, and an example rendering engine 152, in accordance with some aspects of the present disclosure. In some embodiments, user management engine 132, model engine 142, and / or rendering engine 152 can reside at or can otherwise be connected to platform 120 (e.g, via network 104). User management engine 132, model engine 142, and / or rendering engine 152 can be connected to memory 250, in some embodiments. Memory 250 can correspond to one or more portions of data store 110, in some embodiments. In additional or alternativeembodiments, memory 250 can correspond to any memory of, connected to, or accessible by a component of system 100.
[0044] As described above, an 3D object rendered by rendering engine 152 can, in some emb odiments, include a virtual avatar associated with a user of platf orm 120. The virtual avatar can be rendered to include one or more characteristics, as provided by the user of platform 120. The one or more characteristics can be included with or otherwise indicated by user data 202, in some embodiments. User data 202 can include data associated with a user that is provided by or otherwise received by a client device 102 associated with the user. In some embodiments, the virtual avatar can be rendered to include one or more characteristics that are the same or similar to characteristics of the user (e.g., hair color, eye color, etc.). In such embodiments, the user data 202 can include an indication of one or more characteristics of the user, as provided via client device 102. The indication of the one or more characteristics of the user can include image data for an image depicting the user, or other data that indicates the characteristics of the user, in some embodiments. In other or similar embodiments, the virtual avatar can be rendered as a character or object based on characteristics provided by the user. In such embodiments, user data 202 can include an indication of the characteristics of the character or object, as provided via client device 102.
[0045] As illustrated in FIG. 2, user management engine 132 can include user data component 212 and user avatar component 214. User data component 212 of user management engine 132 can obtain the user data 202 from platform 120 and, in some embodiments, can store the user data 202 at memory 250. In some embodiments, user data component 212 can store a mapping between the obtained user data 202 and an identifier associated with the user and / or the client device 102 associated with the user at memory 250.
[0046] In some embodiments, an artist or developer of a 3D object, such as the virtual avatar, can provide object data 204 associated with the 3D object to platform 120 (e.g., via a client device associated with the artist or developer). The object data 204 can include rendering data for default characteristics for the 3D object, as definedby the artist or the developer. For example, the object data 204 can include an indication of a bone structure and a mesh (e.g, a polygon mesh) for the 3D object, an indication of an assignment of one or more bones of the bone structure to a vertex of the mesh, and / or an indication of one or more default characteristics (e.g., indicated by default texturing coordinates, color data, etc.) for rendering the 3D object. In some embodiments, platform 120 can store the object data 204 at memory 250. User avatar component 214 of user management engine 132 can update object data 204 to include a mapping between one or more characteristics of the virtual avatar associated withthe user of platform 120 to corresponding data of object data 204. For example, user avatar component 214 can update object data 204 to include a mappingbetween one or more texturing coordinates and / or color data associated with a portion of the virtual avatar including the avatar’s eyes and an eye color of the user, as indicated by user data component 212.
[0047] It should be noted that in other or similar embodiments, object data 204 and / or characteristics of a virtual avatar can be provided by another system other than platform 120. For example, a computing system other than platform 120 can provide a model file 252 for rendering the virtual avatar via rendering engine 152. The model file 252 can include object data 204 and / or characteristics of the virtual avatar, in some embodiments. In other or similar embodiments, model file component 224 can generate or update the model file 252 based on the user data 202 and / or the object data 204 obtained from platform 120.
[0048] Model engine 142 can include a vertex motion component 222 and / or a model file component224, as illustrated in FIG. 2. Vertex motion component222 can be configured to identify motion data of model file 252 that can be removed (e.g., erased from memory associated with model file 252, etc.) so to reduce a size and / or processing complexity of model file 252 without compromising a quality of a 3D object animated using model file 252. As indicated above, model file 252 can include motion data of model file 252, which includes motion vectors indicating a degree of motion and / or a direction of motion for each vertex of the mesh for the 3D object according to each animation for the object (e.g., defined by an artist of the object). An animation can illustrate a transition between a two or more blend shapes, as described above.
[0049] FIGs. 3A-3B illustrate example blend shapes for a 3D object, in accordance with some aspects of the present disclosure. In particular, FIG. 3A illustrates an example neutral blend shape 310, an example smile blend shape 312, and an example frown blend shape 314 for a face of a virtual avatar, in some embodiments. In some embodiments, an animation can involve movement of one or more vertices (e.g., vertices 316) of a mesh for the virtual avatar along one or more axes of motion (e.g., an x-axis, a y-axis, az-axis, etc.). As illustrated in FIG. 3A, vertices 316 can be associated with distinct regions of each blend shape for the virtual avatar. For example, vertex 316A and vertex 316B can be associated with respective corners of a mouth of a virtual avatar, while vertex 316C and vertex 316D can be associated with regions of a mouth of the virtual avatar between the respective corners of the mouth. The smile blend shape 312 can indicate an outcome of a motion of one or more vertices 316 of the mesh in accordance with the smile animation (e.g., defined by an artist for the virtual avatar). For example, the smile blend shape 312 can indicate a position of vertex 316C and vertex 316Daccording to a smile animation (e.g., defined by the artist). To perform the smile animation, rendering engine 152, executing model file 252, can cause vertex 316C and vertex 316D to move from initial positions associated with neutral blend shape 310 to positions indicated by smile blend shape 312 (e.g., in a negative direction along a y-axis). In some embodiments, vertex 316 A and / or vertex 316B may not move in accordance with the smile animation. In additional or alternative embodiments, the frown blend shape 314 can indicate an outcome of a motion of one or more vertices of the mesh in accordance with a frown animation. For example, the frown blend shape 314 can indicate a position of vertex 316C and vertex 316D according to the frown animation (e.g., defined by the artist). To perform the frown animation, rendering engine 152, executing module file 252, can cause vertex 316C and vertex 316D to move from initial positions associated with neutral blend shape 310 to positions indicated by frown blend shape 314 (e.g., in a positive direction along a y-axis). In some embodiments, vertex 316 A and / or vertex 316B may not move in accordance with the frown animation.
[0050] As indicated above, a blend shape can indicate a position of vertices of a mesh according to a particular animation for a 3D object. Each blend shape, in some instances, can indicate a maximum degree of motion of the vertices, in accordance with the animation. For example, the smile blend shape 312 can indicate a maximum degree of motion of vertex 316C and / or vertex 316D for animating the smile expression. In another example, the frown blend shape 314 can indicate a maximum degree of motion of vertex 316C and / or vertex 316D for animating the frown expression. For purposes of illustration and explanation only, the maximum degree of motion for a respective blend shape can be associated with a value of approximately 1 (e.g., corresponding to a 100% degree of motion of the vertices). The position of vertices 316 according to neutral blend shape 310 can have a degree of motion of approximately 0 (e.g., corresponding to a 0% degree of motion of the vertices). In some embodiments, model file 252 can indicate a degree of motion for a respective vertex 316 of the meshthathas a value between 0 and 1 (e.g., between a neutral position and a maximum position of a respective blend shape). For example, model file 252 can indicate that a degree of motion for a vertex 316 is 0.5 (e.g., corresponding to a 50% degree of motion of the vertex 316). Rendering engine 152 executing such model file 252 can move the vertex 316 50% of the distance between the initial or neutral position of the vertex (e.g., defined by neutral blend shape 310) and the maximum position of the vertex (e.g., indicated by smile blend shape 312, frown blend shape 314, etc.). In an illustrative example, model file 252 can indicate that vertex 316C and / or vertex 316D have a degree of motion of approximately 0.5 for animating the virtual avatar in accordance with smile blend shape 312. Vertex 316C and / or vertex 316D canmove approximately 50% of the distance to the maximum degree of motion for blend shape 312, per rendering 318. In another illustrative example, model file 252 can indicate that vertex 316C and / or vertex 316D have a degree of motion of approximately 0.5 for animating the virtual avatar in accordance with the frown blend shape 314. Vertex 316C and / or vertex 316D can move approximately 50% of the distance to the maximum degree of motion per blend shape 314, per rendering 320.
[0051] FIG.3B illustrates another example neutral blend shape 350, eyes openblend shape 352, and eyes closed (e.g., blink) blend shape 354 for a virtual avatar. Vertices 356 can be associated with distinct region of each blend shape for the virtual avatar. For example, vertex 356A and vertex 356B can be associated with a top region of eyes of the virtual avatar and vertex 356C and vertex 356D can be associated with a bottom region of the eyes of the virtual avatar. The eyes open blend shape 352 can indicate an outcome of a motion of the mesh in accordance with the eyes open animation (e.g., defined by the artist for the virtual avatar). For example, the eyes openblend shape 352 can indicate a position of vertices 356A, 356B, 356C, and 356D accordingto an eyes open animation. To perform the eyes open animation, rendering engine 152, executingmodel file 252, can cause vertices356A, 356B, 356C, and 356Dto move from initial positions associated with neutral blend shape 310 to positions indicated by eyes open blend shape 352. Some vertices of the mesh may not move in accordance with the eyes open animation, in some embodiments. The eyes closed blend shape 354 can indicate an outcome of a motion of the mesh in accordance with the eyes closed animation (e.g., defined by the artist for the virtual avatar). For example, the eyes closed blend shape 354 can indicate a position of vertices 356A, 356B, 356C, and 356D accordingto an eyes open animation. To perform the eyes open animation, rendering engine 152, executing model file 252, can cause vertices 356A, 356B, 356C, and 356D to move from initial positions associated with neutral blend shape 310 to positions indicated by eyes closed blend shape 354. Some vertices of the mesh may not move in accordance with the eyes closed animation, in some embodiments.
[0052] In some embodiments, eyes open blend shape 352 can indicate a maximum degree of motion for vertices 356A, 356B, 356C, and 356D for animating the eyes open animation. In other or similar embodiments, the eyes closed blend shape 354 can indicate a maximum degree of motion for vertices 356A, 356B, 356C, and 356D for animatingthe eyes closed animation. Eyes open blend shape 352 and / or eyes closed blend shape 354 can be associated with a degree of motion of approximately 1 (e.g., corresponding to a 100% degree of motion of the vertices for the respective animations), as described above. In some embodiments, model file 252 can indicate that a degree of motion for a respective vertex 356 is 0.5 (corresponding to a 50%degree of motion of the vertex 316), as described above. Rendering engine 152 executing such model file 252 can move the vertex 356 50% of the distance between the initial or neutral position of the vertex (e.g., defined by neutral blend shape 350) and the maximum position of the vertex (e.g., indicated by eyes open blend shape 352, eyes closed blend shape 354, etc.). In an illustrative example, model file 252 can indicate thatvertices 356A, 356B, 356C, and 356D have a degree of motion of approximately 0.5 for animating the virtual avatar in accordance with eyes open blend shape 352. Vertices 356A, 356B, 356C, and 356D can move approximately 50% of the distance to the maximum degree of motion for blend shape 352, per rendering 358. In another illustrative example, model file 252 can indicate that vertex 356A, 356B, 356C, and 356D have a degree of motion of approximately 0.5 for animating the virtual avatar in accordance with the frown blend shape 354. Vertices 356A, 356B, 356C, and 356D can move approximately 50% of the distance to the maximum degree of motion per blend shape 354, per rendering 360.
[0053] It should be noted that examples of FIGs.3A and 3B are simplified for explanation and illustrative purposes only. In additional or alternative embodiments, a mesh of a 3D object, such as a virtual avatar, can include a significantly large number of vertices (e.g., hundreds, thousands, etc.). It should also be noted that vertices of the mesh can move in multiple directions in accordance with an animation of a 3D object. For example, a vertex can be moved according to any of the x-axis, the y-axis, and / or the z-axis, in some embodiments.
[0054] Model file 252 can include motion vectors indicating a degree and / or direction of motion of vectors for multiple blend shapes, as described above. FIGs. 4A and 4B depict example model files 252 including motion vectors for blend shapes 310, 312, 314, 350, 352, 354, and / or other blend shapes associated with a virtual avatar and / or another 3D object. As illustrated in FIG. 4A, model file 252 can include mesh vertex data 422, blend shape data 424, and / or motion data 426. In some embodiments, mesh vertex data 422 can indicate an identifier (ID) 432 associated with each vertex of the mesh. A vertex ID 432 can include any alphanumeric value that differentiates a vertex from other vertices, in some embodiments. A vertex ID can be referred to as a vertex index, in some embodiments. Blend shape data 424 can indicate an ID 434 associated with each blend shape for animating a 3D object. In some embodiments, the ID 434 can indicate a title or name associated with the animation. For example, the ID 434 for blend shape 312 can be “smile.” In another example, the ID 434 for blend shape 354 can be “blink.” Other IDs can be associated with other blend shapes, in some embodiments. In additional or alternative embodiments, blend shape data 424 can include anindication of a memory address for a region of memory (e.g., memory 250) that stores a file illustrating a respective blend shape.
[0055] Motion data 426 can include a motion vector 436 that indicates, for a respective vertex, a degree and / or a direction of the motion of the vertex in accordance with an animation for a respective blend shape. A vertex can move in a positive or negative direction according to an x-axis, a y-axis, and / or a z-axis, as described above. The motionvector 436 can indicate the degree of motion of the vertex (e.g., relative to the maximum degree of motion defined by the respective blend shape) and / or the direction of the motion. For example, as illustrated in FIG. 4A, model file 252 can provide that a vertex having an ID of 432 can have a degree of motion of approximately 0.5 (e.g., 50% relative to a maximum degree of motion) along an x- axis, a degree of motion of approximately 1 (e.g., 100% relative to a maximum degree of motion) along a y-axis, and 0 (e.g., 0% relative to a maximum degree of motion according to an animation for the “smile” blend shape.
[0056] As described above, model file 252 can include mesh vertex data 422, blend shape data 424, and motion data 426 for each vertex of a meshfor a 3D object and according to each animation associated with the 3D object. As illustrated in FIG. 4A, model file 252 can include motion vectors 436 for each vertex “00”-“ZZ” accordingto the “smile” blend shape and for additional blend shapes (e.g., the “blink” blend shape, etc.). In some embodiments, a vertex may not be moved to perform an animation. For example, as described with respect to FIG. 3 A, vertex 316A and vertex 316B may not be moved to perform a smile animation and / or a frown animation. A motion vector for such vertices can have values of [0, 0, 0], indicating a zero degree of motion of such vertices, in some embodiments. Other vertices (not illustrated by FIG. 3A and / or 3B) may notbe moved ormay have a slight movementduringperformance of an animation. Vertex motion component 222 can identify vertices of the mesh having a motion vector that satisfies one or more motion criteria, in some embodiments. A motion vector can satisfy a motion criteria if values of the motion vector fall below threshold values, in some embodiments. The threshold values can be provided by a developer associated with model engine 142 and / or rendering engine 152, in some embodiments. In other or similar embodiments, the threshold values can be determined based on historical or experimental motion data associated with rendering 3D objects.
[0057] Vertex motion component 222 can provide an indication of the vertices having a motion vector that satisfies the criteria to model file component 224 of model engine 142, in some embodiments. Model engine 142 can update model file 252 to remove the motion data 324 associated with the identified vertices (e.g., to generate updatedmodel file 254). Updatedmodel file 254 can include mesh vertex data 322, blend shape data 324, and / or motion data 324 associated with vertices that do not have a motion vector that satisfies the criteria (e.g., that have degrees of motion that exceed the threshold). As updated model file 254 has less data for vertices of the mesh of the 3D object, updated model file 254 can have a smaller file size and therefore occupy less memory space than model file 252.
[0058] Referring back to FIG. 2, rendering engine 152 can render an animation for a 3D object (e.g., a virtual avatar) as rendered object 112 based on updated model file 254. As updated model file 254 has less motion data than model file 252, rendering engine 152 can execute updated model file 254 in a lesser amount of time than executing model file 252, in some embodiments. In some embodiments, rendering engine 152 can render object 112 in response to a request from client device 102. Platform 120 can provide rendered object 112 to client device 102 for presentation to a user associated with client device 102via a UI of client device 102. In other or similar embodiments, rendering engine 152 can store rendered object 112 at memory 250. Platform 120 can obtain rendered object 112 from memory 250 and can provide rendered object 112 to client device 102, as described above.
[0059] In additional or alternative embodiments, vertex motion component 222 can identify vertices that share one or more common blend shapes and can associate the identified vertices with a sub-mesh, in some embodiments. Common blend shapes are blend shapes that involve motion of a particular vertex of the mesh and other vertices of the mesh. In response to determining that the number of common blend shapes between the particular vertex and other vertices of the mesh exceeds a threshold number of blend shapes, vertex motion component 222 can associate the vertex and the other vertices with a sub-mesh and can provide an indication of the sub-mesh to model file component 224. Model file component 224 can update model file 252 to remove data for vertices having a motion that satisfies the motion criteria and / or to indicate sub-meshes, in some embodiments. As illustrated in FIG. 4B, vertices “00” and “01” can both have motion according to the “smile” and “blink” animations. Vertex “02” may not have motion according to the “smile” animation. Model file component 224 can remove motion data associated with vertex “02” from model file 252, as described above. Responsive to vertex motion component 222 determining that vertices “00” and “01” both have motion accordingto the “smile” and “blink” animations, model file component 224 can further update model file 252 to include an indication that vertices “00” and “01” are associated with sub-mesh “ 1” (e.g., indicated by sub-mesh ID 450 of updated model file 254).
[0060] In additional or alternative embodiments, vertex motion component 222 and / or model file component 224 can group vertices of the mesh into sub-mesh using one or moremachine learning techniques. For example, a machine learning model can cluster vertices of the mesh based on blend shapes that involve a motion of the vertices. The machine learning model can cluster the vertices based on a hierarchical clustering algorithm (e.g., a Clustering Using REpresentatives (CURE) algorithm), in some embodiments. In some embodiments, the machine learning model can determine vertices that are to be included a sub-mesh based on a distance between a respective vertex and other vertices in view of the clustering. In some embodiments, the machine learning model can associate each vertex of the mesh with a submesh of a particular number of sub-meshes (e.g., definedby a developer of model engine 142 and / or rendering engine 152, determined based on historical data collected by model engine 142 and / or rendering engine 152). In other or similar embodiments, themachine learningmodel can associate each vertex of the mesh with a sub-mesh having a particular size (e.g., e.g., defined by a developer of model engine 142 and / or rendering engine 152, determined based on historical data collected by model engine 142 and / or rendering engine 152). An input to the machine learning model can include mesh vertex data 422, blend shape data 424, and / or motion data 426, in some embodiments. An output of the machinelearningmodel can include, for each vertex of the mesh, an indication of a sub -mesh that includes the vertex. The machine learning model can be trained using historical mesh vertex data 422, historical blend shape data 424, and / or historical motion data 426, in some embodiments.
[0061] Rendering engine 152 can render an animationfora 3D object(e.g., a virtual avatar) as rendered object 112 based on updated model file 254, as described above. In some embodiments, rendering engine 152 may receive a request to render an animation for an object 112 (e.g., from client device 102). In response to the request, rendering engine 152 can determine that the animation involves motion of vertices “00” and / or “01.” Rendering engine 152 can determine, based on updated model file 254, thatvertices “00” and / or “01” are included in sub-mesh “ 1” and can identify motion data for other vertices that are included in the submesh. Rendering engine 152 can render the animation for the object based on the identified motion data for the vertices of the sub-mesh, in some embodiments. In additional or alternative embodiments, rendering engine 152 may not process motion data for vertices that are not included in the sub-mesh (e.g., that do not include common blend shapes).
[0062] FIG. 5 illustrates a flow diagram for an example method 500 for blend shape animation of a three-dimensional (3D) object, in accordance with some aspects of the present disclosure. Method 500 may be performed by processing logic that may include hardware (circuitry, dedicated logic, etc.), software (e.g., instructions run on a processing device), or a combination thereof. In one implementation, some or all the operations of method 500 may beperformedby one ormore components of system 100 ofFIG. 1 and / or one ormore components of FIG. 2. In some embodiments, one or more operations of method 500 may be performed by model file 224 of model engine 142.
[0063] At block 510, processing logic obtains a model file including data associated with a mesh of a three-dimensional (3D) object. The data indicates a motion of each vertex of the mesh in accordance with each of a set of animations of the 3D object. In some embodiments, the 3D object can include a virtual avatar. In some embodiments, the model file is received from a client device connected to a platform via a network. The client device may be associated with an artist of the 3D object.
[0064] At block 512, processing logic identifies, based on the data of the model file, a set of vertices of the mesh each having a motion that satisfies one or more motion criteria with respect to the set of animations of the 3D object. In some embodiments, processing logic identifies the set of vertices of the mesh each having the motion that satisfies the one or more motion criteria by determining that a degree of the motion of each of the set of vertices falls below a threshold degree of motion indication by the one or more motion criteria. In other or similar embodiments, each animation of the set of animations corresponds to a blend shape of the mesh. Processing logic can identify the set of vertices of the mesh each having the motion that satisfies the one or more motion criteria by determining whether a number of blend shapes of a set of blend shapes involving the motion of a particular vertex of the mesh and at least one other vertex of the mesh exceeds a threshold number of blend shapes. In response to determining that the number of the blend shapes involving the motion of the particular vertex and the at least one other vertex does not exceed the threshold number of blend shapes, processing logic includes the particular vertex in the set of vertices. In some embodiments, responsive to determining that the number of the blend shapes involving the motion of the particular vertex and the at least one other vertex exceeds the threshold number of blend shapes, processing logic can further update the model file to associate the particular vertex and the at least one othervertex with a sub-mesh. The motion of vertices of the sub-mesh can be rendered in accordance with corresponding animations of each of the set of blend shapes without rendering the motion of vertices not associated with the sub-mesh.
[0065] At block 514, processing logic updates the model file to remove a portion of the data that corresponds to the identified set of vertices of the mesh. Processing logic can update the model file to remove the portion of the data that corresponds to the identified set of vertices of the mesh by identifying a set of motion vectors associated with each of the identified set ofvertices of the mesh includedin the model file and removingthe identified set of motion vectors from the model file.
[0066] At block 516, processinglogic provides the updated model file for renderingthe 3D object in accordance with at least one of the plurality of animations of the 3D object. In some embodiments, the updated model file is provided for renderingthe 3D object in response to a request from a client device connected to the platform (e.g., associated with a user of the platform).
[0067] In additional or alternative embodiments, processing logic can identify, based on data of the updated file, one or more vertices having motion in accordance with a particular animation of the set of animations. Processing logic can extract a portion of the data associated with the identified one or more vertices from the updated model file. Processing logic can store the updated model file at a first region of a memory associated with a rendering engine for renderingthe 3D object and store the extracted portion of the data at a second region of the memory associated with the rendering engine. In some embodiments, processing logic can add a pointer to the updated model file indicating a memory address associated with the second region of the memory storing the extracted portion of the data.
[0068] FIG. 6 illustrates a flow diagram for another example method 600 for blend shape animation of a three-dimensional (3D) object, in accordance with some aspects of the present disclosure. Method 600 may be performed by processing logic that may include hardware (circuitry, dedicated logic, etc.), software (e.g., instructions run on a processing device), or a combination thereof. In one implementation, some or all the operations of method 600 may be performedby one ormore components of system 100 ofFIG. 1 and / or one ormore components of FIG. 2. In some embodiments, one or more operations of method 500 may be performed by rendering engine 152.
[0069] At block 610, processing logic receives a request to render a mesh of a three- dimensional (3D) object in accordance with an animation of the 3D object. At block 612, processing logic identifies a model file associated with the 3D object stored at a first region of a memory. The model file includes an indication of one ormore other regions of the memory that store data indicating a motion of one or more vertices of the mesh in accordance with each animation of the 3D object.
[0070] In some embodiments, model engine 142 may obtain a model file 252 for rendering a 3D object, as described above. One or more components of model engine 142 can parse the model file 252 to identify one or more regions of the mesh for the 3D object including vertices associated with one or more common blend shapes. For example, model engine 142 canidentify a region of a mesh for a virtual avatar having vertices for eyes of the virtual avatar (e.g., based on eyes open blend shape 352 and / or eyes closed (e.g., blink) blend shape 354, etc.). In another example, model engine 142 can identify a region of a mesh for a virtual avatar having vertices for a mouth of the virtual avatar (e.g., based on smile blend shape 312, frown blend shape 314, etc.). Model engine 142 can extract motion data associated with the vertices of the identified region from model file 252 and can store the extracted data at a region of memory (e.g., memory 250) that is different from a region of memory storing model file 252. In some embodiments, model engine 142 can update model file 252 to include an indication of a region of memory 250 (e.g., a pointer, a memory address, etc.) that stores the extracted data.
[0071] At block 614, processinglogic determines a second region of the memory that stores data indicating a motion of a set of vertices corresponding to the animation indicated by the request. In some embodiments, processing logic can determine the second region of the memory that stores the data based on the indication (e.g., the pointer, the memory address) that stores the data. At block 616, processing logic obtains the data indicating the motion of the set of vertices corresponding to the animation from the second region of the memory. At block 618, processing logic renders the mesh of the 3D object in accordance with the animation based on the obtained data from the second region of the memory.
[0072] FIG. 7 is a block diagram illustrating an exemplary computer system, in accordance with implementations of the present disclosure. The computer system 700 can be the server machine 130-140 or client devices 102A-N in FIG. 1. The machine can operate in the capacity of a server or an endpoint machine in endpoint-server network environment, or as a peer machine in a peer-to-peer (or distributed) network environment. The machine can be a television, a personal computer (PC), a tablet PC, a set-top box (STB), a Personal Digital Assistant (PDA), a cellular telephone, a web appliance, a server, a network router, switch or bridge, or any machine capable of executing a set of instructions (sequential or otherwise) that specify actions to be taken by that machine. Further, while only a single machine is illustrated, the term “machine” shall also be taken to include any collection of machines that individually or jointly execute a set (or multiple sets) of instructions to perform any one or more of the methodologies discussed herein.
[0073] The example computer system 700 includes a processing device (processor) 702, a main memory 704 (e.g., read-only memory (ROM), flash memory, dynamic random access memory (DRAM) such as synchronous DRAM (SDRAM), double data rate (DDR SDRAM), or DRAM (RDRAM), etc.), a static memory 706 (e.g., flash memory, static random accessmemory (SRAM), etc.), and a data storage device 718, which communicate with each othervia a bus 740.
[0074] Processor (processing device) 702 represents one or more general-purpose processing devices such as a microprocessor, central processing unit, or the like. More particularly, the processor 702 can be a complex instruction set computing (CISC) microprocessor, reduced instruction set computing (RISC) microprocessor, very long instruction word (VLIW) microprocessor, or a processor implementing other instruction sets or processors implementing a combination of instruction sets. The processor 702 can also be one or more special-purpose processing devices such as an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a digital signal processor (DSP), network processor, or the like. The processor 702 is configured to execute instructions 705 (e.g., for rendering an animation of a 3D object) for performingthe operations discussed herein.
[0075] The computer system 700 can further include a network interface device 708. The computer system 700 also can include a video display unit 710 (e.g., a liquid crystal display (LCD) or a cathode ray tube (CRT)), an input device 712 (e.g., a keyboard, and alphanumeric keyboard, a motion sensing input device, touch screen), a cursor control device 714 (e.g., a mouse), and a signal generation device 720 (e.g., a speaker).
[0076] The data storage device 718 can include a non-transitory machine-readable storage medium 724 (also computer-readable storage medium) on which is stored one or more sets of instructions 705 (e.g., for rendering 3D objects) embodying any one or more of the methodologies or functions described herein. The instructions can also reside, completely or at least partially, within the main memory 704 and / or within the processor 702 during execution thereof by the computer system 700, the main memory 704 and the processor 702 also constituting machine-readable storage media. The instructions can further be transmitted or received over a network 730 via the network interface device 708.
[0077] In one implementation, the instructions 705 include instructions for predicting channel lineup viewership. While the computer-readable storage medium 724 (machine- readable storage medium) is shown in an exemplary implementation to be a single medium, the terms “computer-readable storage medium” and “machine-readable storage medium” should be taken to include a single medium or multiple media (e.g., a centralized or distributed database, and / or associated caches and servers) that store the one or more sets of instructions. The terms “computer-readable storage medium” and “machine-readable storage medium” shall also be taken to include any medium that is capable of storing, encoding or carrying a set of instructions for execution by the machine and that cause the machine to perform any one ormore of the methodologies of the present disclosure. The terms “computer-readable storage medium” and “machine-readable storage medium” shall accordingly be taken to include, but not be limited to, solid-state memories, optical media, and magnetic media.
[0078] Reference throughout this specification to “one implementation,” or “an implementation,” means that a particular feature, structure, or characteristic described in connection with the implementation is included in at least one implementation. Thus, the appearances of the phrase “in one implementation,” or “in an implementation,” in various places throughout this specification can, but are not necessarily, referring to the same implementation, depending on the circumstances. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more implementations.
[0079] To the extent that the terms “includes,” “including,” “has,” “contains,” variants thereof, and other similar words are used in either the detailed description or the claims, these terms are intended to be inclusive in a manner similar to the term “comprising” as an open transition word without precluding any additional or other elements.
[0080] As used in this application, the terms “component,” “module,” “system,” or the like are generally intended to refer to a computer-related entity, either hardware (e.g., a circuit), software, a combination of hardware and software, or an entity related to an operational machine with one or more specific functionalities. For example, a component may be, but is not limited to being, a process running on a processor (e.g., digital signal processor), a processor, an object, an executable, a thread of execution, a program, and / or a computer. By way of illustration, both an application running on a controller and the controller can be a component. One or more components may reside within a process and / or thread of execution and a component may be localized on one computer and / or distributed between two or more computers. Further, a “device” can come in the form of specially designed hardware; generalized hardware made specialized by the execution of software thereon that enables hardware to perform specific functions (e.g., generating interest points and / or descriptors); software on a computer readable medium; or a combination thereof.
[0081] The aforementioned systems, circuits, modules, and so on havebeen described with respect to interact between several components and / or blocks. It can be appreciated that such systems, circuits, components, blocks, and so forth can include those components or specified sub-components, some of the specified components or sub-components, and / or additional components, and according to various permutations and combinations of the foregoing. Subcomponents can also be implemented as components communicatively coupled to othercomponents rather than included within parent components (hierarchical). Additionally, it should be noted that one or more components may be combined into a single component providing aggregate functionality or divided into several separate sub -components, and any one or more middle layers, such as a management layer, maybe provided to communicatively couple to such sub -components in order to provide integrated functionality. Any components described herein may also interact with one or more other components not specifically described herein but known by those of skill in the art.
[0082] Moreover, the words “example” or “exemplary” are used herein to mean serving as an example, instance, or illustration. Any aspect or design described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other aspects or designs. Rather, use of the words “example” or “exemplary” is intended to present concepts in a concrete fashion. As used in this application, the term “or” is intended to mean an inclusive “or” rather than an exclusive “or.” That is, unless specified otherwise, or clear from context, “X employs A or B” is intended to mean any of the natural inclusive permutations. That is, if X employs A; X employs B; or X employs both A and B, then “X employs A or B” is satisfied under any of the foregoing instances. In addition, the articles “a” and “an” as used in this application and the appended claims should generally be construed to mean “one or more” unless specified otherwise or clear from context to be directed to a singular form.
[0083] Finally, implementations described herein include collection of data describing a user and / or activities of a user. In one implementation, such data is only collected upon the user providing consent to the collection of this data. In some implementations, a user is prompted to explicitly allow data collection. Further, the user may opt-in or opt-out of participating in such data collection activities. In one implementation, the collect data is anonymized prior to performing any analysis to obtain any statistical patterns so that the identity of the user cannot be determined from the collected data.
Claims
CLAIMSWhat is claimed is:1 . A method comprising: obtaining, by a processing device, a model file comprising data associated with a mesh of a three-dimensional (3D) object, wherein the data indicates a motion of each vertex of the mesh in accordance with each of a plurality of animations of the 3D object; identifying, by the processing device and based on the data of the model file, a set of vertices of the mesh each having a motion that satisfies one or more motion criteria with respect to the plurality of animations of the 3D object; updating, by the processing device, the model file to remove a portion of the data that corresponds to the identified set of vertices of the mesh; and providing, by the processing device, the updated model file for rendering the 3D object in accordance with at least one of the plurality of animations of the 3D object.
2. The method of claim 1, wherein identifying the set of vertices of the mesh each having the motion that satisfies the one or more motion criteria with respect to the plurality of animations of the 3D object comprises: determining that a degree of the motion of each of the set of vertices falls below a threshold degree of motion indicated by the one or more motion criteria.
3. The method of claim 1, wherein each animation of the plurality of animations corresponds to a blend shape for the mesh, and wherein identifying the set of vertices of the mesh each having the motion that satisfies the one or more motion criteria with respect to the plurality of animations of the 3D object comprises: determining whether a number of blend shapes of a set of blend shapes involving the motion of a particular vertex of the mesh and at least one other vertex of the mesh exceeds a threshold number of blend shapes; and responsive to determining that the number of the blend shapes involving the motion of the particular vertex and the at least one other vertex does not exceed the threshold number of blend shapes, including the particular vertex in the set of vertices.
4. The method of claim 3, further comprising: responsive to determining that the number of the blend shapes involving the motion of the particular vertex and the at least one other vertex exceeds the threshold number of blend shapes, further updating the model file to associate the particular vertex and the at least one other vertex with a sub-mesh, wherein the motion of vertices of the sub-mesh is rendered in accordance with corresponding animations of each of the set of blend shapes without rendering the motion of vertices not associated with the sub -mesh.
5. The method of claim 1 , further comprising: identifying, based on data ofthe updated model file, oneormore vertices havingmotion in accordance with a particular animation of the set of animations; extracting a portion of the data associated with the identified one or more vertices from the updated model file; and storing the updated model file at a first region of a memory associated with a rendering engine for rendering the 3D object and the extracted portion of the data at a second region of the memory associated with the rendering engine.
6. The method of claim 5, further comprising: adding, to the updated model file, a pointer indicating a memory address associated with the second region of the memory storing the extracted portion of the data.
7. The method of claim 1 , wherein updating the model file to remove a portion of the data that corresponds to the identified set of vertices of the mesh comprises: identifying a set of motion vectors associated with each of the identified set of vertices of the mesh included in the model file; and removing the identified set of motion vectors from the model file.
8. The method of claim 1, wherein the 3D object comprises a virtual avatar.
9. The method of claim 1 , wherein obtainingthe model file comprisingthe data associated with the mesh of the 3D object comprises receiving the model file from a client device connected to a platform via a network, the client device associated with an artist of the 3D object, andwherein the updated model file is provided to a rendering engine associated with the platform in response to a request from another client device connected to the platform for the rendering of the 3D object in accordance with the at least one of the plurality of animations of the 3D object.
10. A system comprising: a memory; and a processor communicatively coupled to the memory, the processor to perform operations comprising: obtaining a model file comprising data associated with a mesh of a three- dimensional (3D) object, wherein the data indicates a motion of each vertex of the mesh in accordance with each of a plurality of animations of the 3D object; identifying, based on the data of the model file, a set of vertices of the mesh each having a motion that satisfies one or more motion criteria with respect to the plurality of animations of the 3D object; updating the model file to remove a portion of the data that corresponds to the identified set of vertices of the mesh; and providingthe updated model file for renderingthe 3D object in accordance with at least one of the plurality of animations of the 3D object.
11. The system of claim 10, wherein identifying the set of vertices of the mesh each having the motion that satisfies the one or more motion criteria with respect to the plurality of animations of the 3D object comprises: determining that a degree of the motion of each of the set of vertices falls below a threshold degree of motion indicated by the one or more motion criteria.
12. The system of claim 10, wherein each animation of the plurality of animations corresponds to a blend shape for the mesh, and wherein identifying the set of vertices of the mesh each having the motion that satisfies the one or more motion criteria with respect to the plurality of animations of the 3D object comprises: determining whether a number of blend shapes of a set of blend shapes involving the motion of a particular vertex of the mesh and at least one other vertex of the mesh exceeds a threshold number of blend shapes; andresponsive to determining that the number of the blend shapes involving the motion of the particular vertex and the at least one other vertex does not exceed the threshold number of blend shapes, including the particular vertex in the set of vertices.
13. The system of claim 12, wherein the operations further comprise: responsive to determining that the number of the blend shapes involving the motion of the particular vertex and the at least one other vertex exceeds the threshold number of blend shapes, further updating the model file to associate the particular vertex and the at least one other vertex with a sub-mesh, wherein the motion of vertices of the sub-mesh is rendered in accordance with corresponding animations of each of the setof blend shapes without rendering the motion of vertices not associated with the sub-mesh.
14. The system of claim 10, wherein the operations further comprise: identifying, based on data of the updated model file, one or more vertices havingmotion in accordance with a particular animation of the set of animations; extracting a portion of the data associated with the identified one or more vertices from the updated model file; and storing the updated model file at a first region of a memory associated with a rendering engine for rendering the 3D object and the extracted portion of the data at a second region of the memory associated with the rendering engine.
15. The system of claim 14, wherein the operations further comprise: adding, to the updated model file, a pointer indicating a memory address associated with the second region of the memory storing the extracted portion of the data.
16. The system of claim 10, wherein updatingthe model file to remove a portion of the data that corresponds to the identified set of vertices of the mesh comprises: identifying data corresponding to a set of motion vectors associated with each of the identified set of vertices of the mesh included in the model file; and removing the data from the model file.
17. The system of claim 10, wherein the 3D object comprises a virtual avatar.
18. The system of claim 10, wherein obtaining the model file comprising the data associated with the mesh of the 3D object comprises receiving the model file from a client device connected to a platform via a network, the client device associated with an artist of the 3D object, and wherein the updated model file is provided to a rendering engine associated with the platform in response to a request from another client device connected to the platform for the rendering of the 3D object in accordance with the at least one of the plurality of animations of the 3D object.
19. A non-transitory computer readable storage medium comprising instructions for a server that, when executed by a processing device, cause the processing device to perform operations comprising: receiving a request to render a mesh of a three-dimensional (3D) object in accordance with an animation of a plurality of animations of the 3D object; identifying a model file associated with the 3D object stored at a first region of a memory, wherein the model file comprises an indication of one or more other regions of memory that store data indicating a motion of one or more vertices of the mesh in accordance with each of the plurality of animations of the 3D object; determining a second region of the memory that stores data indicating a motion of a set of vertices corresponding to the animation indicated by the request; obtaining the data indicating the motion of the set of vertices corresponding to the animation from the second region of the memory; and rendering the mesh of the 3D object in accordance with the animation based on the obtained data from the second region of the memory.
20. The non-transitory computer readable storage medium of claim 19, wherein the 3D object comprises a virtual avatar.
21. A method comprising: receiving a request to render a mesh of a three-dimensional (3D) object in accordance with an animation of a plurality of animations of the 3D object; identifying a model file associated with the 3D object stored at a first region of a memory, wherein the model file comprises an indication of one or more other regions ofmemory that store data indicating a motion of one or more vertices of the mesh in accordance with each of the plurality of animations of the 3D object; determining a second region of the memory that stores data indicating a motion of a set of vertices corresponding to the animation indicated by the request; obtaining the data indicating the motion of the set of vertices corresponding to the animation from the second region of the memory; and rendering the mesh of the 3D object in accordance with the animation based on the obtained data from the second region of the memory.
22. A computer program comprising instructions which, when the program is executed by a computer, cause the computer to carry out the method of claim 1.
23. A computer program comprising instructions which, when the program is executed by a computer, cause the computer to carry out the method of claim 21 .
