Centralized Rendering
A unified scene graph system addresses the challenges of rendering multiple applications on a single display by combining data, ensuring realistic interactions and efficient resource use, with sandboxed applications and multi-threaded processing.
Patent Information
- Application Number
- JP2023196665
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2018-06-18
- Filing Date
- 2023-11-20
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2039-06-18
AI Technical Summary
Conventional systems struggle to realistically and efficiently render graphical data from multiple applications on a single display, leading to incorrect sorting, lack of realistic interactions between data, and inefficient use of rendering optimizations, particularly in augmented reality environments.
A unified scene graph system that combines graphical data from multiple applications, allowing for realistic occlusion, lighting, and shading effects, while maintaining security and efficiency by sandboxing applications and using multi-threaded processing.
The system achieves realistic and efficient rendering of multiple applications on a single display, enhancing user experience with consistent visual interactions and optimizing computational resources, while maintaining security and scalability.
Smart Images

Figure 0007566114000001 
Figure 0007566114000002 
Figure 0007566114000003
Abstract
Description
[Technical field]
[0001] (CROSS REFERENCE TO RELATED APPLICATIONS) This application claims the benefit of U.S. Patent Application No. 16 / 011,413, filed June 18, 2018, the contents of which are incorporated by reference in their entirety herein for all purposes.
[0002] The present disclosure relates generally to systems and methods for visually rendering graphical data on a display, and more particularly to systems and methods for visually rendering data from multiple computer applications on a single display. [Background technology]
[0003] A variety of techniques exist for rendering the graphical data of computer applications on a display. It may be desirable for these techniques to render the graphical data realistically, i.e., consistently with a viewer's expectations based on the physical world, and to do so efficiently. It may also be desirable for the rendering techniques to accommodate computer systems of various topologies, including, for example, computer systems in which multiple applications contribute graphical data to be displayed on a single display.
[0004] Conventional systems are often unable to realistically and efficiently render content in such multi-application systems. For example, in some such systems, rendering graphical data from multiple applications on a single display can cause the data to be missorted on the display, producing unexpected visual results that detract from the realism of the display. Furthermore, graphical data from one application may not be able to realistically interact with graphical data from another application, such as through lighting and shadowing effects or through shaders. In addition, some such systems are limited in their ability to use rendering optimizations, such as culling of invisible surfaces, to increase computational efficiency.
[0005] Systems involving augmented reality (AR) or "mixed reality" in particular require better solutions to the problem of rendering graphical data from multiple applications on a single display. For example, AR systems have the potential for multiple users to interact with virtual content from all users rendered on a single display in a shared virtual space. It may be desirable for such interactions to be realistic and meaningful to users, and for the AR system's graphical output to be persuasive and consistent with the user's visual expectations, flexible enough to accommodate different types and numbers of users, user hardware, and user software, and the different ways in which users may wish to engage with the system, and efficient enough to sustain continuous operation at high frame rates and to maximize battery life on mobile devices. Additionally, it may be desirable for applications and application data associated with individual users in an AR system to remain independent of other users, both to provide security (which may be compromised by data access between untrusted users) and to maintain scalability, especially as the number of users of the system grows. Furthermore, such a system may benefit from minimizing technical constraints on users and user applications; for example, limiting the hardware requirements for users to participate in the AR system encourages more users to participate. This may be achieved by limiting the extent to which individual users or applications running on the user's hardware need to perform complex rendering operations, for example by offloading such operations to a shared system, such as a server-side hosted application running on dedicated hardware. Summary of the Invention [Means for solving the problem]
[0006] An embodiment of the present disclosure describes a computer system in which multiple applications contribute graphical data to be displayed on a single display. An embodiment of the present disclosure can be used to render the graphical data realistically, i.e., consistently with a viewer's expectations based on the physical world, and efficiently. According to an embodiment of the present disclosure, a first graphical data may be received from a first client application, and a second graphical data may be received from a second, independent client application. The first and second graphical data may be combined into a "unified" data structure, such as a scene graph, that may be used to describe relationships between nodes represented by the first and second graphical data. The unified data structure may thus be used to render a scene reflecting the first and second graphical data on a display in a realistic and efficient manner. The present invention provides, for example, the following: (Item 1) 1. A method comprising: receiving first graphical data from a first client application of the computer system, the first graphical data comprising a plurality of first nodes; receiving second graphical data from a second client application at the computer system, the second graphical data comprising a plurality of second nodes; Generating a scene graph Including, the scene graph describes an occlusion relationship between at least one first node of the plurality of first nodes and at least one second node of the plurality of second nodes; The scene graph is configured to create a rendered scene based on the occlusion relationships, wherein at least one second node occludes at least one first node. (Item 2) 2. The method of claim 1, further comprising traversing the scene graph by a processor of the computer system. (Item 3) 3. The method of claim 2, wherein the computer system is configured to communicate with a display, and the method further comprises displaying output on the display. (Item 4) 4. The method of claim 3, wherein displaying the output includes displaying at least one first node of the plurality of first nodes and at least one second node of the plurality of second nodes. (Item 5) 5. The method of claim 4, wherein displaying the output comprises displaying at least one first node. (Item 6) 3. The method of claim 2, further comprising applying an optimization to the output in the computer system. (Item 7) 7. The method of claim 6, wherein applying the optimization includes culling surfaces. (Item 8) 3. The method of claim 2, further comprising applying a visual effect to the output in the computer system. (Item 9) 9. The method of claim 8, wherein applying the visual effect includes calculating a light intensity value. (Item 10) 9. The method of claim 8, wherein applying the visual effect comprises executing a shader. (Item 11) 3. The method of claim 2, further comprising applying a physical effect to the output in the computer system. (Item 12) Item 12. The method of item 11, wherein applying the physical effect includes detecting a collision. (Item 13) 2. The method of claim 1, wherein the first client application is a first application executing on the computer system, the second client application is a second application executing on the computer system, and the first client application is sandboxed on the computer system with respect to the second client application. (Item 14) the first graphical data corresponds to a first client scene graph associated with the first client application; the second graphical data corresponds to a second client scene graph associated with the second client application; the first client scene graph is sandboxed on the computer system with respect to the second client scene graph; the first client scene graph is sandboxed on the computer system with respect to the scene graph; 2. The method of claim 1, wherein the second client scene graph is sandboxed on the computer system with respect to the scene graph. (Item 15) 2. The method of claim 1, wherein the scene graph corresponds to a version of a versioned scene graph. (Item 16) 2. The method of claim 1, wherein the first graphical data is communicated to the scene graph using a first processing thread of the computer system, and the second graphical data is communicated to the scene graph using a second processing thread of the computer system that is independent of the first processing thread. (Item 17) 1. A system comprising one or more processors, the one or more processors configured to perform a method, the method comprising: receiving first graphical data from a first client application of the computer system, the first graphical data comprising a plurality of first nodes; receiving second graphical data from a second client application at the computer system, the second graphical data comprising a plurality of second nodes; Generating a scene graph Including, the scene graph describes an occlusion relationship between at least one first node of the plurality of first nodes and at least one second node of the plurality of second nodes; The scene graph is configured to create a rendered scene based on the occlusion relationships, where at least one second node occludes at least one first node. (Item 18) 20. The system of claim 17, wherein the method further comprises causing a processor of the computer system to traverse the scene graph. (Item 19) 20. The system of claim 18, wherein the computer system is configured to communicate with a display, and the method further includes causing the computer system to present output on the display. (Item 20) 20. The system of claim 19, wherein displaying the output includes displaying at least one first node of the plurality of first nodes and at least one second node of the plurality of second nodes. (Item 21) 21. The system of claim 20, wherein displaying the output comprises displaying at least one first node. (Item 22) 20. The system of claim 18, wherein the method further comprises causing the computer system to apply an optimization to the output. (Item 23) 23. The system of claim 22, wherein applying the optimization includes culling surfaces. (Item 24) 20. The system of claim 18, wherein the method further comprises causing the computer system to apply a visual effect to the output. (Item 25) 25. The system of claim 24, wherein applying the visual effect includes calculating a light intensity value. (Item 26) 25. The system of claim 24, wherein applying the visual effect includes executing a shader. (Item 27) 20. The system of claim 18, wherein the method further comprises causing the computer system to apply a physical effect to the output. (Item 28) 28. The system of claim 27, wherein applying the physical effect includes detecting a collision. (Item 29) Item 18. The system of item 17, wherein the first client application is a first application running on the computer system, the second client application is a second application running on the computer system, and the first client application is sandboxed on the computer system with respect to the second client application. (Item 30) the first graphical data corresponds to a first client scene graph associated with the first client application; the second graphical data corresponds to a second client scene graph associated with the second client application; the first client scene graph is sandboxed on the computer system with respect to the second client scene graph; the first client scene graph is sandboxed on the computer system with respect to the scene graph; 20. The system of claim 17, wherein the second client scene graph is sandboxed on the computer system with respect to the scene graph. (Item 31) Item 18. The system of item 17, wherein the scene graph corresponds to a version of a versioned scene graph. (Item 32) Item 18. The system of item 17, wherein the first graphical data is communicated to the scene graph using a first processing thread of the computer system, and the second graphical data is communicated to the scene graph using a second processing thread of the computer system that is independent of the first processing thread. (Item 33) 20. The system of claim 17, wherein the system comprises the computer system. (Item 34) 18. The system of claim 17, wherein the first client application is a first application executing via the one or more processors, the second client application is a second application executing via the one or more processors, and the first client application is sandboxed on the system against the second client application. [Brief description of the drawings]
[0007] [Figure 1] 1A-1E illustrate an example computer system including a graphical display according to an embodiment of the present disclosure.
[0008] [Figure 2A] FIG. 2A illustrates an example flow of data in an example computer system, according to an embodiment of the present disclosure.
[0009] [Figure 2B] FIG. 2B illustrates an example renderer output corresponding to an example computer system, according to an embodiment of the present disclosure.
[0010] [Figure 2C] FIG. 2C illustrates an example flow of data in an example computer system including multiple independent applications, in accordance with an embodiment of the present disclosure.
[0011] [Figure 2D] FIG. 2D illustrates an example renderer output corresponding to an example computer system including multiple independent applications, according to an embodiment of the present disclosure.
[0012] [Figure 3A] FIG. 3A illustrates components of an exemplary computer system that can render 3D data from multiple independent applications to a display using a unified scene graph, according to an embodiment of the present disclosure.
[0013] [Figure 3B] FIG. 3B illustrates aspects of an example client application for an example computer system including multiple independent client applications, according to an embodiment of the present disclosure.
[0014] [Figure 3C] FIG. 3C illustrates aspects of an exemplary client-server interface for an exemplary computer system including multiple independent client applications, in accordance with an embodiment of the present disclosure.
[0015] [Figure 3D] FIG. 3D illustrates aspects of an example host application 340 for an example computer system that includes multiple independent client applications, according to an embodiment of the present disclosure.
[0016] [Figure 3E] FIG. 3E illustrates aspects of an example renderer 360 for an example computer system including multiple independent client applications, according to an embodiment of the present disclosure.
[0017] [Figure 4] FIG. 4 illustrates an example of a system architecture that may be embodied in any portable or non-portable device in accordance with an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0018] In the following description of the embodiments, reference is made to the accompanying drawings which form a part hereof, and in which is shown, by way of illustration, specific embodiments which may be practiced. It is to be understood that other embodiments may be used and structural changes may be made without departing from the scope of the disclosed embodiments.
[0019] 1A-1E illustrate various exemplary computer systems with displays. FIG. 1A shows an exemplary desktop computer connected to an external monitor. FIG. 1B shows an exemplary laptop including a display. FIG. 1C shows an exemplary mobile device including an integrated display. FIG. 1D shows an exemplary television including a display. FIG. 1E shows an exemplary computer system including a head-mounted display. The present disclosure is not limited to any particular type of computer system, any particular type of display, or any particular means of connecting a computer system to a display. The present disclosure is further not limited to two-dimensional displays, and three-dimensional displays, such as stereoscopic displays, are specifically contemplated.
[0020] In some exemplary computer systems, data to be presented graphically (as a "rendered scene") on a display includes data ("3D data") representing objects (such as 2D or 3D geometric primitives, including polygons) in three-dimensional space, and presenting the 3D data on a display includes presenting an image (the "displayed scene") corresponding to the objects in the three-dimensional space as viewed from a viewing origin oriented along a viewing axis. For example, in a software application (such as a video game using a 3D engine) running on a computer system, the 3D data may include data describing the spatial coordinates, orientation, and / or visual properties of objects in the three-dimensional game world, as well as the viewing origin and viewing axis within the game world. The 3D data may also include data related to textures associated with objects to be rendered, shader parameters associated with the objects, and other information that affects the manner in which the objects may be displayed. The game may, for example, instruct a software and / or hardware "pipeline" to create the rendered scene for presentation on the display as the displayed scene during a "rendering" or "drawing" phase. In such implementations, it is generally desirable that the resulting image reflects the user's expectations of the visual world. In particular, it is generally desirable that a first opaque object closer to the viewing origin occludes a second object behind the first object. An incorrectly occluded object may confuse the user and not clearly indicate where the object is located in three-dimensional space. In some exemplary computer systems, occlusion is achieved through sorting, where objects closer to the viewing origin are sorted or drawn on top of objects farther from the viewing origin.
[0021] Sorting multiple objects for presentation on a display such that one object realistically occludes another requires information about the relationships between the objects, e.g., spatial relationships between the objects in a three-dimensional space. Some exemplary computer systems utilize scene graphs to represent relationships (e.g., hierarchical relationships) between one or more objects, such as objects to be rendered as a scene. As used herein, a scene graph is any data structure that represents such relationships. For example, in a scene graph, the rendered objects to be presented may be represented as nodes in a graph, and the relationships between the nodes represent logical or spatial relationships between the objects. A renderer can then traverse the scene graph according to techniques known in the art and render or prepare at least one of the objects for presentation in a manner that will achieve proper occlusion. In other words, a renderer may create a scene of objects with nodes, but the presentation on a display may be only a subset of the rendered objects, such that an object that is occluded by another object in the renderer will only be partially presented in the resulting displayed scene (the output in such an embodiment is the unoccluded portion of the object). Such selective display may be useful to obscure content embodied by a first object launched from a first application when a user desires only content embodied by a second object launched from a second application to be visible within a given period of time. In some embodiments, a scene graph is an intermediate data structure that sits between an application containing 3D data and a renderer for rendering that 3D data for presentation to a screen, and in some embodiments, an application writes scene information to a scene graph, which may later be used by the renderer to render a scene or output a scene to be displayed.
[0022] 2A illustrates an exemplary flow of data in an exemplary computer system 200. In the system 200, a single application 210 can write data to a scene graph 240 that a renderer 250 can use to render an object 220 for presentation on a display 290. For example, the object 220 may include several objects (e.g., polygons) that together comprise a 3D representation of two human hands, namely, a hand 232 and a hand 236, and an application may, for example, during a rendering or drawing stage, instruct the object 220 to be presented on a display from the perspective of a viewing origin oriented along a viewing axis. In an embodiment, the hands 232 and 236 are interlocked in a handshake, and because of the relative positioning of the hands, a viewer would expect some parts of the hand 232 to occlude parts of the hand 236 and some polygons that make up the hand 236 to occlude parts of the hand 232, relative to the viewing origin and the viewing axis. The application 210 can write information to the scene graph 240 describing relationships between the polygons that make up the object 220, such as spatial relationships between the polygons that make up the object 220, that can be used to identify polygons that should occlude other polygons, i.e., polygons that should be sorted to display on top of others. For example, the scene graph 240 may reflect that polygon 234 (belonging to the hand 232) is located between the viewing origin and the polygons that make up the hand 236, and therefore should occlude those polygons in the hand 236, and that polygon 238 (belonging to the hand 236) is located between the viewing origin and the polygons that comprise the hand 232, and therefore should occlude those polygons in the hand 232. The renderer 250 may then output a subset of the object 220, such as only the hand 232 or the unoccluded portion of the hand 232 or only the hand 236, as output to the display 290 consistent with the desired occlusion for presentation.
[0023] Figure 2B illustrates an example output of the renderer 250 of the example computer system 200 illustrated in Figure 2A. In the example described above with respect to Figure 2A, based on the relative positions of the objects 220, the viewer expects that some of the objects (e.g., polygon 234) that make up the hand 232 occlude the hand 236 and that some of the objects (e.g., polygon 238) that make up the hand 236 occlude the hand 232. The example output illustrated in Figure 2B is consistent with the expected occlusion. That is, the objects 220 of Figure 2A are correctly displayed to present a handshake on the display 290 that is consistent with the viewer's expectations.
[0024] 2A and 2B, the scene graph 240 is written directly to the application 210 by only a single application. The renderer 250 then traverses the scene graph 240 and renders the hand 232 and the hand 236 with the appropriate occlusion. Conventional systems that use a scene graph as part of the rendering process, such as the exemplary computer system 200, may not occlude objects correctly when the scene graph (e.g., the scene graph 240) receives direct input from multiple independent applications. In these situations, unlike the exemplary computer system 200, there is no single application that can provide a scene graph with all of the object relationship data that may be needed to properly sort objects on the display.
[0025] 2C shows an example flow of data in an example computer system 201 using two independent applications, illustrating the occlusion problem described above. Unlike the example computer system 200 described above, the example computer system 201 includes two independent applications, namely, application 212 and application 214. In the example computer system 201, both application 212 and application 214 write data to a scene graph 240 and render their separate 3D data to a single display 290. In FIG. 2C, application 212 attempts to render and present object 222 (including the objects that make up hand 232), and application 214 attempts to render and present object 224 (including the objects that make up hand 236). In this example, as in the example illustrated in Figures 2A and 2B, hand 232 and hand 236 would be interlocked in a handshake such that a viewer would expect portions of hand 232 to occlude hand 236 and portions of hand 236 to occlude hand 232, if displayed side-by-side in the same 3D environment.
[0026] 2C may have difficulty in achieving realistic occlusion of objects to be rendered. In an embodiment, application 212 may write data corresponding to object 222 (including hand 232) to scene graph 240, and application 214 may write data corresponding to object 224 (including hand 236) to the same scene graph 240. However, in the exemplary computer system 201, if application 212 and application 214 are independent ("sandboxed") applications, application 212 may not be able to access data related to application 214's object 224 (including hand 236 and its constituent objects), and similarly, application 214 may not be able to access data related to application 212's object 222 (including hand 232 and its constituent objects). That is, in some embodiments, neither application 212 nor application 214 may be able to fully identify the relationship between object 222 and object 224. Therefore, neither application 212 nor application 214 can write information to scene graph 240 that may be necessary to identify objects that occlude other objects, or the order in which objects should be sorted on the display.
[0027] FIG. 2D illustrates an example output of the renderer 250 of the example computer system 201 illustrated in FIG. 2C. In the example described above with respect to FIG. 2C, based on the relative positioning of the objects 222 and 224, the viewer expects some parts of the hand 232 to occlude the hand 236 and some parts of the hand 236 to occlude the hand 232. However, unlike FIGS. 2A and 2B, the scene graph 240 of FIG. C cannot correctly sort the objects 222 and 224 and generate the desired occlusion, as described above. Instead, in the example shown, all of the objects 222 are sorted above all of the objects 224. The example output illustrated in FIG. 2D is therefore inconsistent with the expected occlusion. The resulting handshake image therefore does not accurately reflect the objects in the applications 212 and 214, and the image may additionally appear unnatural and be confusing to the viewer.
[0028] Other disadvantages of conventional scene graphs, such as scene graph 240 of FIGS. 2A-2D, are evident when used in conjunction with multiple independent applications, such as in exemplary computer system 201. For example, rendering efficiencies can be achieved using data corresponding to the entire scene to be rendered, such as in application 210 of FIG. 2A. For example, by knowing surfaces that will be occluded, exemplary computer system 200 of FIG. 2A can instruct system 200 to cull those surfaces, thereby avoiding unnecessary expenditure of computational resources. This culling may not be possible in a multi-application system, such as exemplary computer system 201 of FIG. 2C, because each application may not possess the scene knowledge to determine which surfaces should be culled. Furthermore, in some embodiments involving only a single application, such as exemplary computer system 200, beneficial effects may be applied to an object based on the presence of other objects in the scene. For example, applying realistic lighting and shadowing effects to an object may require data corresponding to nearby objects. Furthermore, some shader effects benefit from such data. Similarly, effects generated by particle systems or collision detection systems may benefit from such data. Such effects may be limited or impossible in a system where 3D data is provided by multiple independent applications, because no one application may be able to provide all of the node relationship information necessary to apply such effects.
[0029] This disclosure presents systems and methods that address the above-mentioned disadvantages of systems that use a unified scene graph to render 3D data from multiple independent applications. A unified scene graph can be used in place of a traditional scene graph, such as scene graph 240 of FIG. 2C, in a system in which multiple independent applications provide 3D data to be rendered (such as the example computer system 201 of FIG. 2C). As described herein, in some embodiments, the unified scene graph can include a system that receives 3D data from multiple individual input sources, writes information corresponding to the 3D data to a central location, and maintains the information for access by a renderer that creates a rendered scene comprising objects based on the 3D data. The rendered scene may be used to generate realistic object occlusion, computational efficiency, visual effects (such as lighting and shadowing), or output (such as graphical output) that reflects physical effects (such as collision detection) or partial display of occluded objects that would otherwise be difficult or impossible to achieve in a system that does not utilize a unified scene graph.
[0030] In some examples, an exemplary computer system includes multiple applications, each of which includes 3D data representing one or more objects in a common 3D environment. Each of the multiple applications may exist in a "sandboxed" environment such that it remains independent of the other applications, e.g., each individual application's data may be independent of each other application's data, each application may not have access to each other application's data, and each application's respective 3D data may correspond to the same 3D environment, while each application maintains its own instance of the 3D environment. For example, each application may represent a player in an online multiplayer video game, where each player exists in the same game world instance or 3D environment, but lacks direct access to the other players' data. In such examples, it may be desirable for all players to be rendered simultaneously in a single instance of the game world, but it may be undesirable (or computationally prohibitive) for each player to maintain the information necessary to render the 3D data of each other client participant. Additionally, for security purposes, it may be desirable to limit a player's information that is available to other players.
[0031] In some embodiments, each of the multiple sandboxed applications can independently write information corresponding to its 3D data to a local scene graph, which is later written to a common unified scene graph. The unified scene graph can then be traversed by a renderer to render a scene for presentation on a display as an image based on the collective 3D data provided by each application. By communicating 3D data from each of the multiple sandboxed applications to a single unified scene graph, the renderer can apply beneficial techniques such as occlusion, lighting effects, and rendering optimizations (such as surface culling) that require or benefit from concurrent knowledge of the 3D data of all applications. These benefits are achieved while limiting the required computational overhead of each sandboxed application; from a single application's perspective, all the application needs to do is update a single scene graph to reflect its 3D data, with other operations being performed by other components of the system. Additionally, security benefits can be obtained by maintaining isolation between the sandboxed applications.
[0032] FIG. 3A illustrates components of an exemplary computer system 300 that may render 3D data from multiple independent applications to a display using a unified scene graph. The illustrated embodiment utilizes a client-server topology, however, the disclosure is not limited to client-server embodiments. In the exemplary computer system 300, a first client application 310 and a second client application 320 each communicate (in some embodiments, over a network) 3D data to a client-server interface 330. In some embodiments, the client applications 310 and 320 are “sandboxed” applications that operate independently of one another and independently communicate their 3D data to the client-server interface 330. The client-server interface 330 may receive updated 3D data from the client applications 310 and 320 and communicate (in some embodiments, over a network) that 3D data to a server-side host application 340. In some embodiments, the client-server interface 330 uses multithreading techniques and uses multiple processor threads to receive, process, and / or communicate 3D data to the host application 340. In some embodiments, the client-server interface includes logic for controlling (such as by throttling) the rate at which 3D data is communicated to the host application 340. The host application 340 can use the 3D data received from the client-server interface to update the unified scene graph 350 such that the unified scene graph 350 reflects the 3D data received from the client applications 310 and 320. In some embodiments, the unified scene graph 350 comprises multiple versions of the scene graph, and known versioning techniques are used to allow updates to the unified scene graph 350 to occur in parallel.A renderer 360 can then traverse the unified scene graph 350, apply optimizations and effects as appropriate, and generate output (e.g., a graphical output comprising data for at least one of the client applications 310 and 320 and, in some embodiments, only the occluded portions of one client application without the occluding application data) for display on a display 370, such as a computer monitor.
[0033] 3B illustrates aspects of an example client application 310 for the example computer system 300 shown in FIG. 3A. In the example shown, the 3D data 312 represents graphical objects (geometric primitives, e.g., polygons, etc.) in a 3D environment to be presented on a display 370. The 3D data 312 may be updated 314 by the client application 310. For example, if the client application 310 is an application with a rendering loop that iterates 60 times per second, the client application 310 may update the 3D data 312 60 times per second to reflect changes in that data during the course of the application's operation that would be reflected in the rendered output. In some examples, the 3D data 312 is represented as a local scene graph 316, which may be local to each client application 310. In some examples, the local scene graph 316 may include data (such as nodes) that correspond to data in the unified scene graph 350. When the 3D data 312 is updated (314), the client application 310 can update the local scene graph 316 to reflect the most recent version of the 3D data 312. When the local scene graph 316 is updated, it can be used by the client application 310 to generate (317) client data 318. In some embodiments, the client data 318 may represent the local scene graph 316 in its entirety. In some embodiments, the client data 318 may represent changes made to the local scene graph 316 since the previous client data 318 was sent to the client-server interface 330. For example, the client data 318 may include nodes that have been added to or removed from the local scene graph 316, changes to relationships between nodes in the local scene graph 316, or changes to the nature of nodes in the local scene graph 316.In some embodiments, the client data 318 may use identifiers, such as identification numbers corresponding to scene graph nodes, to identify relationships between data from the local scene graph 316 and corresponding data on the unified scene graph 350. The client data 318 may then be communicated to the client server interface 330 for eventual communication to the host application 340. In some embodiments, communication of the client data 318 to the client server interface 330 may occur over a network. In some embodiments, a client helper application may be used in conjunction with the client application 310 to generate the client data 318 from the local scene graph 316 or from the 3D data 312.
[0034] Aspects described with respect to client application 310 may similarly describe client application 320, or other client applications that comprise exemplary computer system 300 (along with client application 310). It will be appreciated by those skilled in the art that the systems and methods described herein may be extended to include any number of client applications and client data, and the disclosure is not limited to any such number, and further, that some benefits (e.g., improved computational efficiency) may become more apparent with an increasing number of client applications. As described above, client applications 310 and 320 may be sandboxed applications that do not share data or functionality. For example, in exemplary computer system 300, client application 320 may have its own 3D data and local scene graph that are independent of 3D data 312 and local scene graph 316 that belong to client application 310. However, in some embodiments, including exemplary computer system 300, a single client-server interface 300 is shared by multiple client applications, such as client applications 310 and 320.
[0035] FIG. 3C illustrates aspects of an example client-server interface 330 for the example computer system 300 shown in FIGS. 3A and 3B. In an embodiment, client data 318 and client data 328 are client data communicated to or updated by the respective client applications 310 and 320, as described above with respect to FIG. 3B. In some embodiments, client data 318 and 328 may be updated on client-server interface 330 at different rates. This may occur, for example, if one client application runs on less powerful computing hardware than another client application (causing that client application to update its client data less frequently), if one client application communicates with client-server interface 330 over a lower bandwidth network than another client application, or if the client data associated with one client application is more complex (and requires more processing time to generate) than the client data associated with another client application. Different rates of updating client data on the client-server interface 330 may also be the result of temporary changes in operating conditions, such as when a network outage causes a client application to be temporarily offline. For example, it may be desirable for the computer system 300 to tolerate different rates of updating client data, such that a network outage affecting one client application does not adversely affect the rate at which the unified scene graph 350 is updated using client data from other client applications, or the rate at which a scene is rendered.Also, when updating the unified scene graph 350, it may be desirable to ensure that client data from one client application does not lag too far behind or lead too far ahead of client data from other client applications, as this could result in instability or desynchronization of the unified scene graph or rendered display for the client applications.
[0036] In some embodiments, the role of client-server interface 330 is to handle differences or increases and decreases in the rate at which client data is updated. With reference to FIG. 3C, an exemplary client-server interface 330 may receive client data 318 and 328 via independent processing threads 332 and 334, respectively, and may include a thread manager 336 for handling the threads. Utilizing multiple threads to update client data from different sources, such as client application 310 and client application 320, can prevent problems with one source from blocking or otherwise adversely affecting data from the other source. In the embodiment shown, thread manager 336 may input client data 318 and 328 from client applications 310 and 320, and output host data 319 and 329 (corresponding to client data 318 and 328, client applications 310 and 320, and threads 332 and 334, respectively) to host application 340 using threads 332 and 334, respectively. Thread manager 336 may include logic for processing threads 332 and 334, for identifying and addressing throughput problems or other issues associated with threads 332 and 334, and / or for controlling the output of host data 319 and 329. For example, if client data 318 and client data 328 are updating at approximately the same rate (via threads 332 and 334, respectively), thread manager 336 may simply update host data 319 and 329 (corresponding to client data 318 and 319, respectively) at approximately the same rate. However, if client data 318 is updated at a much faster rate than client data 328, thread manager 336 may throttle client data 318 (e.g., by communicating this to host application 340 at a less frequent rate) to prevent it from significantly outpacing client data 328.The thread manager 336 may also control the overall rate at which host data is updated. For example, the thread manager 336 may throttle the rate at which host data 319 and / or 329 is updated to prevent this host data from updating faster than the host application 340 can process it (which may result in undesirable desynchronization of output to the client applications 310 and / or 320, the unified scene graph 350, and / or the display 370).
[0037] FIG. 3D illustrates aspects of an example host application 340 for the example computer system 300 shown in FIGS. 3A-3C. Described herein are operations performed within thread 341 in host application 340, where thread 341 may execute in parallel with additional threads within host application 340. In some embodiments, multithreading within host application 340 may have the advantage of allowing multiple client applications or multiple sets of host data to simultaneously update the same unified scene graph 350 (in some embodiments, by updating different versions of the unified scene graph). This, in turn, may increase the overall throughput of client data to rendered scenes for presentation on a display. In some embodiments, multithreading may require that locks be placed on the unified scene graph data, for example, to prevent threads from inadvertently writing to the same data. However, in some embodiments, one or more of the operations described may not be executed within a thread.
[0038] In the example shown in FIG. 3D, the host data 319 (corresponding to the client application 310 and the client data 318) is updated (342) as described above with respect to FIG. 3C. The host application 340 may then identify changes that the host data 319 may make to a previous version of the unified scene graph 350. For example, the host application 340 may identify that, with respect to the unified scene graph 350, the host data 319 will add a node, remove a node, change a relationship between two nodes, or change the nature of a node. (In some examples, such as the example shown in FIG. 3D, the host application 340 may use a host data handler 344 to perform these operations or others.) The host application 340 may identify (352) a version of the unified scene graph 350 to be created or updated according to the host data 319. In some examples, prior to writing to the version 352 of the unified scene graph 350, the host application 340 may lock the version to prevent other processes from modifying it in parallel. The host application 340 may make changes to version 352 to reflect the host data 319 (e.g., by adding or removing scene graph nodes in version 352 to correspond to the host data 319). In some embodiments, the host application 340 may then unlock version 352 and update (356) the value of the version number corresponding to version 352. The host application 340 may then update (342) the host data and repeat the process shown in FIG. 3D. When the unified scene graph 350 is updated to reflect the individual host data derived from the individual client applications, the unified scene graph 350 will reflect the collective host data from multiple client applications, even though the individual client applications may be “sandboxed” and independent from one another.
[0039] 3E illustrates aspects of an example renderer 360 with respect to the example computer system 300 shown in FIGS. 3A-3D. In some embodiments, the renderer 360 constitutes part of the host application 340. In some embodiments, the renderer 360 may be part of another component of the example computer system 300 or may be a separate component or application. In some embodiments, the renderer 360 may be implemented in different physical hardware than one or more components of the example computer system 300 and may communicate with one or more of those components over a network.
[0040] In the example shown in FIG. 3E , the renderer 360 operates on version 352 of the unified scene graph 350. In the example, the role of the renderer is to create a rendered scene comprising data, such as output or graphical output, for presentation on a display 370 based on version 352 of the unified scene graph 350. As part of this process, the renderer 360 may traverse 362 the version 352 using known scene graph traversal techniques. During or after the traversal 362, the renderer 360 may update 364 the unified scene graph 350 as appropriate to reflect the results of the traversal. For example, as part of the traversal 362, the renderer 360 may identify abandoned nodes that should be removed from the unified scene graph 350. Following the traversal 362 and / or the updates 364, the renderer 360 may apply various optimizations 366 to the scene. For example, renderer 360 may cull obscured or non-visible surfaces to avoid consuming unnecessary computational resources. Following traversal 362 and / or update 364, renderer 360 may apply one or more visual effects 367 to the scene. For example, in some embodiments, renderer 360 may apply lighting or shadow effects, apply one or more shaders, apply particle effects, and / or apply physics effects. Finally, renderer 360 may output data to a graphical output pipeline, which may result in display output on display 370.
[0041] The above exemplary processes of a computer system may be provided by any suitable logic circuitry. Suitable logic circuitry may include one or more computer processors (e.g., CPU, GPU, etc.) that perform the processes upon execution of instructions implemented in a software program. In addition, such processes may also be provided via corresponding logic designs implemented in hardware logic circuitry, such as programmable logic (e.g., PLD, FPGA, etc.) or customized logic (e.g., ASIC, etc.), that implements the logic design providing the process. Furthermore, such processes may be provided via implementations that combine one or more processors that run both software and hardware logic circuitry.
[0042] 4 illustrates an exemplary system 400 that may be used to implement any or all of the above embodiments. The above embodiments (in whole or in part) may be embodied within any other system or device that is compatible with inclusion of the exemplary system architecture 400, including any portable (including wearable) or non-portable device, such as a communication device (e.g., mobile phone, smartphone), a multimedia device (e.g., MP3 player, TV, radio), a portable or handheld computer (e.g., tablet, netbook, laptop), a desktop computer, an integrated desktop, a peripheral device, a head-mounted device (e.g., may include an integrated display), or a combination of two or more of these types of devices. The above embodiments may be embodied in two or more physically separate devices, such as two or more computers that communicate over a wireless network. The above embodiments may be embodied in two or more physically distinct devices, such as a beltpack that communicates data to and / or from a head-mounted display. 4 is a block diagram of one embodiment of a system 400 that generally includes one or more computer-readable media 401, a processing system 404, an I / O subsystem 406, radio frequency (RF) circuitry 408, audio circuitry 410, and sensor circuitry 411. These components may be coupled by one or more communication buses or signal lines 403.
[0043] It should be apparent that the architecture shown in Figure 4 is just one example architecture for system 400, and that system 400 may have more or fewer components or a different configuration of components than those shown. The various components shown in Figure 4 may be implemented in hardware, software, firmware, or any combination thereof, including one or more signal processing and / or application specific integrated circuits.
[0044] Referring to the exemplary system architecture 400 of FIG. 4, the RF circuitry 408 can be used to transmit and receive information over a wireless link or network to one or more other devices and includes well-known circuitry for performing this function. The RF circuitry 408 and the audio circuitry 410 can be coupled to the processing system 404 via a peripherals interface 416. The interface 416 can include various well-known components for establishing and maintaining communications between the peripherals and the processing system 404. The audio circuitry 410 can be coupled to an audio speaker 450 and a microphone 452 and can include well-known circuitry for processing audio signals received from the interface 416 and enabling a user to communicate in real time with other users. In some embodiments, the audio circuitry 410 can include a headphone jack (not shown).
[0045] The sensor circuitry 411 can be coupled to a variety of sensors, including, but not limited to, one or more light emitting diodes (LEDs) or other light emitters, one or more photodiodes or other light sensors, one or more photothermal sensors, magnetometers, accelerometers, gyroscopes, barometers, compasses, proximity sensors, cameras, ambient light sensors, thermometers, GPS sensors, electro-oculography (EOG) sensors, and various system sensors that may sense remaining battery life, power consumption, processor speed, CPU load, and the like. In embodiments involving head-mounted devices, one or more sensors may be employed in connection with functionality related to a user's eyes, such as tracking a user's eye movements or identifying a user based on an image of their eye.
[0046] The peripherals interface 416 can couple input and output peripherals of the system to the processor 418 and the computer-readable medium 401. The one or more processors 418 may communicate with the one or more computer-readable media 401 via the controller 44. The computer-readable medium 401 can be any device or medium (excluding signals) that can store code and / or data for use by the one or more processors 418. In some embodiments, the medium 401 can be a non-transitory computer-readable storage medium. The medium 401 can include a memory hierarchy including, but not limited to, cache, primary memory, and secondary memory. The memory hierarchy can be implemented using any combination of magnetic and / or optical storage devices such as RAM (e.g., SRAM, DRAM, DDRAM), ROM, FLASH®, disk drives, magnetic tape, CDs (compact discs), and DVDs (digital video discs). The medium 401 can also include a transmission medium for carrying information-bearing signals indicative of computer instructions or data (although excluding signals and excluding carrier waves on which the signals are modulated). For example, the transmission medium may include communications networks, including, but not limited to, the Internet (also known as the World Wide Web), an intranet, a local area network (LAN), a wide local area network (WLAN), a storage area network (SAN), a metropolitan area network (MAN), and the like.
[0047] The one or more processors 418 can run various software components stored within the medium 401 to perform various functions for the system 400. In some embodiments, the software components can include an operating system 422, a communications module (or set of instructions) 424, an I / O processing module (or set of instructions) 426, a graphics module (or set of instructions) 428, and one or more applications (or sets of instructions) 430. These modules and the applications described above can each correspond to a set of instructions for performing one or more functions described above and methods described herein (e.g., computer-implemented methods and other information processing methods described herein). These modules (i.e., sets of instructions) need not be implemented as separate software programs, procedures, or modules, and thus various subsets of these modules may be combined or otherwise rearranged in various embodiments. In some embodiments, the medium 401 may store a subset of the modules and data structures identified above. Additionally, the medium 401 may store additional modules and data structures not described above.
[0048] Operating system 422 may include various procedures, sets of instructions, software components, and / or drivers for controlling and managing general system tasks (e.g., memory management, storage device control, power management, etc.) and facilitates communication between various hardware and software components.
[0049] The communications module 424 can facilitate communications with other devices via one or more external ports 436 or through the RF circuitry 408, and can include various software components for handling data received from the RF circuitry 408 and / or the external port 436.
[0050] Graphics module 428 may include various known software components for rendering, animating, and displaying graphical objects on one or more display surfaces. The display surfaces may include 2D or 3D displays. The display surfaces may be directly or indirectly coupled to one or more components of exemplary system 400. In examples involving a touch-sensitive display (e.g., a touch screen), graphics module 428 may include components for rendering, displaying, and animating objects on the touch-sensitive display. In some examples, graphics module 428 may include components for rendering to a remote display. In some examples, such as those incorporating a camera, graphics module 428 may include components for creating and / or displaying images formed by combining rendered graphical objects with camera data (such as captured from a head-mounted camera) or photographic data (such as imagery captured by a satellite). In some examples, the graphics module may include components for rendering images to a head-mounted display device. In some examples, the images may include views of elements of virtual content (e.g., objects in a three-dimensional virtual environment) and / or views of the physical world (e.g., camera input showing the user's physical surroundings). In some examples, the display may present a composite image of the virtual content and a view of the physical world, in some examples the view of the physical world may be a rendered image, and in some examples the view of the physical world may be an image from a camera.
[0051] The one or more applications 430 may include any application installed on the system 400, including, but not limited to, a browser, an address book, a contact list, email, instant messaging, word processing, keyboard emulation, widgets, JAVA®-enabled applications, encryption, digital rights management, voice recognition, voice duplication, location determination capabilities (such as those provided by a Global Positioning System (GPS)), music players, etc.
[0052] The I / O subsystem 406 can be coupled to an ocular I / O device 412 and one or more other I / O devices 414 for controlling or implementing various functions. For example, the ocular I / O device 412 can communicate with the processing system 404 via an ocular I / O device controller 432, which may include various components for processing ocular input (e.g., a sensor for eye tracking) or user gesture input (e.g., an optical sensor). The one or more other input controllers 434 can send and receive electrical signals to and from the other I / O device 414. The other I / O device 414 may include physical buttons, dials, slider switches, sticks, keyboards, touch pads, additional display screens, or any combination thereof.
[0053] The I / O processing module 426 may include various software components for performing various tasks associated with the ocular I / O device 412 and / or other I / O devices 414, including, without limitation, receiving and processing input received from the ocular I / O device 412 via the ocular I / O device controller 432 or from the other I / O devices 414 via the I / O controller 434. In some examples, the I / O device 414 and / or the I / O processing module 426 may perform various tasks associated with gesture input, which may be provided by tactile or non-tactile means. In some examples, the gesture input may be provided, for example, by a camera or another sensor to detect movement of a user's eyes, arms, hands, and / or fingers. In some examples, the I / O device 414 and / or the I / O processing module 426 may be configured to identify an object on a display with which a user wishes to interact, for example, a GUI element at which the user is pointing. In some examples, the ocular I / O device 412 and / or the I / O processing module 426 may be configured (such as with the assistance of optical or EOG sensors) to perform eye tracking tasks, such as identifying an object or area on a display that the user is looking at. In some examples, a device (such as a hardware "beacon") may be worn or held by the user to assist the touch I / O device 412 and / or the I / O processing module 426 with gesture-related tasks, such as identifying the location of the user's hands relative to a 2D or 3D environment. In some examples, the ocular I / O device 412 and / or the I / O processing module 426 may be configured to identify the user based on sensor input, such as data from a camera sensor associated with the user's eye.
[0054] In some examples, the graphics module 428 can display visual output to the user within the GUI. The visual output may include text, graphics, video, and any combination thereof. Some or all of the visual output may correspond to user interface objects. In some examples, the I / O devices 412 and / or 414 and / or the controllers 432 and / or 434 (along with any associated modules and / or sets of instructions within the medium 401) can detect and track gestures and / or eye movements and translate the detected gestures and / or eye movements into interactions with graphical objects, such as one or more user interface objects. In examples in which the eye I / O devices 412 and / or the eye I / O device controllers 432 are configured to track the user's eye movements, the user can directly interact with the graphical objects by looking at them.
[0055] Feedback may be provided, such as by the ocular I / O device 412 or another I / O device 414, based on the content being displayed and / or the state or states of the computing system. Feedback may be transmitted optically (e.g., light signals or displayed images), mechanically (e.g., haptic feedback, touch feedback, force feedback, or the like), electrically (e.g., electrical stimulation), olfactory, acoustically (e.g., beeps or the like), or the like, or any combination thereof, and in a variable or non-variable manner.
[0056] The system 400 may also include a power system 444 for powering the various hardware components and may include a power management system, one or more power sources, a recharging system, a power outage detection circuit, power converters or inverters, power status indicators, and any other components typically associated with the generation, management, and distribution of power in a portable device.
[0057] In some embodiments, the peripherals interface 416, the one or more processors 418, and the memory controller 420 may be implemented on a single chip, such as the processing system 404. In some other embodiments, they may be implemented on separate chips.
[0058] In some examples, a method is disclosed. The method may include receiving, from a first client application of a computer system, first graphical data comprising a plurality of first nodes, receiving, from a second client application of the computer system, second graphical data comprising a plurality of second nodes, and generating a scene graph, the scene graph describing relationships, such as occlusion relationships, between the first nodes and the second nodes, the scene graph being configured to render a scene comprising the nodes when traversed by a processor of the computer system. In addition to or as an alternative to one or more of the above examples, the method may further include traversing the scene graph by a processor of the computer system. In addition to or as an alternative to one or more of the above examples, the computer system may be configured to communicate with a display, and the method may further include presenting an output comprising at least one node that is not occluded by another node in the rendered scene on the display. In some embodiments, occlusion is the visual blocking of one node by another when viewing the rendered scene of the object from a given viewpoint. In addition to or as an alternative to one or more of the above examples, the computer system may be configured to communicate with a display, and the method may further include displaying the output on the display, such as by displaying the scene rendered as it is on the scene graph, or by displaying only those nodes of the first or second plurality of nodes that are not occluded, while not displaying other nodes. For example, if the second plurality of nodes occludes some of the first plurality of nodes, the displayed output may be only the first plurality of non-occluded nodes without displaying any of the second plurality of nodes. In addition to or as an alternative to one or more of the above examples, the method may further include applying an optimization to the output at the computer system.Additionally or in the alternative to one or more of the above examples, applying the optimization may include culling surfaces. Additionally or in the alternative to one or more of the above examples, the method may further include, in the computer system, applying a visual effect to the output. Additionally or in the alternative to one or more of the above examples, applying the visual effect may include calculating a light value. Additionally or in the alternative to one or more of the above examples, applying the visual effect may include executing a shader. Additionally or in the alternative to one or more of the above examples, the method may further include, in the computer system, applying a physical effect to the output. Additionally or in the alternative to one or more of the above examples, applying the physical effect may include detecting collisions. Additionally or in the alternative to one or more of the above examples, the first client application may be a first application executing on the computer system, the second client application may be a second application executing on the computer system, and the first client application may be sandboxed on the computer system against the second client application. In addition to or as an alternative to one or more of the above examples, the first graphical data may correspond to a first client scene graph associated with the first client application, the second graphical data may correspond to a second client scene graph associated with the second client application, the first client scene graph may be sandboxed on the computer system with respect to the second client scene graph, the first client scene graph may be sandboxed on the computer system with respect to the scene graph, and the second client scene graph may be sandboxed on the computer system with respect to the scene graph.Additionally or as an alternative to one or more of the above embodiments, the scene graph may correspond to a version of the versioned scene graph. Additionally or as an alternative to one or more of the above embodiments, the first graphical data may be communicated to the scene graph using a first processing thread of the computer system and the second graphical data may be communicated to the scene graph using a second processing thread of the computer system that is independent from the first processing thread.
[0059] In some embodiments, a method is disclosed. The method may include traversing a scene graph of a computer system with a display, the scene graph comprising first 3D data associated with a first application, the first 3D data comprising one or more nodes, the scene graph comprising second 3D data associated with a second application, the second 3D data comprising one or more nodes, the first application being sandboxed on the computer system relative to the second application, the scene graph comprising relationships between nodes of the first 3D data and nodes of the second 3D data, and displaying an image corresponding to the scene graph on the display, the image corresponding to an output of traversing the scene graph, the image reflecting a relationship of either a partial or full display of the data. In addition or as an alternative to one or more of the above embodiments, the relationship may be a spatial relationship. In addition or as an alternative to one or more of the above embodiments, the method may further include applying an optimization to an output of traversing the scene graph in the computer system. Additionally or in the alternative to one or more of the above embodiments, applying the optimization may include culling surfaces. Additionally or in the alternative to one or more of the above embodiments, the method may further include, in the computer system, applying a visual effect to an output of traversing the scene graph. Additionally or in the alternative to one or more of the above embodiments, applying the visual effect may include calculating a light value. Additionally or in the alternative to one or more of the above embodiments, applying the visual effect may include executing a shader. Additionally or in the alternative to one or more of the above embodiments, the method may further include, in the computer system, applying a physical effect to an output of traversing the scene graph. Additionally or in the alternative to one or more of the above embodiments, applying the physical effect may include detecting collisions.Additionally or as an alternative to one or more of the above examples, the scene graph may correspond to a version of the versioned scene graph. Additionally or as an alternative to one or more of the above examples, the graphical data corresponding to the first 3D data may be communicated to the scene graph by a host application executing on the computer system. Additionally or as an alternative to one or more of the above examples, the graphical data corresponding to the first 3D data may be communicated to the host application by a client of the host application. Additionally or as an alternative to one or more of the above examples, the first graphical data corresponding to the first 3D data may be communicated to the scene graph by the host application using a first processing thread and the second graphical data corresponding to the second 3D data may be communicated to the scene graph by the host application using a second processing thread independent of the first processing thread.
[0060] In some embodiments, a computer system is disclosed that may include one or more processors and a memory that stores instructions that, when executed by the one or more processors, cause the one or more processors to perform one or more of the methods described above.
[0061] In some examples, a non-transitory computer-readable storage medium is disclosed. The non-transitory computer-readable storage medium may store instructions that, when executed by one or more processors, cause the one or more processors to perform a method including receiving, from a first client application of the computer system, first graphical data comprising a plurality of first nodes, receiving, from a second client application of the computer system, second graphical data comprising a plurality of second nodes, and generating a scene graph, the scene graph describing relationships between the first nodes and the second nodes, the scene graph being configured, when traversed by the processor of the computer system, to render a scene based on occlusion relationships, where one or more of the first or second nodes in the first or second plurality of nodes occlude the other. In some embodiments, an occlusion is the visual obstruction of one node by another when viewing the rendered scene of the object from a given viewpoint. In addition to or as an alternative to one or more of the above examples, the method may further include traversing, by the processor of the computer system, the scene graph. In addition to or as an alternative to one or more of the above embodiments, the computer system may be configured to communicate with a display, and the method may further include displaying the output on the display, such as by displaying the scene as it is rendered on the scene graph, or by displaying only those nodes of the first or second plurality of nodes that are not occluded, while not displaying other nodes. For example, if the second plurality of nodes occludes some of the first plurality of nodes, the displayed output may be only the first plurality of non-occluded nodes without displaying any of the second plurality of nodes. In addition to or as an alternative to one or more of the above embodiments, the method may further include applying an optimization to the output at the computer system.Additionally or in the alternative to one or more of the above examples, applying the optimization may include culling surfaces. Additionally or in the alternative to one or more of the above examples, the method may further include, in the computer system, applying a visual effect to the output. Additionally or in the alternative to one or more of the above examples, applying the visual effect may include calculating a light value. Additionally or in the alternative to one or more of the above examples, applying the visual effect may include executing a shader. Additionally or in the alternative to one or more of the above examples, the method may further include, in the computer system, applying a physical effect to the output. Additionally or in the alternative to one or more of the above examples, applying the physical effect may include detecting collisions. Additionally or in the alternative to one or more of the above examples, the first client application may be a first application executing on the computer system, the second client application may be a second application executing on the computer system, and the first client application may be sandboxed on the computer system against the second client application. In addition to or as an alternative to one or more of the above examples, the first graphical data may correspond to a first client scene graph associated with the first client application, the second graphical data may correspond to a second client scene graph associated with the second client application, the first client scene graph may be sandboxed on the computer system with respect to the second client scene graph, the first client scene graph may be sandboxed on the computer system with respect to the scene graph, and the second client scene graph may be sandboxed on the computer system with respect to the scene graph.Additionally or as an alternative to one or more of the above embodiments, the scene graph may correspond to a version of the versioned scene graph. Additionally or as an alternative to one or more of the above embodiments, the first graphical data may be communicated to the scene graph using a first processing thread of the computer system and the second graphical data may be communicated to the scene graph using a second processing thread of the computer system that is independent from the first processing thread.
[0062] In some embodiments, a non-transitory computer-readable storage medium is disclosed. The non-transitory computer-readable storage medium may store instructions that, when executed by one or more processors, cause the one or more processors to perform a method including traversing a scene graph of a computer system with a display, the scene graph comprising first 3D data associated with a first application, the first 3D data comprising one or more nodes, the scene graph comprising second 3D data associated with a second application, the second 3D data comprising one or more nodes, the first application being sandboxed on the computer system relative to the second application, the scene graph comprising relationships between nodes of the first 3D data and nodes of the second 3D data, and displaying an image corresponding to the scene graph on the display, the image corresponding to an output of traversing the scene graph, the image reflecting the relationships. Additionally or alternatively to one or more of the above embodiments, the relationships may be spatial relationships. Additionally or as an alternative to one or more of the above embodiments, the method may further include, in the computer system, applying an optimization to an output of traversing the scene graph. Additionally or as an alternative to one or more of the above embodiments, applying the optimization may include culling surfaces. Additionally or as an alternative to one or more of the above embodiments, the method may further include, in the computer system, applying a visual effect to an output of traversing the scene graph. Additionally or as an alternative to one or more of the above embodiments, applying the visual effect may include calculating a light value. Additionally or as an alternative to one or more of the above embodiments, applying the visual effect may include executing a shader. Additionally or as an alternative to one or more of the above embodiments, the method may further include, in the computer system, applying a physical effect to an output of traversing the scene graph.Additionally or as an alternative to one or more of the above examples, applying the physical effect may include detecting collisions. Additionally or as an alternative to one or more of the above examples, the scene graph may correspond to a version of the versioned scene graph. Additionally or as an alternative to one or more of the above examples, the graphical data corresponding to the first 3D data may be communicated to the scene graph by a host application executing on the computer system. Additionally or as an alternative to one or more of the above examples, the graphical data corresponding to the first 3D data may be communicated to the host application by a client of the host application. Additionally or as an alternative to one or more of the above examples, the first graphical data corresponding to the first 3D data may be communicated to the scene graph by the host application using a first processing thread and the second graphical data corresponding to the second 3D data may be communicated to the scene graph by the host application using a second processing thread independent of the first processing thread.
[0063] In some embodiments, a computer system is disclosed. The system may include one or more processors; a storage device configured to receive, at the computer system, first scene data from a first client application and to receive, at the computer system, second scene data from a second client application; and a memory storing instructions that, when executed by the one or more processors, cause the one or more processors to perform a method including generating a graphical data structure based on the first scene data and the second scene data, the graphical data structure being configured to result in an output corresponding to an image on a display when provided as an input to a rendering operation performed by the one or more processors. Additionally or in the alternative to one or more of the above embodiments, the graphical data structure may be at least one of a display list and a display tree. Additionally or in the alternative to one or more of the above embodiments, the method may further include performing a rendering operation using the graphical data structure as an input. Additionally or in the alternative to one or more of the above embodiments, the computer system may further include a display, and the method may further include displaying an image on the display. In addition to or as an alternative to one or more of the above embodiments, the first client application may be a first application executed by one or more processors of the first device and the second client application may be a second application executed by one or more processors of the first device. In addition to or as an alternative to one or more of the above embodiments, the first client application may be a first application executed by one or more processors of the first device and the second client application may be a second application executed by one or more processors of the second device.Additionally or as an alternative to one or more of the above embodiments, the storage device may be further configured to receive third scene data from a third client application. Additionally or as an alternative to one or more of the above embodiments, the method may further include deleting the first scene data from the storage device. Additionally or as an alternative to one or more of the above embodiments, the graphical data structure may comprise first data and second data, and the method may further include determining whether the first data corresponds to an occluded view or a non-occluded view, rendering an image comprising a non-occluded view based on the first data in response to a determination that the first data corresponds to a non-occluded view, and rendering an image not comprising an occluded view in response to a determination that the first data corresponds to an occluded view. Additionally or as an alternative to one or more of the above embodiments, the storage device may be further configured to store the first scene data as a first version in a version control system in response to receiving the first scene data. Additionally or as an alternative to one or more of the above embodiments, the storage device may be further configured to receive third scene data from the first client application and store the third scene data as a second version in the version control system. Additionally or as an alternative to one or more of the above embodiments, the method may further include deleting the first version from the storage device in response to generating the graphical data structure. Additionally or as an alternative to one or more of the above embodiments, the method may be performed in parallel with the storage device receiving the third scene data. Additionally or as an alternative to one or more of the above embodiments, the storage device may be configured to receive the first scene data in parallel with receiving the second scene data.Additionally or in the alternative to one or more of the above embodiments, the storage device may be configured to receive the third scene data at a first interval corresponding to the first data rate, and the method may further include adjusting a length of the first interval to correspond to the second data rate. Additionally or in the alternative to one or more of the above embodiments, the first scene data may comprise at least one of new data, deleted data, and a change in a relationship between the data.
[0064] In some embodiments, a computer system is disclosed. The computer system may include a server, server data, a first client application, and a second client application, and may be configured to receive, at the server, first raw scene data from the first client application, receive, at the server, second raw scene data from the second client application, incorporate, at the server, the first raw scene data from the first client application, the second raw scene data from the second client application, and the server data into a unified scene data structure, and execute, at the server, at least a portion of the data contained in the unified scene data structure, and create a graphical data structure based on the data executed in the unified scene data structure. In addition to or as an alternative to one or more of the above embodiments, the graphical data structure may be a display list or a display tree. In addition to or as an alternative to one or more of the above embodiments, the computer system may further include a rendering engine configured to render the graphical data structure into a processed image. In addition to or as an alternative to one or more of the above embodiments, the computer system may further include a display configured to display the processed image. Additionally or as an alternative to one or more of the above examples, the display may be capable of displaying virtual content while maintaining at least a partial view of the physical world. Additionally or as an alternative to one or more of the above examples, the first client application and the second client application may be two different applications running on a single physical device. Additionally or as an alternative to one or more of the above examples, the first client application and the second client application may be two different applications each running on a separate physical device.Additionally or as an alternative to one or more of the above embodiments, the server may be configured to receive third unprocessed scene data from a third client application. Additionally or as an alternative to one or more of the above embodiments, the server may be configured to delete the unprocessed scene data from the first client application after execution of the unprocessed scene data from the first client application. Additionally or as an alternative to one or more of the above embodiments, the rendering engine may further comprise an occlusion module, the occlusion module configured to separate data in the graphical data structure into a first occluded category and a second non-occluded category and display the second non-occluded category. Additionally or as an alternative to one or more of the above embodiments, the server may be configured to store the first unprocessed scene data from the first client application as a first version. Additionally or as an alternative to one or more of the above embodiments, the server may be configured to store the third unprocessed scene data from the first client application as a second version. Additionally or as an alternative to one or more of the above embodiments, the computer system may be configured to store a first version of the first raw scene data from the first client application from a time the first version of the first raw scene data from the first client application is received by the server until the first raw scene data from the first client application is read and executed. Additionally or as an alternative to one or more of the above embodiments, the server may be configured to receive the first raw scene data from the first client at the same time the server receives the second raw scene data from the second client. Additionally or as an alternative to one or more of the above embodiments, the server may be configured to throttle a rate at which the first client application sends raw scene data to the server.In addition to or in the alternative to one or more of the above embodiments, the data received from the first and second client applications may be at least one selected from the group consisting of new data, deleted data, a change in the relationship between previously transferred data, and modified data.
[0065] Although the disclosed embodiments have been fully described with reference to the accompanying drawings, it should be noted that various changes and modifications will be apparent to those skilled in the art. For example, elements of one or more implementations may be combined, deleted, modified, or supplemented to form further implementations. Such changes and modifications are to be understood as being included within the scope of the disclosed embodiments as defined by the appended claims.
Claims
1. A method comprising: communicating first graphical data comprising a plurality of first nodes from a first client application to a computer system, the computer system being in communication with a second client application; receiving a scene graph from the computer system, the scene graph describes a first occlusion relationship between at least one first node of the plurality of first nodes and at least one second node of a plurality of second nodes of second graphical data of the second client application; the scene graph further describes a second occlusion relationship between at least one third node of the plurality of first nodes and at least one fourth node of the plurality of second nodes; creating a rendered scene based on the first occlusion relationship and further based on the second occlusion relationship, where in the first occlusion relationship at least one second node occludes at least one first node such that a first portion of the second graphical data occludes the first portion of the first graphical data, and in the second occlusion relationship at least one third node occludes at least one fourth node such that a second portion of the first graphical data occludes a second portion of the second graphical data; A method comprising:
2. The method of claim 1, wherein creating the rendered scene includes traversing the scene graph.
3. The method of claim 1, further comprising displaying the rendered scene, wherein displaying the rendered scene comprises displaying at least one first node of the plurality of first nodes and displaying at least one second node of the plurality of second nodes.
4. The method of claim 1, wherein the first client application includes a first application executing on the computer system, and the second client application includes a second application executing on the computer system.
5. The method of claim 4, wherein the first client application is sandboxed on the computer system relative to the second client application.
6. The method of claim 1, wherein the first client application includes an application running on a second computer system, the second computer system communicating with the computer system over a network, and receiving the scene graph from the computer system includes receiving the scene graph at the second computer system from the computer system over the network.
7. The method of claim 1, wherein the scene graph corresponds to a version of a versioned scene graph.
8. A non-transitory computer-readable medium storing instructions that, when executed by one or more processors, cause the one or more processors to perform a method, the method comprising: communicating first graphical data comprising a plurality of first nodes from a first client application to a computer system, the computer system being in communication with a second client application; receiving a scene graph from the computer system, the scene graph describes a first occlusion relationship between at least one first node of the plurality of first nodes and at least one second node of a plurality of second nodes of second graphical data of the second client application; the scene graph further describes a second occlusion relationship between at least one third node of the plurality of first nodes and at least one fourth node of the plurality of second nodes; creating a rendered scene based on the first occlusion relationship and further based on the second occlusion relationship, where in the first occlusion relationship at least one second node occludes at least one first node such that a first portion of the second graphical data occludes the first portion of the first graphical data, and in the second occlusion relationship at least one third node occludes at least one fourth node such that a second portion of the first graphical data occludes a second portion of the second graphical data; 16. A non-transitory computer readable medium comprising:
9. The non-transitory computer-readable medium of claim 8, wherein creating the rendered scene includes traversing the scene graph.
10. The non-transitory computer-readable medium of claim 8, wherein the method further includes displaying the rendered scene, and wherein displaying the rendered scene includes displaying at least one first node of the plurality of first nodes and displaying at least one second node of the plurality of second nodes.
11. The non-transitory computer-readable medium of claim 8, wherein the first client application includes a first application that executes on the computer system, and the second client application includes a second application that executes on the computer system.
12. The non-transitory computer-readable medium of claim 11, wherein the first client application is sandboxed on the computer system against the second client application.
13. The non-transitory computer-readable medium of claim 8, wherein the first client application includes an application executing on a second computer system, the second computer system being in communication with the computer system over a network, and receiving the scene graph from the computer system includes receiving the scene graph at the second computer system from the computer system over the network.
14. The non-transitory computer-readable medium of claim 8, wherein the scene graph corresponds to a version of a versioned scene graph.
15. A system comprising one or more processors configured to execute a method, the method comprising: communicating first graphical data comprising a plurality of first nodes from a first client application to a computer system, the computer system being in communication with a second client application; receiving a scene graph from the computer system, the scene graph describes a first occlusion relationship between at least one first node of the plurality of first nodes and at least one second node of a plurality of second nodes of second graphical data of the second client application; the scene graph further describes a second occlusion relationship between at least one third node of the plurality of first nodes and at least one fourth node of the plurality of second nodes; creating a rendered scene based on the first occlusion relationship and further based on the second occlusion relationship, where in the first occlusion relationship at least one second node occludes at least one first node such that a first portion of the second graphical data occludes the first portion of the first graphical data, and in the second occlusion relationship at least one third node occludes at least one fourth node such that a second portion of the first graphical data occludes a second portion of the second graphical data; Including, the system.
16. The system of claim 15, wherein creating the rendered scene includes traversing the scene graph.
17. The system of claim 15, wherein the method further includes displaying the rendered scene, and displaying the rendered scene includes displaying at least one first node of the plurality of first nodes and displaying at least one second node of the plurality of second nodes.
18. The system described in claim 15, wherein the first client application includes a first application executing on the computer system, and the second client application includes a second application executing on the computer system.
19. The system of claim 18, wherein the first client application is sandboxed on the computer system relative to the second client application.
20. The system of claim 15, wherein the first client application includes an application running on a second computer system, the second computer system communicating with the computer system via a network, and receiving the scene graph from the computer system includes receiving the scene graph at the second computer system from the computer system via the network.
Citation Information
Patent Citations
Multi-user system sharing three-dimensional virtual space
JP2001076179A
Image generating device
JP2007334739A
Computer graphics shadow volumes using hierarchical occlusion culling
JP2010512582A
Method for displaying a 3D scene graph on a screen and operating system for a 3D computer system
JP2015519661A
