CN117557706A - Multi-view-port rendering method, device, electronic equipment and computer readable storage medium - Google Patents

Multi-view-port rendering method, device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN117557706A
CN117557706A CN202311603262.2A CN202311603262A CN117557706A CN 117557706 A CN117557706 A CN 117557706A CN 202311603262 A CN202311603262 A CN 202311603262A CN 117557706 A CN117557706 A CN 117557706A
Authority
CN
China
Prior art keywords
checkpoint
primary
following
character
product
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311603262.2A
Other languages
Chinese (zh)
Inventor
谢长江
陈泰业
谭述安
康玉路
王秀琴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Chaoxiang Digital Technology Co ltd
Original Assignee
Shenzhen Chaoxiang Digital Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Chaoxiang Digital Technology Co ltd filed Critical Shenzhen Chaoxiang Digital Technology Co ltd
Priority to CN202311603262.2A priority Critical patent/CN117557706A/en
Publication of CN117557706A publication Critical patent/CN117557706A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application is applied to the technical field of computer image processing, and discloses a multi-view-port rendering method, a device, electronic equipment and a computer readable storage medium, wherein the multi-view-port rendering method comprises the following steps: acquiring a primary character and a following character of a target graphic engine, wherein the primary character comprises a primary viewport, and the following character comprises a following viewport; acquiring the checkpoint flow information of the target graphic engine, and distributing owners for checkpoint products in the checkpoint flow information to obtain product owner information, wherein the owners are primary characters or following characters; and rendering the corresponding checkpoint products of the owners at the view ports of the owners respectively according to the product owner information. The application aims to solve the technical problem of low product comparison efficiency.

Description

Multi-view-port rendering method, device, electronic equipment and computer readable storage medium
Technical Field
The application belongs to the technical field of computer image processing, and relates to a multi-view-port rendering method, a multi-view-port rendering device, electronic equipment and a computer readable storage medium.
Background
The 3D (3 Dimensions) authoring tool is widely applied to the fields of game development, digital twinning, data visualization, exhibition and demonstration, metauniverse and the like, so that the rendering of three-dimensional scenes is realized in each field. Some image-related programs or software provide 3D rendering schemes for a variety of products during development for selection by developers. When products are rendered and compared, the pages on which the products are rendered are generally switched back and forth, so that the contrast selection by developers is inconvenient, and the product comparison efficiency is low.
The foregoing is provided merely for the purpose of facilitating an understanding of the technical solutions of the present application and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The main objective of the present application is to provide a multi-view port rendering method, a device, an electronic apparatus, and a computer readable storage medium, which aim to solve the technical problem of low product contrast efficiency.
In order to achieve the above object, the present application provides a multi-view port rendering method, including:
acquiring a primary character and a following character of a target graphic engine, wherein the primary character comprises a primary viewport, and the following character comprises a following viewport;
acquiring the checkpoint flow information of the target graphic engine, and distributing owners for checkpoint products in the checkpoint flow information to obtain product owner information, wherein the owners are primary characters or following characters;
and rendering the corresponding checkpoint products of the owners at the view ports of the owners respectively according to the product owner information.
To achieve the above object, the present application provides a multi-view port rendering device, including:
the character creation module is used for acquiring a primary character and a following character of the target graphic engine, wherein the primary character comprises a primary visual port, and the following character comprises a following visual port;
The owner determining module is used for acquiring the checkpoint flow information of the target graphic engine, distributing owners for checkpoint products in the checkpoint flow information to obtain product owner information, wherein the owners are the primary characters or the following characters;
and the rendering module is used for rendering the checkpoint products corresponding to the owners at the view ports of the owners respectively according to the product owner information.
The application also provides an electronic device comprising: the multi-view rendering method comprises a memory, a processor and a program of the multi-view rendering method which is stored in the memory and can run on the processor, wherein the program of the multi-view rendering method can realize the steps of the multi-view rendering method when being executed by the processor.
The present application also provides a computer-readable storage medium having stored thereon a program for implementing a multi-viewport rendering method, which when executed by a processor implements the steps of the multi-viewport rendering method as described above.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of a multi-viewport rendering method as described above.
The application provides a multi-view port rendering method, a multi-view port rendering device, electronic equipment and a computer readable storage medium, wherein the primary number role and the following role of a target graphic engine are acquired, the primary number role comprises a primary number view port, and the following role comprises a following view port; acquiring the checkpoint flow information of the target graphic engine, and distributing owners for checkpoint products in the checkpoint flow information to obtain product owner information, wherein the owners are primary characters or following characters; and rendering the corresponding checkpoint products of the owners at the view ports of the owners respectively according to the product owner information.
According to the embodiment of the application, the primary character and the following character are obtained, the primary character and the following character are provided with the corresponding viewing ports, the display of multiple viewing ports is realized, and the following character follows the primary character color to enable the position and the viewing angle of the following character and the primary character to be the same, so that when the multiple viewing ports are used for carrying out the checkpoint product comparison, the compared variable is a single variable of the checkpoint product, interference during comparison can be reduced, and the comparison efficiency can be improved.
Further, because rendering view ports corresponding to all the checkpoint products cannot be distinguished during multi-view port rendering, the checkpoint product distribution owners in the checkpoint flow information can obtain product owner information; therefore, the visual ports displayed by the various checkpoint products can be clarified, and the checkpoint products to be rendered by the visual ports can be clarified when the visual ports are rendered later, so that the condition that the same checkpoint products are displayed by the various visual ports is avoided, and further the condition that the various checkpoint products cannot be compared independently is avoided; based on the product owner information, the corresponding checkpoint products of the owners are respectively rendered at the view ports of the owners, so that different checkpoint products are displayed at different view ports, a developer can conveniently compare and select among the checkpoint products based on the different checkpoint products displayed by multiple view ports, the checkpoint products do not need to be switched back and forth, and the comparison efficiency of the checkpoint products is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a flowchart of a first embodiment of a multi-viewport rendering method;
FIG. 2 is a flow chart of a second embodiment of a multi-viewport rendering method according to the present application;
FIG. 3 is a flow chart of a third embodiment of a multi-viewport rendering method according to the present application;
FIG. 4 is a schematic diagram of a multi-viewport checkpoint product comparison for the multi-viewport rendering method of the present application;
FIG. 5 is a schematic diagram of an apparatus according to an embodiment of a multi-viewport rendering method;
fig. 6 is a schematic device structure diagram of a hardware operating environment related to a multi-view port rendering method in an embodiment of the present application.
The implementation, functional features and advantages of the present application will be further described with reference to the accompanying drawings in conjunction with the embodiments.
Detailed Description
In order to make the above objects, features and advantages of the present application more comprehensible, the following description will make the technical solutions of the embodiments of the present application clear and complete with reference to the accompanying drawings of the embodiments of the present application. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, based on the embodiments herein, which are within the scope of the protection of the present application, will be within the purview of one of ordinary skill in the art without the exercise of inventive faculty.
Example 1
Referring to fig. 1, an embodiment of the present application provides a multi-view port rendering method, in a first embodiment of the multi-view port rendering method of the present application, the multi-view port rendering method includes:
step S10, a primary character and a following character of a target graphic engine are obtained, wherein the primary character comprises a primary viewport, and the following character comprises a following viewport;
it should be noted that, the target graphic engine may be applied to a digital twin scene, or may be applied to a scene in the meta-universe, where the primary character and the following character are characters in the target graphic engine, in the embodiment of the present application, the following character is set to follow the primary character, and there may be multiple primary characters in the target graphic engine, and there may also be multiple following characters, in the embodiment of the present application, the following character generally follows one primary character. The primary number view port is a view port corresponding to the primary horn color, and the following view port is a view port corresponding to the following character.
Step S20, acquiring the checkpoint flow information of the target graphic engine, and distributing owners for the checkpoint products in the checkpoint flow information to obtain product owner information, wherein the owners are the primary characters or the following characters;
it should be noted that, the checkpoint flow information includes each checkpoint product corresponding to a checkpoint, each checkpoint product may be a plurality of alternative product display models provided for the target graphic engine, a developer may select an appropriate checkpoint product from the respective checkpoint products, and the checkpoint product may be a BIM (Building Information Modeling, building information model). The owner refers to the owner of the checkpoint product. The owner can be a primary character or a following character, and the aim of configuring the owner for the checkpoint product is that the owner owns the checkpoint product, and the view port corresponding to the owner can display the checkpoint product or not display the checkpoint product. The product owner information includes a mapping relationship between the checkpoint product and the owner.
And step S30, rendering the corresponding checkpoint products of the owners on the view ports of the owners according to the product owner information.
When the owner is the primary character, rendering the checkpoint product corresponding to the primary character at the primary view port of the primary character, and when the owner is the following character, rendering the checkpoint product corresponding to the following character at the following view port of the following character. The checkpoint product is characterized as an object appearing in the checkpoint and may be considered a model, e.g., the checkpoint product may be a 3D object such as a cube.
Illustratively, steps S10 through S30 include: acquiring a primary character and a following character of a target graphic engine, acquiring checkpoint flow information of the target graphic engine, and distributing owners for checkpoint products in the checkpoint flow information to obtain product owner information; and rendering the corresponding checkpoint products of the owners at the view ports of the owners respectively according to the product owner information. The primary character and the following character of the target graphic engine can be obtained, and the primary character and the following character which exist in the target graphic engine by default can be obtained, or the primary character and the following character can be directly created in the target graphic engine.
According to the embodiment of the application, the primary character and the following character are obtained, the primary character and the following character are provided with the corresponding viewing ports, the display of multiple viewing ports is realized, and the following character follows the primary character color to enable the position and the viewing angle of the following character and the primary character to be the same, so that when the multiple viewing ports are used for carrying out the checkpoint product comparison, the compared variable is a single variable of the checkpoint product, interference during comparison can be reduced, and the comparison efficiency can be improved.
Further, because rendering view ports corresponding to all the checkpoint products cannot be distinguished during multi-view port rendering, the checkpoint product distribution owners in the checkpoint flow information can obtain product owner information; therefore, the visual ports displayed by the various checkpoint products can be clarified, and the checkpoint products to be rendered by the visual ports can be clarified when the visual ports are rendered later, so that the condition that the same checkpoint products are displayed by the various visual ports is avoided, and further the condition that the various checkpoint products cannot be compared independently is avoided; based on the product owner information, the corresponding checkpoint products of the owners are respectively rendered at the view ports of the owners, so that different checkpoint products are displayed at different view ports, a developer can conveniently compare and select among the checkpoint products based on the different checkpoint products displayed by multiple view ports, the checkpoint products do not need to be switched back and forth, and the comparison efficiency of the checkpoint products is improved.
In addition, generally, because the creation of the multi-view port is based on the common creation of the server and the client, and the server and the client respectively need two sets of codes for supporting, if the view port displayed by the checkpoint product is to be set, the two sets of codes need to be respectively designed, so that the design difficulty of a developer is increased, and if the multi-view port is to be compared each time, the repeated workload of the developer is increased, and the comparison efficiency is low. The content of the multi-view display is generally synchronized. The purpose of the embodiment of the application is to compare different checkpoint products on a plurality of view ports respectively, so that a plurality of roles can be created by utilizing code content common to the bottom layers of a server and a client, thereby creating a plurality of role view ports, and the server and the client do not need to be used for corresponding all the code content, thereby reducing the calculation power and the repeated workload of developers.
In a possible embodiment, step S10 includes:
step S11, a primary camera, a primary HUD, a primary UI, a primary state and a primary controller are obtained in response to a role creation instruction so as to create a primary role, and the primary HUD is converted into a primary image through the primary camera to obtain a primary viewport of the primary role;
It should be noted that, the character creation instruction may be triggered by a developer, the primary camera may be used to characterize a position and a viewing angle where the primary character is located, and the primary camera may convert data of the three-dimensional scene into an initial image, so as to be used as a viewport of the primary character. The primary camera is characterized by the world coordinates of the primary character relative to the origin of the world coordinates, the world coordinates of the primary character may be used to describe the position, rotation and zoom of the primary character, and the rotation state may be used to describe the perspective of the primary character. The primary HUD (Heads-up Display) is used for displaying a primary UI (User Interface) in a viewport, the primary UI can be stored in the primary HUD, the primary state is a role state of a primary role, and the primary controller is a controller for controlling the primary role.
Step S12, a following camera, a following HUD, a following UI, a following state and a following controller are acquired to create a following role, and the following HUD is converted into a following image by the following camera to obtain a following view port of the following role;
and step S13, controlling the position and the view angle of the following character to follow the primary character.
It should be noted that, the following camera may be used to represent the position and the viewing angle where the following character is located, the following camera may convert the data of the three-dimensional scene into the following image, the world coordinates of the following character may be used to describe the position, the rotation and the zoom of the following character, and the rotation state may be used to describe the viewing angle of the following character. The following HUD is configured to display a following UI (User Interface) in a viewport, where the following UI may be stored, the following state is a character state of a following character, and the following controller is a controller that controls the following character.
Illustratively, steps S11 through S13 include: responding to a character creation instruction, acquiring a primary camera, a primary HUD, a primary UI, a primary state and a primary controller from the character creation instruction to create a primary character, and converting the primary HUD into a primary image through the primary camera to obtain a primary viewport of the primary character; acquiring a following camera, a following HUD, a following UI, a following state and a following controller from a role creation instruction to create a following role, and converting the following HUD into a following image through the following camera to obtain a following view port of the following role; and controlling the position and view angle of the following character to follow the primary character.
The primary number UI in the primary number HUD is rendered to obtain a primary number three-dimensional scene, the primary number three-dimensional scene is converted into a primary number image through the primary number camera, and the primary number image is two-dimensional, namely the primary number three-dimensional scene is displayed in the primary number image, so that the primary number viewport is obtained. The following visual port of the following role is obtained by converting the following HUD into the following image through the following camera, specifically, the following UI in the following HUD is rendered to obtain the following three-dimensional scene, the following three-dimensional scene is converted into the following image through the following camera, the following image is two-dimensional, namely, the following three-dimensional scene is displayed in the following image, and the following visual port is obtained.
According to the method and the device for achieving the multi-view-port control, the initial number character and the following character are established in the target graphic engine in response to the character establishment instruction, so that the multiple view ports can be simultaneously displayed, the following character is controlled to follow the initial number character, the position and the view angle of the following character are identical to those of the initial number character, comparison of the multiple view ports is facilitated, and interference of irrelevant factors is reduced.
In a possible embodiment, step S13 includes:
step S131, the following camera of the following character is created in a lower-level catalog of the primary camera of the primary character.
It should be noted that, when the initial role is created and the following role is created locally in the target graphic engine, the following camera corresponding to the following role is created in the lower directory of the directory where the primary camera is created when the following role is created, and the lower directory is a lower sub-directory of the directory where the primary camera is located, so that the following camera follows the primary camera, and further, the position and the view angle of the following role can be controlled to follow the primary role.
Example two
Further, referring to fig. 2, in another embodiment of the present application, the same or similar content as the above embodiment may be referred to the above description, and will not be repeated herein. On this basis, the step of acquiring the checkpoint flow information of the target graphics engine includes:
Step A10, under the condition that the display panel of the target graphic engine is obtained, responding to a checkpoint loading instruction, and obtaining path information of the checkpoint flow information from the checkpoint loading instruction;
and step A20, asynchronously loading the checkpoint flow information based on the path information to display the checkpoint flow information in the display panel.
It should be noted that, the display panel is used for displaying the primary view port and the follow-up view port, the simple design of the page layout can be completed by using a UMG (User interface-Blueprint) editing interface to obtain the display panel, and an expandable area (Expandable area) can be used for realizing the effect of expanding and collapsing the panel, realizing the background effect through background blurring (background blur) and background (loudspeaker), realizing the vertical arrangement mode or the horizontal arrangement mode through a vertical frame (vertical box) and a horizontal frame (horizontal box), and then using Text (Text) for adding Text content and a picture (Image) for adding the resource loading of the picture. Wherein, the display area of the initial view port and the display area of the following view port can be divided in the display panel.
The checkpoint loading instruction may be triggered by a user, the path information is an address for storing related checkpoint flow information, the path information may be path information of a default checkpoint, or path information of a user designated checkpoint, and whether the checkpoint is a default checkpoint or a designated checkpoint may be determined based on the checkpoint loading instruction. The checkpoint flow information comprises a plurality of checkpoint products, the checkpoint flow information can be displayed in two parts when displayed on a display panel, the names of loaded checkpoint flows can be displayed in a level window of the display panel, and the product names of the checkpoint products corresponding to the checkpoint flows can be displayed in an outline editor window.
Illustratively, steps a10 through a20 include: under the condition that the display panel of the target graphic engine is acquired, responding to a checkpoint loading instruction, and acquiring path information of the checkpoint flow information from the checkpoint loading instruction; and asynchronously loading the checkpoint flow information based on the path information to display the checkpoint flow information in the display panel. According to the method and the device for processing the image, the checkpoint flow information is loaded asynchronously, so that a main thread with target priority can not be blocked, and further the card section of the image can be greatly reduced. And by loading the checkpoint flow information, the checkpoint flow names and the product names of the checkpoint products in the checkpoint flow information are displayed in the display panel, so that the owners of the checkpoint products can be conveniently configured.
The step of allocating owners for the checkpoint products in the checkpoint flow information to obtain product owner information, wherein the step of allocating owners for the primary character or the following character further comprises:
step B10, acquiring a checkpoint product in the checkpoint flow information, and rendering the checkpoint product with the visible state in the checkpoint flow information on the primary number viewing port and the following viewing port;
And step B20, configuring an owner for the checkpoint product and configuring the visual state of the checkpoint product to obtain product owner information.
After the checkpoint flow information is loaded, the initial viewport and the following viewport can display the checkpoint product with the visual state in the checkpoint flow information as a visual checkpoint product. The visual state is used for describing whether the checkpoint product can be displayed on the corresponding viewport, and the visual state can be visual or hidden. When the visual state of the checkpoint product is hidden, even if the owner is configured for the checkpoint product, the view port of the owner will not display the checkpoint product with the visual state hidden.
Illustratively, steps B10 through B20 include: when the loading of the checkpoint flow information on the display panel is completed, rendering the checkpoint products with visible states in the checkpoint flow information on the primary number viewing port and the following viewing port; and responding to the owner configuration instruction, configuring an owner for the checkpoint product in the checkpoint stream information, and configuring the visual state of the checkpoint product to obtain product owner information. The owner configuration instructions may be user-triggered. The visual state of the checkpoint product can be updated, and the visual state change of the checkpoint product is performed after the loading of the checkpoint stream information is completed, so that the program is prevented from being blocked.
Example III
Further, referring to fig. 3, in another embodiment of the present application, the same or similar content as the above embodiment may be referred to the above description, and will not be repeated. On the basis, the step of rendering the corresponding checkpoint products of the owners at the view ports of the owners according to the product owner information comprises the following steps:
step C10, obtaining a target checkpoint product matched with the owner from the product owner information;
and step C20, if the visual state of the target checkpoint product is visual, rendering the view port of the owner again based on the target checkpoint product so as to display the target checkpoint product of the owner on the view port of the owner.
It should be noted that, the target checkpoint product is a checkpoint product matched with the owner, and after the loading of the checkpoint stream information is completed, the primary number viewport and the following viewport both display the checkpoint product with the visible state in the checkpoint stream information. Therefore, after the owners are allocated to the checkpoint products in the checkpoint flow information, the primary viewport and the following viewport need to be re-rendered.
Illustratively, steps C10 through C20 include: obtaining at least one target checkpoint product matching the owner orientation from product owner information; and if the visual state of the target checkpoint product is visual, rendering the view port of the owner again, so that the target checkpoint product is displayed on the view port of the owner. In the embodiment of the application, when a user wants to independently compare a plurality of checkpoint products, the checkpoint products displayed by the viewports of all owners are one, so that the checkpoint products are independently compared, the user can conveniently change the comparison between the plurality of checkpoint products into fine comparison, better product decisions are provided, and a product modification scheme is also conveniently provided.
Therefore, the embodiment of the application can display the appearance, the difference and the like of different products of the same series under different view ports in a multi-view port rendering mode, and can provide a comparison scheme of the appearance of the products in the fields of digital twinning, data visualization, meta universe and the like.
For a better understanding of embodiments of the present application, reference is made to fig. 4, which is a schematic illustration of a comparison of a multi-viewport checkpoint product. The display panel is provided with a bullet comparing window, names of all view ports are displayed on the bullet comparing window, corresponding checkpoint products under all view ports are displayed on the corresponding view ports. For example, in fig. 4, when a triangular cone 1 is selected for the view port corresponding to the left screen and a square 2 is selected for the view port corresponding to the right screen, the triangular cone 1 is displayed for the view port corresponding to the left screen and the square 2 is displayed for the view port corresponding to the right screen. The scenes displayed by the left screen and the right screen are the same, and the checkpoint products are displayed in the same area, so that comparison is convenient.
In a possible embodiment, after step C10, further comprising:
and step C11, if the owner has a plurality of target checkpoint products and the visual state of each target checkpoint product is visual, rendering each target checkpoint product at a preset position of a viewport of the owner according to preset coordinates of each target checkpoint product.
It should be noted that, the owner may have a plurality of corresponding target checkpoint products, and when the user wants to view the overlapping condition of each target checkpoint product, the visual states of the target checkpoint products corresponding to the same owner may be set to be visual, so as to perform overlapping display on each target checkpoint product, thereby viewing the overlapping condition of each checkpoint product. The visual states of the target checkpoint products corresponding to the same owner can be selectively configured, and all the target checkpoint products corresponding to the owner do not need to be displayed in an overlapping mode.
The preset coordinates are coordinates under a product coordinate system of the target checkpoint product, and the product coordinate system can be a coordinate system taking the geometric center of the target checkpoint product as a coordinate origin, and also can take any point on the target checkpoint product as the coordinate origin of the product coordinate system. The preset coordinates may be the geometric center of the target product or the coordinates of any point on the target checkpoint product. The preset position is a coordinate of a world coordinate system corresponding to the view port of the owner, and may be set based on actual conditions, and may be any position in an image displayed in the view port of the owner.
Exemplary, according to the preset coordinates of each target checkpoint product, each target checkpoint product is rendered at a preset position of the view port of the owner, so that the preset coordinates of each target checkpoint product are overlapped with the preset position, and each target checkpoint product can be displayed under the view port of the owner in an overlapping manner. The overlapping condition that different target checkpoint products are compared at different view ports is realized.
According to the embodiment of the application, through overlapping display of each target checkpoint product, richer comparison schemes are provided for users, diversified demands of the users can be met, and when product comparison is carried out, differences among the checkpoint products are compared independently, so that the embodiment of the application can assist the users to compare each checkpoint product independently, and can provide comparison conditions when the checkpoint products overlap for users with special demands. In addition, the preset coordinates of the target checkpoint products can be changed, so that a plurality of target checkpoint products can be overlapped, different overlapped conditions of the target checkpoint products can be displayed at different view ports, and comparison is further performed, the comparison efficiency is improved, a diversified comparison scheme is provided for a user, and the user can be assisted in selecting checkpoint products meeting requirements.
Example IV
Referring to fig. 5, an embodiment of the present application further provides a multi-view port rendering apparatus, including:
the character creation module 10 is configured to obtain a primary character of the target graphic engine and a following character, where the primary character includes a primary viewport and the following character includes a following viewport;
the owner determining module 20 is configured to obtain checkpoint flow information of the target graphics engine, allocate an owner to a checkpoint product in the checkpoint flow information, and obtain product owner information, where the owner is the primary character or the following character;
and the rendering module 30 is configured to render, according to the product owner information, the checkpoint products corresponding to the owners at the view ports of the owners respectively.
Optionally, the role creation module 10 is further configured to:
responding to a character creation instruction, acquiring a primary camera, a primary HUD, a primary UI, a primary state, a primary character and a primary controller to create a primary character, and converting the primary HUD into a primary image through the primary camera to obtain a primary viewport of the primary character;
acquiring a following camera, a following HUD, a following UI, a following state, a following character and a following controller to create a following character, and converting the following HUD into a following image through the following camera to obtain a following view port of the following character;
And controlling the position and view angle of the following character to follow the primary character.
Optionally, the role creation module 10 is further configured to:
and creating the following camera of the following character in a subordinate catalog of the primary camera of the primary character.
Optionally, the owner determination module 20 is further configured to:
under the condition that the display panel of the target graphic engine is acquired, responding to a checkpoint loading instruction, and acquiring path information of the checkpoint flow information from the checkpoint loading instruction;
and asynchronously loading the checkpoint flow information based on the path information to display the checkpoint flow information in the display panel.
Optionally, the owner determination module 20 is further configured to:
acquiring a checkpoint product in the checkpoint flow information, and rendering the checkpoint product with the visual state in the checkpoint flow information on the primary viewport and the following viewport;
and configuring an owner for the checkpoint product and configuring the visual state of the checkpoint product to obtain product owner information.
Optionally, the rendering module 30 is further configured to:
obtaining a target checkpoint product matched with the owner from the product owner information;
And if the visual state of the target checkpoint product is visual, rendering the view port of the owner again based on the target checkpoint product so as to display the target checkpoint product of the owner on the view port of the owner.
Optionally, the rendering module 30 is further configured to:
and if the owners have a plurality of target checkpoint products and the visual state of each target checkpoint product is visual, rendering each target checkpoint product at a preset position of a viewing port of the owners according to preset coordinates of each target checkpoint product.
The multi-view port rendering device provided by the application adopts the multi-view port rendering method in the embodiment, and aims to solve the technical problem of low product comparison efficiency. Compared with the prior art, the multi-view port rendering method provided in the embodiment of the present application has the same beneficial effects as the multi-view port rendering method provided in the above embodiment, and other technical features in the multi-view port rendering device are the same as the features disclosed in the method of the above embodiment, and are not described in detail herein.
Example five
The embodiment of the application provides an electronic device, which may be a playing device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the multi-viewport rendering method of the above embodiments.
Referring now to fig. 6, a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistant, personal digital assistants), PADs (portable Android device, tablet computers), PMPs (Portable Media Player, portable multimedia players), vehicle terminals (e.g., car navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 6 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 6, the electronic apparatus may include a processing device (e.g., a central processing unit, a graphics processor, etc.) that may perform various appropriate actions and processes according to a program stored in a ROM (Read-Only Memory) or a program loaded from a storage device into a RAM (Random Access Memory ). In the RAM, various programs and data required for the operation of the electronic device are also stored. The processing device, ROM and RAM are connected to each other via a bus. An input/output (I/O) interface is also connected to the bus.
In general, the following systems may be connected to the I/O interface: input devices including, for example, touch screens, touch pads, keyboards, mice, image sensors, microphones, tachometers, gyroscopes, etc.; output devices including, for example, LCDs (Liquid Crystal Display, liquid crystal displays), speakers, vibrators, and the like; storage devices including, for example, magnetic tape, hard disk, etc.; a communication device. The communication means may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While electronic devices having various systems are shown in the figures, it should be understood that not all of the illustrated systems are required to be implemented or provided. More or fewer systems may alternatively be implemented or provided.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network through a communication system, or installed from a storage system, or installed from ROM. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by a processing system.
The electronic device provided by the application adopts the multi-view port rendering method in the first embodiment to solve the technical problem of low product comparison efficiency. Compared with the prior art, the beneficial effects of the product flow data distribution provided by the embodiment of the present application are the same as those of the multi-view-port rendering method provided by the above embodiment, and other technical features of the multi-view-port rendering device are the same as those disclosed by the method of the above embodiment, and are not repeated herein.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the description of the above embodiments, particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Example six
The present embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon for performing the multi-viewport rendering method in the first embodiment described above.
The computer readable storage medium provided in the embodiments of the present application may be, for example, a usb disk, but is not limited to, an apparatus, or a device of electronic, magnetic, optical, electromagnetic, infrared, or semiconductor, or a combination of any of the above. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable EPROM (Electrical Programmable Read Only Memory, read-only memory) or flash memory, an optical fiber, a portable compact disc CD-ROM (compact disc read-only memory), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this embodiment, the computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution apparatus, device, or apparatus. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
The above-described computer-readable storage medium may be contained in an electronic device; or may exist alone without being assembled into an electronic device.
The computer-readable storage medium carries one or more programs that, when executed by an electronic device, cause the electronic device to: acquiring a primary character and a following character of a target graphic engine, wherein the primary character comprises a primary viewport, and the following character comprises a following viewport; acquiring the checkpoint flow information of the target graphic engine, and distributing owners for checkpoint products in the checkpoint flow information to obtain product owner information, wherein the owners are primary characters or following characters; and rendering the corresponding checkpoint products of the owners at the view ports of the owners respectively according to the product owner information.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a LAN (local area network ) or WAN (Wide Area Network, wide area network), or it may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of devices, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based devices which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented in software or hardware. Wherein the name of the module does not constitute a limitation of the unit itself in some cases.
The computer readable storage medium provided by the application stores computer readable program instructions for executing the multi-view port rendering method, and aims to solve the technical problem of low product contrast efficiency. Compared with the prior art, the beneficial effects of the computer readable storage medium provided in the embodiment of the present application are the same as those of the multi-view-port rendering method provided in the above embodiment, and are not described in detail herein.
Example seven
The present application also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of a multi-viewport rendering method as described above.
The application provides a computer program product which aims at solving the technical problem of low product comparison efficiency. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as those of the multi-view-port rendering method provided by the above embodiment, and are not described in detail herein.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the claims, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application, or direct or indirect application in other related technical fields are included in the scope of the claims.

Claims (10)

1. A multi-viewport rendering method, the multi-viewport rendering method comprising:
acquiring a primary character and a following character of a target graphic engine, wherein the primary character comprises a primary viewport, and the following character comprises a following viewport;
acquiring the checkpoint flow information of the target graphic engine, and distributing owners for checkpoint products in the checkpoint flow information to obtain product owner information, wherein the owners are primary characters or following characters;
and rendering the corresponding checkpoint products of the owners at the view ports of the owners respectively according to the product owner information.
2. The multi-view port rendering method of claim 1, wherein the step of obtaining a primary character of the target graphic engine and a following character, the primary character comprising a primary view port, the following character comprising a following view port comprises:
responding to a character creation instruction, acquiring a primary camera, a primary HUD, a primary UI, a primary state and a primary controller to create a primary character, and converting the primary HUD into a primary image through the primary camera to obtain a primary viewport of the primary character;
acquiring a following camera, a following HUD, a following UI, a following state and a following controller to create a following character, and converting the following HUD into a following image through the following camera to obtain a following view port of the following character;
And controlling the position and view angle of the following character to follow the primary character.
3. The multi-view rendering method of claim 2, wherein the controlling the position and view of the following character to follow the primary character comprises:
and creating the following camera of the following character in a subordinate catalog of the primary camera of the primary character.
4. The multi-view rendering method of claim 1, wherein the step of obtaining the checkpoint flow information of the target graphics engine comprises:
under the condition that the display panel of the target graphic engine is acquired, responding to a checkpoint loading instruction, and acquiring path information of the checkpoint flow information from the checkpoint loading instruction;
and asynchronously loading the checkpoint flow information based on the path information to display the checkpoint flow information in the display panel.
5. The multi-view port rendering method of claim 1, wherein the step of assigning owners to the checkpoint products in the checkpoint stream information to obtain product owner information, the owners being the primary character or the following character further comprises:
acquiring a checkpoint product in the checkpoint flow information, and rendering the checkpoint product with the visual state in the checkpoint flow information on the primary viewport and the following viewport;
And configuring an owner for the checkpoint product and configuring the visual state of the checkpoint product to obtain product owner information.
6. The multi-view port rendering method of claim 1, wherein the step of rendering the corresponding checkpoint products of the owners at the view ports of the owners, respectively, according to the product owner information comprises:
obtaining a target checkpoint product matched with the owner from the product owner information;
and if the visual state of the target checkpoint product is visual, rendering the view port of the owner again based on the target checkpoint product so as to display the target checkpoint product of the owner on the view port of the owner.
7. The multi-view rendering method of claim 6, further comprising, after the step of obtaining a target checkpoint product matching the owner from the product owner information;
and if the owners have a plurality of target checkpoint products and the visual state of each target checkpoint product is visual, rendering each target checkpoint product at a preset position of a viewing port of the owners according to preset coordinates of each target checkpoint product.
8. A multi-viewport rendering device, the multi-viewport rendering device comprising:
the character creation module is used for acquiring a primary character and a following character of the target graphic engine, wherein the primary character comprises a primary visual port, and the following character comprises a following visual port;
the owner determining module is used for acquiring the checkpoint flow information of the target graphic engine, distributing owners for checkpoint products in the checkpoint flow information to obtain product owner information, wherein the owners are the primary characters or the following characters;
and the rendering module is used for rendering the checkpoint products corresponding to the owners at the view ports of the owners respectively according to the product owner information.
9. An electronic device, the electronic device comprising:
at least one processor;
and a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the multi-viewport rendering method of any one of claims 1 to 7.
10. A computer-readable storage medium, on which a program implementing a multi-view port rendering method is stored, the program implementing the multi-view port rendering method being executed by a processor to implement the steps of the multi-view port rendering method according to any one of claims 1 to 7.
CN202311603262.2A 2023-11-27 2023-11-27 Multi-view-port rendering method, device, electronic equipment and computer readable storage medium Pending CN117557706A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311603262.2A CN117557706A (en) 2023-11-27 2023-11-27 Multi-view-port rendering method, device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311603262.2A CN117557706A (en) 2023-11-27 2023-11-27 Multi-view-port rendering method, device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN117557706A true CN117557706A (en) 2024-02-13

Family

ID=89823051

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311603262.2A Pending CN117557706A (en) 2023-11-27 2023-11-27 Multi-view-port rendering method, device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN117557706A (en)

Similar Documents

Publication Publication Date Title
US7631277B1 (en) System and method for integrating media objects
US8024671B2 (en) Three-dimensional graphic user interface, and apparatus and method of providing the same
US20110063191A1 (en) Method of managing applications in a multi-monitor computer system and multi-monitor computer system employing the method
JP7418393B2 (en) 3D transition
CN112965780B (en) Image display method, device, equipment and medium
CN111258519B (en) Screen split implementation method, device, terminal and medium
US20070052725A1 (en) User interface for simultaneous experiencing multiple application pages
CN107978018B (en) Method and device for constructing three-dimensional graph model, electronic equipment and storage medium
CN110889384A (en) Scene switching method and device, electronic equipment and storage medium
CN111290680A (en) List display method, device, terminal and storage medium
CN113742507A (en) Method for three-dimensionally displaying an article and associated device
CN114265583B (en) VR content development optimization method and device, electronic equipment and readable storage medium
CN117557706A (en) Multi-view-port rendering method, device, electronic equipment and computer readable storage medium
CN114428573B (en) Special effect image processing method and device, electronic equipment and storage medium
CN110992859B (en) Advertising board display method and device based on AR guide
CN111429576B (en) Information display method, electronic device, and computer-readable medium
CN109472873A (en) Generation method, device, the hardware device of threedimensional model
EP4450137A1 (en) Split-screen special effect prop generating method and apparatus, device, and medium
CN115150653B (en) Media content display method and device, electronic equipment and storage medium
KR102276816B1 (en) Method and system for providing content composed of spatial unit
WO2024222356A1 (en) Special-effect generation method and apparatus, and computer device and storage medium
CN111311665B (en) Video processing method and device and electronic equipment
US20240028283A1 (en) Systems and Methods for Combining and Synchronizing Display Content of Disparate Display Content Generators
Shikhri A 360-Degree Look at Virtual Tours: Investigating Behavior, Pain Points and User Experience in Online Museum Virtual Tours
CN118710779A (en) Animation playing method, device, medium, electronic equipment and program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination