CN110363839A - Model rendering method, apparatus, computer equipment and storage medium - Google Patents

Model rendering method, apparatus, computer equipment and storage medium Download PDF

Info

Publication number
CN110363839A
CN110363839A CN201910529346.3A CN201910529346A CN110363839A CN 110363839 A CN110363839 A CN 110363839A CN 201910529346 A CN201910529346 A CN 201910529346A CN 110363839 A CN110363839 A CN 110363839A
Authority
CN
China
Prior art keywords
rendering
model
task
parameter
archetype
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
CN201910529346.3A
Other languages
Chinese (zh)
Other versions
CN110363839B (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.)
Shenzhen Bincent Technology Co Ltd
Original Assignee
Shenzhen Bincent 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 Bincent Technology Co Ltd filed Critical Shenzhen Bincent Technology Co Ltd
Priority to CN201910529346.3A priority Critical patent/CN110363839B/en
Publication of CN110363839A publication Critical patent/CN110363839A/en
Application granted granted Critical
Publication of CN110363839B publication Critical patent/CN110363839B/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
    • G06T15/10Geometric effects
    • G06T15/20Perspective computation
    • G06T15/205Image-based rendering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a kind of model rendering method, apparatus, computer equipment and storage mediums, wherein the model rendering method includes: to obtain model rendering request, is based at least one model rendering task of model rendering request;Each model rendering task is parsed using model rendering tool, obtains original textures and rendering reference information that model rendering task corresponds to model;Based on rendering reference information, background rendering parameter and lighting rendering parameter are obtained;Based on rendering task, ontology rendering parameter is obtained;Based on background rendering parameter, lighting rendering parameter and ontology rendering parameter, archetype is rendered using model rendering tool, obtains rendering effect figure.This method can show high quality and the stronger rendering effect figure of specific aim by adaptive background rendering parameter, lighting rendering parameter and ontology rendering parameter, improve mass rendering efficiency.

Description

Model rendering method, apparatus, computer equipment and storage medium
Technical field
The present invention relates to model rendering effect picture display technique field more particularly to a kind of model rendering method, apparatus, meter Calculate machine equipment and storage medium.
Background technique
The common practice of current indoor design field is, after design interface establishes threedimensional model, designer passes through hand It is dynamic to adjust light, material, texture and rendering parameter to obtain the effect display diagram of final model material.And light, material, line The setting of reason and rendering parameter needs veteran designer by debugging can be only achieved optimal displaying effect repeatedly for a long time Fruit.Above-mentioned debugging process not only will receive the design experiences of designer and operate the influence of correctness, low efficiency and easy error; And different types of threedimensional model also needs different rendering background and rendering angle, is difficult to complete by engineer's mode The rendering of magnanimity model material bandwagon effect figure.It improves the efficiency of model rendering, guarantee the customizing rendering effect of different models As urgent problem to be solved.
Summary of the invention
Present example provides a kind of model rendering method, apparatus, computer equipment and storage medium, Lai Tigao mass The efficiency of model rendering, while guaranteeing the rendering specific aim effect of different models.
A kind of model rendering method, comprising:
Model rendering request is obtained, at least one model rendering task of model rendering request is based on;
Each model rendering task is parsed using model rendering tool, obtain the corresponding archetype of model rendering task and Render reference information;
Based on rendering reference information, the corresponding background rendering parameter of archetype and lighting rendering parameter are obtained;
Based on archetype, ontology rendering parameter is obtained;
Based on background rendering parameter, lighting rendering parameter and ontology rendering parameter, using model rendering tool to original mould Type is rendered, and rendering effect figure is obtained.
A kind of model rendering device, comprising:
Render request module is obtained, for obtaining model rendering request, is based at least one mould of model rendering request Type rendering task;
Reference information module is obtained, for parsing each model rendering task using model rendering tool, obtains model wash with watercolours The corresponding archetype of dye task and rendering reference information;
Rendering parameter module is obtained, for obtaining the corresponding background rendering parameter of archetype based on rendering reference information With lighting rendering parameter;
Body parameter module is obtained, for being based on archetype, obtains ontology rendering parameter;
Rendering effect module is obtained, for being based on background rendering parameter, lighting rendering parameter and ontology rendering parameter, is used Model rendering tool renders archetype, obtains rendering effect figure.
A kind of computer equipment, including memory, processor and storage are in the memory and can be in the processing The computer program run on device, the processor realize above-mentioned model rendering method when executing the computer program.
A kind of computer readable storage medium, the computer-readable recording medium storage have computer program, the meter Calculation machine program realizes above-mentioned model rendering method when being executed by processor.
Above-mentioned model rendering method, apparatus, computer equipment and storage medium are the original in each model rendering task Beginning model carries out fast automatic rendering, can get personalized rendering effect figure, which passes through adaptive background Rendering parameter, lighting rendering parameter and ontology rendering parameter can show high quality and the stronger rendering effect figure of specific aim; Meanwhile multiple archetypes are rendered by batch-automated, are not necessarily to manual intervention, can improve rendering efficiency and wash with watercolours in the order of magnitude Contaminate stability.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is the application environment schematic diagram of model rendering method in one embodiment of the invention;
Fig. 2 is the flow chart of model rendering method in one embodiment of the invention;
Fig. 3 is another flow chart of model rendering method in one embodiment of the invention;
Fig. 4 is another flow chart of model rendering method in one embodiment of the invention;
Fig. 5 is another flow chart of model rendering method in one embodiment of the invention;
Fig. 6 is another flow chart of model rendering method in one embodiment of the invention;
Fig. 7 is another flow chart of model rendering method in one embodiment of the invention;
Fig. 8 is the schematic diagram of model rendering device in one embodiment of the invention;
Fig. 9 is the schematic diagram of computer equipment in one embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Model rendering method provided in an embodiment of the present invention, can be applicable in the application environment such as Fig. 1, the model rendering side Method is applied in model rendering system, which includes client and server, wherein client by network with Server is communicated.Client is also known as user terminal, refers to corresponding with server, provides the journey of local service for user Sequence.The client it is mountable but be not limited to various personal computers, laptop, smart phone, tablet computer and portable In the computer equipments such as formula wearable device.Server can use the service of the either multiple server compositions of independent server Device cluster is realized.
Threedimensional model material is the most basic members of platforms such as building, household website, indoor design website and decoration software Element and component units, such as wardrobe, desk, potting or small household appliances etc., designers are in platform by selecting the three-dimensionals of needs Model material completes various design schemes.Undoubtedly, the threedimensional model element of magnanimity must be included in these platforms Material, because of threedimensional model material substantial amounts, the bandwagon effect that each model must provide high quality be just convenient for designers into The screening of row material.The model material bandwagon effect figure of high quality is most important when designer selects material, and designers pass through Check the bandwagon effect figure of model can be quickly found out oneself needs model, in advance preview monomer model in full scene most Whole rendering effect.In the present embodiment, bandwagon effect figure is the rendering obtained after server is using model rendering method Effect picture, to show designer to find suitable threedimensional model material.
In one embodiment, as shown in Fig. 2, providing a kind of model rendering method, the service in Fig. 1 is applied in this way It is illustrated, specifically comprises the following steps: for device
S10. model rendering request is obtained, at least one model rendering task of model rendering request is based on.
Wherein, model rendering request is the request that user end to server is sent, and server is at least one model rendering The request that task is rendered.Model rendering task be include corresponding with the rendering effect figure rendering reference of a set of archetype The task of information.Archetype is the image file for carrying at least one threedimensional model material.Rendering reference information is that this is original The corresponding essential attribute information of model, for example, the category of model of threedimensional model material, moulded dimension or modal position etc..
Specifically, to realize the mass management of magnanimity model, the existing various databases in market are can be used to extremely in the present embodiment The archetype of a few threedimensional model material is saved, for example, MySQL, SQL Server, Oracle, Sybase or DB2 Deng being not construed as limiting herein.
Server can based on storage archetype system database, using PHP (Hypertext Preprocessor, HyperText Preprocessor) background service generate include at least one model rendering task task queue, and by the task queue It stores in Redis (REmote DIctionary Server) queue.Wherein, Redis is the use ANSI C an of open source Language writes, support network, it is memory-based also can persistence log type Key-Value database, and provide a variety of languages The API (Application Programming Interface, application programming interface) of speech.
After server completes the rendering to batch archetype, the rendering effect figure of acquisition can be saved in system number again According to the effect files folder in library, additionally set up in system database to store rendering effect, to store each rendering effect Figure.
In step S10, server can receive the request of the model rendering including at least one model rendering task simultaneously, realize The archetype for including batch threedimensional model material is handled, the effect of server process lot-size model rendering task is improved Rate.
S20. each model rendering task is parsed using model rendering tool, obtains the corresponding original mould of model rendering task Type and rendering reference information.
Wherein, model rendering tool be in archetype model material or texture arranged, repaired and shown wash with watercolours Contaminate the tool of effect picture.In the present embodiment, 3dmax (3D Studio Max, referred to as 3dmax or 3ds MAX) conduct can be used Model rendering tool.3dmax is the three-dimensional of Discreet company exploitation (then merged by autodesk, inc.) based on PC system Animation rendering and Software for producing.Its predecessor is the 3D Studio groupware based on dos operating system.In terms of application range, 3dmax is widely used in advertisement, video display, industrial design, architectural design, three-dimensional animation, multimedia making, game and engineering can Depending on fields such as changes.3dmax possesses material abundant and texture, it may have powerful script extended capability.
Specifically, 3dmax can obtain at least one model rendering task in Redis queue, using included MaxScript script parses the model rendering task, and the corresponding archetype of model rendering task and wash with watercolours can be read Contaminate reference information.Wherein, MaxScript script is scripting language built in 3dmax, 3dmax2.0 and the function being added later, Energy use is in product relevant to 3dmax.MaxScript script can be used in modeling, animation, and material or rendering etc. are special What door designed for 3dmax.
In step S20, MaxScript script can read each archetype in system database based on Redis queue Storage location, and each archetype and corresponding rendering reference information are obtained, it is that subsequent server is carried out based on archetype Further rendering prepares data basis.
S30. based on rendering reference information, the corresponding background rendering parameter of archetype and lighting rendering parameter are obtained.
Wherein, to be server meet the original based on what archetype and rendering reference information matched to background rendering parameter The background object of the category of model where threedimensional model material in beginning model adds parameter, for example, archetype material is clothing Cabinet, and wardrobe belongs to landing model, then server can be based on landing model to wardrobe addition ground, metope and skirting conduct Background rendering parameter.
Correspondingly, to be server meet this based on what archetype and rendering reference information matched to lighting rendering parameter The light setting addition parameter of the category of model where threedimensional model material in archetype, is also said by taking wardrobe as an example It is bright.Wardrobe belongs to landing model, then server can add light simulation available light to the landing model, to show wardrobe Hatching effect, so that wardrobe is expressively more true in rendering effect figure, that is, the lighting rendering parameter in the present embodiment is For the property parameters for adding light type in different location.
Specifically, 3dmax can detect the size of threedimensional model material in archetype automatically, according to threedimensional model material Category of model automatically adjusts intensity of light and position, and automatic adaptation renders background object, to obtain showing threedimensional model material High quality and true spot effect figure.
In step S30, server can based on rendering reference information match the corresponding background rendering parameter of archetype and Lighting rendering parameter, so that at least one threedimensional model material expressively more true and effect visualization in archetype, Improve the personalization and specific aim of model rendering.
S40. it is based on archetype, obtains ontology rendering parameter.
Wherein, ontology rendering parameter is the ginseng that server renders the ontology of the threedimensional model material on archetype Number, for example, global switch, image sampling, indirect lighting or luminous textures etc., so that threedimensional model material renders again after being rendered It is explicitly more true on effect picture, improve rendering quality.
Specifically, server can obtain the model based on the category of model where the threedimensional model material on archetype Corresponding ontology rendering parameter is answered in classification.Further, server can be based on category of model, and each category of model pair is stored in advance The ontology rendering parameter answered forms classification rendering parameter table, so that subsequent server can be obtained rapidly based on the classification rendering parameter table The corresponding ontology rendering parameter of each category of model is taken, model rendering efficiency is improved.
In step S40, server can obtain rapidly the threedimensional model material in archetype based on classification rendering parameter table Corresponding ontology rendering parameter, can effectively improve model rendering efficiency.
S50. it is based on background rendering parameter, lighting rendering parameter and ontology rendering parameter, using model rendering tool to original Beginning model is rendered, and rendering effect figure is obtained.
Wherein, rendering effect figure is server using background rendering parameter, lighting rendering parameter and ontology rendering parameter pair The final effect figure that archetype obtains after being handled, the rendering effect figure can show that threedimensional model material is existing in true decoration Placement pattern and surrounding setting of field etc., shift to an earlier date rendering effect of the preview monomer model in full scene convenient for designer, into The screening of row threedimensional model material, reduces trial and error cost, improves efficiency.
In step S50, server can be used model rendering tool and render to archetype, obtain rendering effect figure simultaneously It is intuitively shown, the threedimensional model material of needs is quickly and accurately obtained convenient for designer.
Preferably, after step S50, i.e., after the step of obtaining rendering effect figure, which also has Body includes the following steps:
S501. the detection of file qualification is carried out to rendering effect figure, is by being saved in by the rendering effect figure of qualification detection In system database.
Wherein, the detection of file qualification is server to the background rendering parameter in rendering effect figure, lighting rendering parameter, sheet The detection side that the image size or format etc. of body rendering parameter and rendering effect figure itself are compared with file criterion of acceptability Method.File criterion of acceptability is the default storable standard for each parameter in rendering effect figure saved of server.
Specifically, the rendering effect figure of acquisition can be uploaded to PHP background server by 3dmax, and be saved in system data In the effect files folder specified in library.
In step S501, server can will be saved in system database by the rendering effect figure of file qualification examination criteria In, convenient for designer's model file that fast search needs from the model material of magnanimity, selecting the model stage, it will be able to Final rendering effect is known in advance, improves design efficiency.
Model rendering method provided in this embodiment, server for the archetype in each rendering task by carrying out Fast automatic rendering, can get personalized rendering effect figure, which passes through adaptive background rendering parameter, lamp Light rendering parameter and ontology rendering parameter can show high quality and the stronger rendering effect of specific aim.Meanwhile it is multiple original Model carries out batch-automated rendering by server, is not necessarily to manual intervention, rendering efficiency can be improved in the order of magnitude and rendering is stablized Property.
In one embodiment, as shown in figure 3, before step S10, that is, model rendering request is being obtained, is being based on model wash with watercolours Before contaminating at least one model rendering task of request, which also specifically comprises the following steps:
S101. it is based on system database, obtains the corresponding threedimensional model file of archetype.
Wherein, threedimensional model file is that archetype stores the formatted file into system database, generally OBJ lattice Formula.Obj file is the formatted file of 3D model file.It is 3D modeling and animation software by Alias Wavefront company " A kind of standard of Advanced Visualizer " exploitation, suitable for the mutual conductance between 3D software model.OBJ3.0 tray Formula supports straight line (Line), polygon (Polygon), surface (Surface) and free form curve (Free-form Curve).Straight line and polygon are described by their point, and curve and surface then according to their control point and depend on song The additional information of line type defines, the curves of these Informational support regular and irregulars, including is based on Bezier (Bezier), B-spline (B-spline), radix (Cardinal/Catmull-Rom) and Taylor's equation (Taylor Equations curve).The rendering reference information that other features namely the formatted file carry is as follows:
(1) obj file is a kind of 3D model file, does not include animation, material characteristic, textures path, dynamics, particle etc. Information.
(2) obj file mainly supports polygon (Polygons) model, also supports curve (Curves), surface (Surfaces), point group material (Point Group Materials).
(3) obj file supports the face of three points or more.
(4) obj file supports normal and mapping coordinates.After adjusting textures in other softwares, mapping coordinates information can To be stored in obj file.
In step S101, server can obtain the corresponding threedimensional model file of archetype based on system server, thus Obtain the rendering reference information that is carried by obj file, be conducive to subsequent server based on the rendering reference information to archetype into Row rendering.
S102. it is based on threedimensional model file generated model rendering task, by the storage of model rendering task into task queue.
Wherein, model rendering task is server based on threedimensional model file conversion format formation JSON character string, and The task of record cast classification or rendering angle etc. in JSON character string.
Task queue is that the queue of each model rendering task is stored with Redis format.Using Redis as task queue The advantages of be:
1.Redis is pure memory database, and typically simple accessing operation, there are many process holding time, the time Cost is concentrated mainly on io, so reading speed is fast.
2.Redis uses Non-Blocking I/O, and IO multiplexing carrys out poll descriptor using one process, by the opening of database, It closes, read and writes and be all converted to event, the switching and competition of context when reducing process switching.
3.Redis uses one process model, ensure that the atomicity of each operation, decreases the context switching of process And competition.
4.Redis whole process uses hash structure, and reading speed is fast, and there are also some special data structures, stores to data It is optimized, such as compaction table, compression storage is carried out to short data, for another example, skip list is accelerated to read using orderly data structure Speed.
5.Redis use event separator, efficiency is relatively high, inside using non-obstruction executive mode, handling capacity compared with Greatly.
In step S102, server can store multiple model rendering tasks into Redis queue, can accelerate data structure Such as the access speed of JSON character string.
In step S10 based at least one model rendering task of model rendering request, specifically comprise the following steps:
S11. at least one model rendering task is sequentially obtained from task queue based on model rendering request.
In step S11, server can read rapidly multiple model rendering tasks based on Redis queue, directly acquire each JSON character string in model rendering task prepares number using the every JSON character string of model rendering tool fast resolving to be subsequent According to basis.
For step S101 into S102, server can obtain the corresponding threedimensional model text of archetype based on system server Part is conducive to subsequent server and is based on the rendering reference information to original to obtain the rendering reference information carried by obj file Model is rendered.Server can store multiple model rendering tasks into Redis queue, can accelerate data structure such as JSON The access speed of character string.Server can read rapidly multiple model rendering tasks based on Redis queue, directly acquire each mould JSON character string in type rendering task prepares data using the every JSON character string of model rendering tool fast resolving to be subsequent Basis.
In one embodiment, as shown in figure 4, before step S20, i.e., each model is being parsed using model rendering tool Rendering task, before obtaining the corresponding archetype of model rendering task and rendering reference information, model rendering method is also specific Include the following steps:
S201. starting rendering finger daemon guards rendering operation process.
Wherein, rendering operation process be process of the model rendering tool to execute model rendering task, rendering guard into Journey is the process to carry out safety monitoring to rendering operation process, wherein the content that safety is monitored includes: to monitor rendering Whether operation process is whether normal operation or by contents such as unexpected pop-up shieldings.
Specifically, because the stability of 3dmax is poor, easily occur collapsing or occurring unexpected pop-up, it will hinder MaxScrip script realizes automatic flow on 3dmax, thus 3dmax by starting demons namely rendering guard into Journey can guard the stable operation of 3dmax.Rendering finger daemon plays the role of following three aspects:
(1) the rendering operation process for guarding 3dmax automatically turns on new when rendering the collapse of operation process or stopping The program for rendering operation process, and importing collapse again or being carrying out when stopping;
(2) Production Time of single task is limited.Some models will appear the feelings of the stuck collapse in midway in rendering effect figure Condition hinders automated process, the time of rendering finger daemon meeting Detection task production, if task is limited beyond the defined time System can then terminate current rendering operation process and start new rendering operation process, and import being carrying out for time-out again Program;
(3) the click pop-up operation automated.Rendering operation process will appear unexpected bullet during execution Window influences the execution of script automation, intelligent click pop-up is carried out using rendering finger daemon analog mouse, to ensure wash with watercolours Dye task can steadily be automated execution.
In step S201, server can start rendering operation process simultaneously and render to model rendering task, and start Rendering finger daemon guards rendering operation process, guarantees to execute the stability of model rendering task, sustainability and can By property.
If the S202. collapse of "current" model rendering task or stopping of rendering operation process rendering, renders finger daemon and opens The dynamic rendering updated runs process, and imports "current" model rendering task to the rendering of update operation process.
In step S202, when rendering the collapse of "current" model rendering task or stopping of the rendering of operation process, server can Automated back-up "current" model rendering task can be by the "current" model rendering task of backup when new rendering operation process is established New rendering operation process is imported into improve to guarantee that model rendering task can be rendered incessantly and execute model rendering Robustness when task.
If S203. the "current" model rendering task of rendering operation process rendering is more than default render time, rendering is guarded Process terminates rendering operation process, and starts the rendering operation process of update, and the rendering operation process of Xiang Gengxin imports current mould Type rendering task.
Wherein, default render time is the longest render time of the acceptable each model rendering task of server.Work as wash with watercolours The "current" model rendering task for contaminating the rendering of operation process is more than when presetting render time, to illustrate that the model rendering task is likely to occur It is abnormal, current rendering operation process need to be stopped, and start the rendering operation process of update.
In step S203, when model rendering task, which is likely to occur exception, is more than default render time, it need to terminate current Operation process is rendered, and starts the rendering operation process of update, it, can be by the current of backup when new rendering operation process is established Model rendering task imported into new rendering operation process and improves to guarantee that model rendering task can be rendered normally and execute mould Robustness when type rendering task.
If S204. rendering operation process is prompted pop-up covering, renders finger daemon and prompt pop-up is handled, with Rendering operation process is set to continue to render model rendering task.
Specifically, when rendering operation process executes rending model task, in fact it could happen that unexpected pop-up influences The execution of MaxScript script automation carries out intelligent click pop-up using rendering finger daemon analog mouse, it is ensured that MaxScript script can stablize execution, the same robustness improved when executing model rendering task.
Into S204, server can start rendering operation process simultaneously and render to model rendering task step S201, And start rendering finger daemon and rendering operation process is guarded, guarantee the stability, sustainable for executing model rendering task Property and reliability.When rendering the collapse of "current" model rendering task or stopping of the rendering of operation process, server can automated back-up The "current" model rendering task of backup can be imported into newly by "current" model rendering task when new rendering operation process is established Rendering run process, to guarantee that model rendering task can be rendered incessantly, improve execute model rendering task when Robustness.When model rendering task, which is likely to occur exception, is more than default render time, current rendering operation process need to be terminated, And start the rendering operation process of update, it, can be by the "current" model rendering task of backup when new rendering operation process is established It is imported into new rendering operation process, to guarantee that model rendering task can be rendered normally, when improving execution model rendering task Robustness.Server carries out intelligent click pop-up using rendering finger daemon analog mouse, it is ensured that MaxScript script Execution can be stablized, the same robustness improved when executing model rendering task.
In one embodiment, as shown in figure 5, in step s 30, i.e., based on rendering reference information, obtaining archetype pair The background rendering parameter and lighting rendering parameter answered, specifically comprise the following steps:
S31. based on rendering reference information, the corresponding category of model of archetype is obtained.
Wherein, category of model is the classification of material belonging to threedimensional model material, such as the model point for house ornamentation reality Class can include: medium-sized landing model, hangs wall model or furred ceiling model etc. at small-sized landing model, is not especially limited, can press herein The setting of practical application scene progress category of model.
In step S31, server can read the model point of threedimensional model material in archetype based on rendering reference information Class is based on the corresponding background rendering parameter of category of model quick obtaining for subsequent server and prepares data basis.
S32. be based on category of model, corresponding rendering background is extracted in background class information table, according to rendering background and The size of archetype obtains the corresponding background rendering parameter of archetype.
Wherein, background class information table is the number recorded to the corresponding background rendering parameter of each category of model According to table, for example, corresponding background rendering ginseng can be matched for medium-sized landing model such as wardrobe, in background class information table Number is ground, metope or skirting etc.;For small-sized landing model such as potting or small household appliances, in background class information table It is ground that corresponding background rendering parameter, which can be matched,;It, can in background class information table for hanging for wall model such as mural painting Matching corresponding background rendering parameter is metope;Furred ceiling model can match corresponding background wash with watercolours in background class information table Contaminating parameter is top surface etc..Wherein, background rendering parameter includes adding object with the background of "current" model classification and matching, and each The size and size of background addition object.
Further, server can also make the corresponding tool of background rendering parameter according to the difference of threedimensional model material size The size and location of body background object also can the adaptive change with the size of threedimensional model material.
In step S32, server can the size based on category of model and archetype, extracted in background class information table Corresponding background rendering parameter improves of model rendering so that different categories of model corresponds to different background rendering parameters Property, authenticity and the property of can refer to.
S33. it is based on category of model, corresponding light rendering rule is extracted in light digest information table, according to light wash with watercolours Dye rule obtains the corresponding lighting rendering parameter of archetype.
Wherein, light digest information table is the table recorded to the corresponding lighting rendering parameter of each category of model Lattice can press each mould for example, for medium-sized landing model, hanging for wall model or furred ceiling model in light digest information table Type classification sets corresponding lamplight setting rule, to simulate available light in different location addition light, shows the model point The hatching effect of class keeps the threedimensional model material expression effect in "current" model classification more true.
The layout rules of light rendering rule namely the corresponding available light of each category of model.
Specifically, the layout rules of available light may include sunlight parameter setting, the setting of dome optical parameter and put down Row optical parameter setting etc., specific available light layout rules can be added or delete according to practical application scene, not make herein It is specific to limit.
In step S33, server can be based on category of model, and corresponding lighting rendering ginseng is extracted in light digest information table Number improves the personalization of model rendering, authenticity and can join so that different categories of model corresponds to different lighting rendering parameters According to property.
For step S31 into S33, server can read the mould of threedimensional model material in archetype based on rendering reference information Type classification is based on the corresponding background rendering parameter of category of model quick obtaining for subsequent server and prepares data basis.Server Can the size based on category of model and archetype, corresponding background rendering parameter is extracted in background class information table so that Different categories of model corresponds to different background rendering parameters, improves personalization, authenticity and the property of can refer to of model rendering.Clothes Business device can be based on category of model, and corresponding lighting rendering parameter is extracted in light digest information table, so that different model point Class corresponds to different lighting rendering parameters, improves personalization, authenticity and the property of can refer to of model rendering.
In one embodiment, as shown in fig. 6, in step s 40, that is, being based on archetype, ontology rendering parameter, tool are obtained Body includes the following steps:
S41. based on rendering reference information, the corresponding category of model of archetype is obtained.
In step S41, server can read the model point of threedimensional model material in archetype based on rendering reference information Class is based on the corresponding ontology rendering parameter of category of model quick obtaining for subsequent server and prepares data basis.
S42. model rendering device is activated, model rendering device includes at least one rendering template.
Wherein, model rendering device is integrated into the work that few rendering template renders threedimensional model material ontology Tool, all rendering templates can be reserved in classification rendering parameter table.For example, the wash with watercolours that "current" model is classified in classification rendering parameter table Contaminate template can include: Global Switches (overall situation switch) volume exhibition column, image sample (Antialiasing) image are adopted Sample (reverse sawtooth) volume exhibition column, Indirect illumination (indirect lighting) volume exhibition column, Irradiance map (decal Figure) volume exhibition column, Light Cache (light caching) volume exhibition column, DMC Sample (DMC sampling) column of opening a book, Environment (environment) volume exhibition column, Color mapping (color mapping) volume exhibition column and Common Parameters (common parameter) open a book column Deng.Specific template can be set according to practical application scene, be not especially limited herein.
Specifically, VRay renderer can be used in model rendering device.VRay is the most popular rendering engine of current industry.Base There are all multi versions such as VRay for3ds max, Maya, Sketchup and Rhino in the exploitation of V-Ray kernel, is different field Outstanding 3D modeling software provide high quality picture and animation rendering.In addition to this, VRay can also provide individual wash with watercolours Program is contaminated, convenient for users to rendering various pictures.VRay renderer provides a kind of special material-VrayMtl.In scene It is middle to obtain more accurate physics illumination (photic-energy transfer) using the material, it renders faster, reflection and refraction parameter tune Section is more convenient.Different texture mapping can be applied using VrayMtl, controls its reflection and refraction, increases Bump Mapping and sets It exchanges cards containing all personal details and become sworn brothers figure, direct global illumination is forced to calculate, selection is used for BRDF (Physically Based Rendering, the base of material In the rendering of physics).
In step S42, server can be used VRay renderer and obtain multiple rendering templates, from multidimensional angle to threedimensional model Material carries out ontology rendering, improves model rendering render instruction, renders authenticity and the property of can refer to.
S43. the corresponding rendering default value of category of model is obtained, at least one rendering mould is successively refreshed using rendering default value Plate forms the corresponding ontology rendering parameter of archetype.
Wherein, rendering default value is the default at least one corresponding rendering template of each category of model that server saves Setting value.
In step S43, server can refresh each rendering template based on the rendering default value of category of model, obtain original mould The corresponding ontology rendering parameter of type improves the rendering quality of model rendering and can refer to so that model rendering is more targeted Effect.
For step S41 into S43, server can read the mould of threedimensional model material in archetype based on rendering reference information Type classification is based on the corresponding ontology rendering parameter of category of model quick obtaining for subsequent server and prepares data basis.Server VRay renderer can be used and obtain multiple rendering templates, ontology rendering is carried out to threedimensional model material from multidimensional angle, improves mould Type rendering render instruction renders authenticity and the property of can refer to.Server can be refreshed each based on the rendering default value of category of model Template is rendered, the corresponding ontology rendering parameter of archetype is obtained, so that model rendering is more targeted, improves model rendering Rendering quality and can refer to effect.
In one embodiment, as shown in fig. 7, after step S20, that is, the corresponding original mould of model rendering task is being obtained After type and rendering reference information, model rendering method also specifically comprises the following steps:
S211. the rendering material information in rendering reference information is obtained.
Wherein, rendering material information is the material and texture information rendered in the archetype carried in reference information.
Specifically, after archetype imported into 3dmax, server is needed on the material for influencing rendering effect in archetype Matter and texture are arranged and are repaired.If archetype includes some special substances, it will affect rendering effect, even result in wash with watercolours Dye distortion, program crashing, model file texture mapping go out active or damage the case where.
In step S211, server can obtain first rendering material information before rendering to archetype, to the wash with watercolours Dye material information is detected, and to ensure that subsequent server can smoothly render archetype, avoids the occurrence of program crashing Fortuitous event, influence normal rendering process.
If S212. rendering material information does not meet rendering material condition, rendering material information is repaired, to obtain Meet the rendering material information of the update of rendering material condition.
Wherein, rendering material condition be server save three-dimensional rendering material in material and texture should meet it is basic Condition or range.That is, when server detects that the rendering material information that archetype carries does not meet rendering material condition, The rendering material information need to be repaired or be adjusted, the normal execution carried out in favor of follow-up rendering.
In step S212, server can be according to the material of setting and the rendering material condition of texture, to rendering material information It arranges and repairs, so that the rendering material information that the archetype after repairing carries meets rendering material condition.Because the rendering is repaired Compound method is only finely adjusted rendering material information, will not integrally cause distortion effect to archetype.
For step S211 into S212, server can obtain first rendering material information before rendering to archetype, The rendering material information is detected, to ensure that subsequent server can smoothly render archetype, avoids the occurrence of journey The fortuitous event of sequence collapse, influences normal rendering process.Server can according to the material of setting and the rendering material condition of texture, Rendering material information is arranged and repaired, so that the rendering material information that the archetype after repairing carries meets rendering material item Part.Because the rendering restorative procedure is only finely adjusted rendering material information, distortion effect will not be integrally caused to archetype.
In one embodiment, in step s 50, i.e., based on background rendering parameter, lighting rendering parameter and ontology rendering ginseng Number, renders archetype using model rendering tool, obtains rendering effect figure, specifically comprises the following steps:
S501. by background rendering parameter, lighting rendering parameter and ontology rendering parameter three-dimensional mould corresponding with archetype Type file is associated, and obtains the corresponding model rendering file of archetype.
Wherein, model rendering file is that model rendering tool is readable and can be shown on model rendering tools interfaces File.
In step S501, server is by background rendering parameter, lighting rendering parameter and ontology rendering parameter and archetype Corresponding threedimensional model file is associated, and is read out so that quick obtaining model rendering file is conducive to model rendering tool.
S502. model rendering file is executed using model rendering tool, archetype is rendered, obtain rendering effect Figure.
In step S502, model rendering file is can be read in model rendering tool, and the model rendering file is saved in number It is shown to page end according to library, and by rendering effect figure, the final rendering effect of model is intuitive to see conducive to designer, is improved Select the accuracy of model material.
S503. rendering effect figure and rending model file association are stored to system database.
In step S503, rendering effect figure can be saved in system database by server, be checked quickly fastly convenient for designer It looks for and checking, efficiency is checked in raising.
Step S501 is into S503, and server is by background rendering parameter, lighting rendering parameter and ontology rendering parameter and former The corresponding threedimensional model file of beginning model is associated, so that quick obtaining model rendering file is conducive to the progress of model rendering tool It reads.Model rendering file can be read in model rendering tool, and rendering effect will be formed on the model rendering document presentation to interface Fruit figure, is intuitive to see rendering effect conducive to designer.Rendering effect figure can be saved in system database by server, just It is quickly checked in designer, efficiency is checked in raising.
In one embodiment, it after step S503, i.e., is arrived by rendering effect figure and rending model file association storage After system database, which also specifically comprises the following steps:
S5031. display diagram render request is obtained, image rendering request includes picture to be processed and category of model.
Wherein, bandwagon effect figure render request is the asking of being rendered of archetype that server receives client transmission It asks.Picture to be processed is the image for being rendered carried in display diagram render request.
In step S5031, server can be based on the category of model quick obtaining category of model in display diagram render request Corresponding rendering effect figure carries out Fast rendering to archetype to realize.
S5032. be based on category of model inquiry system database, obtain and show it is corresponding with category of model at least one Rendering effect figure.
In step S5032, server can be directly based upon category of model and obtain and show corresponding with category of model at least one A rendering effect figure improves the selected efficiency of designer's selected target effect picture.
S5033. target effect figure is chosen from least one rendering effect figure, obtains the corresponding target mould of target effect figure Type file.
Wherein, object module file is the existing rendering template including background rendering parameter etc. corresponding with target effect figure File.
In step S5033, server can match rapidly corresponding target based on target effect figure in system database Model file reduces the rendering waiting time that server is integrally rendered based on picture to be processed.
S5034. model rendering tool performance objective model file is used, picture to be processed is rendered, obtains target Render picture.
In step S5034, model rendering tool and existing object module file is can be used to picture to be processed in server It is rendered, further increases the rendering efficiency to picture to be processed.
For step S5031 into S5034, server can be based on the picture and category of model to be processed in display diagram render request The corresponding rendering effect figure of the quick obtaining category of model carries out Fast rendering to picture to be processed to realize.Server can It is directly based upon category of model and obtains and show at least one rendering effect figure corresponding with category of model, it is selected to improve designer The selected efficiency of target effect figure.Server can match rapidly corresponding target based on target effect figure in system database Model file reduces the rendering waiting time that server is integrally rendered based on picture to be processed.Model can be used in server Rendering tool and existing object module file render picture to be processed, further increase the rendering to picture to be processed Efficiency.
Model rendering method provided in this embodiment, server pass through each model in the model rendering task for batch Archetype in rendering task carries out fast automatic rendering, can get personalized rendering effect figure, and the rendering effect figure is logical Cross adaptive background rendering parameter, lighting rendering parameter and ontology rendering parameter, high quality can be shown and specific aim compared with Strong rendering effect.Meanwhile multiple archetypes carry out batch-automated rendering by server, are not necessarily to manual intervention, it can be in number Magnitude improves rendering efficiency and rendering stability.
Further, server can obtain the corresponding threedimensional model file of archetype based on system server, to obtain The rendering reference information carried by obj file is taken, is conducive to subsequent server and is based on the rendering reference information to archetype progress Rendering.Server can store multiple model rendering tasks into Redis queue, can accelerate data structure such as JSON character string Access speed.Server can read rapidly multiple model rendering tasks based on Redis queue, directly acquire each model rendering and appoint JSON character string in business prepares data basis using the every JSON character string of model rendering tool fast resolving to be subsequent.
Further, server can start rendering operation process simultaneously and render to model rendering task, and start wash with watercolours Dye finger daemon guards rendering operation process, guarantees to execute the stability of model rendering task, sustainability and reliable Property.When rendering the collapse of "current" model rendering task or stopping of the rendering of operation process, server can automated back-up "current" model The "current" model rendering task of backup can be imported into new rendering fortune when new rendering operation process is established by rendering task Traveling journey improves robustness when executing model rendering task to guarantee that model rendering task can be rendered incessantly.When It is more than that need to terminate current rendering operation process, and start more when presetting render time that model rendering task, which is likely to occur abnormal, New rendering runs process, when new rendering operation process is established, can imported into the "current" model rendering task of backup newly Rendering run process, to guarantee that model rendering task can be rendered normally, improve execute model rendering task when robustness. Server carries out intelligent click pop-up using rendering finger daemon analog mouse, it is ensured that MaxScript script can be stablized It executes, the same robustness improved when executing model rendering task.
Further, server can read the model point of threedimensional model material in archetype based on rendering reference information Class is based on the corresponding background rendering parameter of category of model quick obtaining for subsequent server and prepares data basis.Server can base In the size of category of model and archetype, corresponding background rendering parameter is extracted in background class information table, so that different Category of model correspond to different background rendering parameters, improve personalization, authenticity and the property of can refer to of model rendering.Server It can be based on category of model, corresponding lighting rendering parameter is extracted in light digest information table, so that different categories of model pair Different lighting rendering parameters is answered, personalization, authenticity and the property of can refer to of model rendering are improved.
Further, server can read the model point of threedimensional model material in archetype based on rendering reference information Class is based on the corresponding ontology rendering parameter of category of model quick obtaining for subsequent server and prepares data basis.Server can be adopted Multiple rendering templates are obtained with VRay renderer, ontology rendering is carried out to threedimensional model material from multidimensional angle, improves model wash with watercolours Dye render instruction renders authenticity and the property of can refer to.Server can refresh each rendering based on the rendering default value of category of model Template obtains the corresponding ontology rendering parameter of archetype so that model rendering is more targeted and improves the wash with watercolours of model rendering It contaminates quality and can refer to effect.
Further, server can obtain first rendering material information before rendering to archetype, to the rendering Material information is detected, and to ensure that subsequent server can smoothly render archetype, avoids the occurrence of program crashing Fortuitous event influences normal rendering process.Server can be according to the material of setting and the rendering material condition of texture, to rendering material Matter finish message and reparation, so that the rendering material information that the archetype after repairing carries meets rendering material condition.Because being somebody's turn to do Rendering restorative procedure is only finely adjusted rendering material information, will not integrally cause distortion effect to archetype.
Further, server is by background rendering parameter, lighting rendering parameter and ontology rendering parameter and archetype pair The threedimensional model file answered is associated, and is read out so that quick obtaining model rendering file is conducive to model rendering tool.Mould Model rendering file can be read in type rendering tool, and rendering effect figure, benefit will be formed on the model rendering document presentation to interface Rendering effect is intuitive to see in designer.Rendering effect figure can be saved in system database by server, convenient for design Personnel quickly check that efficiency is checked in raising.
Further, server can be somebody's turn to do based on picture and the category of model quick obtaining to be processed in display diagram render request The corresponding rendering effect figure of category of model carries out Fast rendering to picture to be processed to realize.Server can be directly based upon mould Type classification obtains and shows at least one rendering effect figure corresponding with category of model, improves designer's selected target effect picture Selected efficiency.Server can match rapidly corresponding object module file based on target effect figure in system database, Reduce the rendering waiting time that server is integrally rendered based on picture to be processed.Server can be used model rendering tool and Existing object module file renders picture to be processed, further increases the rendering efficiency to picture to be processed.
Model rendering method provided in this embodiment can be applied to model material website platform and provide model material and design The rendering effect figure of scheme is shown;Film industry is shown specific personage, object model effect using this method;Video Game industry uses this method to carry out rendering displaying as the model resource in computer and video-game;Construction industry uses the party Legal system makees complicated building or landscape expression effect;And the application that the rendering of other modelling effects is shown and demand is big Field.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
In one embodiment, a kind of model rendering device is provided, model wash with watercolours in the model rendering device and above-described embodiment Dyeing method corresponds.As shown in figure 8, the model rendering device includes obtaining render request module 10, obtaining reference information mould Block 20 obtains rendering parameter module 30, obtains body parameter module 40 and obtains rendering effect module 50.Each functional module is detailed It is described as follows:
Obtain render request module 10, for obtain model rendering request, based on model rendering request at least one Model rendering task.
Reference information module 20 is obtained, for parsing each model rendering task using model rendering tool, obtains model The corresponding archetype of rendering task and rendering reference information.
Rendering parameter module 30 is obtained, for obtaining the corresponding background rendering ginseng of archetype based on rendering reference information Several and lighting rendering parameter.
Body parameter module 40 is obtained, for being based on archetype, obtains ontology rendering parameter.
Rendering effect module 50 is obtained, for being based on background rendering parameter, lighting rendering parameter and ontology rendering parameter, is adopted Archetype is rendered with model rendering tool, obtains rendering effect figure.
Preferably, which further includes obtaining three dimensional file module 101 and storage rendering task module 102.
Three dimensional file module 101 is obtained, for being based on system database, obtains the corresponding threedimensional model text of archetype Part.
Rendering task module 102 is stored, for being based on threedimensional model file generated model rendering task, model rendering is appointed Business storage is into task queue.
Preferably, which includes obtaining rendering task unit 11.
Rendering task unit 11 is obtained, for sequentially obtaining at least one mould from task queue based on model rendering request Type rendering task.
Preferably, which further includes starting operation scheduler module, starting update scheduler module, terminates operation Scheduler module and processing prompt pop-up module.
Starting operation scheduler module renders model rendering task for starting rendering operation process, and starts wash with watercolours Dye finger daemon guards rendering operation process.
Starting updates scheduler module, if the collapse of "current" model rendering task or stopping for rendering the rendering of operation process, The rendering operation process that finger daemon starting updates then is rendered, and imports "current" model rendering to the rendering of update operation process and appoints Business.
Operation scheduler module is terminated, if the "current" model rendering task for rendering the rendering of operation process is more than default rendering Time then renders finger daemon and terminates rendering operation process, and starts the rendering operation process of update, the rendering operation of Xiang Gengxin Process imports "current" model rendering task.
Processing prompt pop-up module renders finger daemon to mentioning if being prompted pop-up covering for rendering operation process Show that pop-up is handled, so that rendering operation process continues to render model rendering task.
Preferably, which includes obtaining category of model unit, obtaining context parameter unit and acquisition Lighting programmers unit.
Category of model unit is obtained, for obtaining the corresponding category of model of archetype based on rendering reference information.
Context parameter unit is obtained, for being based on category of model, corresponding rendering back is extracted in background class information table Scape obtains the corresponding background rendering parameter of archetype according to the size of rendering background and archetype.
Lighting programmers unit is obtained, for being based on category of model, corresponding light wash with watercolours is extracted in light digest information table Dye rule renders rule according to light, obtains the corresponding lighting rendering parameter of archetype.
Preferably, which includes obtaining original classification unit, activation model rendering device unit and shape At rendering parameter unit.
Original classification unit is obtained, for obtaining the corresponding category of model of archetype based on rendering reference information.
Model rendering device unit is activated, for activating model rendering device, model rendering device includes at least one rendering template.
Rendering parameter unit is formed, for obtaining the corresponding rendering default value of category of model, successively using rendering default value Refresh at least one rendering template, forms the corresponding ontology rendering parameter of archetype.
Preferably, which further includes obtaining material information module and reparation material information module.
Material information module is obtained, for obtaining the rendering material information in rendering reference information.
Material information module is repaired, if not meeting rendering material condition for rendering material information, to rendering material letter Breath is repaired, to obtain the rendering material information for the update for meeting rendering material condition.
Specific about model rendering device limits the restriction that may refer to above for model rendering method, herein not It repeats again.Modules in above-mentioned model rendering device can be realized fully or partially through software, hardware and combinations thereof.On Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be server, internal structure Figure can be as shown in Figure 9.The computer equipment includes processor, the memory, network interface sum number connected by system bus According to library.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory of the computer equipment includes Non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The database of machine equipment is used for the relevant data of model rendering method.The network interface of the computer equipment is used for and external end End passes through network connection communication.To realize a kind of model rendering method when the computer program is executed by processor.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory and can The computer program run on a processor, processor realize above-described embodiment model rendering method when executing computer program, Such as S10 shown in Fig. 2 to step S50.Alternatively, processor realizes that model rendering fills in above-described embodiment when executing computer program The function for each module/unit set, such as module 10 shown in Fig. 8 is to the function of module 50.It is no longer superfluous herein to avoid repeating It states.
In one embodiment, a kind of computer readable storage medium is provided, computer program, computer journey are stored thereon with Above-described embodiment model rendering method, such as S10 shown in Fig. 2 to step S50 are realized when sequence is executed by processor.Alternatively, the meter The function of each module/unit in model rendering device in above-mentioned apparatus embodiment, example are realized when calculation machine program is executed by processor Module 10 as shown in Figure 8 to module 50 function.To avoid repeating, details are not described herein again.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, it is readable which can be stored in a non-volatile computer It takes in storage medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, this Shen Please any reference used in each embodiment to memory, storage, database or other media, may each comprise non-volatile And/or volatile memory.Nonvolatile memory may include that read-only memory (ROM), programming ROM (PROM), electricity can be compiled Journey ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) directly RAM (RDRAM), straight Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.
The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to the foregoing embodiments Invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each implementation Technical solution documented by example is modified or equivalent replacement of some of the technical features;And these modification or Replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all include Within protection scope of the present invention.

Claims (10)

1. a kind of model rendering method characterized by comprising
Model rendering request is obtained, at least one model rendering task of the model rendering request is based on;
Each model rendering task is parsed using model rendering tool, obtains the corresponding original mould of the model rendering task Type and rendering reference information;
Based on the rendering reference information, the corresponding background rendering parameter of the archetype and lighting rendering parameter are obtained;
Based on the archetype, ontology rendering parameter is obtained;
Based on the background rendering parameter, the lighting rendering parameter and the ontology rendering parameter, using model rendering tool The archetype is rendered, rendering effect figure is obtained.
2. model rendering method as described in claim 1, which is characterized in that requested in the acquisition model rendering, be based on institute Before stating at least one model rendering task of model rendering request, the model rendering method further include:
Based on system database, the corresponding threedimensional model file of the model rendering task is obtained;
Based on the threedimensional model file generated model rendering task, by model rendering task storage into task queue;
It is described to be based at least one model rendering task of the model rendering request, comprising: to be asked based on the model rendering It asks and sequentially obtains at least one described model rendering task from the task queue.
3. model rendering method as described in claim 1, which is characterized in that described each using the parsing of model rendering tool The model rendering task, before obtaining the corresponding archetype of the model rendering task and rendering reference information, the mould Type rendering method further include:
Starting rendering finger daemon guards the rendering operation process;
If the "current" model rendering task collapse of the rendering operation process rendering stops, the rendering finger daemon starting New rendering runs process, and imports the "current" model rendering task to new rendering operation process;
If the "current" model rendering task of the rendering operation process rendering is more than default render time, the rendering guard into Journey terminates the rendering operation process, and starts the rendering operation process of update, described in the rendering operation process importing of Xiang Gengxin "current" model rendering task;
If the rendering operation process be prompted pop-up covering, the rendering finger daemon to the prompt pop-up at Reason, so that the rendering operation process continues to render the model rendering task.
4. model rendering method as described in claim 1, which is characterized in that the rendering reference information is based on, described in acquisition The corresponding background rendering parameter of archetype and lighting rendering parameter, comprising:
Based on the rendering reference information, the corresponding category of model of the archetype is obtained;
Based on the category of model, corresponding rendering background is extracted in background class information table, according to the rendering background and The size of the archetype obtains the corresponding background rendering parameter of the archetype;
Based on the category of model, corresponding light rendering rule is extracted in light digest information table, according to the light wash with watercolours Dye rule, obtains the corresponding lighting rendering parameter of the archetype.
5. model rendering method as described in claim 1, which is characterized in that be based on the archetype, obtain ontology rendering Parameter, comprising:
Based on the rendering reference information, the corresponding category of model of the archetype is obtained;
Model rendering device is activated, the model rendering device includes at least one rendering template;
The corresponding rendering default value of the category of model is obtained, at least one described wash with watercolours is successively refreshed using the rendering default value Template is contaminated, the corresponding ontology rendering parameter of the archetype is formed.
6. model rendering method as described in claim 1, which is characterized in that obtaining the corresponding original of the model rendering task After beginning model and rendering reference information, the model rendering method further include:
Obtain the rendering material information in the rendering reference information;
If the rendering material information does not meet rendering material condition, the rendering material information is repaired, to obtain Meet the rendering material information of the update of the rendering material condition.
7. a kind of model rendering device characterized by comprising
Render request module is obtained, for obtaining model rendering request, is based on described at least one mould of model rendering request Type rendering task;
Reference information module is obtained, for parsing each model rendering task using model rendering tool, obtains the mould The corresponding archetype of type rendering task and rendering reference information;
Rendering parameter module is obtained, for being based on the rendering reference information, obtains the corresponding background rendering of the archetype Parameter and lighting rendering parameter;
Body parameter module is obtained, for being based on the archetype, obtains ontology rendering parameter;
Rendering effect module is obtained, for based on the background rendering parameter, the lighting rendering parameter and ontology rendering Parameter renders the archetype using model rendering tool, obtains rendering effect figure.
8. model rendering device as claimed in claim 7, which is characterized in that the model rendering device further include:
Three dimensional file module is obtained, for being based on system database, obtains the corresponding threedimensional model file of the archetype;
Rendering task module is stored, for being based on model rendering task described in the threedimensional model file generated, by the model Rendering task is stored into task queue;
The acquisition render request module includes:
Rendering task unit is obtained, for sequentially obtaining at least one from the task queue based on model rendering request The model rendering task.
9. a kind of computer equipment, including memory, processor and storage are in the memory and can be in the processor The computer program of upper operation, which is characterized in that the processor realized when executing the computer program as claim 1 to Any one of 6 model rendering methods.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In realization model rendering method as described in any one of claim 1 to 6 when the computer program is executed by processor.
CN201910529346.3A 2019-06-19 2019-06-19 Model rendering method, device, computer equipment and storage medium Active CN110363839B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910529346.3A CN110363839B (en) 2019-06-19 2019-06-19 Model rendering method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910529346.3A CN110363839B (en) 2019-06-19 2019-06-19 Model rendering method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110363839A true CN110363839A (en) 2019-10-22
CN110363839B CN110363839B (en) 2023-08-11

Family

ID=68216401

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910529346.3A Active CN110363839B (en) 2019-06-19 2019-06-19 Model rendering method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110363839B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111161024A (en) * 2019-12-27 2020-05-15 珠海随变科技有限公司 Commodity model updating method and device, computer equipment and storage medium
CN111192353A (en) * 2019-12-30 2020-05-22 珠海金山网络游戏科技有限公司 Material generation method and device
CN111352670A (en) * 2020-03-10 2020-06-30 简吉波 Virtual reality scene loading method and device, virtual reality system and equipment
CN111882650A (en) * 2020-06-23 2020-11-03 北京城市网邻信息技术有限公司 Spatial light processing method and device, electronic equipment and storage medium
CN112370784A (en) * 2021-01-15 2021-02-19 腾讯科技(深圳)有限公司 Virtual scene display method, device, equipment and storage medium
CN113554746A (en) * 2021-07-27 2021-10-26 广东三维家信息科技有限公司 Decoration effect graph generation method and device, electronic equipment and storage medium
CN113963101A (en) * 2021-12-21 2022-01-21 北京蔚领时代科技有限公司 Real-time distributed cluster synchronous rendering scheduling system based on RPC
CN114581576A (en) * 2021-12-13 2022-06-03 北京市建筑设计研究院有限公司 Three-dimensional scene light configuration method and device, electronic equipment and storage medium
CN115861522A (en) * 2023-03-02 2023-03-28 杭州片段网络科技有限公司 Image rendering method and device
CN111292399B (en) * 2020-02-03 2023-08-11 深圳震有科技股份有限公司 Method and device for constructing three-dimensional scene animation based on particle system in GIS (geographic information System)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050081161A1 (en) * 2003-10-10 2005-04-14 Macinnes Cathryn Three-dimensional interior design system
CN108257203A (en) * 2017-12-28 2018-07-06 深圳市彬讯科技有限公司 A kind of house ornamentation design sketch structure rendering intent, platform
CN109448089A (en) * 2018-10-22 2019-03-08 美宅科技(北京)有限公司 A kind of rendering method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050081161A1 (en) * 2003-10-10 2005-04-14 Macinnes Cathryn Three-dimensional interior design system
CN108257203A (en) * 2017-12-28 2018-07-06 深圳市彬讯科技有限公司 A kind of house ornamentation design sketch structure rendering intent, platform
CN109448089A (en) * 2018-10-22 2019-03-08 美宅科技(北京)有限公司 A kind of rendering method and device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111161024A (en) * 2019-12-27 2020-05-15 珠海随变科技有限公司 Commodity model updating method and device, computer equipment and storage medium
CN111192353A (en) * 2019-12-30 2020-05-22 珠海金山网络游戏科技有限公司 Material generation method and device
CN111192353B (en) * 2019-12-30 2023-08-25 珠海金山数字网络科技有限公司 Material generation method and device
CN111292399B (en) * 2020-02-03 2023-08-11 深圳震有科技股份有限公司 Method and device for constructing three-dimensional scene animation based on particle system in GIS (geographic information System)
CN111352670A (en) * 2020-03-10 2020-06-30 简吉波 Virtual reality scene loading method and device, virtual reality system and equipment
CN111882650A (en) * 2020-06-23 2020-11-03 北京城市网邻信息技术有限公司 Spatial light processing method and device, electronic equipment and storage medium
CN112370784A (en) * 2021-01-15 2021-02-19 腾讯科技(深圳)有限公司 Virtual scene display method, device, equipment and storage medium
CN113554746A (en) * 2021-07-27 2021-10-26 广东三维家信息科技有限公司 Decoration effect graph generation method and device, electronic equipment and storage medium
CN114581576A (en) * 2021-12-13 2022-06-03 北京市建筑设计研究院有限公司 Three-dimensional scene light configuration method and device, electronic equipment and storage medium
CN113963101A (en) * 2021-12-21 2022-01-21 北京蔚领时代科技有限公司 Real-time distributed cluster synchronous rendering scheduling system based on RPC
CN113963101B (en) * 2021-12-21 2022-03-29 北京蔚领时代科技有限公司 Real-time distributed cluster synchronous rendering scheduling system based on RPC
CN115861522A (en) * 2023-03-02 2023-03-28 杭州片段网络科技有限公司 Image rendering method and device

Also Published As

Publication number Publication date
CN110363839B (en) 2023-08-11

Similar Documents

Publication Publication Date Title
CN110363839A (en) Model rendering method, apparatus, computer equipment and storage medium
US11036695B1 (en) Systems, methods, apparatuses, and/or interfaces for associative management of data and inference of electronic resources
US8352443B1 (en) Representing scene description in databases
JP2019531524A (en) Website construction system and method for website construction system
CN106484394A (en) A kind of fast software development system with double engines
US20180225408A1 (en) System and method for interactive modeling and analysis of 3-d digital assemblies
US11887229B2 (en) Method and system for populating a digital environment using a semantic map
CN110433495B (en) Configuration method and device of virtual scene in game, storage medium and electronic equipment
CN111275297A (en) Building engineering EPC (electronic product code) cost and progress management system and management method based on BIM (building information modeling) technology
US10957108B2 (en) Augmented reality image retrieval systems and methods
CN113538706B (en) Digital sand table-based house scene display method, device, equipment and storage medium
US10417924B2 (en) Visual work instructions for assembling product
KR20030073424A (en) A rendering system, rendering method, and recording medium therefor
CN116129053A (en) Power equipment model construction method
CN109634611A (en) Mobile terminal threedimensional model ply document analysis and methods of exhibiting based on OpenGL
CN112700555B (en) High-configurable 3D data visualization realization method, electronic equipment and storage medium
CN111476910B (en) 3D model display method, system, medium and display terminal of intelligent building BIM
Zibion Development of a BIM-enabled software tool for facility management using interactive floor plans, graph-based data management and granular information retrieval
Lu et al. Design of immersive and interactive application based on augmented reality and machine learning
CN111046472A (en) Model component information display method and device, computer equipment and storage medium
US20230195292A1 (en) Development, representation and display
Chen Research on mobile terminal sketch 3D modeling technology based on interactive design
CN116012533A (en) Method for outputting json file by Revit and displaying and managing json file in three-dimensional engines such as units 3d and the like
CN116011074A (en) Method for displaying units in unit program production
CN116226969A (en) Method for light data in unit program production

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