Object loading method and device in scene, storage medium and electronic equipment
A technology of objects and scenes, applied in the computer field, can solve problems such as the loading process takes too long
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] figure 1 It is a schematic flowchart of a method for loading objects in a scene provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of dynamically loading objects in a scene in an online game. This method can be executed by the method provided by the embodiment of the present invention. Specifically Including the following steps:
[0028] S110. Acquire preloaded object index information in the current scene, where the object index information includes a first position of each object in the current scene.
[0029] S120. Determine a current visible object set of the target object based on the second position of the target object in the current scene, a preset visible range, and the first position of each object in the object index information.
[0030] S130. Load visible objects in the current visible object set.
[0031] In an online game, multiple scenes may be included, and each scene may include multiple objects, such as...
Embodiment 2
[0053] Figure 4 It is a schematic flowchart of a method for loading objects in a scene provided by Embodiment 2 of the present invention, which is optimized on the basis of the above embodiments, and the method specifically includes:
[0054] S210. Acquire preloaded object index information in the current scene, where the object index information includes a first position of each object in the current scene.
[0055] S220. Determine a current visible object set of the target object based on the second position of the target object in the current scene, a preset visible range, and the first position of each object in the object index information.
[0056] S230. Determine the loading priority of each of the visible objects according to at least one of the current viewing angle of the target object, the size of the visible object, and the distance between the visible object and the target object.
[0057] S240. Load each of the visible objects based on the loading priority.
...
Embodiment 3
[0065] Figure 5 It is a schematic structural diagram of an object loading device in a scene provided by Embodiment 3 of the present invention, and the device includes:
[0066] An index information acquisition module 310, configured to acquire preloaded object index information in the current scene, wherein the object index information includes a first position of each object in the current scene;
[0067] A visible object set determination module 320, configured to determine the current visible object set of the target object based on the second position of the target object in the current scene, the preset visible range, and the first position of each object in the object index information ;
[0068] The visible object loading module 330 is configured to load the visible objects in the current visible object set.
[0069]Optionally, the visible object set determining module 320 includes:
[0070] An area segmentation unit, configured to iteratively perform tree-shaped ar...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


