CN107507262A - A kind of three-dimensional rendering method and system of large scene - Google Patents

A kind of three-dimensional rendering method and system of large scene Download PDF

Info

Publication number
CN107507262A
CN107507262A CN201710772069.XA CN201710772069A CN107507262A CN 107507262 A CN107507262 A CN 107507262A CN 201710772069 A CN201710772069 A CN 201710772069A CN 107507262 A CN107507262 A CN 107507262A
Authority
CN
China
Prior art keywords
rendered
thread
rule
rendering
current
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.)
Granted
Application number
CN201710772069.XA
Other languages
Chinese (zh)
Other versions
CN107507262B (en
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.)
City Life (beijing) Information Co Ltd
Original Assignee
City Life (beijing) Information 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 City Life (beijing) Information Co Ltd filed Critical City Life (beijing) Information Co Ltd
Priority to CN201710772069.XA priority Critical patent/CN107507262B/en
Publication of CN107507262A publication Critical patent/CN107507262A/en
Application granted granted Critical
Publication of CN107507262B publication Critical patent/CN107507262B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

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

Abstract

This application provides a kind of three-dimensional rendering method and system of large scene, render thread and other cross-thread asynchronous executions using deque's technical controlling, prevent other thread blocks from rendering thread, substantially increase the operational efficiency between process.Rendering data needed for current scene three-dimensional rendering to be rendered is dynamically loaded into internal memory;Acceleration rule is rendered it is determined that being preset corresponding to current scene to be rendered, and acceleration rule is rendered according to described preset, thread is rendered described in calling three-dimensional rendering is carried out to multiple objects to be rendered in current scene to be rendered.Multiple objects to be rendered in current scene to be rendered are classified, rendered in batches using accordingly rendering acceleration technique for different render scenes, realized that acceleration renders, reduce energy consumption, improve Consumer's Experience.

Description

A kind of three-dimensional rendering method and system of large scene
Technical field
The present invention relates to graphics rendering techniques field, more particularly to a kind of three-dimensional rendering method of large scene and being System.
Background technology
With the rapid development that mobile Internet is applied, various mobile terminal application products emerge in an endless stream, and user is to mobile terminal While the selection of application product is more and more, requirement to application product also more and more higher.In order to attract user eyeball, a lot Application product, for example, online game, electronic map etc., can all use a large amount of three-dimensional rendering technologies, build and have more the three of the sense of reality Tie up scene.
However, substantial amounts of three-dimensional rendering operationally often consumes many internal memories and video memory resource, the consumption of mobile terminal Electricity is relative to accelerate.Therefore, the application product with a large amount of three-dimensional renderings is higher to the performance requirement of mobile terminal, easily causes shifting The interim card applied in moved end, power consumption accelerate the problems such as, poor user experience.
The content of the invention
In view of this, the invention provides a kind of three-dimensional rendering method and system of large scene, protected using deque's technology Cross-thread asynchronous execution is demonstrate,proved, prevents other thread blocks from rendering thread, and accelerate rule realization to render acceleration using a variety of render.
In order to realize foregoing invention purpose, concrete technical scheme provided by the invention is as follows:
A kind of three-dimensional rendering method of large scene, including:
Thread and other cross-thread asynchronous executions are rendered using deque's technical controlling;
Rendering data needed for current scene three-dimensional rendering to be rendered is dynamically loaded into internal memory;
Acceleration rule is rendered it is determined that being preset corresponding to current scene to be rendered, and acceleration rule is rendered according to described preset, Thread is rendered described in calling three-dimensional rendering is carried out to multiple objects to be rendered in current scene to be rendered.
Preferably, the rendering data by needed for current scene three-dimensional rendering to be rendered is dynamically loaded into internal memory, including:
Multiple memory thresholds are set;
According to the relation of current memory occupation value and each memory threshold, it is determined that current first data loading;
Rendering data according to needed for current first data loading by current scene three-dimensional rendering to be rendered moves State is loaded into internal memory.
Optionally, it is described to determine to preset to render corresponding to current scene to be rendered to accelerate rule, and according to the default wash with watercolours Dye accelerates rule, and thread is rendered described in calling and carries out three-dimensional rendering, bag to multiple objects to be rendered in current scene to be rendered Include:
When multiple data texturings and model data identical object to be rendered in the current scene to be rendered be present, really The fixed default acceleration rule that renders renders rule for example;
Object to be rendered described in multiple data texturings and model data identical is divided into and same renders batch;
Thread is rendered described in control to the same multiple things to be rendered for rendering batch in the current scene to be rendered Body carries out three-dimensional rendering simultaneously.
Optionally, it is described to determine to preset to render corresponding to current scene to be rendered to accelerate rule, and according to the default wash with watercolours Dye accelerates rule, and thread is rendered described in calling and carries out three-dimensional rendering, bag to multiple objects to be rendered in current scene to be rendered Include:
When dynamic object be present in the current render scenes, determine that the default acceleration rule that renders is to be association of activity and inertia Render rule;
Multiple objects to be rendered in the current scene to be rendered are divided into stationary body and dynamic object;
Thread is rendered described in control to current to be rendered when all objects progress three-dimensional renderings to be rendered in scene;
When the dynamic object moves, thread is rendered described in control to dynamic object progress three-dimensional rendering, and After the completion of rendering, the stationary body in current scene to be rendered and the dynamic object are synthesized.
Optionally, it is described to determine to preset to render corresponding to current scene to be rendered to accelerate rule, and according to the default wash with watercolours Dye accelerates rule, and thread is rendered described in calling and carries out three-dimensional rendering, bag to multiple objects to be rendered in current scene to be rendered Include:
When multiple objects to be rendered be present in the current scene to be rendered, determine that the default acceleration rule that renders is Render ordering rule;
According to currently rendering visual angle, by from being closely ranked up to remote order to multiple objects to be rendered;
Thread is rendered described in control by from closely carrying out three-dimensional rendering to each object to be rendered successively to remote order.
Preferably, the rendering data includes data texturing and model data, and current scene pair to be rendered is determined described Answer it is default render acceleration rule before, methods described also includes:
According to texture multi-stage scheduling rule, the data texturing is loaded into video memory from internal memory;
According to model multi-stage scheduling rule, the model data is loaded into video memory from internal memory.
Preferably, it is described regular according to texture multi-stage scheduling, the data texturing is loaded into video memory from internal memory, including:
Multiple video memory threshold values are set;
According to the relation of current video memory occupation value and each video memory threshold value, it is determined that current second data loading;
The data texturing is loaded into by video memory according to current second data loading.
Preferably, it is described regular according to model multi-stage scheduling, the model data is loaded into video memory from internal memory, including:
According to currently rendering visual angle, as from closely being arranged to remote order multiple objects to be rendered corresponding to three-dimensional rendering Sequence;
As from closely to remote order successively by each object to be rendered needed for model data be loaded into video memory.
Preferably, methods described also includes:
Obtain current memory occupation value;
Judge whether current memory occupation value is more than preset value, if so, stopping the application to internal memory, and send internal memory police Accuse.
A kind of three-dimensional rendering system of large scene, including:
Control unit, for rendering thread and other cross-thread asynchronous executions using deque's technical controlling;
Dynamic load unit, in the rendering data needed for current scene three-dimensional rendering to be rendered is dynamically loaded into Deposit;
Three-dimensional rendering accelerator module, acceleration rule is rendered for determining to preset corresponding to current scene to be rendered, and foundation Default render accelerates rule, and thread is rendered described in calling and carries out three to multiple objects to be rendered in current scene to be rendered Dimension renders.
It is as follows relative to prior art, beneficial effects of the present invention:
The three-dimensional rendering method and system of large scene provided by the invention, thread and its are rendered using deque's technical controlling His cross-thread asynchronous execution, prevents other thread blocks from rendering thread, substantially increases the operational efficiency between process.To currently it treat Rendering data needed for render scenes three-dimensional rendering is dynamically loaded into internal memory;Rendered it is determined that being preset corresponding to current scene to be rendered Accelerate rule, and accelerate rule according to default render, thread is rendered described in calling to multiple in current scene to be rendered Object to be rendered carries out three-dimensional rendering.For different render scenes using the corresponding acceleration technique that renders to current scene to be rendered In multiple objects to be rendered classified, rendered in batches, realize that acceleration renders, reduce energy consumption, improve Consumer's Experience.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is a kind of three-dimensional rendering method flow diagram of large scene disclosed in the embodiment of the present invention;
Fig. 2 is the sub-process figure of a kind of three-dimensional rendering method of large scene disclosed in the embodiment of the present invention;
Fig. 3 is the another sub-process figure of a kind of three-dimensional rendering method of large scene disclosed in the embodiment of the present invention;
Fig. 4 is the another sub-process figure of a kind of three-dimensional rendering method of large scene disclosed in the embodiment of the present invention;
Fig. 5 is the three-dimensional rendering method flow diagram of another large scene disclosed in the embodiment of the present invention.
Fig. 6 is a kind of structural representation of the three-dimensional rendering system of large scene disclosed in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
Referring to Fig. 1, present embodiment discloses a kind of resource regulating method of three-dimensional rendering, there is three-dimensional applied to various The mobile terminal application product rendered, methods described include:
S101:Thread and other cross-thread asynchronous executions are rendered using deque's technical controlling;
Three-dimensional rendering is divided into multiple threads, the multiple thread comprises at least resource management and scheduling thread, texture Loading thread, model load thread and render thread;
Resource management and scheduling thread, texture loading thread and model data loading thread are according to the preferential of processing event What level was divided, the resource management and scheduling thread are used for render tissue data, it is impossible to it is blocked, it is preferential with first Level, the texture loading thread and model data loading thread have the second priority, are respectively used to load data texturing And model data.The texture loading thread and the data of model data loading thread loading are respectively from different data Table, the texture loading thread and model data loading thread are independent of each other, and can perform parallel.
Three-dimensional rendering is divided into multiple threads, the characteristics of mobile terminal processor multinuclear can be made full use of, accelerates operation Speed, and ensure that work in every is not interfere with each other, rendered as the loading of data does not interfere with.
Deque's technology ensures the asynchronous execution of cross-thread, prevents other thread blocks from rendering thread, below as a means of source capsule Reason and scheduling thread are illustrated exemplified by thread with rendering.
In the prior art, resource management and scheduling thread are responsible for cutting the object to be rendered in current scene, That is, it is judged which object is visible, then these object storages to be rendered into a render-ahead queue;Thread is rendered to be used to treat Object is rendered to be rendered.Because render-ahead queue a moment can only have a thread to be written and read it, so if adopting With single queue, the obstruction between thread will be produced, influences rendering efficiency.
The present embodiment uses deque's technology, and resource management and scheduling thread are responsible for writing in toward a queue A, render thread It is responsible for reading from another queue B, only when resource management and scheduling thread write a queue, just carries out two queue A With B exchange, then resource management and scheduling thread be responsible for writing in toward queue B, render thread be responsible for from another queue A Read, so only exchanging moment generation obstruction, greatly improving the operational efficiency between process.
S102:Rendering data needed for current scene three-dimensional rendering to be rendered is dynamically loaded into internal memory;
Referring to Fig. 2, the present embodiment is dynamically loaded into internal memory using internal memory multi-stage scheduling rule to the rendering data, A kind of S102 preferred embodiment is as follows:
S201:Multiple memory thresholds are set;
S202:According to the relation of current memory occupation value and each memory threshold, it is determined that current first data load Speed;
S203:Number is rendered according to needed for current first data loading by current scene three-dimensional rendering to be rendered According to being dynamically loaded into internal memory.
It should be noted that in order to which more efficient uses memory headroom, referring to Fig. 3, setting multiple internal memory thresholds in S201 After value, methods described also includes:
S204:According to the relation of current memory occupation value and each memory threshold, it is determined that current first data are deleted Speed;
S205:Control the resource management and scheduling thread to delete speed according to current first data to delete from internal memory Hash.
Preferably, when setting three memory threshold Height, Mid and Low, when current memory occupation value is less than Low, The data that will quickly can be loaded are loaded into internal memory, and do not delete data from internal memory;When current memory occupation value be more than etc. In Low and when being less than Mid, internal memory is slowly loaded data into, and from internal memory deletes useless data, it is necessary to explanation, Useless data are current temporarily no data;When current memory occupation value is more than or equal to Mid and is less than Height, it is not added with Data are carried, and useless data are quickly deleted from internal memory.
It should be noted that it is above-mentioned quick and be at a slow speed it is relative, can be advance respectively according to internal memory multi-stage scheduling rule Quickly and at a slow speed corresponding current first data loading and current first data delete speed for setting.
As a kind of preferred embodiment of the present embodiment, the resource regulating method of the three-dimensional rendering also provides automatic root Internal memory strategy is calculated in real time according to the hardware environment of different mobile terminals, and allows the later stage to update the internal memory strategy, refers to figure 4, before S201, the internal memory strategy that methods described provides includes:
S206:Obtain current memory occupation value;
S207:Judge whether current memory occupation value is more than preset value, if so, S208 is performed, if it is not, performing S201;
S208:Stop the application to internal memory, and send internal memory warning.
Value set in advance is actually needed according to the preset value, sending the form of internal memory warning can carry for word Any modes that can play suggesting effect such as awake, voice reminder, vibrating alert, image prompting.
Preferably, when receiving the internal memory warning of outside, it can also be alerted, stopped to internal memory according to the internal memory of outside Application.Accordingly, system can also send internal memory warning to other plug-in units or application for operating in mobile terminal simultaneously.
S103:Acceleration rule is rendered it is determined that being preset corresponding to current scene to be rendered, and acceleration is rendered according to described preset Rule, thread is rendered described in calling three-dimensional renderings are carried out to multiple objects to be rendered in current scene to be rendered.
The characteristics of for current scene to be rendered, such as:Wash with watercolours is treated with the presence or absence of multiple data texturings and model data identical Contaminate object, if dynamic object etc. be present, acceleration rule is rendered it is determined that being preset corresponding to current scene to be rendered.
Optionally, when multiple data texturings and model data identical thing to be rendered being present in the current scene to be rendered During body, determine that the default acceleration rule that renders renders rule for example;By multiple data texturings and model data identical institute State object to be rendered and be divided into and same render batch;Thread is rendered described in control to same wash with watercolours in the current scene to be rendered The multiple objects to be rendered for contaminating batch carry out three-dimensional rendering simultaneously.
In this rendering intent, addition example renders, i.e. by data texturing and model in current multiple objects to be rendered The multiple objects to be rendered of data identical are divided into same example, i.e. same to render batch.
It is a set of rendering intent provided for the high model repeated that example, which renders, by taking tree as an example, is existed in the scene very More trees, their profiles are identical, the same model used, and simply position is different.If according to traditional rendering intent, 100 100 batches of color applying drawing are set, rendering efficiency is very low, if rendered using example, can render them in a batch Complete, rendering efficiency is very high.
Optionally, when dynamic object be present in the current render scenes, determine that the default acceleration rule that renders is It is association of activity and inertia and renders rule;Multiple objects to be rendered in the current scene to be rendered are divided into stationary body and moved State object;Thread is rendered described in control to current to be rendered when all objects progress three-dimensional renderings to be rendered in scene;When Thread is rendered during the dynamic object motion, described in control, and three-dimensional rendering is carried out to the dynamic object, and after the completion of rendering, The stationary body in current scene to be rendered and the dynamic object are synthesized.
In this rendering intent, currently during scene stillness to be rendered, reduce the activity time for rendering thread, reduce Energy consumption, the purpose of energy-conservation is reached.
Optionally, when multiple objects to be rendered be present in the current scene to be rendered, determine that default render adds Fast rule is to render ordering rule;According to currently rendering visual angle, by from closely entering to remote order to multiple objects to be rendered Row sequence;Thread is rendered described in control by from closely carrying out three-dimensional rendering to each object to be rendered successively to remote order.
It is understood that during three-dimensional rendering, system piecemeal (that is, object to be rendered) is rendered, and controls institute State and render thread by from closely being rendered successively to each object to be rendered to remote order, so as to accelerate to render.
For by one or more textures in same object to be rendered and one or more model datas Merge be defined as it is same render batch, be illustrated below:
Such as:In electronic map, building A is an object to be rendered, but building A is by multiple textures and mould Type data composition, in the prior art, each texture and corresponding model data are combined, carried out as a batch Render, so to building A render need it is multiple batches of render, rendering speed is slow.The present embodiment, by multiple lines of building A Reason and model data merge be defined as it is same render batch, thus once building A can be rendered, so as to plus Speed renders.
Optionally, acceleration technique is rendered using a variety of, including:Using VBO, VAO technology, by by data texturing and model Data upload video memory, reduce the calling of OpenGL interfaces, accelerate to render.
It should be noted that in actual render process, above-mentioned a variety of accelerated methods that render can be used alone, can also It is applied in combination, accelerates to render, lowers energy consumption.
As a kind of preferred embodiment of the present embodiment, the rendering data includes data texturing and model data, please Refering to Fig. 5, also include before S103:
S104:According to texture multi-stage scheduling rule, the data texturing is loaded into video memory from internal memory;
S105:According to model multi-stage scheduling rule, the model data is loaded into video memory from internal memory.
It is described regular according to texture multi-stage scheduling, the data texturing is loaded into video memory from internal memory, including:
Multiple video memory threshold values are set;According to the relation of current video memory occupation value and each video memory threshold value, it is determined that currently Second data loading;The data texturing is loaded into by video memory according to current second data loading.
Preferably, after the multiple video memory threshold values of setting, methods described also includes:
According to the relation of current video memory occupation value and each video memory threshold value, it is determined that current second data delete speed; Control the texture loading thread to delete speed according to current second data and delete hash from video memory.Texture is multistage to be adjusted Metric is then similar to the principle of above-mentioned internal memory multi-stage scheduling rule, will not be repeated here.
It is described regular according to model multi-stage scheduling, the model data is loaded into video memory from internal memory, including:
According to currently rendering visual angle, as from closely being arranged to remote order multiple objects to be rendered corresponding to three-dimensional rendering Sequence;As from closely to remote order successively by each object to be rendered needed for model data be loaded into video memory.
Preferably, the present embodiment deletes current unwanted model data according to LRU dispatching algorithms.LRU (Least It is recently used, least recently used) algorithm eliminate data according to the history access record of data, and its core is thought Want untapped data are eliminated at most recently.
Based on a kind of three-dimensional rendering method of large scene disclosed in above-described embodiment, referring to Fig. 6, the present embodiment is corresponding public A kind of three-dimensional rendering system of large scene has been opened, including:
Control unit 101, for rendering thread and other cross-thread asynchronous executions using deque's technical controlling;
Dynamic load unit 102, for the rendering data needed for current scene three-dimensional rendering to be rendered to be dynamically loaded into Internal memory;
Three-dimensional rendering accelerator module 103, acceleration rule is rendered for determining to preset corresponding to current scene to be rendered, and according to Accelerate rule according to default render, thread is rendered described in calling multiple objects to be rendered in current scene to be rendered are carried out Three-dimensional rendering.
The function of unit and embodiment please join in the three-dimensional rendering system of large scene disclosed in the present embodiment The description stated to the three-dimensional rendering embodiment of the method for large scene is admitted to, will not be repeated here.
The three-dimensional rendering system for the large scene that the present embodiment provides, thread and other lines are rendered using deque's technical controlling Asynchronous execution between journey, prevent other thread blocks from rendering thread, substantially increase the operational efficiency between process.Will be current to be rendered Rendering data needed for scene three-dimensional rendering is dynamically loaded into internal memory;Acceleration is rendered it is determined that being preset corresponding to current scene to be rendered Rule, and according to it is described it is default render acceleration rule, thread is rendered described in calling wash with watercolours is treated to multiple in current scene to be rendered Contaminate object and carry out three-dimensional rendering.Used for different render scenes and render acceleration technique accordingly in current scene to be rendered Multiple objects to be rendered are classified, rendered in batches, realize that acceleration renders, and reduce energy consumption, improve Consumer's Experience.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the present invention. A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope caused.

Claims (10)

1. a kind of three-dimensional rendering method of large scene, it is characterised in that including:
Thread and other cross-thread asynchronous executions are rendered using deque's technical controlling;
Rendering data needed for current scene three-dimensional rendering to be rendered is dynamically loaded into internal memory;
Acceleration rule is rendered it is determined that being preset corresponding to current scene to be rendered, and acceleration rule is rendered according to described preset, is called The thread that renders carries out three-dimensional rendering to multiple objects to be rendered in current scene to be rendered.
2. according to the method for claim 1, it is characterised in that the wash with watercolours needed for by current scene three-dimensional rendering to be rendered Dye data are dynamically loaded into internal memory, including:
Multiple memory thresholds are set;
According to the relation of current memory occupation value and each memory threshold, it is determined that current first data loading;
Rendering data dynamic according to needed for current first data loading by current scene three-dimensional rendering to be rendered adds It is downloaded to internal memory.
3. according to the method for claim 1, it is characterised in that described to determine default corresponding to current scene to be rendered render Accelerate rule, and accelerate rule according to default render, thread is rendered described in calling to multiple in current scene to be rendered Object to be rendered carries out three-dimensional rendering, including:
When multiple data texturings and model data identical object to be rendered in the current scene to be rendered be present, institute is determined State the default acceleration rule that renders and render rule for example;
Object to be rendered described in multiple data texturings and model data identical is divided into and same renders batch;
Rendered described in control thread in the current scene to be rendered it is same render batch multiple objects to be rendered it is same Shi Jinhang three-dimensional renderings.
4. according to the method for claim 1, it is characterised in that described to determine default corresponding to current scene to be rendered render Accelerate rule, and accelerate rule according to default render, thread is rendered described in calling to multiple in current scene to be rendered Object to be rendered carries out three-dimensional rendering, including:
When dynamic object be present in the current render scenes, determine that the default acceleration rule that renders renders to be association of activity and inertia Rule;
Multiple objects to be rendered in the current scene to be rendered are divided into stationary body and dynamic object;
Thread is rendered described in control to current to be rendered when all objects progress three-dimensional renderings to be rendered in scene;
When the dynamic object moves, thread is rendered described in control three-dimensional rendering is carried out to the dynamic object, and rendered After the completion of, the stationary body in current scene to be rendered and the dynamic object are synthesized.
5. according to the method for claim 1, it is characterised in that described to determine default corresponding to current scene to be rendered render Accelerate rule, and accelerate rule according to default render, thread is rendered described in calling to multiple in current scene to be rendered Object to be rendered carries out three-dimensional rendering, including:
When multiple objects to be rendered be present in the current scene to be rendered, determine that the default acceleration rule that renders is to render Ordering rule;
According to currently rendering visual angle, by from being closely ranked up to remote order to multiple objects to be rendered;
Thread is rendered described in control by from closely carrying out three-dimensional rendering to each object to be rendered successively to remote order.
6. according to the method for claim 1, it is characterised in that the rendering data includes data texturing and model data, It is described determine to preset corresponding to current scene to be rendered render acceleration rule before, methods described also includes:
According to texture multi-stage scheduling rule, the data texturing is loaded into video memory from internal memory;
According to model multi-stage scheduling rule, the model data is loaded into video memory from internal memory.
7. according to the method for claim 6, it is characterised in that it is described according to texture multi-stage scheduling rule, by the texture Data are loaded into video memory from internal memory, including:
Multiple video memory threshold values are set;
According to the relation of current video memory occupation value and each video memory threshold value, it is determined that current second data loading;
The data texturing is loaded into by video memory according to current second data loading.
8. according to the method for claim 6, it is characterised in that it is described according to model multi-stage scheduling rule, by the model Data are loaded into video memory from internal memory, including:
According to currently rendering visual angle, as from being closely ranked up to remote order to multiple objects to be rendered corresponding to three-dimensional rendering;
As from closely to remote order successively by each object to be rendered needed for model data be loaded into video memory.
9. according to the method for claim 1, it is characterised in that methods described also includes:
Obtain current memory occupation value;
Judge whether current memory occupation value is more than preset value, if so, stopping the application to internal memory, and send internal memory warning.
A kind of 10. three-dimensional rendering system of large scene, it is characterised in that including:
Control unit, for rendering thread and other cross-thread asynchronous executions using deque's technical controlling;
Dynamic load unit, for the rendering data needed for current scene three-dimensional rendering to be rendered to be dynamically loaded into internal memory;
Three-dimensional rendering accelerator module, acceleration rule is rendered for determining to preset corresponding to current scene to be rendered, and according to described It is default to render acceleration rule, thread is rendered described in calling three-dimensional wash with watercolours is carried out to multiple objects to be rendered in current scene to be rendered Dye.
CN201710772069.XA 2017-08-31 2017-08-31 Three-dimensional rendering method and system for large scene Active CN107507262B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710772069.XA CN107507262B (en) 2017-08-31 2017-08-31 Three-dimensional rendering method and system for large scene

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710772069.XA CN107507262B (en) 2017-08-31 2017-08-31 Three-dimensional rendering method and system for large scene

Publications (2)

Publication Number Publication Date
CN107507262A true CN107507262A (en) 2017-12-22
CN107507262B CN107507262B (en) 2021-03-16

Family

ID=60694591

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710772069.XA Active CN107507262B (en) 2017-08-31 2017-08-31 Three-dimensional rendering method and system for large scene

Country Status (1)

Country Link
CN (1) CN107507262B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108499103A (en) * 2018-04-16 2018-09-07 网易(杭州)网络有限公司 The display methods and device of situation elements
CN108984186A (en) * 2018-07-11 2018-12-11 南京云滨信息科技有限公司 A kind of BIM model dynamic loading method based on chart database
CN109242967A (en) * 2018-08-07 2019-01-18 云南电网有限责任公司曲靖供电局 A kind of dimensional topography rendering method and device
CN109614717A (en) * 2018-12-14 2019-04-12 北京惠佳家品科技有限公司 A kind of virtual house ornamentation scene loading method of 3D and system
CN111080766A (en) * 2019-12-30 2020-04-28 中科星图股份有限公司 WebGL-based GPU (graphics processing unit) method for accelerating efficient rendering of massive targets
CN111402349A (en) * 2019-01-03 2020-07-10 百度在线网络技术(北京)有限公司 Rendering method, rendering device and rendering engine
CN112529995A (en) * 2020-12-28 2021-03-19 Oppo(重庆)智能科技有限公司 Image rendering calculation method and device, storage medium and terminal
CN115035228A (en) * 2022-06-08 2022-09-09 北京领为军融科技有限公司 Rendering method for generating texture by reading satellite film file in real time through asynchronous io
CN115170716A (en) * 2022-08-01 2022-10-11 中国地质大学(武汉) Provincial and regional multi-scale three-dimensional geologic body visual rendering method and system
CN116109470A (en) * 2023-04-13 2023-05-12 深圳市其域创新科技有限公司 Real-time point cloud data rendering method, device, terminal and storage medium
CN116580145A (en) * 2023-03-17 2023-08-11 青岛慧睦科技有限责任公司 Method and device for processing web3D scene
US11861775B2 (en) 2019-10-17 2024-01-02 Huawei Technologies Co., Ltd. Picture rendering method, apparatus, electronic device, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103021016A (en) * 2012-12-05 2013-04-03 上海创图网络科技发展有限公司 Processing method of massive three-dimensional geographical information and data during rendering process
EP2720196A2 (en) * 2012-10-09 2014-04-16 Disney Enterprises, Inc. Distributed element rendering
CN105094920A (en) * 2015-08-14 2015-11-25 网易(杭州)网络有限公司 Game rendering method and device
CN105184847A (en) * 2015-10-16 2015-12-23 上海恺英网络科技有限公司 3D game rendering engine rendering method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2720196A2 (en) * 2012-10-09 2014-04-16 Disney Enterprises, Inc. Distributed element rendering
CN103021016A (en) * 2012-12-05 2013-04-03 上海创图网络科技发展有限公司 Processing method of massive three-dimensional geographical information and data during rendering process
CN105094920A (en) * 2015-08-14 2015-11-25 网易(杭州)网络有限公司 Game rendering method and device
CN105184847A (en) * 2015-10-16 2015-12-23 上海恺英网络科技有限公司 3D game rendering engine rendering method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈小潘: "基于双缓冲队列的海量地形数据并行处理方法", 《郑州大学学报(工学版)》 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108499103A (en) * 2018-04-16 2018-09-07 网易(杭州)网络有限公司 The display methods and device of situation elements
CN108984186A (en) * 2018-07-11 2018-12-11 南京云滨信息科技有限公司 A kind of BIM model dynamic loading method based on chart database
CN109242967A (en) * 2018-08-07 2019-01-18 云南电网有限责任公司曲靖供电局 A kind of dimensional topography rendering method and device
CN109614717A (en) * 2018-12-14 2019-04-12 北京惠佳家品科技有限公司 A kind of virtual house ornamentation scene loading method of 3D and system
CN111402349A (en) * 2019-01-03 2020-07-10 百度在线网络技术(北京)有限公司 Rendering method, rendering device and rendering engine
CN111402349B (en) * 2019-01-03 2023-09-08 百度在线网络技术(北京)有限公司 Rendering method, rendering device and rendering engine
US11861775B2 (en) 2019-10-17 2024-01-02 Huawei Technologies Co., Ltd. Picture rendering method, apparatus, electronic device, and storage medium
CN111080766B (en) * 2019-12-30 2023-09-01 中科星图股份有限公司 GPU (graphics processing unit) acceleration mass target efficient rendering method based on WebGL
CN111080766A (en) * 2019-12-30 2020-04-28 中科星图股份有限公司 WebGL-based GPU (graphics processing unit) method for accelerating efficient rendering of massive targets
CN112529995A (en) * 2020-12-28 2021-03-19 Oppo(重庆)智能科技有限公司 Image rendering calculation method and device, storage medium and terminal
CN112529995B (en) * 2020-12-28 2023-03-31 Oppo(重庆)智能科技有限公司 Image rendering calculation method and device, storage medium and terminal
CN115035228A (en) * 2022-06-08 2022-09-09 北京领为军融科技有限公司 Rendering method for generating texture by reading satellite film file in real time through asynchronous io
CN115170716A (en) * 2022-08-01 2022-10-11 中国地质大学(武汉) Provincial and regional multi-scale three-dimensional geologic body visual rendering method and system
CN116580145A (en) * 2023-03-17 2023-08-11 青岛慧睦科技有限责任公司 Method and device for processing web3D scene
CN116109470B (en) * 2023-04-13 2023-06-20 深圳市其域创新科技有限公司 Real-time point cloud data rendering method, device, terminal and storage medium
CN116109470A (en) * 2023-04-13 2023-05-12 深圳市其域创新科技有限公司 Real-time point cloud data rendering method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN107507262B (en) 2021-03-16

Similar Documents

Publication Publication Date Title
CN107507262A (en) A kind of three-dimensional rendering method and system of large scene
CN110990516B (en) Map data processing method, device and server
JP6062438B2 (en) System and method for layering using a tile-by-tile renderer
CN110047123B (en) Map rendering method, map rendering device, storage medium and computer program product
CN105247478B (en) For storing the method and relevant apparatus of order
CN111737019B (en) Method and device for scheduling video memory resources and computer storage medium
CN112529995B (en) Image rendering calculation method and device, storage medium and terminal
CN102968814B (en) A kind of method and apparatus of image rendering
CN105427366A (en) Image rendering method and image rendering system
CN110990100B (en) Processing method and device for node objects in game scene
CN111400024A (en) Resource calling method and device in rendering process and rendering engine
CN111145329A (en) Model rendering method and system and electronic device
CN110333924A (en) A kind of image morphing method of adjustment, device, equipment and storage medium
CN106651748A (en) Image processing method and apparatus
CN109242967A (en) A kind of dimensional topography rendering method and device
CN106548500A (en) A kind of two-dimension situation image processing method and device based on GPU
CN108010120A (en) Display methods, device, storage medium, processor and the terminal of static shade
CN113426130B (en) Batch processing method and device for model
CN111583378A (en) Virtual asset processing method and device, electronic equipment and storage medium
US10981059B2 (en) Asset aware computing architecture for graphics processing
CN114494646A (en) Scene rendering method and device and electronic equipment
CN109598800A (en) A kind of three-dimensional electronic sand table display methods, device, equipment and storage medium
CN111161127B (en) Picture resource rendering optimization method
CN112328194A (en) Drawing parallel display method, intelligent terminal and storage device
CN105719331A (en) Sprite drawing method, device and game system

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
GR01 Patent grant
GR01 Patent grant