WO2020186865A1 - 液体商品展示方法、终端设备、存储介质及电子设备 - Google Patents
液体商品展示方法、终端设备、存储介质及电子设备 Download PDFInfo
- Publication number
- WO2020186865A1 WO2020186865A1 PCT/CN2019/127554 CN2019127554W WO2020186865A1 WO 2020186865 A1 WO2020186865 A1 WO 2020186865A1 CN 2019127554 W CN2019127554 W CN 2019127554W WO 2020186865 A1 WO2020186865 A1 WO 2020186865A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- liquid
- graphic
- value
- angular velocity
- terminal device
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0641—Electronic shopping [e-shopping] utilising user interfaces specially adapted for shopping
- G06Q30/0643—Electronic shopping [e-shopping] utilising user interfaces specially adapted for shopping graphically representing goods, e.g. 3D product representation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
Definitions
- the present invention relates to the technical field of e-commerce, in particular to a liquid product display method, terminal equipment, storage medium and electronic equipment.
- the present invention provides a liquid product display method, terminal equipment, storage medium and electronic equipment to display the fluid characteristics of the liquid product, thereby enabling consumers to have a more comprehensive understanding of the liquid product.
- an embodiment of the present invention provides a liquid commodity display method, including:
- the second liquid graphic is displayed on the display of the terminal device.
- the first graphic further includes: a container graphic
- the container graphic is used to accommodate the first liquid graphic.
- the fluid characteristic parameter includes at least a fluid viscosity value and a density value.
- the calculation of the liquid level change data in response to the current movement according to the angular velocity value and the fluid characteristic parameter includes:
- the first liquid surface is the liquid surface corresponding to the first liquid pattern, and each characteristic point is the first liquid surface mesh The gridded node;
- the position change value corresponding to each of the characteristic points is calculated according to the velocity value, the fluid viscosity value and the density value of each of the characteristic points, and the Wiener-Stokes equation, wherein the liquid level
- the change data includes the position change value corresponding to each of the characteristic points.
- the determining the second liquid pattern according to the liquid level change data and the first liquid pattern includes:
- a second liquid level is generated according to the second coordinate value of each of the characteristic points, and the second liquid level is a liquid level corresponding to the second liquid pattern.
- the calculation of the liquid level change data in response to the current movement according to the angular velocity value and the fluid characteristic parameter includes:
- the liquid level change data in response to the current movement is calculated.
- the method before calculating the liquid level change data in response to the current motion according to the angular velocity value and the fluid characteristic parameter, the method further includes:
- the angular velocity value is updated according to the current angular velocity value and the preset proportional coefficient.
- the fluid characteristic parameters further include: fluid color parameters and transparency parameters;
- the first liquid graphic includes the body color parameter feature and the transparency parameter feature, and the first liquid graphic is used to characterize the appearance state of the liquid product to be displayed.
- an embodiment of the present invention also provides a terminal device, including:
- the display module is configured to render the generated first graphic according to the preset fluid characteristic parameters of the liquid product to be displayed, and display the first graphic on the display of the terminal device, the first graphic including: the first liquid graphic;
- An obtaining module configured to obtain the angular velocity value of the current movement of the terminal device
- a calculation module configured to calculate liquid level change data in response to the current movement according to the angular velocity value and the fluid characteristic parameter
- a determining module configured to determine a second liquid pattern according to the liquid level change data and the first liquid pattern
- the display module is also used to display the second liquid graphic on the display of the terminal device.
- the first graphic further includes: a container graphic
- the container graphic is used to accommodate the first liquid graphic.
- the fluid characteristic parameter includes at least a fluid viscosity value and a density value.
- the calculation module is specifically used for:
- the first liquid surface is the liquid surface corresponding to the first liquid pattern, and each characteristic point is the first liquid surface mesh The gridded node;
- the position change value corresponding to each of the characteristic points is calculated according to the velocity value, the fluid viscosity value and the density value of each of the characteristic points, and the Wiener-Stokes equation, wherein the liquid level
- the change data includes the position change value corresponding to each of the characteristic points.
- the determining module is specifically used for:
- a second liquid level is generated according to the second coordinate value of each of the characteristic points, and the second liquid level is a liquid level corresponding to the second liquid pattern.
- the calculation module is specifically used for:
- the liquid level change data in response to the current movement is calculated.
- the calculation module is further configured to calculate the rotation angle within a preset time interval according to the angular velocity value
- the terminal device further includes:
- a judging module for judging whether the rotation angle is greater than a preset angle threshold
- the update module is configured to update the angular velocity value according to the current angular velocity value and the preset proportional coefficient when the rotation angle is greater than the preset angle threshold.
- the fluid characteristic parameters further include: fluid color parameters and transparency parameters;
- the first liquid graphic includes the body color parameter feature and the transparency parameter feature, and the first liquid graphic is used to characterize the appearance state of the liquid product to be displayed.
- an embodiment of the present invention also provides an electronic device, including:
- a memory for storing executable instructions of the processor
- a gyroscope which is connected to the processor and is used to detect the angular velocity value of the electronic device
- a display which is connected to the processor and is used to display a graphical interface
- the processor is configured to execute any one of the possible liquid commodity display methods in the first aspect by executing the executable instruction.
- an embodiment of the present invention further provides a storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, any one of the possible liquid commodity display methods in the first aspect is implemented.
- the embodiment of the present invention provides a liquid product display method, terminal device, storage medium, and electronic device.
- the first graphic generated by rendering the preset fluid characteristic parameters of the liquid product to be displayed is displayed on the display of the terminal device.
- the first liquid graphic represents the first graphic of the current fluid state of the liquid product to be displayed, and then the angular velocity value corresponding to the current motion and the fluid characteristic parameters obtained by the terminal device are used to calculate the liquid level change data in response to the current motion, and finally reused
- the liquid level change data and the first liquid graphic determine the second liquid graphic, and display it on the display of the terminal device, so that when the consumer understands the details of the liquid product, the fluid characteristics of the liquid product can be displayed, so that the consumer can Liquid products have a more comprehensive understanding, thereby improving the user's buying experience.
- Fig. 1 is a schematic diagram showing an application scenario of a liquid commodity display method according to an exemplary embodiment of the present invention
- Fig. 2 is a schematic flowchart of a liquid commodity display method according to an exemplary embodiment of the present invention
- FIG. 3 is a schematic flowchart of a second liquid pattern generation method in the embodiment shown in FIG. 2;
- FIG. 4 is a schematic diagram of the first liquid figure in the preset coordinate system in the embodiment shown in FIG. 3;
- FIG. 5 is a schematic diagram of the second liquid figure in the preset coordinate system in the embodiment shown in FIG. 3;
- Fig. 6 is a schematic flowchart of a liquid commodity display method according to another exemplary embodiment of the present invention.
- Fig. 7 is a schematic structural diagram of a terminal device according to an exemplary embodiment of the present invention.
- Fig. 8 is a schematic structural diagram of a terminal device according to another exemplary embodiment of the present invention.
- Fig. 9 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present invention.
- Fig. 1 is a schematic diagram showing an application scenario of a liquid commodity display method according to an exemplary embodiment of the present invention.
- the liquid product display method provided by this embodiment is executed by a terminal device, which can be an electronic device with angular velocity acquisition function, data processing function, and display function, such as a smart phone, a tablet computer, or a personal computer.
- a terminal device can be an electronic device with angular velocity acquisition function, data processing function, and display function, such as a smart phone, a tablet computer, or a personal computer.
- the following uses a smart phone as an application scenario to illustrate.
- the display effect of the liquid product can be viewed in the product detail information.
- the user Before the user turns the smart phone, he first obtains the preset fluid characteristic parameters of the liquid product to be displayed, such as the fluid viscosity value and the density value, and then generates the first graphic according to the preset fluid characteristic parameters and displays it on the terminal device display A first graphic is displayed, where the first graphic includes: a first liquid graphic.
- the aforementioned first graphic may also include a container graphic, and the container graphic is used to accommodate the first liquid graphic.
- the container graphic can be set to mark a transparent container with a capacity of 10 liters, and then the first liquid graphic with a preset liquid ratio is displayed in the container graphic, for example, Assuming that the liquid ratio can be 50%, the display effect is that half of the volume of the container graphic is filled with the first liquid graphic.
- the gyroscope can use the gyroscope to obtain the current angular velocity value of the smartphone, and calculate the liquid level change data in response to the current movement based on the angular velocity value and the fluid characteristic parameters, and then according to the liquid level
- the change data and the first liquid pattern determine the second liquid pattern, and display the generated second liquid pattern on the display of the smart phone.
- the specific display effect is that the liquid level of the liquid product to be displayed in the smart phone responds to the smart phone’s
- the rotation changes dynamically to show the flow effect of liquid products in the smartphone.
- Fig. 2 is a schematic flowchart of a liquid commodity display method according to an exemplary embodiment of the present invention. As shown in Figure 2, the liquid commodity display method provided in this embodiment includes:
- Step 101 Render the generated first graphic according to the preset fluid characteristic parameters of the liquid product to be displayed, and display the first graphic on the display of the terminal device.
- the generated first graphic may be rendered according to the preset fluid characteristic parameters of the liquid product to be displayed, and the first graphic may be displayed on the display of the terminal device.
- the first graphic includes: the first liquid graphic.
- the above-mentioned first graphic may also include a container graphic, wherein the container graphic is used to accommodate the first liquid graphic, and the fluid characteristic parameter includes at least a fluid viscosity value and a density value.
- the above-mentioned fluid characteristic parameters may also include: fluid color parameters and transparency parameters, and the first liquid graphic includes the fluid color parameter characteristics and the transparency parameter characteristics, and The first liquid graphic is used to characterize the appearance state of the liquid product to be displayed. Specifically, for example, if the liquid product to be displayed is red paint, the first liquid graphic can be displayed as a red paint state, and the method of generating virtual graphics based on appearance physical parameters, such as color transparency, is not performed in this embodiment. Specific restrictions.
- Step 102 Obtain the angular velocity value of the current movement of the terminal device.
- the angular velocity value can be acquired through the gyroscope on the terminal device.
- the gyroscope can be used to measure angular velocity and has high dynamic characteristics.
- the gyroscope is an indirect angle measurement device, which actually measures the angular velocity, and then integrates the angular velocity with time to obtain the angle.
- the specific working principle is that a gyroscope is provided inside the gyroscope, and its axis is always parallel to the initial direction due to the gyro effect, so that the rotation direction and angle can be calculated by the deviation from the initial direction.
- various types of sophisticated sensor chips can be used, such as the sensor MPU6050, which contains an ultra-tiny gyroscope.
- the smart phone can be set up vertically with the front side, that is, the display screen facing the user, by default, a Cartesian three-dimensional coordinate system can be established with the direction perpendicular to the smart phone screen outward as the positive direction of the X axis, and used as the reference preset coordinate system.
- Step 103 Calculate the liquid level change data in response to the current movement according to the angular velocity value and the fluid characteristic parameter.
- Fluid simulation is a computer fluid simulation mainly refers to the physical phenomenon combined with fluid simulation
- computer fluid simulation mainly refers to the physical phenomenon, equation and computer graphics combined with fluid simulation. Learned methods to simulate scenes such as sea surface, waves, and smoke.
- the fluid simulation model of this type can be a commercial model such as RealFlow.
- the method for obtaining the liquid level change data is not specifically limited, and it only needs to ensure that the liquid level change data in response to the current movement can be calculated according to the angular velocity value and the fluid characteristic parameters.
- Step 104 Determine a second liquid pattern according to the liquid level change data and the first liquid pattern.
- the second liquid pattern After acquiring the liquid level change data in response to the current movement, the second liquid pattern can be jointly determined by combining the first liquid pattern in the previous state, and the second liquid pattern is the liquid level change result corresponding to the current movement.
- Step 105 Display the second liquid graphic on the display of the terminal device.
- the second liquid pattern may be displayed on the display of the terminal device.
- the refresh frequency of the second liquid pattern dynamic simulation of the liquid level with different accuracy can be realized.
- the first graphic generated by rendering the preset fluid characteristic parameters of the liquid product to be displayed is displayed on the display of the terminal device, and the first graphic characterizing the current fluid state of the liquid product to be displayed is displayed on the display of the terminal device.
- the display on the display of the terminal device can display the fluid characteristics of the liquid product when the consumer knows the details of the liquid product, so that the consumer has a more comprehensive understanding of the liquid product, thereby improving the user's purchasing experience.
- FIG. 3 is a schematic flowchart of the second liquid pattern generation method in the embodiment shown in FIG. 2.
- the second liquid pattern generation method may include:
- Step 1041 Calculate the velocity value of each characteristic point on the first liquid surface according to the angular velocity value, where the first liquid surface is the liquid surface corresponding to the first liquid pattern.
- Fig. 4 is a schematic diagram of the first liquid figure in the preset coordinate system in the embodiment shown in Fig. 3.
- the first liquid surface corresponding to the current first liquid graphic can be meshed, and the first coordinate value of each feature point on the first liquid surface in the preset coordinate system can be determined, and then The velocity value of each characteristic point on the first liquid surface is calculated according to the angular velocity value. Then generate a series of continuous height textures corresponding to this network, which can also be called height maps.
- Each grid vertex corresponds to a pixel of the height map as the height of the liquid plane, thus representing the entire liquid plane.
- Step 1042 according to the velocity value, fluid viscosity value, density value and Wiener-Stokes equation of each feature point, calculate the position change value corresponding to each feature point.
- the position change value corresponding to each characteristic point is calculated according to the speed value, fluid viscosity value and density value of each characteristic point, and the Wiener-Stokes equation, where the liquid level change data includes the corresponding value of each characteristic point.
- Position change value As for the Wiener-Stokes equation, it is the most complete equation used to describe fluid phenomena. This equation is derived from Newton’s second law. The following is the Euler form of the commonly used incompressible viscous NS equations :
- ⁇ is the fluid density
- p is the pressure
- f is the volume force
- u is the speed
- volume force the volume force acting on the fluid volume element is generally proportional to the volume of the fluid element, so the name volume force, gravity and inertial force are proportional to the mass of the fluid element, also known as mass force.
- the pressure is the ratio of the pressure on an object to the area under force, which is called pressure. The pressure is used to compare the effect of pressure. The greater the pressure, the more obvious the effect of pressure.
- the position change value corresponding to each characteristic point is calculated according to the viscosity value, density value, and velocity of the liquid. It is worth noting that in this embodiment, in order to improve the calculation performance, only the change of the liquid surface can be calculated. Therefore, when calculating the characteristic points of the liquid surface, the pressure p is 0 and the volume force f is also 0.
- Step 1043 Calculate the second coordinate value of each feature point according to the first coordinate value of each feature point on the first liquid surface in the preset coordinate system and the position change value corresponding to each feature point.
- the change value calculates the second coordinate value of each feature point.
- Step 1044 Generate a second liquid level according to the second coordinate value of each feature point, where the second liquid level is the liquid level corresponding to the second liquid pattern.
- Fig. 5 is a schematic diagram of the second liquid figure in the preset coordinate system in the embodiment shown in Fig. 3. As shown in FIG. 5, after determining the second coordinate value of each feature point, a second liquid level is generated according to the second coordinate value of each feature point, where the second liquid level is the liquid level corresponding to the second liquid pattern.
- Fig. 6 is a schematic flowchart of a liquid commodity display method according to another exemplary embodiment of the present invention. As shown in Figure 6, the liquid commodity display method provided in this embodiment includes:
- Step 201 Render the generated first graphic according to the preset fluid characteristic parameters of the liquid product to be displayed, and display the first graphic on the display of the terminal device.
- Step 202 Obtain the angular velocity value of the current movement of the terminal device.
- steps 201-203 refers to the description of steps 101-102 in Embodiment 1, which will not be repeated here.
- Step 203 Calculate the rotation angle within a preset time interval, and determine whether the rotation angle is greater than a preset angle threshold. If the judgment result is yes, then step 204 is executed; if the judgment result is no, then step 205 is directly executed.
- the preset maximum If the movement angle is set to 60 degrees, the preset scale factor can be 180 degrees divided by the preset maximum movement angle. It can be seen that the preset scale factor here is 3 times.
- the angular velocity value may be used to calculate the rotation angle within the preset time interval, and it is determined whether the rotation angle is greater than the preset angle threshold, so as to determine whether to update the angular velocity value subsequently.
- the preset angle threshold refers to when the detected rotation angle is greater than the preset angle threshold, and when the rotation angle is less than or equal to the preset angle threshold, the rotation angle at this time is considered to be the currently acquired rotation angle. When the rotation angle is greater than the preset angle threshold, the rotation angle at this time is considered to be the preset angle threshold.
- the rotation angle at this time is considered to be the currently acquired rotation angle. If the detected rotation angle is greater than 60 degrees, then The rotation angle is considered to be 60 degrees.
- Step 204 Update the angular velocity value according to the current angular velocity value and the preset proportional coefficient.
- the angular velocity value is updated according to the current angular velocity value and the preset scale factor, and the current angular velocity value is multiplied by the preset scale factor to enlarge it to simulate the effect of large shaking.
- the updated angular velocity value is used to perform dynamic fluid simulation, so as to calculate the liquid level change data in response to the current movement according to the angular velocity value and the fluid characteristic parameters.
- Step 205 Calculate the liquid level change data in response to the current movement according to the angular velocity value and the fluid characteristic parameter.
- Step 206 Determine a second liquid pattern according to the liquid level change data and the first liquid pattern.
- Step 207 Display the second liquid graphic on the display of the terminal device.
- steps 205-207 refer to the description of steps 103-105 in Embodiment 1, which will not be repeated here.
- Fig. 7 is a schematic structural diagram of a terminal device according to an exemplary embodiment of the present invention. As shown in Figure 7, the terminal device provided in this embodiment includes:
- the display module 301 is configured to render the generated first graphic according to the preset fluid characteristic parameters of the liquid product to be displayed, and display the first graphic on the display of the terminal device, the first graphic including: the first liquid graphic ;
- the obtaining module 302 is configured to obtain the angular velocity value of the current movement of the terminal device
- the calculation module 303 is configured to calculate liquid level change data in response to the current movement according to the angular velocity value and the fluid characteristic parameter;
- the determining module 304 is configured to determine the second liquid pattern according to the liquid level change data and the first liquid pattern
- the display module 301 is also used to display the second liquid graphic on the display of the terminal device.
- the first graphic further includes: a container graphic
- the container graphic is used to accommodate the first liquid graphic.
- the fluid characteristic parameter includes at least a fluid viscosity value and a density value.
- the calculation module 303 is specifically used for:
- the first liquid surface is the liquid surface corresponding to the first liquid pattern, and each characteristic point is the first liquid surface mesh The gridded node;
- the position change value corresponding to each of the characteristic points is calculated according to the velocity value, the fluid viscosity value and the density value of each of the characteristic points, and the Wiener-Stokes equation, wherein the liquid level
- the change data includes the position change value corresponding to each of the characteristic points.
- the determining module 304 is specifically configured to:
- a second liquid level is generated according to the second coordinate value of each of the characteristic points, and the second liquid level is a liquid level corresponding to the second liquid pattern.
- the calculation module 303 is specifically used for:
- the liquid level change data in response to the current movement is calculated.
- FIG. 8 is a schematic structural diagram of a terminal device according to another exemplary embodiment of the present invention.
- the calculation module 303 in the terminal device provided in this embodiment is further configured to calculate a rotation angle within a preset time interval according to the angular velocity value;
- the terminal device provided in this implementation further includes:
- the judging module 305 is configured to judge whether the rotation angle is greater than a preset angle threshold
- the update module 306 is configured to update the angular velocity value according to the current angular velocity value and the preset proportional coefficient when the rotation angle is greater than the preset angle threshold.
- the fluid characteristic parameters further include: fluid color parameters and transparency parameters;
- the first liquid graphic includes the body color parameter feature and the transparency parameter feature, and the first liquid graphic is used to characterize the appearance state of the liquid product to be displayed.
- terminal devices provided in the embodiments shown in Figures 7-8 can be used to implement the liquid commodity display methods provided in the above-mentioned embodiments shown in Figures 2-4.
- the specific implementation methods and technical effects are similar, and will not be repeated here. .
- Fig. 9 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present invention. As shown in FIG. 9, an electronic device provided by this embodiment includes:
- the memory 403 is used to store executable instructions of the processor, and the memory 403 may also be a flash (flash memory);
- a gyroscope 401 which is connected to the processor 402, and is used to detect the angular velocity value of the electronic device;
- a display 404 which is connected to the processor 402 and is used to display a graphical interface
- the processor 402 is configured to execute each step in the foregoing method by executing the executable instruction. For details, refer to the relevant description in the foregoing method embodiment.
- the memory 403 may be independent or integrated with the processor 402.
- the electronic device may further include:
- the bus 405 is used to connect the gyroscope 401, the processor 402, the memory 403, and the display 404.
- This embodiment also provides a readable storage medium in which a computer program is stored.
- a computer program is stored.
- the electronic device executes the methods provided in the various embodiments described above.
- This embodiment also provides a program product, which includes a computer program, and the computer program is stored in a readable storage medium. At least one processor of the electronic device can read the computer program from a readable storage medium, and at least one processor executes the computer program to enable the electronic device to implement the methods provided in the foregoing various embodiments.
- a person of ordinary skill in the art can understand that all or part of the steps in the foregoing method embodiments can be implemented by a program instructing relevant hardware.
- the aforementioned program can be stored in a computer readable storage medium.
- the steps including the foregoing method embodiments are executed; and the foregoing storage medium includes: ROM, RAM, magnetic disk, or optical disk and other media that can store program codes.
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Development Economics (AREA)
- General Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Marketing (AREA)
- Economics (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
一种液体商品展示方法、终端设备、存储介质及电子设备。该方法包括:根据待展示液体商品预设的流体特性参数渲染生成得到的第一图形,并在终端设备的显示器上显示第一图形(101),获取终端设备当前运动的角速度值(102),根据角速度值以及流体特性参数计算响应于当前运动的液面变化数据(103),根据液面变化数据以及第一液体图形确定第二液体图形(104),在终端设备的显示器上显示第二液体图形(105)。该方法可以实现在消费者了解液体商品详情时,能够对液体商品的流体特性进行展示,进而使得消费者对液体商品具有更加全面的了解,从而提高用户的购买体验。
Description
本发明涉及电子商务技术领域,尤其涉及一种液体商品展示方法、终端设备、存储介质及电子设备。
随着互联网和电子商务的迅猛发展,线上销售的商品也日益丰富,其中,许多液体类的产品也开始在电商平台上进行销售,例如,油漆、液体化妆品、液态药品以及液态食品等。
目前,电商平台上对于液体商品的展示大多都是以直接提供商品图片的形式,通过展示实体液体商品的照片来使得消费者能够获取该商品的外观特性。
但是,对于液体商品的其他物理特性,现有的图片展示方式难以充分表达,不利于消费者对液体商品进行全面的了解。
发明内容
本发明提供一种液体商品展示方法、终端设备、存储介质及电子设备,以对液体商品的流体特性进行展示,从而使得消费者对液体商品具有更加全面的了解。
第一方面,本发明实施例提供一种液体商品展示方法,包括:
根据待展示液体商品预设的流体特性参数渲染生成得到的第一图形,并在终端设备的显示器上显示所述第一图形,所述第一图形包括:第一液体图形;
获取所述终端设备当前运动的角速度值,并根据所述角速度值以及所述流体特性参数计算响应于所述当前运动的液面变化数据;
根据所述液面变化数据以及第一液体图形确定第二液体图形;
在所述终端设备的显示器上显示所述第二液体图形。
在一种可能的设计中,所述第一图形还包括:容器图形;
所述容器图形用于容置所述第一液体图形。
在一种可能的设计中,所述流体特性参数至少包括流体粘度值以及密度值。
在一种可能的设计中,所述根据所述角速度值以及所述流体特性参数计算响应于所述当前运动的液面变化数据,包括:
根据所述角速度值计算第一液面上的各个特征点的速度值,所述第一液面为所述第一液体图形对应的液面,各个所述特征点为所述第一液面网格化后的节点;
根据各个所述特征点的所述速度值、所述流体粘度值以及所述密度值以及维纳-斯托克斯方程计算每个所述特征点对应的位置变化值,其中,所述液面变化数据包括每个所述特征点对应的所述位置变化值。
在一种可能的设计中,所述根据所述液面变化数据以及第一液体图形确定第二液体图形,包括:
根据所述第一液面上各个所述特征点在预设坐标系中的第一坐标值以及每个所述特征点对应的所述位置变化值计算各个所述特征点的第二坐标值;
根据各个所述特征点的所述第二坐标值生成第二液面,所述第二液面为所述第二液体图形对应的液面。
在一种可能的设计中,所述根据所述角速度值以及所述流体特性参数计算响应于所述当前运动的液面变化数据,包括:
根据所述角速度值、所述流体粘度值以及所述密度值以及预设动态流体模拟工具计算响应于所述当前运动的液面变化数据。
在一种可能的设计中,在根据所述角速度值以及所述流体特性参数计算响应于所述当前运动的液面变化数据之前,还包括:
根据所述角速度值计算预设时间间隔内的转动角度;
判断所述转动角度是否大于预设角度阈值;
若判断结果为是,则根据当前所述角速度值以及预设比例系数对所述角速度值进行更新。
在一种可能的设计中,所述流体特性参数还包括:流体颜色参数以及透明度参数;
所述第一液体图形包含所述体颜色参数特征以及所述透明度参数特征,所述第一液体图形用于表征所述待展示液体商品的外观状态。
第二方面,本发明实施例还提供一种终端设备,包括:
显示模块,用于根据待展示液体商品预设的流体特性参数渲染生成得到的第一图形,并在终端设备的显示器上显示所述第一图形,所述第一图形包括:第一液体图形;
获取模块,用于获取所述终端设备当前运动的角速度值;
计算模块,用于根据所述角速度值以及所述流体特性参数计算响应于所述当前运动的液面变化数据;
确定模块,用于根据所述液面变化数据以及第一液体图形确定第二液体图形;
所述显示模块,还用于在所述终端设备的显示器上显示所述第二液体图形。
在一种可能的设计中,所述第一图形还包括:容器图形;
所述容器图形用于容置所述第一液体图形。
在一种可能的设计中,所述流体特性参数至少包括流体粘度值以及密度值。
在一种可能的设计中,所述计算模块,具体用于:
根据所述角速度值计算第一液面上的各个特征点的速度值,所述第一液面为所述第一液体图形对应的液面,各个所述特征点为所述第一液面网格化后的节点;
根据各个所述特征点的所述速度值、所述流体粘度值以及所述密度值以及维纳-斯托克斯方程计算每个所述特征点对应的位置变化值,其中,所述液面变化数据包括每个所述特征点对应的所述位置变化值。
在一种可能的设计中,所述确定模块,具体用于:
根据所述第一液面上各个所述特征点在预设坐标系中的第一坐标值以及每个所述特征点对应的所述位置变化值计算各个所述特征点的第二坐标值;
根据各个所述特征点的所述第二坐标值生成第二液面,所述第二液面为所述第二液体图形对应的液面。
在一种可能的设计中,所述计算模块,具体用于:
根据所述角速度值、所述流体粘度值以及所述密度值以及预设动态流体模拟工具计算响应于所述当前运动的液面变化数据。
在一种可能的设计中,所述计算模块,还用于根据所述角速度值计算预设时间间隔内的转动角度;
所述终端设备,还包括:
判断模块,用于判断所述转动角度是否大于预设角度阈值;
更新模块,当所述转动角度是否大于所述预设角度阈值时,根据当前所述角速度值以及预设比例系数对所述角速度值进行更新。
在一种可能的设计中,所述流体特性参数还包括:流体颜色参数以及透明度参数;
所述第一液体图形包含所述体颜色参数特征以及所述透明度参数特征,所述第一液体图形用于表征所述待展示液体商品的外观状态。
第三方面,本发明实施例还提供一种电子设备,包括:
处理器;以及,
存储器,用于存储所述处理器的可执行指令;
陀螺仪,所述陀螺仪与所述处理器连接,用于检测所述电子设备的角速度值;
显示器,所述显示器与所述处理器连接,用于显示图形界面;
其中,所述处理器配置为经由执行所述可执行指令来执行第一方面中任意一种可能的液体商品展示方法。
第四方面,本发明实施例还提供一种存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现第一方面中任意一种可能的液体商品展示方法。
本发明实施例提供的一种液体商品展示方法、终端设备、存储介质及电子设备,通过待展示液体商品预设的流体特性参数渲染生成得到的第一图形,并在终端设备的显示器上显示通过第一液体图形来表征待展示液体商品当前流体状态的第一图形,然后再通过终端设备获取到的当前运动对应的角速度值以及流体特性参数计算响应于当前运动的液面变化数据,最后再利用液面变化数据以及第一液体图形确定第二液体图形,并在终端设备的显示器上进行显示,以在消费者了解液体商品详情时,能够对液体商品的流体特性进行展示,进而使得消费者对液体商品具有更加全面的了解, 从而提高用户的购买体验。
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本发明根据一示例实施例示出的液体商品展示方法的应用场景的示意图;
图2是本发明根据一示例实施例示出的液体商品展示方法的流程示意图;
图3是图2所示实施例中第二液体图形生成方法的流程示意图;
图4是图3所述实施例中第一液体图形在预设坐标系中的示意图;
图5是图3所述实施例中第二液体图形在预设坐标系中的示意图;
图6是本发明根据另一示例实施例示出的液体商品展示方法的流程示意图;
图7是本发明根据一示例实施例示出的终端设备的结构示意图;
图8是本发明根据另一示例实施例示出的终端设备的结构示意图;
图9是本发明根据一示例实施例示出的电子设备的结构示意图。
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些 以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
图1是本发明根据一示例实施例示出的液体商品展示方法的应用场景的示意图。如图1所示,本实施提供的液体商品展示方法由终端设备执行,该终端设备可以是智能手机、平板电脑、个人计算机等具有角速度获取功能、数据处理功能和显示功能的电子设备。下面以在智能手机为应用场景进行举例说明,当用户在相关的电商应用或者电商网页中进行液体商品选购时,可以在商品详情信息中查看该液体商品的展示效果。
在用户未转动智能手机之前,先通过获取待展示液体商品预设的流体特性参数,例如流体粘度值以及密度值,然后根据预设的流体特性参数生成第一图形,并在终端设备的显示器上显示第一图形,其中,第一图形包括:第一液体图形。此外,可选地,上述的第一图形还可以包括容器图形,而容器图形则用于容置第一液体图形。具体地,待展示液体商品的容量为10升时,可以将容器图形设置为标志有容量为10升的透明容器,然后在容器图形中显示预设液体比例的第一液体图形,例如,该预设液体比例可以为50%,则显示效果为在容器图形中的一半容积填充有第一液体图形。
然后,在用户对智能手机进行晃动时,可以通过陀螺仪来获取智能手机当前运动的角速度值,并根据角速度值以及流体特性参数计算响应于当前运动的液面变化数据,然后,再根据液面变化数据以及第一液体图形确定第二液体图形,并在智能手机的显示器上显示生成的第二液体图形,具体的显示效果,是待展示液体商品在智能手机中的液面响应于智能手机的转动发生动态变化,从而在智能手机中展示液体商品的流动效果。
图2是本发明根据一示例实施例示出的液体商品展示方法的流程示意图。如图2所示,本实施例提供的液体商品展示方法,包括:
步骤101、根据待展示液体商品预设的流体特性参数渲染生成得到的第一图形,并在终端设备的显示器上显示第一图形。
具体地,可以根据待展示液体商品预设的流体特性参数渲染生成得到的第一图形,并在终端设备的显示器上显示第一图形,第一图形包括:第 一液体图形。此外,可选地,上述的第一图形还可以包括容器图形,其中,容器图形则用于容置第一液体图形,而流体特性参数至少包括流体粘度值以及密度值。
此外,为了能够更加真实地展示待展示液体商品的物理特性,上述的流体特性参数还可以包括:流体颜色参数以及透明度参数,并在第一液体图形中包含流体颜色参数特征以及透明度参数特征,而第一液体图形用于表征待展示液体商品的外观状态。具体地,例如待展示液体商品为红色的油漆,则可以将第一液体图形显示为红色油漆状态,而对于根据外观物理参数,例如颜色透明度等生成虚拟图形的方法在本实施例中并不进行具体限定。
步骤102、获取终端设备当前运动的角速度值。
具体地,可以通过终端设备上的陀螺仪进行角速度值的获取。具体地,陀螺仪,可以用于测量角速度,具有高动态特性。并且,陀螺仪是一个间接测量角度的器件,实际测量的是角速度,然后将角速度对时间积分才能得到角度。其具体工作原理为陀螺仪内部设置有一个陀螺,它的轴由于陀螺效应始终与初始方向平行,这样就可以通过与初始方向的偏差计算出旋转方向和角度。在实际的设计过程中,可以采用各类精密的传感芯片,例如传感器MPU6050,其内部包含超微小的陀螺。
而对于终端设备,例如智能手机,则可以使用常规事件监听方法来注册陀螺仪事件。例如,可以默认将智能手机垂直,且正面,即显示屏幕面向用户,以垂直于智能手机屏幕向外的方向为X轴正方向建立笛卡尔三维坐标系,将其作为参考预设坐标系。
步骤103、根据角速度值以及流体特性参数计算响应于当前运动的液面变化数据。
具体地,根据角速度值以及流体特性参数进行流体模拟,其中流体模拟是一种计算机流体模拟主要是指结合流体模拟的物理现象,计算机流体模拟主要是指结合流体模拟的物理现象、方程和计算机图形学的方法来模拟海面、海浪、烟雾等场景。通过将角速度值以及流体特性参数输入到流体模拟模型中,可以直接获得液面响应于当前运动的液面变化数据,其中,此类的流体模拟模型可以为RealFlow等商用模型,在本实施例中并不对其液面变化数据获得方式进行具体限定,只需保证可以根据角速度值以及流 体特性参数计算响应于当前运动的液面变化数据即可。
步骤104、根据液面变化数据以及第一液体图形确定第二液体图形。
在获取到响应于当前运动的液面变化数据之后,可以通过结合前一个状态的第一液体图形,共同确定第二液体图形,而第二液体图形即为相应于当前运动的液面变化结果。
步骤105、在终端设备的显示器上显示第二液体图形。
在生成第二液体图形之后,可以在终端设备的显示器上显示第二液体图形。并且,可以通过设定第二液体图形的刷新频率,实现液面不同精度的动态模拟。
在本实施例中,通过待展示液体商品预设的流体特性参数渲染生成得到的第一图形,并在终端设备的显示器上显示通过第一液体图形来表征待展示液体商品当前流体状态的第一图形,然后再通过终端设备获取到的当前运动对应的角速度值以及流体特性参数计算响应于当前运动的液面变化数据,最后再利用液面变化数据以及第一液体图形确定第二液体图形,并在终端设备的显示器上进行显示,以在消费者了解液体商品详情时,能够对液体商品的流体特性进行展示,进而使得消费者对液体商品具有更加全面的了解,从而提高用户的购买体验。
而对于上述实施例中的第二液体图形生成方法,为了能够加快处理速度,还可以采用只对液面进行网格化处理之后,再通过计算流体力学来计算出液面网格各个节点的位置变化,从而通过各个节点的位置变化来获取响应于当前运动的液面变化数据。其中,图3是图2所示实施例中第二液体图形生成方法的流程示意图。如图3所示,在本实施例中,第二液体图形生成方法可以包括:
步骤1041、根据角速度值计算第一液面上的各个特征点的速度值,第一液面为第一液体图形对应的液面。
图4是图3所示实施例中第一液体图形在预设坐标系中的示意图。如图4所示,可以对当前第一液体图形对应的第一液面进行网格化处理之后,确定第一液面上各个特征点在预设坐标系中的第一坐标值,然后,在根据角速度值计算第一液面上的各个特征点的速度值。然后生成一系列对应于这张网络的连续的高度纹理,也可以称为高度图。每个网格顶点对应于一个高度图的像素,作为液体平面高度,从而表示出整个液体平面。
步骤1042、根据各个特征点的所述速度值、流体粘度值、密度值以及维纳-斯托克斯方程计算每个特征点对应的位置变化值。
具体地,根据各个特征点的速度值、流体粘度值以及密度值以及维纳-斯托克斯方程计算每个特征点对应的位置变化值,其中,液面变化数据包括每个特征点对应的位置变化值。而针对维纳-斯托克斯方程,是用于描述流体现象最为完整的方程,该方程是根据牛顿第二定律推导出来的.下面给出了常用的不可压粘性NS方程组的欧拉形式:
针对上述方程,具体地,对于体积力,是作用在流体体积元上的体积力大小一般与流体元体积成正比,故名体积力,重力和惯性力正比于流体元的质量,又称为质量力。而压强,则是物体所受的压力与受力面积之比叫做压强,压强用来比较压力产生的效果,压强越大,压力的作用效果越明显。压强的计算公式是:p=ρgh,压强的单位是帕斯卡,符号是Pa,ρ表示液体的密度,g≈9.8N/kg且在数值上等于重力加速度,h表示液体的深度。
在本实施例中,接着根据现有流体模拟算法比如纳维-斯托克斯方程,依据液体的粘度值、密度值、速度,计算每个特征点对应的位置变化值。值得说明地,在本实施例中为了提高计算性能,可以只计算液体表面的变化,所以计算液体表面各特征点时,压强p为0,体积力f也为0。
步骤1043、根据第一液面上各个特征点在预设坐标系中的第一坐标值以及每个特征点对应的位置变化值计算各个特征点的第二坐标值。
在通过维纳-斯托克斯方程计算每个特征点对应的位置变化值之后,根据第一液面上各个特征点在预设坐标系中的第一坐标值以及每个特征点对应的位置变化值计算各个特征点的第二坐标值。
步骤1044、根据各个特征点的第二坐标值生成第二液面,第二液面为第二液体图形对应的液面。
图5是图3所述实施例中第二液体图形在预设坐标系中的示意图。如图5所示,在确定各个特征点的第二坐标值之后,根据各个特征点的第二坐标值生成第二液面,其中,第二液面为第二液体图形对应的液面。
图6是本发明根据另一示例实施例示出的液体商品展示方法的流程示意图。如图6所示,本实施例提供的液体商品展示方法,包括:
步骤201、根据待展示液体商品预设的流体特性参数渲染生成得到的第一图形,并在终端设备的显示器上显示第一图形。
步骤202、获取终端设备当前运动的角速度值。
值得说明地,步骤201-203的具体实现方式参照实施例一中步骤101-102的描述,这里不再赘述。
步骤203、计算预设时间间隔内的转动角度,并判断转动角度是否大于预设角度阈值。若判断结果为是,则执行步骤204;若判断结果为否,则直接执行步骤205。
由于如果需要对液体商品进行旋转一周则需要旋转360度,而需要查看液体商品大幅度晃动时的动画效果,例如晃动180度,则需要将终端设备旋转半周,但是用户在单手使用终端设备时难以将终端设备旋转半周。
为了便于用户查看某些大幅度晃动时的动画效果,提供一种可能的设计方案,为了确保用户在握住终端设备进行旋转时并且可以较为清晰看到显示器的动画效果,可以将预设的最大活动角度设置为60度,则预设比例系数可以为180度除以预设的最大活动角度,可见,此处预设比例系数为3倍。
具体地,可以利用角速度值计算预设时间间隔内的转动角度,并判断转动角度是否大于预设角度阈值,以确定后续是否对角速度值进行更新。
值得理解地,预设角度阈值指的是当检测到的转动角度大于预设角度阈值,当转动角度小于或等于预设角度阈值,则认为此时的转动角度即为当前获取到的转动角度。而当转动角度大于预设角度阈值,则认为此时的转动角度即为预设角度阈值。
例如,预设角度阈值i60度时,则当检测到的转动角度小于或等于60度,则认为此时的转动角度即为当前获取到的转动角度,如果检测到的转动角度大于60度,则认为转动角度为60度。
步骤204、根据当前角速度值以及预设比例系数对角速度值进行更新。
若转动角度大于预设角度阈值时,则根据当前角速度值以及预设比例系数对角速度值进行更新,通过将当前角速度值乘以预设比例系数对其进行放大以模拟大幅度晃动的效果,然后利用更新后的角速度值进行动态流体模拟,从而根据角速度值以及流体特性参数计算响应于当前运动的液面变化数据。
步骤205、根据角速度值以及流体特性参数计算响应于当前运动的液面变化数据。
步骤206、根据液面变化数据以及第一液体图形确定第二液体图形。
步骤207、在终端设备的显示器上显示第二液体图形。
值得说明地,步骤205-207的具体实现方式参照实施例一中步骤103-105的描述,这里不再赘述。
图7是本发明根据一示例实施例示出的终端设备的结构示意图。如图7所示,本实施例提供的终端设备,包括:
显示模块301,用于根据待展示液体商品预设的流体特性参数渲染生成得到的第一图形,并在终端设备的显示器上显示所述第一图形,所述第一图形包括:第一液体图形;
获取模块302,用于获取所述终端设备当前运动的角速度值;
计算模块303,用于根据所述角速度值以及所述流体特性参数计算响应于所述当前运动的液面变化数据;
确定模块304,用于根据所述液面变化数据以及第一液体图形确定第二液体图形;
所述显示模块301,还用于在所述终端设备的显示器上显示所述第二液体图形。
在一种可能的设计中,所述第一图形还包括:容器图形;
所述容器图形用于容置所述第一液体图形。
在一种可能的设计中,所述流体特性参数至少包括流体粘度值以及密度值。
在一种可能的设计中,所述计算模块303,具体用于:
根据所述角速度值计算第一液面上的各个特征点的速度值,所述第一液面为所述第一液体图形对应的液面,各个所述特征点为所述第一液面网格化后的节点;
根据各个所述特征点的所述速度值、所述流体粘度值以及所述密度值以及维纳-斯托克斯方程计算每个所述特征点对应的位置变化值,其中,所述液面变化数据包括每个所述特征点对应的所述位置变化值。
在一种可能的设计中,所述确定模块304,具体用于:
根据所述第一液面上各个所述特征点在预设坐标系中的第一坐标值以及每个所述特征点对应的所述位置变化值计算各个所述特征点的第二坐标值;
根据各个所述特征点的所述第二坐标值生成第二液面,所述第二液面为所述第二液体图形对应的液面。
在一种可能的设计中,所述计算模块303,具体用于:
根据所述角速度值、所述流体粘度值以及所述密度值以及预设动态流体模拟工具计算响应于所述当前运动的液面变化数据。
在图7所示实施例的基础上,图8是本发明根据另一示例实施例示出的终端设备的结构示意图。如图8所示,本实施例提供的终端设备中的所述计算模块303,还用于根据所述角速度值计算预设时间间隔内的转动角度;
此外,本实施提供的所述终端设备,还包括:
判断模块305,用于判断所述转动角度是否大于预设角度阈值;
更新模块306,当所述转动角度是否大于所述预设角度阈值时,根据当前所述角速度值以及预设比例系数对所述角速度值进行更新。
在一种可能的设计中,所述流体特性参数还包括:流体颜色参数以及透明度参数;
所述第一液体图形包含所述体颜色参数特征以及所述透明度参数特征,所述第一液体图形用于表征所述待展示液体商品的外观状态。
值得说明地,图7-图8所示实施例提供的终端设备,可用于执行上述图2-图4所示实施例提供的液体商品展示方法,具体实现方式和技术效果类似,这里不再赘述。
图9是本发明根据一示例实施例示出的电子设备的结构示意图。如图9所示,本实施例提供的一种电子设备包括:
处理器402;以及,
存储器403,用于存储所述处理器的可执行指令,该存储器403还可以 是flash(闪存);
陀螺仪401,所述陀螺仪401与所述处理器402连接,用于检测所述电子设备的角速度值;
显示器404,所述显示器404与所述处理器402连接,用于显示图形界面;
其中,所述处理器402配置为经由执行所述可执行指令来执行上述方法中的各个步骤。具体可以参见前面方法实施例中的相关描述。
可选地,存储器403既可以是独立的,也可以跟处理器402集成在一起。
当所述存储器403是独立于处理器402之外的器件时,所述电子设备还可以包括:
总线405,用于连接所述陀螺仪401、所述处理器402、所述存储器403以及所述显示器404。
本实施例还提供一种可读存储介质,可读存储介质中存储有计算机程序,当电子设备的至少一个处理器执行该计算机程序时,电子设备执行上述的各种实施方式提供的方法。
本实施例还提供一种程序产品,该程序产品包括计算机程序,该计算机程序存储在可读存储介质中。电子设备的至少一个处理器可以从可读存储介质读取该计算机程序,至少一个处理器执行该计算机程序使得电子设备实施上述的各种实施方式提供的方法。
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或对其中部分或全部技术特征进行等同替换;而这些修改或替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。
Claims (18)
- 一种液体商品展示方法,其特征在于,包括:根据待展示液体商品预设的流体特性参数渲染生成得到的第一图形,并在终端设备的显示器上显示所述第一图形,所述第一图形包括:第一液体图形;获取所述终端设备当前运动的角速度值,并根据所述角速度值以及所述流体特性参数计算响应于所述当前运动的液面变化数据;根据所述液面变化数据以及第一液体图形确定第二液体图形;在所述终端设备的显示器上显示所述第二液体图形。
- 根据权利要求1所述的液体商品展示方法,其特征在于,所述第一图形还包括:容器图形;所述容器图形用于容置所述第一液体图形。
- 根据权利要求2所述的液体商品展示方法,其特征在于,所述流体特性参数至少包括流体粘度值以及密度值。
- 根据权利要求3所述的液体商品展示方法,其特征在于,所述根据所述角速度值以及所述流体特性参数计算响应于所述当前运动的液面变化数据,包括:根据所述角速度值计算第一液面上的各个特征点的速度值,所述第一液面为所述第一液体图形对应的液面,各个所述特征点为所述第一液面网格化后的节点;根据各个所述特征点的所述速度值、所述流体粘度值以及所述密度值以及维纳-斯托克斯方程计算每个所述特征点对应的位置变化值,其中,所述液面变化数据包括每个所述特征点对应的所述位置变化值。
- 根据权利要求4所述的液体商品展示方法,其特征在于,所述根据所述液面变化数据以及第一液体图形确定第二液体图形,包括:根据所述第一液面上各个所述特征点在预设坐标系中的第一坐标值以及每个所述特征点对应的所述位置变化值计算各个所述特征点的第二坐标值;根据各个所述特征点的所述第二坐标值生成第二液面,所述第二液面为所述第二液体图形对应的液面。
- 根据权利要求3所述的液体商品展示方法,其特征在于,所述根据所 述角速度值以及所述流体特性参数计算响应于所述当前运动的液面变化数据,包括:根据所述角速度值、所述流体粘度值以及所述密度值以及预设动态流体模拟工具计算响应于所述当前运动的液面变化数据。
- 根据权利要求3所述的液体商品展示方法,其特征在于,在根据所述角速度值以及所述流体特性参数计算响应于所述当前运动的液面变化数据之前,还包括:根据所述角速度值计算预设时间间隔内的转动角度;判断所述转动角度是否大于预设角度阈值;若判断结果为是,则根据当前所述角速度值以及预设比例系数对所述角速度值进行更新。
- 根据权利要求1-7中任意一项所述的液体商品展示方法,其特征在于,所述流体特性参数还包括:流体颜色参数以及透明度参数;所述第一液体图形包含所述体颜色参数特征以及所述透明度参数特征,所述第一液体图形用于表征所述待展示液体商品的外观状态。
- 一种终端设备,其特征在于,包括:显示模块,用于根据待展示液体商品预设的流体特性参数渲染生成得到的第一图形,并在终端设备的显示器上显示所述第一图形,所述第一图形包括:第一液体图形;获取模块,用于获取所述终端设备当前运动的角速度值;计算模块,用于根据所述角速度值以及所述流体特性参数计算响应于所述当前运动的液面变化数据;确定模块,用于根据所述液面变化数据以及第一液体图形确定第二液体图形;所述显示模块,还用于在所述终端设备的显示器上显示所述第二液体图形。
- 根据权利要求9所述的终端设备,其特征在于,所述第一图形还包括:容器图形;所述容器图形用于容置所述第一液体图形。
- 根据权利要求10所述的终端设备,其特征在于,所述流体特性参数至少包括流体粘度值以及密度值。
- 根据权利要求11所述的终端设备,其特征在于,所述计算模块,具体用于:根据所述角速度值计算第一液面上的各个特征点的速度值,所述第一液面为所述第一液体图形对应的液面,各个所述特征点为所述第一液面网格化后的节点;根据各个所述特征点的所述速度值、所述流体粘度值以及所述密度值以及维纳-斯托克斯方程计算每个所述特征点对应的位置变化值,其中,所述液面变化数据包括每个所述特征点对应的所述位置变化值。
- 根据权利要求12所述的终端设备,其特征在于,所述确定模块,具体用于:根据所述第一液面上各个所述特征点在预设坐标系中的第一坐标值以及每个所述特征点对应的所述位置变化值计算各个所述特征点的第二坐标值;根据各个所述特征点的所述第二坐标值生成第二液面,所述第二液面为所述第二液体图形对应的液面。
- 根据权利要求11所述的终端设备,其特征在于,所述计算模块,具体用于:根据所述角速度值、所述流体粘度值以及所述密度值以及预设动态流体模拟工具计算响应于所述当前运动的液面变化数据。
- 根据权利要求11所述的终端设备,其特征在于,所述计算模块,还用于根据所述角速度值计算预设时间间隔内的转动角度;所述终端设备,还包括:判断模块,用于判断所述转动角度是否大于预设角度阈值;更新模块,当所述转动角度是否大于所述预设角度阈值时,根据当前所述角速度值以及预设比例系数对所述角速度值进行更新。
- 根据权利要求9-15中任意一项所述的终端设备,其特征在于,所述流体特性参数还包括:流体颜色参数以及透明度参数;所述第一液体图形包含所述体颜色参数特征以及所述透明度参数特征,所述第一液体图形用于表征所述待展示液体商品的外观状态。
- 一种电子设备,其特征在于,包括:处理器;以及,存储器,用于存储所述处理器的可执行指令;陀螺仪,所述陀螺仪与所述处理器连接,用于检测所述电子设备的角速度值;显示器,所述显示器与所述处理器连接,用于显示图形界面;其中,所述处理器配置为经由执行所述可执行指令来执行权利要求1至8任一项所述的液体商品展示方法。
- 一种存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现权利要求1至8任一项所述的液体商品展示方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910218803.7A CN111724225A (zh) | 2019-03-21 | 2019-03-21 | 液体商品展示方法、终端设备、存储介质及电子设备 |
| CN201910218803.7 | 2019-03-21 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020186865A1 true WO2020186865A1 (zh) | 2020-09-24 |
Family
ID=72519547
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2019/127554 Ceased WO2020186865A1 (zh) | 2019-03-21 | 2019-12-23 | 液体商品展示方法、终端设备、存储介质及电子设备 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN111724225A (zh) |
| WO (1) | WO2020186865A1 (zh) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113554397B (zh) * | 2021-07-31 | 2024-01-30 | 杭州拼便宜网络科技有限公司 | 物流规划方法、装置、电子设备和计算机可读介质 |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104050187A (zh) * | 2013-03-14 | 2014-09-17 | 阿里巴巴集团控股有限公司 | 搜索结果展示方法及系统 |
| CN104539795A (zh) * | 2014-12-26 | 2015-04-22 | 小米科技有限责任公司 | 数据流量的显示方法、装置及移动终端 |
| US20150248863A1 (en) * | 2014-02-28 | 2015-09-03 | Toshiba Tec Kabushiki Kaisha | Commodity information browsing system, server apparatus, and control program |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102521863B (zh) * | 2011-12-01 | 2014-04-02 | 武汉大学 | 一种基于粒子系统的三维流体标矢量统一动态表示方法 |
| CN106202806A (zh) * | 2016-07-25 | 2016-12-07 | 西南科技大学 | 一种用于虚拟实验的液体柱模拟方法 |
| CN107273617B (zh) * | 2017-06-20 | 2019-07-26 | 南开大学 | 一种利用浅水波方程获得表面流流体运动的实时模拟方法及系统 |
-
2019
- 2019-03-21 CN CN201910218803.7A patent/CN111724225A/zh active Pending
- 2019-12-23 WO PCT/CN2019/127554 patent/WO2020186865A1/zh not_active Ceased
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104050187A (zh) * | 2013-03-14 | 2014-09-17 | 阿里巴巴集团控股有限公司 | 搜索结果展示方法及系统 |
| US20150248863A1 (en) * | 2014-02-28 | 2015-09-03 | Toshiba Tec Kabushiki Kaisha | Commodity information browsing system, server apparatus, and control program |
| CN104539795A (zh) * | 2014-12-26 | 2015-04-22 | 小米科技有限责任公司 | 数据流量的显示方法、装置及移动终端 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111724225A (zh) | 2020-09-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106575160B (zh) | 根据用户视点识别动作的界面提供方法及提供装置 | |
| US20150134302A1 (en) | 3-dimensional digital garment creation from planar garment photographs | |
| CN105144283B (zh) | 用于基于设备旋转的图像操纵的方法及装置 | |
| CN112313605A (zh) | 增强现实环境中对象的放置和操纵 | |
| US9779484B2 (en) | Dynamic motion path blur techniques | |
| AU2016262789B2 (en) | 3d modeling by tracing 2d image ui | |
| CN103180818A (zh) | 动画页面翻转 | |
| US20160063669A1 (en) | Dynamic Motion Path Blur User Interface | |
| KR20110117020A (ko) | 패키징된 상품 제품 이미지로부터 3d 모델의 자동 생성 | |
| CN104571887B (zh) | 一种基于静态图片的动态交互方法和装置 | |
| CN110926334A (zh) | 测量方法、装置、电子设备及存储介质 | |
| KR20090027142A (ko) | 입자법에 기초한 유체 시뮬레이션의 표면 구축 방법, 그프로그램, 및 그 프로그램을 저장한 기억 매체 | |
| CN105631916A (zh) | 画笔与液体模拟 | |
| CN106780659A (zh) | 一种二维态势图的生成方法及电子设备 | |
| CN110458954B (zh) | 一种等高线生成方法、装置及设备 | |
| CN113590002A (zh) | 笔迹形成方法、笔迹形成装置及电子设备 | |
| JP2025128093A5 (zh) | ||
| US10521932B2 (en) | Digital paint generation based on digital paint properties | |
| CN106842984B (zh) | 一种实时贴图渲染的动态电子仪表仿真方法 | |
| WO2020186865A1 (zh) | 液体商品展示方法、终端设备、存储介质及电子设备 | |
| CN112580213A (zh) | 电场线的显示图像的生成方法和装置、存储介质 | |
| TW200907851A (en) | Facade rendering system | |
| CN111651055A (zh) | 城市虚拟沙盘展示方法、装置、计算机设备及存储介质 | |
| CN104574473B (zh) | 一种基于静态图片生成动态效果的方法和装置 | |
| WO2026077301A1 (zh) | 三维模型的姿态调整方法、装置、电子设备及存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19920129 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 02/02/2022) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 19920129 Country of ref document: EP Kind code of ref document: A1 |