A rendering display method, device, computer equipment and storage medium

By rendering multiple area models in the display target scene when the display reference object appears discontinuously, and determining the area to be unloaded based on the location information, the problem of model missing is solved, and the optimization of picture integrity and computing power consumption is achieved.

CN114119844BActive Publication Date: 2025-03-25BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111433916.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-29
Publication Date
2025-03-25
Estimated Expiration
2041-11-29

AI Technical Summary

Technical Problem

In application scenarios such as games and metaverses, when the display reference object is logged in or transmitted to the area, the model to be rendered cannot be accurately determined, resulting in the missing model of the rendered display, which in turn causes the problem of missing pictures.

Method used

A rendering display method is provided, in response to displaying events that appear in the Unicom area discontinuously in the Unicom area, and rendering models corresponding to the first area, the second area and the Unicom area are rendered. Then, based on the location information of the display reference object in the China Unicom area, the target area to be unloaded is determined and the corresponding model is unloaded.

Benefits of technology

Ensure that when the display reference object does not appear continuously, all possible models are rendered and displayed, avoiding the missing model, ensuring the integrity of the picture, and reducing the computing power consumption of the graphics processor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114119844B_ABST
    Figure CN114119844B_ABST
Patent Text Reader

Abstract

The present disclosure provides a rendering and display method, apparatus, computer equipment and storage medium, wherein the rendering and display method comprises: in response to a first preset event in which the display reference object appears non-continuously in the connected area being triggered, rendering and displaying a first model corresponding to the first area, a second model corresponding to the second area, and a third model corresponding to the connected area; wherein, at a moment before the moment when the non-continuity appears in the connected area, the display reference object is not located in the target scene; after rendering and displaying the first model, the second model, and the third model, determining a first target area to be uninstalled from the first area and the second area based on the position information of the display reference object in the connected area; and uninstalling the model corresponding to the first target area.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of image processing technology, and in particular to a rendering display method, device, computer equipment and storage medium. Background Art

[0002] In application scenarios such as games and the metaverse, when a display reference object (such as a virtual camera or a controlled virtual character) moves in the target scene, the area where the display reference object is currently located and other currently visible areas will be displayed. In order to reduce the rendering and display of invisible areas, the model to be rendered and displayed is usually determined by the movement of the display reference object. In fact, there are situations where the display reference object logs in or is transferred to the area. At this time, the display reference object has not moved in the area, so the model to be rendered and displayed cannot be accurately determined, which can easily lead to the lack of the rendered model, and then cause the problem of missing rendered images. Summary of the invention

[0003] The embodiments of the present disclosure at least provide a rendering display method, apparatus, computer equipment and storage medium.

[0004] In a first aspect, an embodiment of the present disclosure provides a rendering and display method, which is applied to rendering and displaying a target scene; the target scene includes: a first area and a second area, the first area and the second area are connected via a connected area; when a display reference object is located in the connected area, the first area and / or the second area are rendered and displayed; the rendering and display method includes: in response to a first preset event in which the display reference object appears non-continuously in the connected area being triggered, rendering and displaying a first model corresponding to the first area, a second model corresponding to the second area, and a third model corresponding to the connected area; wherein, at a moment before the moment when the non-continuity appears in the connected area, the display reference object is not located in the target scene; after rendering and displaying the first model, the second model, and the third model, based on the position information of the display reference object in the connected area, determining a first target area to be uninstalled from the first area and the second area; and uninstalling the model corresponding to the first target area.

[0005] In an optional implementation manner, the first preset event includes at least one of the following: a transmission event between scenes and a login event.

[0006] In an optional embodiment, the connected area includes: a first connected sub-area in which the first area is visible, a second connected sub-area in which the second area is visible, and a third connected sub-area in which the first area and the second area are invisible; determining the first target area to be uninstalled from the first area and the second area based on the position information of the display reference object in the connected area includes: in response to the position information indicating that the display reference object is located in the first connected sub-area, determining the second area as the first target area to be uninstalled; in response to the position information indicating that the display reference object is located in the second connected sub-area, determining the first area as the first target area; in response to the position information indicating that the display reference object is located in the third connected sub-area, determining the first area and the second area as the first target area.

[0007] In an optional embodiment, the two ends of the third connected sub-region are respectively connected to the first connected sub-region and the second connected sub-region; a trigger is also provided in the third connected sub-region; the trigger includes: a first trigger respectively located at the two ends of the third connected sub-region and corresponding to the first region, and a second trigger corresponding to the second region; the method further includes: in response to the display reference object moving within the third connected sub-region, determining first movement information of the display reference object; in response to the trigger being triggered when the display reference object moves within the third connected sub-region, determining a second target region to be rendered and displayed from the first region and the second region based on the first movement information.

[0008] In an optional implementation, the rendering and display method further includes: rendering and displaying the second target area.

[0009] In an optional embodiment, in response to the display reference object moving within the third connected sub-area and triggering the trigger, based on the first movement information, determining a second target area to be rendered and displayed from the first area and the second area, including: in response to the display reference object moving within the third connected sub-area and triggering the first trigger, based on the first movement information, determining a first trigger direction corresponding to when the display reference object triggers the first trigger; and in response to the first trigger direction representing movement in a direction close to the first area, determining the first area as the second target area.

[0010] In an optional implementation, it also includes: in response to the display reference object triggering the second trigger when it moves within the third connected sub-area, determining, based on the first movement information, a second trigger direction corresponding to when the display reference object triggers the second trigger; and in response to the second trigger direction representing movement in a direction approaching the second area, determining the second area as the second target area.

[0011] In an optional embodiment, the method further includes: in response to the display reference object moving within the first connectivity sub-area, determining second movement information of the display reference object; in response to the second movement information indicating that the display reference object moves from the first connectivity sub-area to the third connectivity sub-area and triggering the first trigger, unloading the model corresponding to the first area.

[0012] In an optional embodiment, the method further includes: in response to the display reference object moving within the second connectivity sub-area, determining third movement information of the display reference object; in response to the third movement information indicating that the display reference object moves from the second connectivity sub-area to the third connectivity sub-area and triggering the second trigger, unloading the model corresponding to the second area.

[0013] In a second aspect, an embodiment of the present disclosure further provides a rendering and display device, comprising: a first processing module, for rendering and displaying a first model corresponding to the first area, a second model corresponding to the second area, and a third model corresponding to the connected area in response to a first preset event in which the display reference object appears discontinuously in the connected area being triggered; wherein, at a moment before the moment when the discontinuity appears in the connected area, the display reference object was not located in the target scene; wherein, at a moment before the moment when the discontinuity appears in the connected area, the display reference object was not located in the target scene; a determination module, for determining a first target area to be uninstalled from the first area and the second area based on the position information of the display reference object in the connected area after rendering and displaying the first model, the second model, and the third model; and a second processing module, for uninstalling the model corresponding to the first target area.

[0014] In an optional implementation manner, the first preset event includes at least one of the following: a transmission event between scenes and a login event.

[0015] In an optional embodiment, the connected area includes: a first connected sub-area in which the first area is visible, a second connected sub-area in which the second area is visible, and a third connected sub-area in which the first area and the second area are invisible; when the determination module determines the first target area to be uninstalled from the first area and the second area based on the position information of the display reference object in the connected area, it is used to: in response to the position information indicating that the display reference object is located in the first connected sub-area, determine the second area as the first target area to be uninstalled; in response to the position information indicating that the display reference object is located in the second connected sub-area, determine the first area as the first target area; in response to the position information indicating that the display reference object is located in the third connected sub-area, determine the first area and the second area as the first target area.

[0016] In an optional embodiment, the two ends of the third connected sub-region are respectively connected to the first connected sub-region and the second connected sub-region; a trigger is also provided in the third connected sub-region; the trigger includes: a first trigger respectively located at the two ends of the third connected sub-region and corresponding to the first region, and a second trigger corresponding to the second region; the determination module is further used to: determine first movement information of the display reference object in response to the display reference object moving within the third connected sub-region; in response to the trigger being triggered when the display reference object moves within the third connected sub-region, determine the second target region to be rendered and displayed from the first region and the second region based on the first movement information.

[0017] In an optional implementation, the determination module is further used to: render and display the second target area.

[0018] In an optional embodiment, the determination module is used to: trigger the first trigger in response to the display reference object moving within the third connected sub-area, and determine the second target area to be rendered and displayed from the first area and the second area based on the first movement information, in response to the display reference object moving within the third connected sub-area triggering the trigger, and determine the first trigger direction corresponding to the display reference object triggering the first trigger based on the first movement information; determine the first area as the second target area in response to the first trigger direction representing movement in a direction close to the first area.

[0019] In an optional embodiment, the determination module is also used to: in response to the display reference object triggering the second trigger when it moves within the third connected sub-area, determine, based on the first movement information, a second trigger direction corresponding to when the display reference object triggers the second trigger; and in response to the second trigger direction representing movement in a direction approaching the second area, determine the second area as the second target area.

[0020] In an optional embodiment, the determination module is also used to: determine second movement information of the display reference object in response to the display reference object moving within the first connected sub-area; and unload the model corresponding to the first area in response to the second movement information indicating that the display reference object moves from the first connected sub-area to the third connected sub-area and triggers the first trigger.

[0021] In an optional embodiment, the determination module is also used to: determine third movement information of the display reference object in response to the display reference object moving within the second connectivity sub-area; and unload the model corresponding to the second area in response to the third movement information indicating that the display reference object moves from the second connectivity sub-area to the third connectivity sub-area and triggers the second trigger.

[0022] In a third aspect, an optional implementation of the present disclosure further provides a computer device, a processor, and a memory, wherein the memory stores machine-readable instructions executable by the processor, and the processor is used to execute the machine-readable instructions stored in the memory, and when the machine-readable instructions are executed by the processor, the machine-readable instructions perform the steps of the above-mentioned first aspect, or any possible implementation of the first aspect.

[0023] In a fourth aspect, an optional implementation of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed, the steps of the above-mentioned first aspect, or any possible implementation of the first aspect are executed.

[0024] A rendering and display method, apparatus, computer equipment and storage medium provided by the embodiments of the present disclosure render and display the models corresponding to the first area, the second area and the connected area in the target scene respectively when a first preset event that displays discontinuity of a reference object in a connected area is triggered. Thus, when it is impossible to determine which model needs to be rendered and displayed, all possible models are rendered and displayed to ensure that no model is missing, thereby ensuring the integrity of the rendered image.

[0025] In addition, after rendering and displaying the first model, the second model, and the third model, the embodiment of the present disclosure will also determine the first target area to be unloaded from the first area and the second area based on the position information of the displayed reference object in the connected area, and unload the model corresponding to the first target area, thereby reducing the models rendered and displayed, and reducing the computing power consumed by the graphics processor when rendering and displaying while ensuring the integrity of the rendered and displayed picture.

[0026] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.

[0028] Figure 1 A schematic diagram of a target scene provided by an embodiment of the present disclosure is shown;

[0029] Figure 2 A flowchart of a rendering and display method provided by an embodiment of the present disclosure is shown;

[0030] Figure 3 A schematic diagram showing another target scene provided by an embodiment of the present disclosure is shown;

[0031] Figure 4 A schematic diagram showing another target scene provided by an embodiment of the present disclosure is shown;

[0032] Figure 5 A schematic diagram showing a reference object moving in a target scene provided by an embodiment of the present disclosure is shown;

[0033] Figure 6 Another schematic diagram showing the movement of a reference object in a target scene provided by an embodiment of the present disclosure is shown;

[0034] Figure 7 A schematic diagram showing a third display reference object moving in a target scene provided by an embodiment of the present disclosure is shown;

[0035] Figure 8A schematic diagram showing a fourth display reference object moving in a target scene provided by an embodiment of the present disclosure is shown;

[0036] Fig. 9 A schematic diagram of a rendering and display device provided by an embodiment of the present disclosure is shown;

[0037] Fig.10 A schematic diagram of a computer device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure is not intended to limit the scope of the present disclosure claimed for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.

[0039] According to research, when rendering target scenes in application scenarios such as games and the metaverse, in addition to the areas representing houses and towers, other areas connected to these areas are also included. In order to reduce the rendering and display of invisible areas, the area where the display reference object is currently located and other areas visible at the current location are usually determined based on the movement of the display reference object in the target scene, and these areas are rendered and displayed to fully render and display the currently visible area. In some cases, such as when the display reference object is disconnected and then logged back in, or is transmitted from other areas, the display reference object is equivalent to having just entered a certain area and has not yet moved in the area. Therefore, it is not possible to directly determine other areas that the display reference object can see at this location, nor is it possible to accurately determine the model to be rendered and displayed, which can easily lead to the lack of the rendered model, and thus cause the problem of missing rendered images.

[0040] Based on the above research, the present disclosure provides a rendering display method, in which, under the first preset event that the display object does not appear in the target scene at the previous moment, but appears in the connected area at the next moment, the models corresponding to the first area, the second area, and the connected area connecting the first area and the second area in the target scene are rendered and displayed. Afterwards, the position information of the display reference object in the connected area is used to determine the area in the first area and the second area where the display reference object is currently invisible, as the first target area to be uninstalled, and the corresponding model is uninstalled. In this way, when it is impossible to determine which model needs to be rendered and displayed, all models that may be rendered and displayed can be rendered to ensure that the model to be rendered and displayed is not missing, thereby ensuring the integrity of the rendered picture.

[0041] In addition, after rendering and displaying the first model, the second model, and the third model, the first target area to be unloaded is determined from the first area and the second area according to the position information of the displayed reference object in the connected area, and the model corresponding to the first target area is unloaded. Therefore, the number of models rendered and displayed can be reduced, and the computing power consumed by the graphics processor during rendering and display can be reduced while ensuring the integrity of the rendered and displayed image.

[0042] The defects existing in the above solutions are the results obtained by the inventor after practice and careful research. Therefore, the discovery process of the above problems and the solutions proposed by the present disclosure for the above problems below should be the contributions made by the inventor to the present disclosure during the disclosure process.

[0043] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0044] To facilitate understanding of the present embodiment, a rendering display method disclosed in the embodiment of the present disclosure is first introduced in detail. The execution subject of the rendering display method provided in the embodiment of the present disclosure is generally a computer device with certain computing capabilities, and the computer device includes, for example: a terminal device or a server or other processing device, and the terminal device can be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (Personal Digital Assistant, PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the rendering display method can be implemented by a processor calling a computer-readable instruction stored in a memory.

[0045] The rendering and display method provided by the embodiment of the present disclosure is described below. The rendering and display method provided by the embodiment of the present disclosure is applied to the rendering and display of the target scene. Among them, the target scene is also different in different application scenarios. Exemplarily, when the rendering and display method provided by the embodiment of the present disclosure is applied to a game scene, the target scene may include a map scene in the game, for example; when the rendering and display method provided by the embodiment of the present disclosure is applied to a metaverse scene, the target scene may include a space scene shown in the metaverse. When the area occupied by the target scene is large, a partial scene may be shown when displaying the target scene.

[0046] In addition, the target scene includes a first area and a second area, and the first area and the second area are connected through a connecting area. Figure 1 As shown, it is a schematic diagram of a target scene provided in an embodiment of the present disclosure; wherein, in order to more clearly illustrate the rendering and display method provided in an embodiment of the present disclosure, only the first area 11, the second area 12, and the connecting area 13 connecting the first area and the second area are shown in the schematic diagram of the target scene.

[0047] See also Figure 2 FIG. 2 is a flowchart of a rendering and display method provided by an embodiment of the present disclosure, wherein the method includes steps S201 to S203, wherein:

[0048] S201: In response to a first preset event that the display reference object appears non-continuously in the connected area being triggered, rendering and displaying a first model corresponding to the first area, a second model corresponding to the second area, and a third model corresponding to the connected area; wherein, at a moment before the moment when the non-continuous appearance of the representation in the connected area occurs, the display reference object is not located in the target scene;

[0049] S202: after rendering and displaying the first model, the second model, and the third model, determining a first target area to be uninstalled from the first area and the second area based on the position information of the display reference object in the connected area;

[0050] S203: Uninstalling the model corresponding to the first target area.

[0051] In the disclosed embodiment, when a first preset event in which a discontinuity of a display reference object occurs in a connected area is triggered, the models corresponding to the first area, the second area, and the connected area in the target scene are rendered and displayed, respectively. Then, based on the position information of the display reference object in the connected area, the first target area to be unloaded is determined from the first area and the second area, and the model corresponding to the first target area is unloaded. Thus, when it is impossible to determine which model needs to be rendered and displayed, all possible models that can be rendered and displayed are rendered to ensure that no model that is rendered and displayed is missing, thereby ensuring the integrity of the rendered image.

[0052] The above S201 to S203 are described in detail below.

[0053] With respect to the above S201, the display reference object is first described. The display reference object includes a virtual camera and / or a controlled virtual character. The virtual camera can be understood as a virtual camera used to shoot a virtual scene. By moving the perspective of the virtual camera, different virtual objects in the target scene can be displayed. For the controlled virtual character, in the game scene, for example, it corresponds to a player-played character controlled by a player in the game.

[0054] Here, the game scene is taken as an example for further explanation. Because the posture between the virtual camera and the controlled virtual character is different under different perspectives; for example, under the first-person perspective, the posture between the virtual camera and the controlled virtual character is fixed. Under the third-person perspective, the posture between the virtual camera and the controlled virtual character can be adjusted according to the player's control. For example, the player can control the perspective of the virtual camera without adjusting the direction of the controlled virtual character; or the player can control the distance between the virtual camera and the controlled virtual character, thereby changing the picture captured by the virtual camera.

[0055] Then, the first preset event of the display reference object appearing non-continuously in the connected area is described. The non-continuous appearance in the connected area indicates that the display reference object is not located in the target scene at the moment before the appearance. Specifically, the non-continuous appearance in the connected area may include, but is not limited to, the following two situations (a1) and (a2):

[0056] (a1): Displays the transfer event of the reference object between scenes.

[0057] Exemplarily, there are other scenes or areas outside the target scene, and taking the other areas as an example, they are referred to as the third area here. If the display reference object is located in the third area, the transmission between areas can be performed (for example, the display reference object located in the third area can be directly transmitted to the connected area), then at the moment before the transmission, the display reference object is located in the third area; and at the moment after the transmission, the display reference object is located in the connected area in the target scene.

[0058] (a2): Displays the login events of the benchmark object.

[0059] For example, when the display reference object is in the connected area of ​​the target scene, if the signal is weak or an interference signal appears at this time, the server may be disconnected, and the server is disconnected and reconnected. When the connection state is returned, the display reference object reappears at the location where it was previously disconnected. In this case, before returning to the connection state, the display reference object is not in the connected area; and after returning to the connection state, the display reference object is located in the connected area of ​​the target scene.

[0060] In the above two cases, or other possible cases of non-continuous entry into the connected area, the first model corresponding to the first area, the second model corresponding to the second area, and the third model corresponding to the connected area can be rendered and displayed. Exemplarily, the first area is, for example, the area where the house is located, and the corresponding first model is the interior model of the house. When the first model corresponding to the first area is rendered and displayed, the interior of the house can be rendered and displayed. The second area is, for example, the area where the tower is located, and the corresponding second model is the tower equipment model of the tower. When the second model corresponding to the second area is rendered and displayed, the tower equipment can be rendered and displayed; the connected area is, for example, an underground passage connecting the first area and the second area, and the corresponding third model can include, for example, underground stone walls and lamps, etc., and when the third model corresponding to the connected area is rendered and displayed, the stone walls, lamps, etc. can be rendered and displayed.

[0061] Specifically, the rendering and display of the first model is taken as an example for explanation. The first model can be loaded into the memory, for example, and when it is determined that the first model is to be rendered and displayed, the first model is obtained from the memory and rendered and displayed. Here, in order to obtain the first model from the memory in a timely manner, when it is determined that the display reference object reaches the target scene, the models corresponding to the multiple areas in the target scene can be stored in the memory, such as the first model corresponding to the first area, the second model corresponding to the second area, and the third model corresponding to the connected area. In this way, when it is determined that the model corresponding to any area is to be rendered and displayed, the corresponding model can be obtained from the memory in a timely manner and rendered and displayed accordingly.

[0062] With respect to the above S202, after the first model, the second model, and the third model are rendered and displayed, a first target area to be uninstalled may be determined from the first area and the second area based on the position information of the displayed reference object in the connected area.

[0063] Here, see Figure 3 As shown, it is a schematic diagram of another target scene provided by an embodiment of the present disclosure; in this schematic diagram, Figure 1 The interconnected area 13 in the figure is divided into three interconnected sub-areas, including a first interconnected sub-area 131 where the first area is visible, a second interconnected sub-area 132 where the second area is visible, and a third interconnected sub-area 133 where the first area and the second area are not visible.

[0064] In a specific implementation, since the models corresponding to the first area, the second area and the connected area in the target scene have all been rendered and displayed, and it is ensured that when the first preset event occurs, there will be no black screen phenomenon caused by the area that needs to be rendered not being rendered and displayed. Therefore, it is possible to further determine, based on the position of the display reference object, that the model corresponding to the area that is not currently visible will be unloaded to reduce redundant rendering and display.

[0065] Specifically, when determining the first target area to be unloaded according to the position of the displayed reference object, it can be determined according to the following three different situations (b1), (b2), and (b3), for example:

[0066] (b1): In response to the position information indicating that the display reference object is located in the first connected sub-area, the second area is determined as the first target area to be uninstalled.

[0067] Here, when the position information indicates that the display reference object is located in the first connected sub-area, the second area is not visible in the first connected sub-area no matter in which direction the display reference object moves or how the viewing direction is switched, so the second area can be determined as the first target area to be uninstalled.

[0068] (b2): In response to the position information indicating that the display reference object is located in the second connected sub-area, the first area is determined as the first target area.

[0069] Here, when the position information indicates that the display reference object is located in the second connected sub-area, the first area is not visible in the second connected sub-area no matter in which direction the display reference object moves or how the viewing direction is switched, so the first area can be determined as the first target area to be uninstalled.

[0070] (b3): ​​In response to the position information indicating that the display reference object is located in the third connected sub-area, the first area and the second area are determined as the first target area.

[0071] Here, when the position information indicates that the display reference object is located in the third connected sub-area, since in the third connected sub-area, no matter in which direction the display reference object moves or how the viewing direction is switched, the first area and the second area are both visible, the first area and the second area can be determined as the first target area to be unloaded.

[0072] The position information of the reference object in the connected area can be determined, for example, according to a coordinate system pre-set for the target scene, for example, according to the coordinate position in the coordinate system. Here, the coordinate system established for the target scene can be determined according to actual conditions, for example, it can be established as a relatively simple XY coordinate system, or a longitude and latitude coordinate system similar to the earth.

[0073] With respect to the above S203, when the first target area to be uninstalled is determined according to the above S202, the model corresponding to the first target area can be uninstalled.

[0074] In another embodiment of the present disclosure, see Figure 4 FIG. 1 is a schematic diagram of another target scenario provided by an embodiment of the present disclosure; wherein the two ends of the third interconnected sub-area are respectively connected to the first interconnected sub-area and the second interconnected sub-area. In addition, a trigger is also provided in the third interconnected sub-area; the trigger includes: a first trigger 41 located at the two ends of the third interconnected sub-area and corresponding to the first area, and a second trigger 42 corresponding to the second area. For the sake of distinction, the first trigger and the second trigger are filled with gray in the figure.

[0075] Here, the first trigger is close to the first area in the third Unicom sub-area, and the second trigger is close to the second area in the third Unicom sub-area. The fixed positions of the first trigger and the second trigger in the third Unicom sub-area are not limited, nor is the size of the area occupied by the first trigger and the second trigger. The various different ways of setting the first trigger and the second trigger that can be used to implement the rendering display method provided in the embodiment of the present disclosure are all within the protection scope of the present disclosure. In one example, the first trigger is spaced from the first Unicom sub-area by a first preset distance, the first trigger and the second trigger are spaced from the third Unicom sub-area by a second preset distance, and the second trigger and the second Unicom sub-area are spaced from the third preset distance. The first trigger and the second trigger both occupy a preset area in the third Unicom sub-area.

[0076] In a specific implementation, the rendering and display method provided by the embodiment of the present disclosure can also determine the first movement information of the display reference object in response to the display reference object moving within the third connected sub-area; in response to the trigger being triggered when the display reference object moves within the third connected sub-area, based on the first movement information, determine the second target area to be rendered and displayed from the first area and the second area.

[0077] Here, after determining the second target area to be rendered and displayed, the second target area may also be rendered and displayed.

[0078] Specifically, when the display reference object moves in the third communication sub-area, first movement information of the display reference object may be determined. Here, the first movement information may include, for example, the moving direction of the display reference object in the third communication sub-area.

[0079] When the display reference object moves in the third interconnected sub-area, for example, a first trigger in the third interconnected sub-area may be triggered. The first trigger may be triggered by, for example, the display reference object passing through an area occupied by the first trigger in the third interconnected sub-area.

[0080] When it is determined that the display reference object triggers the first trigger, based on the first movement information of the display reference object, it can be determined that the first trigger direction corresponding to the display reference object triggering the first trigger is obtained. If the first trigger direction represents movement in a direction close to the first area, the first area is determined to be the second target area to be rendered and displayed.

[0081] For example, see Figure 5 FIG. 1 is a schematic diagram of a display reference object moving in a target scene provided by an embodiment of the present disclosure. In this schematic diagram, for a clearer description, only the first area, the first interconnected sub-area, and part of the third interconnected sub-area are shown. In the third interconnected sub-area, the display reference object is the controlled virtual character 51. The first movement information of the display reference object in the third interconnected sub-area indicates that the movement direction of the display reference object when the first trigger is triggered is Figure 5 According to the direction indicated by the solid arrow, the first triggering direction of the display reference object when the first trigger is triggered can be determined to be the direction indicated by the dotted arrow.

[0082] Here, in order to clearly define the second target area to be rendered when the first trigger is triggered, the first movement information can be judged to determine the corresponding first trigger direction. The first trigger direction determined here is a direction directly pointing to the first area. For example, for the first trigger, possible first trigger directions include Figure 5The direction indicated by the dotted arrow shown in the figure, or the reverse direction of the direction indicated by the dotted arrow. The corresponding angles are determined by the moving direction corresponding to the first moving information and the two different triggering directions corresponding to the first trigger, and the triggering direction with an acute angle or a smaller angle is determined as the first triggering direction corresponding to the first moving information.

[0083] For example, for the first movement information indicated by the solid arrow, it is not easy to judge whether the reference display object moves toward the first area. By determining the first trigger direction through the first movement information, it is possible to use the clearer first trigger direction to more easily determine whether the displayed reference object moves toward the direction close to the first area.

[0084] Therefore, for Figure 5 The display reference object shown in the figure, and the first movement information corresponding to the display reference object, can determine that the first trigger direction represents movement in a direction close to the first area, so the first area can be determined as the second target area, and the first area is rendered and displayed.

[0085] In addition, for the second trigger in the third connected sub-area, when the display reference object moves in the third connected sub-area to trigger the second trigger, a second trigger direction corresponding to when the display reference object triggers the second trigger can be determined based on the first movement information; in response to the second trigger direction representing movement in a direction approaching the second area, the second area is determined to be the second target area.

[0086] For example, see Figure 6 FIG. 1 is another schematic diagram of another display reference object moving in a target scene provided by an embodiment of the present disclosure. In this schematic diagram, for a clearer description, only the first area, the second interconnected sub-area, and part of the third interconnected sub-area are shown. In the third interconnected sub-area, the display reference object is the controlled virtual character 61. The second movement information of the display reference object in the third interconnected sub-area indicates that the movement direction of the display reference object when the second trigger is triggered is Figure 6 The second trigger direction can be determined by using the second movement information of the display reference object. Figure 6 The dashed arrow indicates the direction.

[0087] By using the determined second trigger direction, it can be determined that the second trigger direction represents movement in a direction close to the second area, the second area is determined to be the second target area, and the second target area is loaded and rendered.

[0088] In another embodiment of the present disclosure, the rendering and display method provided by the embodiment of the present disclosure can also determine second movement information of the display reference object in response to the display reference object moving within the first connected sub-area; and unload the model corresponding to the first area in response to the second movement information indicating that the display reference object moves from the first connected sub-area to the third connected sub-area and triggers the first trigger.

[0089] Similar to the method of determining the second target area in the above embodiment, when the display reference object moves within the first connected sub-area, by determining the second movement information of the display reference object, the third trigger direction when the first trigger is triggered can be determined accordingly. According to the determined third trigger direction, it can be determined that the display reference object moves away from the first area, and the model corresponding to the first area is unloaded. Here, the specific process can refer to the relevant instructions for determining the second target area above, and will not be repeated here.

[0090] For example, see Figure 7 FIG. 1 is a schematic diagram of a third display reference object moving in a target scene provided by an embodiment of the present disclosure. The moving direction of the display reference object 71 when the first trigger is triggered is Figure 7 The direction indicated by the solid arrow in the middle determines that the third trigger direction when the first trigger is triggered is the direction indicated by the dotted arrow. Using the direction indicated by the dotted arrow, it can be determined that the display reference object moves away from the first area and the model corresponding to the first area is unloaded.

[0091] In addition, when the display reference object moves within the second connectivity sub-area, from the second connectivity sub-area to the third connectivity sub-area, third movement information of the display reference object can be determined in response to the display reference object moving within the second connectivity sub-area; in response to the third movement information indicating that the display reference object moves from the second connectivity sub-area to the third connectivity sub-area and triggering the second trigger, the model corresponding to the second area is unloaded.

[0092] Here, when the display reference object moves in the third connected sub-area, by determining the second movement information of the display reference object, the fourth trigger direction when the second trigger is triggered can be determined accordingly. According to the determined fourth trigger direction, it can be determined that the display reference object moves away from the second area, and the model corresponding to the second area is unloaded. Here, the specific process is not repeated here.

[0093] For example, see Figure 8 FIG. 8 is a schematic diagram of a fourth display reference object moving in a target scene provided by an embodiment of the present disclosure. The moving direction of the display reference object 81 when the second trigger is triggered is Figure 8The direction indicated by the solid arrow in the middle determines that the fourth trigger direction when the second trigger is triggered is the direction indicated by the dotted arrow. Using the direction indicated by the dotted arrow, it can be determined that the display reference object moves away from the second area and the model corresponding to the second area is unloaded.

[0094] In this way, the area for rendering and display and the area for uninstalling the corresponding model can be determined according to the movement information of the display reference object in the third interconnected sub-area.

[0095] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.

[0096] Based on the same inventive concept, the embodiment of the present disclosure also provides a rendering and display device corresponding to the rendering and display method. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned rendering and display method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0097] Reference Fig. 9 FIG. 1 is a schematic diagram of a rendering display device provided by an embodiment of the present disclosure, wherein the device comprises: a first processing module 91, a determination module 92, and a second processing module 93; wherein:

[0098] A first processing module 91 is configured to render and display a first model corresponding to the first area, a second model corresponding to the second area, and a third model corresponding to the connected area in response to a first preset event that the display reference object appears discontinuously in the connected area being triggered; wherein the display reference object is not located in the target scene at a moment before the moment when the discontinuity appears in the connected area;

[0099] A determination module 92, configured to determine a first target area to be unloaded from the first area and the second area based on the position information of the display reference object in the connected area after rendering and displaying the first model, the second model, and the third model;

[0100] The second processing module 93 is used to unload the model corresponding to the first target area.

[0101] In an optional implementation manner, the first preset event includes at least one of the following: a transmission event between scenes and a login event.

[0102] In an optional embodiment, the connected area includes: a first connected sub-area in which the first area is visible, a second connected sub-area in which the second area is visible, and a third connected sub-area in which the first area and the second area are invisible; when the determination module 92 determines the first target area to be uninstalled from the first area and the second area based on the position information of the display reference object in the connected area, it is used to: in response to the position information indicating that the display reference object is located in the first connected sub-area, determine the second area as the first target area to be uninstalled; in response to the position information indicating that the display reference object is located in the second connected sub-area, determine the first area as the first target area; in response to the position information indicating that the display reference object is located in the third connected sub-area, determine the first area and the second area as the first target area.

[0103] In an optional embodiment, the two ends of the third connected sub-region are respectively connected to the first connected sub-region and the second connected sub-region; a trigger is also provided in the third connected sub-region; the trigger includes: a first trigger respectively located at the two ends of the third connected sub-region and corresponding to the first region, and a second trigger corresponding to the second region; the determination module 92 is also used to: determine first movement information of the display reference object in response to the display reference object moving within the third connected sub-region; trigger the trigger in response to the display reference object moving within the third connected sub-region, and determine the second target region to be rendered and displayed from the first region and the second region based on the first movement information.

[0104] In an optional implementation, the determining module 92 is further configured to render and display the second target area.

[0105] In an optional embodiment, the determination module 92 is used to: trigger the first trigger in response to the display reference object moving within the third connected sub-area, and determine the second target area to be rendered and displayed from the first area and the second area based on the first movement information, in response to the display reference object moving within the third connected sub-area triggering the trigger, and determine the first trigger direction corresponding to the display reference object triggering the first trigger based on the first movement information; determine the first area as the second target area in response to the first trigger direction representing movement in a direction close to the first area.

[0106] In an optional embodiment, the determination module 92 is also used to: in response to the display reference object triggering the second trigger when it moves within the third connected sub-area, determine, based on the first movement information, a second trigger direction corresponding to when the display reference object triggers the second trigger; and in response to the second trigger direction representing movement in a direction approaching the second area, determine the second area as the second target area.

[0107] In an optional embodiment, the determination module 92 is also used to: determine second movement information of the display reference object in response to the display reference object moving within the first connected sub-area; and unload the model corresponding to the first area in response to the second movement information indicating that the display reference object moves from the first connected sub-area to the third connected sub-area and triggers the first trigger.

[0108] In an optional embodiment, the determination module 92 is further used to: determine third movement information of the display reference object in response to the display reference object moving within the second connectivity sub-area; and unload the model corresponding to the second area in response to the third movement information indicating that the display reference object moves from the second connectivity sub-area to the third connectivity sub-area and triggers the second trigger.

[0109] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.

[0110] The present disclosure also provides a computer device, such as Fig.10 FIG. 1 is a schematic diagram of a computer device structure provided in an embodiment of the present disclosure, including:

[0111] A processor 10 and a memory 20; the memory 20 stores machine-readable instructions executable by the processor 10, and the processor 10 is used to execute the machine-readable instructions stored in the memory 20. When the machine-readable instructions are executed by the processor 10, the processor 10 performs the following steps:

[0112] In response to a first preset event in which the display reference object appears non-continuously in the connected area being triggered, a first model corresponding to the first area, a second model corresponding to the second area, and a third model corresponding to the connected area are rendered and displayed; wherein, before a moment when the non-continuity appears in the connected area, the display reference object is not located in the target scene; after rendering and displaying the first model, the second model, and the third model, a first target area to be uninstalled is determined from the first area and the second area based on the position information of the display reference object in the connected area; and the model corresponding to the first target area is uninstalled.

[0113] The above-mentioned memory 20 includes an internal memory 210 and an external memory 220; the internal memory 210 here is also called an internal memory, which is used to temporarily store the calculation data in the processor 10, as well as the data exchanged with the external memory 220 such as a hard disk. The processor 10 exchanges data with the external memory 220 through the internal memory 210.

[0114] The specific execution process of the above instructions can refer to the steps of the rendering and display method described in the embodiment of the present disclosure, which will not be repeated here.

[0115] The present disclosure also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the steps of the rendering and display method described in the above method embodiment are executed. The storage medium can be a volatile or non-volatile computer-readable storage medium.

[0116] The present disclosure also provides a computer program product that carries a program code. The program code includes instructions that can be used to execute the steps of the rendering and display method described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.

[0117] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).

[0118] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.

[0119] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0120] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0121] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0122] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A rendering display method, characterized in that: Used to render and display the target scene; The target scene includes: a first area and a second area, the first area and the second area are connected via a connecting area; when the display reference object is located in the connecting area, the first area and / or the second area are rendered and displayed; the rendering and display method includes: In response to a first preset event that the display reference object appears non-continuously in the connected area being triggered, rendering and displaying a first model corresponding to the first area, a second model corresponding to the second area, and a third model corresponding to the connected area; wherein, at a moment before the moment when the non-continuous appearance of the representation in the connected area occurs, the display reference object is not located in the target scene; After rendering and displaying the first model, the second model, and the third model, determining a first target area to be unloaded from the first area and the second area based on the position information of the display reference object in the connected area; Uninstall the model corresponding to the first target area.

2. The rendering and display method according to claim 1, characterized in that: The first preset event includes at least one of the following: Transfer events and login events between scenes.

3. The rendering display method according to claim 1 or 2, characterized in that: The interconnected area includes: a first interconnected sub-area where the first area is visible, a second interconnected sub-area where the second area is visible, and a third interconnected sub-area where the first area and the second area are not visible; The determining, based on the position information of the display reference object in the connected area, a first target area to be uninstalled from the first area and the second area comprises: In response to the position information indicating that the display reference object is located in the first connected sub-area, determining the second area as the first target area to be uninstalled; In response to the position information indicating that the display reference object is located in the second connected sub-area, determining the first area as the first target area; In response to the position information indicating that the display reference object is located in the third connected sub-area, the first area and the second area are determined as the first target area.

4. The rendering display method according to claim 3, characterized in that: The two ends of the third interconnected sub-region are respectively connected to the first interconnected sub-region and the second interconnected sub-region; a trigger is also provided in the third interconnected sub-region; the trigger comprises: a first trigger respectively located at the two ends of the third interconnected sub-region and corresponding to the first region, and a second trigger corresponding to the second region; The method further comprises: In response to the display reference object moving within the third connected sub-area, determining first movement information of the display reference object; In response to the trigger being triggered when the display reference object moves within the third connected sub-area, a second target area to be rendered and displayed is determined from the first area and the second area based on the first movement information.

5. The rendering and display method according to claim 4, characterized in that: Also includes: The second target area is rendered and displayed.

6. The rendering and display method according to claim 4, characterized in that: The trigger is triggered in response to the display reference object moving within the third interconnected sub-area, and based on the first movement information, a second target area to be rendered and displayed is determined from the first area and the second area, including: In response to the first trigger being triggered when the display reference object moves within the third connected sub-area, determining, based on the first movement information, a first trigger direction corresponding to when the display reference object triggers the first trigger; In response to the first trigger direction representing movement toward the first area, the first area is determined to be the second target area.

7. The rendering and display method according to claim 6, characterized in that: Also includes: In response to the display reference object moving within the third connected sub-area and triggering the second trigger, determining, based on the first movement information, a second trigger direction corresponding to when the display reference object triggers the second trigger; In response to the second trigger direction representing movement toward the second area, the second area is determined to be the second target area.

8. The rendering and display method according to claim 4, characterized in that: The method further includes: in response to the display reference object moving within the first communication sub-area, determining second movement information of the display reference object; In response to the second movement information indicating that the display reference object moves from the first connected sub-area to the third connected sub-area and the first trigger is triggered, the model corresponding to the first area is unloaded.

9. The rendering and display method according to claim 4, characterized in that: The method further includes: in response to the display reference object moving within the second communication sub-area, determining third movement information of the display reference object; In response to the third movement information indicating that the display reference object moves from the second connected sub-area to the third connected sub-area and the second trigger is triggered, the model corresponding to the second area is unloaded.

10. A rendering display device, characterized in that: Used to render and display the target scene; The target scene includes: a first area and a second area, the first area and the second area are connected via a connecting area; when the display reference object is located in the connecting area, the first area and / or the second area are rendered and displayed; the rendering and display device includes: A first processing module is configured to render and display a first model corresponding to the first area, a second model corresponding to the second area, and a third model corresponding to the connected area in response to a first preset event that the display reference object appears discontinuously in the connected area being triggered; wherein the display reference object is not located in the target scene at a moment before the moment when the discontinuity appears in the connected area; a determination module, configured to determine a first target area to be uninstalled from the first area and the second area based on the position information of the display reference object in the connected area after rendering and displaying the first model, the second model, and the third model; The second processing module is used to unload the model corresponding to the first target area.

11. A computer device, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and the processor is used to execute the machine-readable instructions stored in the memory. When the machine-readable instructions are executed by the processor, the processor executes the steps of the rendering and display method according to any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program. When the computer program is executed by a computer device, the computer device executes the steps of the rendering and display method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Rendering area determination method and apparatus

    CN107875630A

  • Invisible element determining method and device, storage medium and electronic device

    CN108421257A