CN111179034A - Commodity pre-rendering method and device, computer equipment and storage medium - Google Patents

Commodity pre-rendering method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111179034A
CN111179034A CN201911382946.8A CN201911382946A CN111179034A CN 111179034 A CN111179034 A CN 111179034A CN 201911382946 A CN201911382946 A CN 201911382946A CN 111179034 A CN111179034 A CN 111179034A
Authority
CN
China
Prior art keywords
rendering
commodity
rendered
data
effect graph
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911382946.8A
Other languages
Chinese (zh)
Inventor
毕胜
王俊猛
胡俊
刘晓亮
陈焕成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Suibian Technology Co ltd
Original Assignee
Zhuhai Suibian 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 Zhuhai Suibian Technology Co ltd filed Critical Zhuhai Suibian Technology Co ltd
Priority to CN201911382946.8A priority Critical patent/CN111179034A/en
Publication of CN111179034A publication Critical patent/CN111179034A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0641Shopping interfaces
    • G06Q30/0643Graphical representation of items or shoppers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Databases & Information Systems (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention discloses a commodity prerendering method, a commodity prerendering device, computer equipment and a storage medium. The method comprises the following steps: acquiring data to be rendered of a target commodity, wherein the data to be rendered comprises a model, a material and a model surface of the commodity; generating a rendering effect graph of the target commodity according to the data to be rendered; and sending the rendering effect graph to a commodity server for storage, so that the commodity server sends the rendering effect graph to a requester when receiving a display request of the target commodity. The embodiment of the invention can shorten the time for displaying the commodity rendering map by the requester.

Description

Commodity pre-rendering method and device, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to the field of computer networks, in particular to a commodity pre-rendering method and device, computer equipment and a storage medium.
Background
The client can provide schematic diagrams of different angles of the commodity for the user, so that the user can conveniently know the customization effect of the commodity, and the user can conveniently decide whether to purchase the commodity.
For example, the user can select the material, color and shape of the spectacle frame and the material and function of the lens, and make any combination, and display the schematic diagram of the user-customized spectacles in the client.
At present, the combination conditions of the user selection are very many and different user requirements are different, and at the moment, the rendering needs more computing resources and large data volume, so that the rendering time is long, and the user experience is poor. Moreover, when multiple users operate simultaneously, the pressure on rendering services is high, the performance requirement on the server is very high, and the cost investment is large.
Disclosure of Invention
The embodiment of the invention provides a commodity prerendering method, a commodity prerendering device, computer equipment and a storage medium, which can shorten the time for a requester to display a commodity rendering graph.
In a first aspect, an embodiment of the present invention provides a commodity prerendering method, including:
acquiring data to be rendered of a target commodity, wherein the data to be rendered comprises a model, a material and a model surface of the commodity;
generating a rendering effect graph of the target commodity according to the data to be rendered;
and sending the rendering effect graph to a commodity server for storage, so that the commodity server sends the rendering effect graph to a requester when receiving a display request of the target commodity.
In a second aspect, an embodiment of the present invention further provides a commodity pre-rendering apparatus, including:
the system comprises a to-be-rendered data acquisition module, a to-be-rendered data acquisition module and a rendering module, wherein the to-be-rendered data acquisition module is used for acquiring to-be-rendered data of a target commodity, and the to-be-rendered data comprises a model, a material and a model surface of the commodity;
the rendering effect graph generating module is used for generating a rendering effect graph of the target commodity according to the data to be rendered;
and the rendering effect graph storage module is used for sending the rendering effect graph to a commodity server for storage so as to send the rendering effect graph to a requester when the commodity server receives the display request of the target commodity.
In a third aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the commodity prerendering method according to any one of the embodiments of the present invention when executing the program.
In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for pre-rendering an article of manufacture according to any one of the embodiments of the present invention.
According to the embodiment of the invention, the data to be rendered of the target commodity is obtained, the rendering effect graph of the target commodity is generated in advance and stored in the commodity server, so that the commodity server directly sends the pre-generated rendering effect graph to the requester when receiving the display request of the target commodity, and the requester displays the rendering effect graph.
Drawings
Fig. 1 is a flowchart of a commodity prerendering method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a commodity prerendering method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a commodity prerendering device in a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device in the fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic diagram of a flowchart of a commodity prerendering method in an embodiment of the present invention, where this embodiment is applicable to a case where rendering effect maps of all combinations of a commodity are generated in advance before a user requests the rendering effect maps, so as to directly send the pre-generated rendering effect maps to a requesting party for display when a display request of the rendering effect maps is received. As shown in fig. 1, the method of this embodiment specifically includes:
s110, data to be rendered of the target commodity are obtained, wherein the data to be rendered comprise a model, a material and a model surface of the commodity.
In the embodiment of the invention, one type of commodity can be split and combined in a user-defined manner. Specifically, various commodities can be separated to form model groups, components, models, surfaces and materials. Wherein:
part (Part): any one of the structures of the commodities of one commodity category. For example, the product type is glasses, the glasses can be separated into a frame, a temple, a lens, and the like, and the member can be a frame, a temple, a lens, and the like. The shirt can be split into a main body and a collar, and the parts can be the main body and the collar. One commodity category corresponds to a plurality of parts.
Model (Model): is an instantiation of a component. A plurality of models may be grouped into a model group. Such as: the model of the frame is an instantiation of the "frame" components.
Face (Component): the model is a component of the model, one model can correspond to a plurality of surfaces, and different surfaces of one model are represented by different descriptions (customized surfaces). Such as: the picture frame model is provided with a picture frame surface.
Material (Material): the material is used to determine the material of the commodity. One face may correspond to multiple materials, while a different face may correspond to the same material. Such as: the mirror frame surface on the mirror frame model can be matched with a ferrous metal material or a red metal material, and the mirror leg surface can be also matched with a ferrous metal material or a red metal material.
Sample (DES): the cases are combined in such a way that any material is taken from each side, and the example determines an example of a commodity.
High-model basic vending unit (SU): according to the sample, Cartesian products are calculated, combined to generate various scenarios. The high-model basic selling unit determines the attribute of a commodity.
Accordingly, the model of the product is defined by defining "faces", each of which needs to define a corresponding material and determine rendering parameters such as refractive index, light reflectance, basic pattern, stretch ratio, normal line, etc. Each portion may upload unlimited materials.
The same sample can be used for commodities with different sizes or other sale attributes, such as: the following types of the sample combination of a certain type of lady leather shoes are as follows: the shape of the vamp is as follows: a tip; and (3) vamp materials: black first layer cowhide, beige first layer cowhide, second layer cowhide, PU and pigskin; the inner material: artificial short hair, pigskin and PU; the height of the heel: high, medium and low heels; for different sizes: 42. 43, 44 may use the same sample.
In fact, when the commodity is displayed, a model corresponding to each part, a model surface corresponding to each model and a material corresponding to each model surface need to be determined, so that the rendering effect graph of the commodity is determined by the model, the model surface and the material associated with one commodity.
The target product may be any product designated for the object of the display. And the data to be rendered is used for generating a rendering effect graph of the target commodity, and the rendering effect graph is displayed as a display graph of the commodity. The model of the commodity is used to determine the parts formed by splitting the commodity. The model surface is used for determining the display surface of each model of the commodity. The material is used to determine the material of each molding surface of the commodity. Generally, an article may correspond to at least one form, a form may correspond to at least one mold surface, and a mold surface may correspond to at least one material.
Illustratively, the commodity is square containing box, and the corresponding model includes: the box body model corresponds to 6 mould surfaces, wherein the colour of the material of the mould surface at the top is blue plastics, and the material of the other 5 mould surfaces is red plastics.
Specifically, the rendering effect diagram is used for displaying a commodity style formed by combining a model, a model surface and a material. And generating different rendering effect graphs respectively corresponding to different models, different model surfaces and different combination conditions of different materials.
The new commodity, the new model surface and the new material can be combined respectively to form the new commodities in a plurality of styles, and rendering effect graphs of the new commodities in the plurality of styles are generated correspondingly.
Or, for historical commodities, adding or modifying at least one to-be-rendered data associated with the commodities, and correspondingly generating a rendering effect graph of a new style. Wherein, only one of the model, the model surface and the material is new, and a new rendering effect graph can be generated.
Optionally, before acquiring the data to be rendered of the target product, the method further includes: receiving an increasing and changing instruction of data to be rendered, wherein the increasing and changing instruction comprises an increasing instruction and/or a modifying instruction; and taking the commodity associated with the change instruction as a target commodity.
The change instruction is used for updating the data to be rendered, specifically, adding the data to be rendered or modifying the data to be rendered. For example, adding and/or modifying a model, adding and/or modifying a mold surface, and adding and/or modifying a material.
The target commodity refers to a commodity with associated data to be rendered updated.
By taking the commodity with the data to be rendered updated as a target commodity, the rendering effect graph can be generated only for the updated commodity, and the rendering effect graph of the new style of the commodity is updated rapidly, so that the new style of the commodity is displayed in time on a requester, and the rendering efficiency of the updated commodity is improved.
And S120, generating a rendering effect graph of the target commodity according to the data to be rendered.
The rendering effect graph is used for displaying outline information of the commodity and material information of the commodity and is used for displaying by a receiving party. The rendering effect diagram is particularly used for displaying at least one model, and the commodity style formed by combining the corresponding at least one model surface and the corresponding at least one material. And generating different rendering effect graphs respectively corresponding to different models, different model surfaces and different combination conditions of different materials.
Rendering is used for coloring the commodities, effects such as light shadow, perspective and the like are reflected, and the commodities are more real.
It should be noted that the commodities can be combined according to different models, different model surfaces and different materials, so as to form commodities of multiple styles, and render effect diagrams of the commodities of multiple styles are generated correspondingly.
Optionally, the generating a rendering effect map of the target product according to the data to be rendered includes: inquiring a rendering effect graph matched with the data to be rendered according to the data to be rendered; if the query result is empty, querying matched rendering parameters in a database according to the data to be rendered, and generating a rendering result of the target commodity; generating a rendering effect graph of the target commodity according to the generated rendering result; and if the query result is not null, acquiring the rendering effect graph of the target commodity.
Specifically, before generating the rendering effect graph, whether the same rendering effect graph is stored locally or not can be firstly inquired, if yes, the same rendering effect graph can be directly sent to the commodity server, and the generation is not needed again; if not, rendering can be carried out to generate a rendering effect graph.
And the rendering parameters are directly used for rendering to generate a rendering result. And the rendering result is used as data obtained by direct rendering, and the rendering result is stored in an image file and used as a rendering effect graph. The rendering effect map may include an image file, and may further include an address pointing to the rendering effect map, such as a Uniform Resource Locator (URL).
Generally, when a user uploads a material, the matched rendering parameters are uploaded synchronously, so that a visual schematic diagram matched with the material can be generated by rendering according to the rendering parameters. Therefore, the data to be rendered can be queried, the matched rendering parameters can be obtained, and the rendering effect graph can survive.
By locally inquiring, the same rendering effect graph is prevented from being repeatedly generated for many times, so that the commodity rendering efficiency is improved.
Optionally, the querying, according to the data to be rendered, the matched rendering parameter in the database, and generating the rendering result of the target product includes: generating a rendering task queue according to the data to be rendered and the matched rendering parameters; calling a plurality of rendering servers, and respectively executing rendering tasks in a rendering task queue until all the rendering tasks are completed; and taking the execution result of each rendering task as the rendering result of the target commodity.
The rendering task queue is used for splitting the rendering process of the data to be rendered into a plurality of rendering tasks to be executed in parallel so as to improve the rendering speed. One rendering task queue includes a plurality of rendering tasks, and generally, one rendering task queue corresponds to one rendering effect map. Specifically, after all rendering tasks in one rendering task queue are completed, the execution results of the rendering tasks are combined to obtain one rendering result, and a rendering effect graph is correspondingly generated. And respectively and correspondingly generating different rendering effect graphs by different rendering task queues. The rendering server is used for providing rendering services. A rendering task is performed by a rendering server.
The rendering tasks of the data to be rendered are split into a plurality of rendering tasks, a rendering queue is formed and is executed by different rendering servers, the rendering tasks are executed in parallel, and the rendering speed of the data to be rendered is greatly improved.
Multiple rendering servers may be preconfigured to perform rendering tasks in parallel. In practice, multiple rendering servers may be configured to execute rendering tasks in multiple rendering task queues simultaneously.
Optionally, the invoking the multiple rendering servers and respectively executing the rendering tasks in the rendering task queue includes: querying an idle rendering server; if the query result is empty, waiting for a preset time, and re-querying the idle rendering server; and if the query result is not empty, calling each rendering server respectively to execute the rendering tasks in the rendering task queue.
And querying an idle rendering server, and if the idle rendering server exists, calling at least one idle rendering server to traverse and execute the rendering tasks in the rendering task queue until all the rendering tasks in the task queue are executed.
And if the idle rendering server does not exist in the query, waiting for the preset time, and then querying again.
The preset time is used for determining the query period of the idle rendering server, and may be 1s, for example.
And calling each rendering server by polling, calling the idle rendering server to execute the rendering task in the rendering task queue when the idle rendering server exists, and waiting for re-inquiry when the idle rendering server does not exist, so that frequent inquiry of the idle rendering server can be avoided, resource loss is reduced, meanwhile, the available rendering server is quickly inquired, and a rendering effect graph is generated in time.
Optionally, the generating a rendering task queue according to the data to be rendered and the matched rendering parameter includes: inquiring rendering parameters matched with the materials according to the identification information of the model and the identification information of the materials in the data to be rendered; determining a region to be rendered matched with each rendering parameter according to the rendering parameters matched with each material and the position of each molding surface in each model; and respectively generating a plurality of rendering tasks according to the rendering parameters and the matched region to be rendered to form a rendering task queue.
Specifically, the rendering parameters may include at least one of: refractive index, light reflectance, basic pattern, stretch ratio, normal, and the like. Typically, the rendering parameters correspond to materials, i.e. one material corresponds to one rendering parameter and different materials correspond to different rendering parameters.
In fact, different models correspond to different model surfaces and correspondingly to different materials, so that the material of the commodity can be uniquely determined according to the identification information of the models and the identification information of the material, and the rendering parameter can be uniquely determined. Matching rendering parameters may be queried by the identification information of the model and the identification information of the material.
The region to be rendered may refer to a region that needs to be rendered, typically corresponding to rendering parameters and materials. Generally, rendering is performed in units of materials. The positions of the materials in the models can be determined according to rendering parameters matched with the materials, the positions of the model surfaces in the models and the positions of the materials in the model surfaces, and meanwhile, one material corresponds to one rendering parameter, so that the region to be rendered is determined based on the rendering parameters.
One rendering task may be generated for each rendering region, with different rendering regions corresponding to different rendering tasks. And taking the rendered rendering area as a rendering result, and performing splicing, superposition and combination to form a rendering effect graph.
Specifically, json character strings can be constructed according to each rendering parameter and the matched region to be rendered, and a rendering file is generated, wherein each json is a row, and each row is a rendering task.
By inquiring the rendering parameters, the position relation between the model surface and the model and the position relation between the material and the model surface, the areas to be rendered matched with the rendering parameters can be determined, and a rendering task is generated for each area to be rendered, so that the rendering tasks in units of the material are formed, the rendering tasks generated in all the areas to be rendered form a rendering task queue, the rendering process of a commodity can be accurately disassembled to form a series of rendering tasks, the rendering tasks are executed in parallel, and the rendering efficiency is improved.
S130, the rendering effect graph is sent to a commodity server for storage, so that the commodity server sends the rendering effect graph to a requesting party when receiving the display request of the target commodity.
The commodity server is used for responding to the request of the requester and providing the rendering effect graph for the requester. The display request is used for requesting the requester to acquire the rendering effect graph. The requestor may be a client with respect to the goods server. For example, a mobile terminal such as a mobile phone used by a user is purchased. The requestor may display the generated rendering effect map on a display screen.
It should be noted that, the requesting party obtains the rendering effect graph sent by the commodity server and downloads the rendering effect graph, or obtains the url of the rendering effect graph sent by the commodity server and jumps to the url to download the rendering effect graph.
Optionally, the commodity server comprises a server in a content distribution network.
The Content Delivery Network (CDN) is a service that forms a traffic distribution management Network platform by using node server clusters distributed in different areas, provides a user with distributed storage and cache of Content, and distributes the Content to a fast and stable cache server according to Network dynamic traffic and load conditions, thereby improving access response speed of the user Content and availability of the service.
According to the embodiment of the invention, the data to be rendered of the target commodity is obtained, the rendering effect graph of the target commodity is generated in advance and stored in the commodity server, so that the commodity server directly sends the pre-generated rendering effect graph to the requester when receiving the display request of the target commodity, and the requester displays the rendering effect graph.
Example two
Fig. 2 is a flowchart of a commodity prerendering method according to a second embodiment of the present invention, which is embodied based on the above-described embodiments. The method of the embodiment specifically includes:
s201, receiving a modification instruction of data to be rendered, wherein the modification instruction comprises an addition instruction and/or a modification instruction, and a commodity associated with the modification instruction is a target commodity.
In the embodiment of the present invention, reference may be made to the description of the foregoing embodiment for data to be rendered, a target commodity, an alteration instruction, a rendering effect map, a rendering parameter, a rendering result, a rendering task queue, a rendering task, a commodity server, and the like.
S202, according to the data to be rendered, a rendering effect graph matched with the data to be rendered is inquired.
S203, judging whether the query result of the rendering effect graph is empty, if so, executing S204; otherwise, S212 is executed.
Specifically, the query can be performed in the database according to the identification information of the model, the identification information of the material, and the identification information of the model surface. Usually, different primary keys corresponding to various combination relationships formed by the identification information of the model, the identification information of the material and the identification information of the model surface are stored in the database, wherein the primary keys are used for uniquely determining the combination relationship of one model, one material and one model surface. The primary key information is also used to correspond to the rendering effect map (or URL pointing to the rendering effect map) in general. If the rendering effect graph matched with the main key generated according to the identification information of the model, the identification information of the material and the identification information of the model surface exists, determining that the query result of the rendering effect graph is not null; and if the rendering effect graph matched with the primary key does not exist, determining that the query result of the rendering effect graph is empty.
Or, generating a primary key while generating the rendering effect graph, namely determining that the query result of the rendering effect graph is not null if the primary key exists; and if the primary key does not exist, determining that the query result of the rendering effect graph is null. In addition, the rendering effect graph may be queried in other ways, and thus, the embodiment of the present invention is not limited in particular.
And S204, inquiring matched rendering parameters in a database according to the data to be rendered, and generating a rendering result of the target commodity.
S205, generating a rendering task queue according to the data to be rendered and the matched rendering parameters.
S206, inquiring an idle rendering server.
S207, judging whether the query result of the idle rendering server is empty, and if so, executing S208; otherwise, S209 is performed.
S208, waiting for a preset time, and executing S206.
S209, calling a plurality of rendering servers, and respectively executing rendering tasks in the rendering task queue until all the rendering tasks are completed.
S210, taking the execution result of each rendering task as the rendering result of the target commodity.
And S211, generating a rendering effect graph of the target commodity according to the generated rendering result.
S212, obtaining a rendering effect graph of the target commodity.
S213, the rendering effect graph is sent to a commodity server for storage, so that the commodity server sends the rendering effect graph to a requesting party when receiving the display request of the target commodity.
The commodity server includes a server in a content distribution network.
And the commodity server waits for the user to access, and sends the requested rendering effect graph to the requesting party for processing and/or displaying when the user accesses.
Wherein, S201-S205, S210-S213 can be implemented by a prerender server. S206-S209 may be implemented by a rendering server.
According to the embodiment of the invention, the rendering effect diagram of each selectable commodity style is created in advance by generating the rendering effect diagram of the target commodity in advance, so that the time for a requester to wait for the new rendering effect diagram is saved, and the pressure of a server is relieved. The reliability and stability of the rendering server are guaranteed through preprocessing, and meanwhile, the access speed of a requester is increased through modes of preprocessing, caching and the like in advance.
EXAMPLE III
Fig. 3 is a schematic diagram of a commodity prerendering device in a third embodiment of the present invention. The third embodiment is a corresponding device for implementing the commodity prerendering method provided by the above embodiments of the present invention, and the device can be implemented in a software and/or hardware manner, and can be generally integrated into a computer device.
Accordingly, the apparatus of the present embodiment may include:
a to-be-rendered data obtaining module 310, configured to obtain to-be-rendered data of a target commodity, where the to-be-rendered data includes a model, a material, and a model surface of the commodity;
the rendering effect map generating module 320 is configured to generate a rendering effect map of the target product according to the data to be rendered;
the rendering effect graph saving module 330 is configured to send the rendering effect graph to a commodity server for storage, so that the commodity server sends the rendering effect graph to a requester when receiving a display request of the target commodity.
According to the embodiment of the invention, the data to be rendered of the target commodity is obtained, the rendering effect graph of the target commodity is generated in advance and stored in the commodity server, so that the commodity server directly sends the pre-generated rendering effect graph to the requester when receiving the display request of the target commodity, and the requester displays the rendering effect graph.
Further, the rendering effect map generating module 320 includes: the rendering effect graph query unit is used for querying a rendering effect graph matched with the data to be rendered according to the data to be rendered; if the query result is empty, querying matched rendering parameters in a database according to the data to be rendered, and generating a rendering result of the target commodity; generating a rendering effect graph of the target commodity according to the generated rendering result; and if the query result is not null, acquiring the rendering effect graph of the target commodity.
Further, the commodity prerendering device further includes: the system comprises an adding instruction acquisition module, a rendering instruction acquisition module and a rendering instruction processing module, wherein the adding instruction acquisition module is used for receiving an adding instruction and a modifying instruction of data to be rendered before the data to be rendered of a target commodity is acquired, and the adding instruction and the modifying instruction comprise an adding instruction and/or a modifying instruction; and taking the commodity associated with the change instruction as a target commodity.
Further, the rendering effect graph query unit includes: the rendering server polling call subunit is used for generating a rendering task queue according to the data to be rendered and the matched rendering parameters; calling a plurality of rendering servers, and respectively executing rendering tasks in a rendering task queue until all the rendering tasks are completed; and taking the execution result of each rendering task as the rendering result of the target commodity.
Further, the rendering server polling call subunit is specifically configured to: querying an idle rendering server; if the query result is empty, waiting for a preset time, and re-querying the idle rendering server; and if the query result is not empty, calling each rendering server respectively to execute the rendering tasks in the rendering task queue.
Further, the rendering server polling call subunit is specifically configured to: inquiring rendering parameters matched with the materials according to the identification information of the model and the identification information of the materials in the data to be rendered; determining a region to be rendered matched with each rendering parameter according to the rendering parameters matched with each material, the position of each molding surface in each model and the position of each material in each molding surface; and respectively generating a plurality of rendering tasks according to the rendering parameters and the matched region to be rendered to form a rendering task queue.
Further, the commodity server includes a server in a content distribution network.
The device can execute the method provided by the embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 4 is only one example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 4, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16. The computer device 12 may be a device that is attached to a bus.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and PerIPheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk Read-Only Memory (CD-ROM), Digital Video disk (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an Input/Output (I/O) interface 22. Also, computer device 12 may communicate with one or more networks (e.g., Local Area Network (LAN), Wide Area Network (WAN)) via Network adapter 20. As shown, Network adapter 20 communicates with other modules of computer device 12 via bus 18. it should be understood that although not shown in FIG. 4, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to microcode, device drivers, Redundant processing units, external disk drive Arrays of Inesponsive Disks (RAID) systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing, such as implementing the methods provided by any of the embodiments of the present invention, by executing programs stored in the system memory 28.
EXAMPLE five
An embodiment five of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for pre-rendering a commodity according to any of the embodiments of the present invention:
that is, the program when executed by the processor implements: acquiring data to be rendered of a target commodity, wherein the data to be rendered comprises a model, a material and a model surface of the commodity; generating a rendering effect graph of the target commodity according to the data to be rendered; and sending the rendering effect graph to a commodity server for storage, so that the commodity server sends the rendering effect graph to a requester when receiving a display request of the target commodity.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a RAM, a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable CD-ROM, an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a LAN or a WAN, or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A commodity prerendering method is characterized by comprising the following steps:
acquiring data to be rendered of a target commodity, wherein the data to be rendered comprises a model, a material and a model surface of the commodity;
generating a rendering effect graph of the target commodity according to the data to be rendered;
and sending the rendering effect graph to a commodity server for storage, so that the commodity server sends the rendering effect graph to a requester when receiving a display request of the target commodity.
2. The method according to claim 1, wherein the generating a rendering effect map of the target commodity according to the data to be rendered comprises:
inquiring a rendering effect graph matched with the data to be rendered according to the data to be rendered;
if the query result is empty, querying matched rendering parameters in a database according to the data to be rendered, and generating a rendering result of the target commodity;
generating a rendering effect graph of the target commodity according to the generated rendering result;
and if the query result is not null, acquiring the rendering effect graph of the target commodity.
3. The method of claim 1, prior to obtaining data to be rendered for a target commodity, further comprising:
receiving an increasing and changing instruction of data to be rendered, wherein the increasing and changing instruction comprises an increasing instruction and/or a modifying instruction;
and taking the commodity associated with the change instruction as a target commodity.
4. The method according to claim 2, wherein the querying a database for a matched rendering parameter according to the data to be rendered and generating a rendering result of the target commodity comprise:
generating a rendering task queue according to the data to be rendered and the matched rendering parameters;
calling a plurality of rendering servers, and respectively executing rendering tasks in a rendering task queue until all the rendering tasks are completed;
and taking the execution result of each rendering task as the rendering result of the target commodity.
5. The method of claim 4, wherein the invoking of the plurality of rendering servers to respectively execute the rendering tasks in the rendering task queue comprises:
querying an idle rendering server;
if the query result is empty, waiting for a preset time, and re-querying the idle rendering server;
and if the query result is not empty, calling each rendering server respectively to execute the rendering tasks in the rendering task queue.
6. The method of claim 4, wherein generating a rendering task queue according to the data to be rendered and the matched rendering parameters comprises:
inquiring rendering parameters matched with the materials according to the identification information of the model and the identification information of the materials in the data to be rendered;
determining a region to be rendered matched with each rendering parameter according to the rendering parameters matched with each material, the position of each molding surface in each model and the position of each material in each molding surface;
and respectively generating a plurality of rendering tasks according to the rendering parameters and the matched region to be rendered to form a rendering task queue.
7. The method of claim 1, wherein the merchandise server comprises a server in a content distribution network.
8. An article pre-rendering apparatus, comprising:
the system comprises a to-be-rendered data acquisition module, a to-be-rendered data acquisition module and a rendering module, wherein the to-be-rendered data acquisition module is used for acquiring to-be-rendered data of a target commodity, and the to-be-rendered data comprises a model, a material and a model surface of the commodity;
the rendering effect graph generating module is used for generating a rendering effect graph of the target commodity according to the data to be rendered;
and the rendering effect graph storage module is used for sending the rendering effect graph to a commodity server for storage so as to send the rendering effect graph to a requester when the commodity server receives the display request of the target commodity.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of pre-rendering an item of merchandise as claimed in any one of claims 1 to 7 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of pre-rendering an article of manufacture according to any one of claims 1 to 7.
CN201911382946.8A 2019-12-27 2019-12-27 Commodity pre-rendering method and device, computer equipment and storage medium Pending CN111179034A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911382946.8A CN111179034A (en) 2019-12-27 2019-12-27 Commodity pre-rendering method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911382946.8A CN111179034A (en) 2019-12-27 2019-12-27 Commodity pre-rendering method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111179034A true CN111179034A (en) 2020-05-19

Family

ID=70654154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911382946.8A Pending CN111179034A (en) 2019-12-27 2019-12-27 Commodity pre-rendering method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111179034A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112587922A (en) * 2020-12-25 2021-04-02 珠海金山网络游戏科技有限公司 Model display method and device
CN113344669A (en) * 2021-06-18 2021-09-03 东莞市燕秀信息技术有限公司 Method, system and readable storage medium for purchasing customized parts

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103150099A (en) * 2013-04-02 2013-06-12 乐淘奇品网络技术(北京)有限公司 Method for selecting commodity components by using draw strings through webpage
CN103150656A (en) * 2013-04-02 2013-06-12 乐淘奇品网络技术(北京)有限公司 Method for selecting commodity component by using mask through webpage
CN104052803A (en) * 2014-06-09 2014-09-17 国家超级计算深圳中心(深圳云计算中心) Decentralized distributed rendering method and system
CN107454168A (en) * 2017-08-07 2017-12-08 中国地质调查局发展研究中心 Three-dimensional geological model distribution and method for visualizing and system based on snapping technique
CN107890671A (en) * 2017-12-05 2018-04-10 腾讯科技(深圳)有限公司 Threedimensional model rendering intent, device, computer equipment and the storage medium of WEB terminal
CN108304450A (en) * 2017-12-12 2018-07-20 杭州先临三维云打印技术有限公司 The online method for previewing of threedimensional model and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103150099A (en) * 2013-04-02 2013-06-12 乐淘奇品网络技术(北京)有限公司 Method for selecting commodity components by using draw strings through webpage
CN103150656A (en) * 2013-04-02 2013-06-12 乐淘奇品网络技术(北京)有限公司 Method for selecting commodity component by using mask through webpage
CN104052803A (en) * 2014-06-09 2014-09-17 国家超级计算深圳中心(深圳云计算中心) Decentralized distributed rendering method and system
CN107454168A (en) * 2017-08-07 2017-12-08 中国地质调查局发展研究中心 Three-dimensional geological model distribution and method for visualizing and system based on snapping technique
CN107890671A (en) * 2017-12-05 2018-04-10 腾讯科技(深圳)有限公司 Threedimensional model rendering intent, device, computer equipment and the storage medium of WEB terminal
CN108304450A (en) * 2017-12-12 2018-07-20 杭州先临三维云打印技术有限公司 The online method for previewing of threedimensional model and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112587922A (en) * 2020-12-25 2021-04-02 珠海金山网络游戏科技有限公司 Model display method and device
CN112587922B (en) * 2020-12-25 2023-09-19 珠海金山数字网络科技有限公司 Model display method and device
CN113344669A (en) * 2021-06-18 2021-09-03 东莞市燕秀信息技术有限公司 Method, system and readable storage medium for purchasing customized parts

Similar Documents

Publication Publication Date Title
KR102663617B1 (en) Conditional modification of augmented reality objects
CN109947788B (en) Data query method and device
CN111143555B (en) Customer portrait generating method, device, equipment and storage medium based on big data
CN108882025B (en) Video frame processing method and device
US20210225056A1 (en) Systems and Methods for Creating and Delivering Augmented Reality Content
CN111179034A (en) Commodity pre-rendering method and device, computer equipment and storage medium
US10262155B1 (en) Disabling features using feature toggle
KR20220154816A (en) Location Mapping for Large Scale Augmented Reality
CN112835904A (en) Data processing method and data processing device
US20200258304A1 (en) Video map engine system
CN109118456A (en) Image processing method and device
CN111144991A (en) Commodity data processing method, commodity customizing method, commodity data processing device, commodity customizing device, and storage medium
US11706585B2 (en) Location based mobile messaging shopping network
US20210011957A1 (en) Web page designing with content beam to device preview
CN112862934B (en) Method, apparatus, device, medium, and product for processing animation
CN111435936A (en) Cloud host creation method and device, server and computer readable storage medium
CN112449217B (en) Method and device for pushing video, electronic equipment and computer readable medium
CN115761086A (en) Asset model three-dimensional display method and device, storage medium and intelligent terminal
CN111161024B (en) Commodity model updating method and device, computer equipment and storage medium
CN111784376A (en) Method and apparatus for processing information
CN112000746A (en) Data management method and device and server
CN108831012B (en) Vending method and device of vending machine
CN113761327B (en) Scheduling method, equipment and storage medium of recommendation strategy
CN113469877B (en) Object display method, scene display method, device and computer readable medium
CN114527972A (en) Page generation method and device, electronic equipment and computer readable medium

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
CB02 Change of applicant information

Address after: 519085 Building 8, No.1, Tangjiawan Harbin Institute of technology, high tech Zone, Zhuhai City, Guangdong Province

Applicant after: Zhuhai necessary Industrial Technology Co.,Ltd.

Address before: 519085 Building 8, No.1, Tangjiawan Harbin Institute of technology, high tech Zone, Zhuhai City, Guangdong Province

Applicant before: ZHUHAI SUIBIAN TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20200519

RJ01 Rejection of invention patent application after publication