CN117078848A - Model rendering method and device, electronic equipment and storage medium - Google Patents

Model rendering method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117078848A
CN117078848A CN202310918348.8A CN202310918348A CN117078848A CN 117078848 A CN117078848 A CN 117078848A CN 202310918348 A CN202310918348 A CN 202310918348A CN 117078848 A CN117078848 A CN 117078848A
Authority
CN
China
Prior art keywords
model
rendering
index
area
data
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
CN202310918348.8A
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 Fufeng Technology Co ltd
Original Assignee
Shenzhen Fufeng 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 Fufeng Technology Co ltd filed Critical Shenzhen Fufeng Technology Co ltd
Priority to CN202310918348.8A priority Critical patent/CN117078848A/en
Publication of CN117078848A publication Critical patent/CN117078848A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/005Tree description, e.g. octree, quadtree
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/04Texture mapping

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Graphics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Image Generation (AREA)

Abstract

The embodiment of the application provides a model rendering method, a device, electronic equipment and a storage medium, which comprise the steps of obtaining model construction data and model mapping data; dividing the space sequence of model rendering to obtain a model region; establishing a spatial index of model construction data and a rendering index of model map data corresponding to each model area; and performing model rendering of each model area according to the spatial index and the rendering index. According to the application, the model can be constructed through the spatial index, and the model constructed through the rendering index is subjected to mapping, so that model rendering is completed, and the model is subjected to mapping after model mapping data are not required to be manually selected.

Description

Model rendering method and device, electronic equipment and storage medium
Technical Field
The embodiment of the application relates to the field of computers, in particular to a model rendering method, a device, electronic equipment and a storage medium.
Background
Model rendering is typically implemented in two steps, one is to build the model and the other is to map the built model.
The prior art is better to perform viewpoint dynamic sequencing (preprocessing) based on the spatial index, wherein the spatial index of the scene is focused on octree, BVH and BSP trees, view cone rejection and sequencing are performed according to viewpoint changes, and progressive display is performed after the dynamic preprocessing based on the viewpoint and the spatial index is performed on the whole scene, so that better model construction efficiency and experience are obtained. In general, the overall display visual effect of a model may be enhanced by having a relatively close, larger object from the viewpoint displayed prior to other models.
At present, after a model is constructed, model mapping data of the model still needs to be manually selected for mapping the model, and the model rendering time is greatly prolonged by adopting the model rendering mode.
Disclosure of Invention
In view of this, the embodiment of the application provides a model rendering method, a device, an electronic device and a storage medium, which effectively shorten the model rendering time.
In a first aspect, an embodiment of the present application provides a model rendering method, where the method includes:
obtaining model construction data and model mapping data;
dividing the space sequence of model rendering to obtain a model region;
establishing a spatial index of model construction data and a rendering index of model map data corresponding to each model area;
and performing model rendering of each model area according to the spatial index and the rendering index.
In one possible embodiment, before model rendering of each of the model regions according to the spatial index and the rendering index, the method further includes:
and establishing a spatial index table of model construction data corresponding to each model area in the database, and storing the model construction data in a warehouse.
In one possible embodiment, before model rendering of each of the model regions according to the spatial index and the rendering index, the method further includes:
and establishing a rendering index table of the model map data corresponding to each model area in the database, and storing the model map data in a warehouse.
In one possible embodiment, model rendering of each model region according to the spatial index and the rendering index includes:
constructing a plurality of rendering threads;
for each model area, selecting one target rendering thread from a plurality of rendering threads, retrieving target model construction data corresponding to the model area according to the spatial index in the target rendering thread to perform model construction, and retrieving target model mapping data corresponding to the model area according to the rendering index to perform model mapping.
In one possible embodiment, the method further comprises:
after the model rendering of the target rendering thread is completed, continuing the model rendering of the next model area in the current target rendering thread until all the model construction data and the model map data in the visible scene area are rendered.
In one possible embodiment, the method further comprises:
when the three-dimensional scene roams, calculating a foreseeable area according to the movement trend of the viewpoint;
and loading model construction data and model map data of the foreseeable area into a cache.
In one possible embodiment, the method further comprises:
and storing the model after model rendering is completed.
In a second aspect, an embodiment of the present application provides a model rendering apparatus, where the apparatus includes:
the acquisition module is used for acquiring model construction data and model mapping data;
the partitioning module is used for dividing the space sequence of model rendering to obtain a model region;
the building module is used for building a spatial index of model construction data corresponding to each model area and a rendering index of model map data;
and the model rendering module is used for performing model rendering of each model area according to the spatial index and the rendering index.
In a third aspect, an embodiment of the present application provides an electronic device, including: the processor is used for executing the model rendering program stored in the memory to realize the model rendering method.
In a fourth aspect, an embodiment of the present application provides a storage medium, where the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the above model rendering method.
The embodiment of the application provides a model rendering method, a device, electronic equipment and a storage medium, which comprise the steps of obtaining model construction data and model mapping data; dividing the space sequence of model rendering to obtain a model region; establishing a spatial index of model construction data and a rendering index of model map data corresponding to each model area; and performing model rendering of each model area according to the spatial index and the rendering index. According to the application, the model can be constructed through the spatial index, and the model constructed through the rendering index is subjected to mapping, so that model rendering is completed, and the model is subjected to mapping after model mapping data are not required to be manually selected.
Drawings
FIG. 1 is a flowchart of an embodiment of a model rendering method according to an embodiment of the present application;
FIG. 2 is a flowchart of another embodiment of a model rendering method according to an embodiment of the present application;
FIG. 3 is a block diagram of an embodiment of a model rendering apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
For the purpose of facilitating an understanding of the embodiments of the present application, reference will now be made to the following description of specific embodiments, taken in conjunction with the accompanying drawings, which are not intended to limit the embodiments of the application.
An embodiment of the present application provides a model rendering method, as shown in fig. 1, which may include the following steps:
step 101, obtaining model construction data and model mapping data;
it should be noted that, the model building data is vector data, and may be heterogeneous vector data with different data formats and different sources. Model mapping data can be understood as data for texture mapping of a model.
102, dividing a space sequence of model rendering to obtain a model region;
the above spatial order is a spatial order of model construction, for example, from left to right, from inside to outside, from bottom to top, and so on, and may be specifically set according to actual needs, which is not limited herein.
Step 103, establishing a spatial index of model construction data and a rendering index of model map data corresponding to each model area;
in one embodiment, a quadtree approach may be used to build a spatial index of model build data and model regions, and a rendering index of model map data and model regions.
In practical use, the model construction data corresponding to each model area is stored, and the model construction data comprises basic ID number fields, geometric figure sets and other basic field information, wherein the geometric figure set fields store geometric solid shapes of vector elements, such as geometric data of points, lines, planes and the like. Because the model construction data can be dynamically created in the embodiment, the model construction data is saved so as to be quickly modified and read, and thus, the rendering efficiency can be improved.
The specific storage process is as follows: and establishing a spatial index table of model construction data corresponding to each model area in the database, and storing the model construction data in a warehouse.
Similarly, in order to save the model map data corresponding to each model area for quick modification, read the data and improve the rendering efficiency, a rendering index table of the model map data corresponding to each model area can be built in a database, and the model map data is stored in a warehouse.
And 104, performing model rendering of each model area according to the spatial index and the rendering index.
When model rendering is performed, model construction data corresponding to each model region can be called for model construction of the model region according to the spatial index corresponding to each model region, and model mapping is performed on the model region by using the rendering index to call the model mapping data corresponding to the model region after model construction is completed.
The model rendering method provided by the embodiment of the application comprises the steps of obtaining model construction data and model mapping data; dividing the space sequence of model rendering to obtain a model region; establishing a spatial index of model construction data and a rendering index of model map data corresponding to each model area; and performing model rendering of each model area according to the spatial index and the rendering index. According to the application, the model can be constructed through the spatial index, and the model constructed through the rendering index is subjected to mapping, so that model rendering is completed, and the model is subjected to mapping after model mapping data are not required to be manually selected.
Referring to fig. 2, a flowchart of an embodiment of another model rendering method according to an embodiment of the present application is provided. The flow shown in fig. 2 may include the following steps based on the flow shown in fig. 1:
step 201, obtaining model construction data and model mapping data;
step 202, dividing the space sequence of model rendering to obtain a model region;
step 203, establishing a spatial index of model construction data and a rendering index of model map data corresponding to each model area;
the processes of step 201 to step 203 can be referred to as the processes of step 101 to step 103 in fig. 1, and will not be described herein.
Step 204, constructing a plurality of rendering threads;
in order to further increase the model rendering rate, model rendering can be completed through a plurality of rendering threads, namely, model rendering of a plurality of model areas is performed simultaneously by adopting a mode that one rendering thread renders one model area through a plurality of line rendering threads.
Step 205, selecting one target rendering thread from the plurality of rendering threads for each model area, retrieving target model construction data corresponding to the model area according to the spatial index in the target rendering thread for model construction, and retrieving target model mapping data corresponding to the model area according to the rendering index for model mapping.
When model rendering is carried out on each model area, one idle target rendering thread can be selected from a plurality of rendering threads, under the target rendering thread, a model of the model area can be built through a spatial index, and then model mapping is carried out on the model of the model area through the rendering index, so that model rendering of the model is realized.
In particular implementations, the multi-threaded rendering may be performed in a spatial order of the model regions, and the cross-rendering may be performed in accordance with the model regions. For example, when rendering threads 1, 2, 3 are used to render model areas 1, 2, 3, when rendering threads 1, 2 are completed, rendering thread 3 is still rendering, and at this time, rendering threads 1, 2 continue to render model areas 4, 5 without waiting for model area 3 to complete; in another example, when the rendering threads 1, 2 and 3 are adopted to render the model areas 1, 2 and 3 of one batch, the rendering thread 3 is still rendering after the rendering threads 1 and 2 are completed, and at this time, the rendering threads 1 and 2 continue to render the model areas 4 and 5 of the next batch without waiting for the model area 3 of the previous batch to be completed; this phenomenon is wave rendering, which is one wave per wave.
In one embodiment, after model rendering of the target rendering thread is completed, model rendering of the next model region is continued within the current target rendering thread until all model building data and model map data rendering within the visible scene region is completed. And the model after model rendering is completed can be stored, so that the subsequent use and retrieval are facilitated, the model rendering is not required to be performed again, and the model rendering time is greatly saved.
In the embodiment, the model construction data and the model map data are segmented and batched, so that ordered dynamic cross rendering is performed, the model construction data and the model map data are effectively drawn according to batches by using multiple threads, dynamic state changes of the model construction data and the model map data are rendered in real time, and visual rendering is performed according to the sequence of model areas, therefore, the effects presented by the rendered mass data are gradually changed, and the batch dynamic smooth rendering data efficiency is greatly improved; in addition, the application uses multiple rendering threads to effectively draw model construction data and model mapping data according to batches, and can fully utilize the hardware level of a computer to maximize the drawing efficiency of massive data.
And the prediction area is calculated according to the movement trend of the viewpoint when the three-dimensional scene roams, so that the efficiency and the visual effect of the scene roam are improved. That is, in this embodiment, another model rendering method may further include the following steps: when the three-dimensional scene roams, calculating a foreseeable area according to the movement trend of the viewpoint; and loading model construction data and model map data of the foreseeable area into a cache.
When the three-dimensional scene roams, the movement trend of the view point is random, and the selection of the foreseeable area comprises the range in which different movement trends can be displayed. If the prediction area is too large or too small, the continuity and the instantaneity of roaming are affected, and the efficiency of rendering mass data can be further improved by loading batch model construction data and model map data of the prediction area into a cache in advance.
Referring to fig. 3, a block diagram of an embodiment of a model rendering apparatus according to an embodiment of the present application is provided.
As shown in fig. 3, the apparatus may include:
an obtaining module 301, configured to obtain model construction data and model map data;
the partitioning module 302 is configured to divide a spatial order of model rendering to obtain a model area;
a building module 303, configured to build a spatial index of model construction data and a rendering index of model map data corresponding to each model area;
the model rendering module 304 is configured to perform model rendering of each model region according to the spatial index and the rendering index.
The model rendering device provided by the embodiment of the application comprises the steps of obtaining model construction data and model mapping data; dividing the space sequence of model rendering to obtain a model region; establishing a spatial index of model construction data and a rendering index of model map data corresponding to each model area; and performing model rendering of each model area according to the spatial index and the rendering index. According to the application, the model can be constructed through the spatial index, and the model constructed through the rendering index is subjected to mapping, so that model rendering is completed, and the model is subjected to mapping after model mapping data are not required to be manually selected.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and an electronic device 500 shown in fig. 4 includes: at least one processor 501, memory 502, at least one network interface 504, and other user interfaces 503. The various components in the electronic device 500 are coupled together by a bus system 505. It is understood that bus system 505 is used to enable connected communications between these components. The bus system 505 includes a power bus, a control bus, and a status signal bus in addition to a data bus. But for clarity of illustration the various buses are labeled as bus system 505 in fig. 4.
The user interface 503 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, a trackball, a touch pad, or a touch screen, etc.).
It will be appreciated that the memory 502 in embodiments of the application can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (Double Data Rate SDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), and Direct memory bus RAM (DRRAM). The memory 502 described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some implementations, the memory 502 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 5021 and application programs 5022.
The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application 5022 includes various application programs such as a Media Player (Media Player), a Browser (Browser), and the like for realizing various application services. A program for implementing the method according to the embodiment of the present application may be included in the application 5022.
In the embodiment of the present application, the processor 501 is configured to execute the method steps provided by the method embodiments by calling a program or an instruction stored in the memory 502, specifically, a program or an instruction stored in the application 5022, for example, including:
obtaining model construction data and model mapping data;
dividing the space sequence of model rendering to obtain a model region;
establishing a spatial index of model construction data and a rendering index of model map data corresponding to each model area;
and performing model rendering of each model area according to the spatial index and the rendering index.
In one possible embodiment, before model rendering of each of the model regions according to the spatial index and the rendering index, the method further includes:
and establishing a spatial index table of model construction data corresponding to each model area in the database, and storing the model construction data in a warehouse.
In one possible embodiment, before model rendering of each of the model regions according to the spatial index and the rendering index, the method further includes:
and establishing a rendering index table of the model map data corresponding to each model area in the database, and storing the model map data in a warehouse.
In one possible embodiment, model rendering of each model region according to the spatial index and the rendering index includes:
constructing a plurality of rendering threads;
for each model area, selecting one target rendering thread from a plurality of rendering threads, retrieving target model construction data corresponding to the model area according to the spatial index in the target rendering thread to perform model construction, and retrieving target model mapping data corresponding to the model area according to the rendering index to perform model mapping.
In one possible embodiment, the method further comprises:
after the model rendering of the target rendering thread is completed, continuing the model rendering of the next model area in the current target rendering thread until all the model construction data and the model map data in the visible scene area are rendered.
In one possible embodiment, the method further comprises:
when the three-dimensional scene roams, calculating a foreseeable area according to the movement trend of the viewpoint;
and loading model construction data and model map data of the foreseeable area into a cache.
In one possible embodiment, the method further comprises:
and storing the model after model rendering is completed.
The method disclosed in the above embodiment of the present application may be applied to the processor 501 or implemented by the processor 501. The processor 501 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuitry in hardware or instructions in software in the processor 501. The processor 501 may be a general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software elements in a decoding processor. The software elements may be located in a random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory 502, and the processor 501 reads information in the memory 502 and, in combination with its hardware, performs the steps of the method described above.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For a hardware implementation, the processing units may be implemented within one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processors (Digital Signal Processing, DSP), digital signal processing devices (dspev, DSPD), programmable logic devices (Programmable Logic Device, PLD), field programmable gate arrays (Field-Programmable Gate Array, FPGA), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units designed to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
The electronic device provided in this embodiment may be an electronic device as shown in fig. 4, and may perform all steps of the model rendering method shown in fig. 1-2, so as to achieve the technical effects of the model rendering method shown in fig. 1-2, and detailed descriptions with reference to fig. 1-2 are omitted herein for brevity.
The embodiment of the application also provides a storage medium (computer readable storage medium). The storage medium here stores one or more programs. Wherein the storage medium may comprise volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid state disk; the memory may also comprise a combination of the above types of memories.
The one or more programs, when in a storage medium, may be executed by one or more processors to implement the model rendering method described above.
The processor is configured to execute a model rendering program stored in the memory to implement the steps of the model rendering method:
obtaining model construction data and model mapping data;
dividing the space sequence of model rendering to obtain a model region;
establishing a spatial index of model construction data and a rendering index of model map data corresponding to each model area;
and performing model rendering of each model area according to the spatial index and the rendering index.
In one possible embodiment, before model rendering of each of the model regions according to the spatial index and the rendering index, the method further includes:
and establishing a spatial index table of model construction data corresponding to each model area in the database, and storing the model construction data in a warehouse.
In one possible embodiment, before model rendering of each of the model regions according to the spatial index and the rendering index, the method further includes:
and establishing a rendering index table of the model map data corresponding to each model area in the database, and storing the model map data in a warehouse.
In one possible embodiment, model rendering of each model region according to the spatial index and the rendering index includes:
constructing a plurality of rendering threads;
for each model area, selecting one target rendering thread from a plurality of rendering threads, retrieving target model construction data corresponding to the model area according to the spatial index in the target rendering thread to perform model construction, and retrieving target model mapping data corresponding to the model area according to the rendering index to perform model mapping.
In one possible embodiment, the method further comprises:
after the model rendering of the target rendering thread is completed, continuing the model rendering of the next model area in the current target rendering thread until all the model construction data and the model map data in the visible scene area are rendered.
In one possible embodiment, the method further comprises:
when the three-dimensional scene roams, calculating a foreseeable area according to the movement trend of the viewpoint;
and loading model construction data and model map data of the foreseeable area into a cache.
In one possible embodiment, the method further comprises:
and storing the model after model rendering is completed.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of function in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The foregoing description of the embodiments has been provided for the purpose of illustrating the general principles of the application, and is not meant to limit the scope of the application, but to limit the application to the particular embodiments, and any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the application are intended to be included within the scope of the application.

Claims (10)

1. A method of model rendering, the method comprising:
obtaining model construction data and model mapping data;
dividing the space sequence of model rendering to obtain a model region;
establishing a spatial index of the model construction data and a rendering index of the model map data corresponding to each model region;
and performing model rendering of each model area according to the spatial index and the rendering index.
2. The method of claim 1, wherein prior to model rendering of each of the model regions according to the spatial index and the rendering index, the method further comprises:
and establishing a spatial index table of the model construction data corresponding to each model area in a database, and storing the model construction data in a warehouse.
3. The method of claim 1, wherein prior to model rendering of each of the model regions according to the spatial index and the rendering index, the method further comprises:
and establishing a rendering index table of the model map data corresponding to each model area in a database, and storing the model map data in a warehouse.
4. The method of claim 1, wherein the model rendering of each of the model regions according to the spatial index and the rendering index comprises:
constructing a plurality of rendering threads;
and selecting one target rendering thread from a plurality of rendering threads for each model area, retrieving target model construction data corresponding to the model area according to the spatial index in the target rendering thread to perform model construction, and retrieving target model mapping data corresponding to the model area according to the rendering index to perform model mapping.
5. The method according to claim 4, wherein the method further comprises:
and after the model rendering of the target rendering thread is completed, continuing the model rendering of the next model area in the current target rendering thread until all model construction data and model map data in the visible scene area are rendered.
6. The method according to claim 1, wherein the method further comprises:
when the three-dimensional scene roams, calculating a foreseeable area according to the movement trend of the viewpoint;
and loading the model construction data and the model mapping data of the foreseeable area into a cache.
7. The method according to claim 1, wherein the method further comprises:
and storing the model after model rendering is completed.
8. A model rendering apparatus, the apparatus comprising:
the acquisition module is used for acquiring model construction data and model mapping data;
the partitioning module is used for dividing the space sequence of model rendering to obtain a model region;
the building module is used for building a spatial index of the model construction data and a rendering index of the model map data, wherein the spatial index corresponds to each model area;
and the model rendering module is used for performing model rendering of each model area according to the spatial index and the rendering index.
9. An electronic device, comprising: a processor and a memory, the processor being configured to execute a model rendering program stored in the memory to implement the model rendering method of any one of claims 1 to 7.
10. A storage medium storing one or more programs executable by one or more processors to implement the model rendering method of any one of claims 1-7.
CN202310918348.8A 2023-07-24 2023-07-24 Model rendering method and device, electronic equipment and storage medium Pending CN117078848A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310918348.8A CN117078848A (en) 2023-07-24 2023-07-24 Model rendering method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310918348.8A CN117078848A (en) 2023-07-24 2023-07-24 Model rendering method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117078848A true CN117078848A (en) 2023-11-17

Family

ID=88712491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310918348.8A Pending CN117078848A (en) 2023-07-24 2023-07-24 Model rendering method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117078848A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117271046A (en) * 2023-11-23 2023-12-22 厦门东软汉和信息科技有限公司 User interface rendering system, method, device and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117271046A (en) * 2023-11-23 2023-12-22 厦门东软汉和信息科技有限公司 User interface rendering system, method, device and medium
CN117271046B (en) * 2023-11-23 2024-03-15 厦门东软汉和信息科技有限公司 User interface rendering system, method, device and medium

Similar Documents

Publication Publication Date Title
JP7085012B2 (en) Map rendering methods, equipment, computer equipment and computer programs
CN110990516B (en) Map data processing method, device and server
KR101623415B1 (en) Drawing method, apparatus, and terminal
CN113628314B (en) Visualization method, device and equipment for photographic measurement model in illusion engine
CN117078848A (en) Model rendering method and device, electronic equipment and storage medium
CN111915690B (en) Thermodynamic diagram data shrinkage editing method based on vector tiles
CN110990100A (en) Method and device for processing node object in game scene
CN110709891A (en) Virtual reality scene model establishing method and device, electronic equipment and storage medium
CN110232665B (en) Maximum pooling method and device, computer equipment and storage medium
CN112149745A (en) Method, device, equipment and storage medium for determining difficult example sample
CN115049531B (en) Image rendering method and device, graphic processing equipment and storage medium
CN111402369A (en) Interactive advertisement processing method and device, terminal equipment and storage medium
CN112612427B (en) Vehicle stop data processing method and device, storage medium and terminal
CN114712853A (en) Game map loading and displaying method, device, equipment and storage medium
CN110580274B (en) GIS data rendering method
CN115049529A (en) Image gradient determination method, device, equipment and storage medium
CN110597845A (en) Method, device and system for distributed storage and geographic data retrieval
CN110384926B (en) Position determining method and device
CN117744187B (en) CAD drawing method, device, computer equipment and storage medium
CN117971501B (en) Data access method, device, storage medium and program product
CN109542573B (en) Scene display method and device
CN117786147B (en) Method and device for displaying data in digital twin model visual field range
CN116527908B (en) Motion field estimation method, motion field estimation device, computer device and storage medium
CN114972602A (en) Method of rendering data, storage medium, and electronic device
CN117934648A (en) Texture data sampling method and device, storage medium and electronic equipment

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