Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction
Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded
Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment
And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is
Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or
" if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
With reference to Fig. 1, Fig. 1 is a kind of flow diagram for threedimensional model rendering method that one embodiment of the invention provides.Institute
Stating threedimensional model rendering method can be applied to server, which can be one or more, such as the server is wash with watercolours
Server is contaminated, details are as follows for the method:
S101: receiving the render request that client is sent, and render request carries threedimensional model to be rendered.
In embodiments of the present invention, client can be PC (Personal Computer, PC), PDA
(Personal Digital Assistant, palm PC) or mobile phone etc..Threedimensional model to be rendered is to be needed with user
The threedimensional model rendered.Specifically, server can receive client and send render request by browser.
S102: judge in the whether existing threedimensional model prestored of threedimensional model to be rendered.
In embodiments of the present invention, the threedimensional model that the threedimensional model prestored does not store in advance, to configure various three in advance
In dimension module library.
S103: if it is determined that in the existing threedimensional model prestored of threedimensional model to be rendered, obtain server uses shape
State, and judge whether use state is available mode.
In embodiments of the present invention, when server is more, the multiple threedimensional models obtained in advance can be pre-stored in
In each server.Some threedimensional models commonly prestored can store in the video memory of multiple servers simultaneously, to mention
High treatment efficiency.
S104: if it is determined that use state is available mode, then to the display content of threedimensional model to be rendered according to default
Sequence is divided.
In embodiments of the present invention, if it is determined that use state is non-available mode, then threedimensional model to be rendered is sent
Into other servers.
S105: rendering the display content after division, and according to predetermined order send rendering after display content to
Client, so that client is according to the threedimensional model after the display content display rendering after rendering.
In embodiments of the present invention, the display content that human eye in threedimensional model can be seen can be come into wash with watercolours made above
Dye, the content ordering that human eye cannot be directly viewed is rear.
From above-described embodiment it is found that the render request sent by receiving client, render request carry to be rendered three
Dimension module judges in the whether existing threedimensional model prestored of threedimensional model to be rendered, if it is determined that threedimensional model to be rendered
In the existing threedimensional model prestored, the use state of server is obtained, and judges whether use state is available mode.If sentencing
Determining use state is available mode, then divides to the display content of threedimensional model to be rendered according to predetermined order.To draw
Display content after point is rendered, and sends the display content after rendering to client, so that client according to predetermined order
According to the threedimensional model after the display content display rendering after rendering.The embodiment of the present invention can be realized to three-dimensional data model
Fast rendering improves rendering efficiency.
With reference to Fig. 2, Fig. 2 be another embodiment of the present invention provides a kind of threedimensional model rendering method flow diagram.
On the basis of the above embodiments, the rendering rank of the threedimensional model to be rendered of the present embodiment is photo rank, render request
In include target rendering parameter, details are as follows for the threedimensional model rendering method of the present embodiment:
The content of S201 to S203 is consistent with the content of S101 to S103, and particular content please refers to the correlation of S101 to S103
Description, which is not described herein again.
S204: if it is determined that use state is available mode, according to obtaining three-dimensional model renders three-dimensional model library to be rendered,
Renders three-dimensional model library includes the rendering parameter and renders three-dimensional model corresponding relationship that prestore, and renders three-dimensional model is according to prestoring
Several groups rendering parameter all renders three-dimensional models that threedimensional model to be rendered is rendered.
In embodiments of the present invention, the rendering parameter prestored and renders three-dimensional model pair are contained in renders three-dimensional model library
It should be related to.The several groups rendering parameter prestored by threedimensional model to be rendered rendered energy obtain all renders three-dimensional moulds
The various rendering parameters of type.
S205: according to target rendering parameter, the rendering parameter prestored from renders three-dimensional model library and renders three-dimensional model pair
In should being related to, the corresponding target renders three-dimensional model of threedimensional model to be rendered is obtained.
In embodiments of the present invention, target rendering parameter is to carry out rendering required rendering to threedimensional model to be rendered
Parameter.
S206: target renders three-dimensional model is sent to client.
From above-described embodiment it is found that by there is rendering in the rendering parameter and renders three-dimensional model corresponding relationship cloud that prestore
In 3 d model library, and target renders three-dimensional model is directly acquired according to target rendering parameter, can directly, rapidly obtain three
The target renders three-dimensional model of dimension module, improves rendering efficiency.
With reference to Fig. 3, Fig. 3 is a kind of flow diagram for threedimensional model rendering method that yet another embodiment of the invention provides.
On the basis of the above embodiments, include view parameter in render request, details are as follows for method:
S301 to S304 is consistent with the content of above-mentioned S101 to S104, specifically please refers to the related content of S101 to S104,
Which is not described herein again.
S305: the display content after division is rendered.
S306: display view angle adjustment is carried out to the display content after rendering according to view parameter.
In embodiments of the present invention, view parameter is the ginseng of the display view angle of the threedimensional model of user's equipment as needed
Number.
S307: according to predetermined order by the display content after display view angle rendering adjusted to client.
It, can be with from above-described embodiment it is found that carrying out display view angle adjustment to the display content after rendering by view parameter
So that the display content after rendering is sent to client, and shown in client with corresponding display view angle, meets user
Different display demands.
With reference to Fig. 4, Fig. 4 is a kind of flow diagram for threedimensional model rendering method that further embodiment of this invention provides.
On the basis of the above embodiments, include view parameter in render request, above-mentioned steps S206 is specifically included:
S401: display view angle adjustment is carried out to target renders three-dimensional model according to view parameter.
S402: by visual angle target renders three-dimensional model adjusted to client.
From above-described embodiment it is found that adjusting by view parameter to target renders three-dimensional model display view angle, and send tune
Target renders three-dimensional model after whole is to client, so that client is rendered with the corresponding display view angle displaying target of view parameter
Threedimensional model.
In one embodiment of the invention, on the basis of the above embodiments, target renders three-dimensional model is JPG picture
Or Google Webp picture;
Target renders three-dimensional model, which is sent, to client includes:
Client is sent by the way of discrete sequence of pictures by JPG picture or Google Webp picture.
By setting JPG picture or Google Webp picture for target renders three-dimensional model, and with discrete sequence of pictures
Mode be sent to client, efficiency of transmission can be improved.
It should be understood that can determine picture according to network condition first using the reverse anti-method optimizing picture pushed away
Default size, picture is then adjusted to default size again.
The three-dimensional rendering model data of the embodiment of the present invention can be BIM (Building Information
Modeling, Building Information Model) data.
Corresponding to the threedimensional model rendering method of foregoing embodiments, Fig. 5 is a kind of three-dimensional that one embodiment of the invention provides
The structural block diagram of model rendering system.For ease of description, only parts related to embodiments of the present invention are shown.Reference Fig. 5,
The system includes: render request receiving module 501, judgment module 502, use state processing module 503,504 and of division module
Render display module 505.
Wherein, render request receiving module 501, for receiving the render request of client transmission, the render request is taken
With threedimensional model to be rendered;
Judgment module 502, for judging in the whether existing threedimensional model prestored of the threedimensional model to be rendered;
Use state processing module 503, for if it is determined that the existing three-dimensional mould prestored of the threedimensional model to be rendered
In type, the use state of the server is obtained, and judges whether the use state is available mode;
Division module 504 is used for if it is determined that the use state is available mode, then to the threedimensional model to be rendered
Display content divided according to predetermined order;
Display module 505 is rendered, is sent for being rendered to the display content after division, and according to the predetermined order
Display content after rendering is to client, so that client is according to the three-dimensional mould after the display content display rendering after the rendering
Type.
From above-described embodiment it is found that the render request sent by receiving client, render request carry to be rendered three
Dimension module judges in the whether existing threedimensional model prestored of threedimensional model to be rendered, if it is determined that threedimensional model to be rendered
In the existing threedimensional model prestored, the use state of server is obtained, and judges whether use state is available mode.If sentencing
Determining use state is available mode, then divides to the display content of threedimensional model to be rendered according to predetermined order.To draw
Display content after point is rendered, and sends the display content after rendering to client, so that client according to predetermined order
According to the threedimensional model after the display content display rendering after rendering.The embodiment of the present invention can be realized to three-dimensional data model
Fast rendering improves rendering efficiency.
With reference to Fig. 5, in one embodiment of the invention, on the basis of the above embodiments, the three-dimensional to be rendered
The rendering rank of model is photo rank, includes target rendering parameter in the render request;The system also includes:
Renders three-dimensional model library obtains module 506, for according to the obtaining three-dimensional model renders three-dimensional mould to be rendered
Type library, the renders three-dimensional model library include the rendering parameter and renders three-dimensional model corresponding relationship prestored, the renders three-dimensional
Model is all renderings rendered according to the several groups rendering parameter prestored to the threedimensional model to be rendered
Threedimensional model;
Target renders three-dimensional model obtains module 507, is used for according to the target rendering parameter, from the renders three-dimensional mould
In the rendering parameter and renders three-dimensional model corresponding relationship that type library prestores, the corresponding target rendering of threedimensional model to be rendered is obtained
Threedimensional model;
The rendering display module 505 is also used to send the target renders three-dimensional model to the client.
With reference to Fig. 5, in one embodiment of the invention, on the basis of the above embodiments, wrapped in the render request
Containing view parameter;
The rendering display module 505 is joined specifically for rendering to the display content after division according to the visual angle
Several display contents to after the rendering carry out display view angle adjustment, according to the predetermined order by display view angle wash with watercolours adjusted
Display content after dye is to the client.
With reference to Fig. 5, in one embodiment of the invention, on the basis of the above embodiments, wrapped in the render request
Containing view parameter;
The rendering display module 505, be specifically used for according to the view parameter to the target renders three-dimensional model into
Row display view angle adjustment, by visual angle target renders three-dimensional model adjusted to the client.
With reference to Fig. 5, in one embodiment of the invention, on the basis of the above embodiments, the target renders three-dimensional
Model is JPG picture or Google Webp picture;
The rendering display module 505 is also used to the JPG picture or Google Webp picture using discrete picture
The mode of sequence is sent to the client.
Referring to Fig. 6, Fig. 6 is a kind of schematic block of the terminal device for threedimensional model rendering that one embodiment of the invention provides
Figure.Terminal 600 in the present embodiment as shown in FIG. 6 may include: one or more processors 601, one or more inputs
Equipment 602, one or more then output equipments 603 and one or more memories 604.Above-mentioned processor 601, input equipment
602, then output equipment 603 and memory 604 by communication bus 605 complete mutual communication.Memory 604 is for storing
Computer program, the computer program include program instruction.The program that processor 601 is used to execute the storage of memory 604 refers to
It enables.Wherein, processor 601 is configured for that described program instruction execution or less is called to operate:
Processor 601, for receiving the render request of client transmission, the render request carries three-dimensional mould to be rendered
Type;Judge in the whether existing threedimensional model prestored of the threedimensional model to be rendered;If it is determined that the three-dimensional to be rendered
In the existing threedimensional model prestored of model, obtain the use state of the server, and judge the use state whether be
Available mode;If it is determined that the use state be available mode, then to the display content of the threedimensional model to be rendered according to
Predetermined order is divided;Display content after division is rendered, and sends showing after rendering according to the predetermined order
Show content to client, so that client is according to the threedimensional model after the display content display rendering after the rendering.
Further, the rendering rank of the threedimensional model to be rendered is photo rank, includes in the render request
Target rendering parameter, processor 601, after being also used to the judgement use state as available mode, according to described to wash with watercolours
The obtaining three-dimensional model renders three-dimensional model library of dye, the renders three-dimensional model library include the rendering parameter and renders three-dimensional prestored
Model corresponding relationship, the renders three-dimensional model are according to the several groups rendering parameter prestored to the threedimensional model to be rendered
All renders three-dimensional models rendered;It is pre- from the renders three-dimensional model library according to the target rendering parameter
In the rendering parameter and renders three-dimensional model corresponding relationship deposited, the corresponding target renders three-dimensional mould of threedimensional model to be rendered is obtained
Type;The target renders three-dimensional model is sent to the client.
Further, it states in render request comprising view parameter;Processor 601 is also used to described according to the default row
Sequence sends the display content after rendering to the process of client, renders to the display content after division;According to the visual angle
Parameter carries out display view angle adjustment to the display content after the rendering;It is according to the predetermined order that display view angle is adjusted
Display content after rendering is to the client.
It further, include view parameter in the render request;Processor 601 is also used to the transmission target
Renders three-dimensional model shows the target renders three-dimensional model according to the view parameter to the process of the client
Visual angle adjustment;By visual angle target renders three-dimensional model adjusted to the client.
Further, the target renders three-dimensional model is JPG picture or Google Webp picture;Processor 601, also
For sending the client by the way of discrete sequence of pictures for the JPG picture or Google Webp picture.
It should be appreciated that in embodiments of the present invention, alleged processor 601 can be central processing unit (Central
Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at
Reason device is also possible to any conventional processor etc..
Input equipment 602 may include that Trackpad, fingerprint adopt sensor (for acquiring the finger print information and fingerprint of user
Directional information), microphone etc., output equipment 603 may include display (LCD etc.), loudspeaker etc..
The memory 604 may include read-only memory and random access memory, and to processor 601 provide instruction and
Data.The a part of of memory 604 can also include nonvolatile RAM.For example, memory 604 can also be deposited
Store up the information of device type.
In the specific implementation, processor 601 described in the embodiment of the present invention, input equipment 602, output equipment 603 can
Implementation described in the first embodiment and second embodiment of service request method provided in an embodiment of the present invention is executed,
Also the implementation of terminal described in the embodiment of the present invention can be performed, details are not described herein.
A kind of computer readable storage medium, the computer-readable storage medium are provided in another embodiment of the invention
Matter is stored with computer program, and the computer program includes program instruction, realization when described program instruction is executed by processor
All or part of the process in above-described embodiment method can also instruct relevant hardware to complete by computer program,
The computer program can be stored in a computer readable storage medium, the computer program when being executed by processor,
The step of above-mentioned each embodiment of the method can be achieved.Wherein, the computer program includes computer program code, the meter
Calculation machine program code can be source code form, object identification code form, executable file or certain intermediate forms etc..The calculating
Machine readable medium may include: any entity or device, recording medium, USB flash disk, the shifting that can carry the computer program code
Dynamic hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory
(RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It needs to illustrate
It is that the content that the computer-readable medium includes can be fitted according to the requirement made laws in jurisdiction with patent practice
When increase and decrease, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier wave
Signal and telecommunication signal.
The computer readable storage medium can be the internal storage unit of terminal described in aforementioned any embodiment, example
Such as the hard disk or memory of terminal.The computer readable storage medium is also possible to the External memory equipment of the terminal, such as
The plug-in type hard disk being equipped in the terminal, intelligent memory card (Smart Media Card, SMC), secure digital (Secure
Digital, SD) card, flash card (Flash Card) etc..Further, the computer readable storage medium can also be wrapped both
The internal storage unit for including the terminal also includes External memory equipment.The computer readable storage medium is described for storing
Other programs and data needed for computer program and the terminal.The computer readable storage medium can be also used for temporarily
Ground stores the data that has exported or will export.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware
With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This
A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially
Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not
It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience of description and succinctly, the end of foregoing description
The specific work process at end and unit, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed terminal and method can pass through it
Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied
Another system is closed or is desirably integrated into, or some features can be ignored or not executed.In addition, shown or discussed phase
Mutually between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication of device or unit
Connection is also possible to electricity, mechanical or other form connections.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.Some or all of unit therein can be selected to realize the embodiment of the present invention according to the actual needs
Purpose.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, is also possible to two or more units and is integrated in one unit.It is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace
It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right
It is required that protection scope subject to.