WO2024066810A9 - Dynamic weather effect display method, computer storage medium and electronic device - Google Patents

Dynamic weather effect display method, computer storage medium and electronic device Download PDF

Info

Publication number
WO2024066810A9
WO2024066810A9 PCT/CN2023/114315 CN2023114315W WO2024066810A9 WO 2024066810 A9 WO2024066810 A9 WO 2024066810A9 CN 2023114315 W CN2023114315 W CN 2023114315W WO 2024066810 A9 WO2024066810 A9 WO 2024066810A9
Authority
WO
WIPO (PCT)
Prior art keywords
weather
electronic device
dynamic
effect
user
Prior art date
Application number
PCT/CN2023/114315
Other languages
French (fr)
Chinese (zh)
Other versions
WO2024066810A1 (en
Inventor
李海燕
高云龙
熊棉
Original Assignee
荣耀终端有限公司
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
Priority claimed from CN202211201954.XA external-priority patent/CN117793239A/en
Application filed by 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2024066810A1 publication Critical patent/WO2024066810A1/en
Publication of WO2024066810A9 publication Critical patent/WO2024066810A9/en

Links

Abstract

The present application relates to the technical field of communications. Disclosed are a dynamic weather effect display method, a computer storage medium and an electronic device. In the present application, an electronic device may display and simulate, along with the movement of a user who holds the electronic device, a dynamic effect of the weather corresponding to a weather type in a real scene, which dynamic effect is viewed by a user at a changing viewing angle in the real scene, thereby improving the visual experience and the human-machine interaction experience of the user. The method comprises: an electronic device acquiring the current weather type in response to an operation of a user opening a weather application, and starting at least one sensor, wherein data collected by a gyroscope is used for determining a viewing angle of a display screen of the electronic device, and the viewing angle comprises head-up view, bottom view and top view; and the electronic device displaying a first interface, wherein the first interface comprises a dynamic effect picture of a weather effect element corresponding to the weather type, and the dynamic effect picture is used for simulating, along with the movement of a user who holds the electronic device, a dynamic effect of the weather corresponding to the weather type in a real scene, which dynamic effect is viewed by a user at the viewing angle in the real scene.

Description

一种天气动态效果显示方法、计算机存储介质和电子设备A weather dynamic effect display method, computer storage medium and electronic device
本申请要求于2022年09月29日提交国家知识产权局、申请号为202211201954.X、发明名称为“一种天气动态效果显示方法、计算机存储介质和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed with the State Intellectual Property Office on September 29, 2022, with application number 202211201954.X and invention name “A method for displaying dynamic weather effects, computer storage medium and electronic device”, the entire contents of which are incorporated by reference in this application.
技术领域Technical Field
本申请实施例涉及终端技术领域,尤其涉及一种天气动态效果显示方法、计算机存储介质和电子设备。The embodiments of the present application relate to the field of terminal technology, and in particular to a method for displaying dynamic weather effects, a computer storage medium, and an electronic device.
背景技术Background technique
随着信息技术的迅猛发展,智能终端等电子设备可以向人们展示天气状态,如此,人们可以更方便地获取天气信息。With the rapid development of information technology, electronic devices such as smart terminals can display weather conditions to people, so that people can obtain weather information more conveniently.
目前,为了提高人们对天气状态的体验,较逼真的动态天气效果也不断被开发出来,智能终端等电子设备便可以向人们展示较逼真的动态天气效果。At present, in order to improve people's experience of weather conditions, more realistic dynamic weather effects are constantly being developed, and electronic devices such as smart terminals can show people more realistic dynamic weather effects.
然而,在目前的智能终端等电子设备内,由于智能终端等电子设备的显示屏幕还只是通过单一的动态天气效果模板体现当前的天气状态,用户容易产生单调的感觉,导致用户的体验度不高。However, in current electronic devices such as smart terminals, since the display screens of electronic devices such as smart terminals only reflect the current weather conditions through a single dynamic weather effect template, users are prone to feel monotony, resulting in a low user experience.
发明内容Summary of the invention
本申请实施例提供了一种天气动态效果显示方法、计算机存储介质和电子设备,用于解决前述智能终端等电子设备的显示屏幕还只是通过单一的动态天气效果模板体现当前的天气状态,用户容易产生单调的感觉,导致用户的体验度不高的问题。The embodiments of the present application provide a method for displaying dynamic weather effects, a computer storage medium and an electronic device, which are used to solve the problem that the display screens of electronic devices such as the aforementioned smart terminals only reflect the current weather conditions through a single dynamic weather effect template, which easily produces a monotonous feeling for users and leads to a low user experience.
为达到上述目的,本申请的实施例采用如下技术方案:To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
第一方面,本申请提供一种天气动态效果显示方法,该方法应用于电子设备,该电子设备包括至少一个传感器,至少一个传感器包括陀螺仪,该方法包括:响应于用户打开天气应用的操作,获取当前的天气类型,启动至少一个传感器;陀螺仪采集的数据用于确定电子设备的显示屏的可视角度,可视角度包括平视、仰视和俯视;电子设备显示第一界面;其中,第一界面包括天气类型对应的天气效果元素的动态效果图;动态效果图用于模拟现实场景中,用户以可视角度观看到的现实场景下天气类型对应天气的动态效果。In a first aspect, the present application provides a method for displaying dynamic weather effects, which is applied to an electronic device, wherein the electronic device includes at least one sensor, and the at least one sensor includes a gyroscope. The method includes: in response to a user's operation of opening a weather application, obtaining the current weather type, and starting at least one sensor; the data collected by the gyroscope is used to determine the viewing angle of the display screen of the electronic device, and the viewing angles include horizontal, upward and downward viewing; the electronic device displays a first interface; wherein the first interface includes a dynamic effect diagram of a weather effect element corresponding to the weather type; the dynamic effect diagram is used to simulate the dynamic effect of the weather corresponding to the weather type in a real scene, which is viewed by the user at a visual angle in a real scene.
如此,电子设备会随着用户手持电子设备的移动,显示模拟现实场景中,用户以可视角度观看到的现实场景下天气类型对应天气的动态效果,提高用户的视觉体验。In this way, the electronic device will display the dynamic weather effects corresponding to the weather type in the real scene viewed by the user at a visual angle in a simulated real scene as the user moves the electronic device, thereby improving the user's visual experience.
在第一方面的一种可能的实现方式中,在可视角度是平视的情况下,动态效果图呈现天气类型对应的天气效果元素由电子设备的第一端向第二端的方向,且与显示屏所在平面的夹角小于第一预设角度;其中,第一端为电子设备上远离地面的一端,第二端为电子设备上靠近地面的一端。 In a possible implementation of the first aspect, when the viewing angle is horizontal, the dynamic effect diagram presents that the weather effect elements corresponding to the weather type are directed from the first end of the electronic device to the second end, and the angle with the plane where the display screen is located is less than a first preset angle; wherein the first end is the end of the electronic device away from the ground, and the second end is the end of the electronic device close to the ground.
如此,电子设备会随着用户手持电子设备的移动,显示模拟现实场景中,用户以平视观看到的现实场景下天气类型对应天气的动态效果,提高用户的视觉体验。In this way, the electronic device will display the dynamic weather effects corresponding to the weather type in the real scene that the user sees with a head up view in a simulated real scene as the user moves the electronic device, thereby improving the user's visual experience.
在第一方面的另一种可能的实现方式中,在可视角度是仰视的情况下,动态效果图呈现天气类型对应的天气效果元素由电子设备的第一端向第二端移动,且天气类型对应的天气效果元素由小变大的动态效果。In another possible implementation of the first aspect, when the viewing angle is looking up, the dynamic effect diagram presents a dynamic effect in which the weather effect element corresponding to the weather type moves from the first end to the second end of the electronic device, and the weather effect element corresponding to the weather type changes from small to large.
如此,电子设备会随着用户手持电子设备的移动,显示模拟现实场景中,用户以仰视观看到的现实场景下天气类型对应天气的动态效果,提高用户的视觉体验。In this way, the electronic device will display the dynamic weather effects corresponding to the weather type in the real scene that the user sees by looking up in a simulated real scene as the user moves the electronic device, thereby improving the user's visual experience.
在第一方面的另一种可能的实现方式中,在可视角度是俯视的情况下,动态效果图呈现天气类型对应的天气效果元素由高处向平面落下、且天气类型对应的天气效果元素由小变大,落在平面上的动态效果。In another possible implementation of the first aspect, when the viewing angle is a top-down view, the dynamic effect diagram presents a dynamic effect in which the weather effect elements corresponding to the weather type fall from a high place to a plane, and the weather effect elements corresponding to the weather type change from small to large and fall on the plane.
如此,电子设备会随着用户手持电子设备的移动,显示模拟现实场景中,用户以俯视观看到的现实场景下天气类型对应天气的动态效果,提高用户的视觉体验。In this way, the electronic device will display the dynamic weather effects corresponding to the weather type in the real scene viewed by the user from a bird's-eye view in a simulated real scene as the user moves the electronic device, thereby improving the user's visual experience.
在第一方面的另一种可能的实现方式中,至少一个传感器还包括高度仪,高度仪用于采集显示屏距离地面的高度;显示屏距离地面的高度影响动态效果图呈现的天气类型对应的天气效果元素落在平面时与平面的接触面积;其中,显示屏距离地面的高度越大,接触面积越大;显示屏距离地面的高度越小,接触面积越小。In another possible implementation of the first aspect, at least one sensor also includes an altimeter, which is used to collect the height of the display screen from the ground; the height of the display screen from the ground affects the contact area between the weather effect elements corresponding to the weather type presented in the dynamic effect diagram and the plane when they fall on the plane; wherein, the greater the height of the display screen from the ground, the greater the contact area; the smaller the height of the display screen from the ground, the smaller the contact area.
如此,电子设备会随着用户手持电子设备的移动,显示模拟现实场景中,用户以离地距离的远近观看到的现实场景下天气类型对应天气的动态效果,提高用户的视觉体验。In this way, the electronic device will display the dynamic weather effects corresponding to the weather type in the real scene viewed by the user at a different distance from the ground in a simulated real scene as the user moves the electronic device, thereby improving the user's visual experience.
在第一方面的另一种可能的实现方式中,至少一个传感器还包括距离传感器,距离传感器用于采集显示屏与用户之间的距离;距离影响动态效果图呈现的天气类型对应的天气效果元素的大小,以及天气类型对应的天气效果元素的大小的疏密程度;其中,距离越大,天气类型对应的天气效果元素越小,天气类型对应的天气效果元素越密集;距离越小,天气类型对应的天气效果元素越大,天气类型对应的天气效果元素越稀疏。In another possible implementation of the first aspect, at least one sensor also includes a distance sensor, which is used to collect the distance between the display screen and the user; the distance affects the size of the weather effect elements corresponding to the weather type presented in the dynamic effect graph, and the density of the size of the weather effect elements corresponding to the weather type; wherein, the greater the distance, the smaller the weather effect elements corresponding to the weather type, and the denser the weather effect elements corresponding to the weather type; the smaller the distance, the larger the weather effect elements corresponding to the weather type, and the sparser the weather effect elements corresponding to the weather type.
如此,电子设备会随着用户手持电子设备的移动,显示模拟现实场景中,用户以近大远疏观看到的现实场景下天气类型对应天气的动态效果,提高用户的视觉体验。In this way, the electronic device will display the dynamic weather effects corresponding to the weather types in the real scene viewed by the user from near and far as the user moves the electronic device, thereby improving the user's visual experience.
在第一方面的另一种可能的实现方式中,响应于用户打开天气应用的操作,获取当前的天气类型,启动至少一个传感器,包括:响应于用户打开天气应用的操作,获取当前的天气类型,并显示第二界面;其中,第二界面包括天气类型对应的动态天气效果的图像;响应于用户在第二界面的第一手势操作,启动至少一个传感器;其中,第一手势操作用于触发电子设备启动天气应用的预设动效功能,预设动效功能用于展示动态效果图。In another possible implementation of the first aspect, in response to a user opening a weather application, obtaining the current weather type and starting at least one sensor, including: in response to a user opening a weather application, obtaining the current weather type and displaying a second interface; wherein the second interface includes an image of a dynamic weather effect corresponding to the weather type; in response to a first gesture operation of the user on the second interface, starting at least one sensor; wherein the first gesture operation is used to trigger the electronic device to start a preset motion effect function of the weather application, and the preset motion effect function is used to display a dynamic effect image.
如此,通过提示用户并开启预设动效功能,可以提升用户体验。In this way, the user experience can be improved by prompting the user and turning on the preset motion effect function.
在第一方面的另一种可能的实现方式中,天气类型包括雨天、雪天或冰雹中的任一种。In another possible implementation manner of the first aspect, the weather type includes any one of rainy days, snowy days, or hail.
第二方面,提供了一种电子设备,该电子设备包括处理器和存储器;存储器用于存储代码指令;处理器用于运行代码指令,以执行如第一方面中任一种可能的设计方式中的天线控制方法。 In a second aspect, an electronic device is provided, which includes a processor and a memory; the memory is used to store code instructions; the processor is used to run the code instructions to execute an antenna control method in any possible design method as in the first aspect.
第三方面,提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当指令在计算机上运行时,使得计算机执行如第一方面中任一种可能的设计方式中的天线控制方法。In a third aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes an antenna control method in any possible design manner in the first aspect.
其中,第二方面和第三方面中任一种设计方式所带来的技术效果可参见第一方面中不同设计方式所带来的技术效果,此处不再赘述。Among them, the technical effects brought about by any design method in the second aspect and the third aspect can refer to the technical effects brought about by different design methods in the first aspect, and will not be repeated here.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1A根据本申请的一些实施例,示出了一种天气动态效果显示方法的应用场景示意图;FIG1A is a schematic diagram showing an application scenario of a method for displaying dynamic weather effects according to some embodiments of the present application;
图1B根据本申请的一些实施例,示出了一种天气动态效果显示方法的应用场景示意图;FIG. 1B is a schematic diagram showing an application scenario of a method for displaying dynamic weather effects according to some embodiments of the present application;
图2根据本申请的一些实施例,对应于图1A和图1B,示出了一种手机100的显示屏的可视角度是平视的情况下,手机100中天气动态效果的显示界面示意图;FIG. 2 , corresponding to FIG. 1A and FIG. 1B , shows a schematic diagram of a display interface of a dynamic weather effect in a mobile phone 100 when the viewing angle of the display screen of the mobile phone 100 is horizontal according to some embodiments of the present application;
图3A根据本申请的一些实施例,示出了一种天气动态效果显示方法的应用场景示意图;FIG3A is a schematic diagram showing an application scenario of a method for displaying dynamic weather effects according to some embodiments of the present application;
图3B根据本申请的一些实施例,示出了一种天气动态效果显示方法的应用场景示意图;FIG3B is a schematic diagram showing an application scenario of a method for displaying dynamic weather effects according to some embodiments of the present application;
图4根据本申请的一些实施例,对应于图3A和图3B,示出了一种手机100的显示屏的可视角度是仰视的情况下,手机100中天气动态效果的显示界面示意图;FIG. 4 , corresponding to FIG. 3A and FIG. 3B , shows a schematic diagram of a display interface of a dynamic weather effect in a mobile phone 100 when the viewing angle of the display screen of the mobile phone 100 is upward viewing according to some embodiments of the present application;
图5A根据本申请的一些实施例,示出了一种天气动态效果显示方法的应用场景示意图;FIG5A is a schematic diagram showing an application scenario of a method for displaying dynamic weather effects according to some embodiments of the present application;
图5B根据本申请的一些实施例,示出了一种天气动态效果显示方法的应用场景示意图;FIG5B is a schematic diagram showing an application scenario of a method for displaying dynamic weather effects according to some embodiments of the present application;
图6根据本申请的一些实施例,对应于图5A和图5B,示出了一种手机100的显示屏的可视角度是俯视的情况下,手机100中天气动态效果的显示界面示意图;FIG. 6 , corresponding to FIG. 5A and FIG. 5B , shows a schematic diagram of a display interface of a dynamic weather effect in a mobile phone 100 when the viewing angle of the display screen of the mobile phone 100 is a top view according to some embodiments of the present application;
图7根据本申请的一些实施例,示出了一种天气动态效果显示方法的流程示意图;FIG7 is a schematic diagram showing a flow chart of a method for displaying dynamic weather effects according to some embodiments of the present application;
图8根据本申请的一些实施例,示出了一种界面的示意图;FIG8 shows a schematic diagram of an interface according to some embodiments of the present application;
图9根据本申请的一些实施例,示出了一种界面的示意图;FIG9 is a schematic diagram showing an interface according to some embodiments of the present application;
图10根据本申请的一些实施例,示出了一种适应于本申请的手机100的结构示意图。FIG10 shows a schematic structural diagram of a mobile phone 100 adapted to the present application according to some embodiments of the present application.
具体实施方式Detailed ways
本申请的说明性实施例包括但不限于一种天气动态效果显示方法、计算机存储介质和电子设备。The illustrative embodiments of the present application include, but are not limited to, a method for displaying dynamic weather effects, a computer storage medium, and an electronic device.
下面结合附图,对本申请的实施例进行描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。本领域普通技术人员可知,随着技术的发展和新场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The following describes the embodiments of the present application in conjunction with the accompanying drawings. Obviously, the described embodiments are only embodiments of a part of the present application, rather than all embodiments. It is known to those skilled in the art that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
为了解决前述背景技术中的技术问题,本申请实施例提供一种天气动态效果显示方法,该方法应用于电子设备,电子设备包括至少一个传感器,至少一个传感器包括陀螺仪,该方法包括:In order to solve the technical problems in the aforementioned background technology, an embodiment of the present application provides a method for displaying dynamic weather effects, which is applied to an electronic device, the electronic device includes at least one sensor, and the at least one sensor includes a gyroscope, and the method includes:
电子设备响应于用户打开天气应用的操作,获取当前的天气类型,启动至少一个传感器;其中,陀螺仪采集的数据用于确定电子设备的显示屏的可视角度,可视角度包括平视、仰视和俯视。In response to a user opening a weather application, the electronic device obtains the current weather type and activates at least one sensor; wherein the data collected by the gyroscope is used to determine the viewing angle of the display screen of the electronic device, and the viewing angle includes horizontal, upward and downward viewing.
在用户手持电子设备移动的过程中,电子设备的显示屏的可视角度一般会变化,电子设备检测到该变化后,电子设备基于该变化显示第一界面;其中,第一界面包括天气类型对应的天气效果元素的动态效果图;动态效果图用于模拟现实场景中,用户以可视角度观看到的现实场景下天气类型对应天气的动态效果。When a user moves a handheld electronic device, the viewing angle of the display screen of the electronic device generally changes. After the electronic device detects the change, the electronic device displays a first interface based on the change; wherein the first interface includes a dynamic rendering of weather effect elements corresponding to the weather type; the dynamic rendering is used to simulate the dynamic effect of the weather corresponding to the weather type in the real scene, which is viewed by the user at a visual angle in the real scene.
如此,电子设备会随着用户手持电子设备的移动,显示模拟现实场景中,用户以变动的可视角度观看到的现实场景下天气类型对应天气的动态效果,提高用户的视觉体验以及人机交互体验。In this way, the electronic device will display the dynamic weather effects corresponding to the weather type in the real scene viewed by the user at a changing viewing angle in a simulated real scene as the user moves the electronic device, thereby improving the user's visual experience and human-computer interaction experience.
具体地,在可视角度是平视的情况下,动态效果图呈现天气类型对应的天气效果元素由电子设备的第一端向第二端的方向,且与显示屏所在平面的夹角小于第一预设角度;其中,第一端为电子设备上远离地面的一端,第二端为电子设备上靠近地面的一端。下面以电子设备为手机,天气类型为雨天为例,进一步详细介绍本申请的技术方案。Specifically, when the viewing angle is horizontal, the weather effect element corresponding to the weather type presented in the dynamic effect diagram is from the first end of the electronic device to the second end, and the angle with the plane where the display screen is located is less than the first preset angle; wherein the first end is the end of the electronic device away from the ground, and the second end is the end of the electronic device close to the ground. The following takes the electronic device as a mobile phone and the weather type as a rainy day as an example to further describe the technical solution of the present application.
例如,图1A根据本申请的一些实施例,示出了一种天气动态效果显示方法的应用场景示意图。图1B根据本申请的一些实施例,示出了一种天气动态效果显示方法的应用场景示意图。图2根据本申请的一些实施例,对应于图1A和图1B,示出了一种手机100的显示屏的可视角度是平视的情况下,手机100中天气动态效果的显示界面示意图。For example, FIG. 1A shows a schematic diagram of an application scenario of a method for displaying dynamic weather effects according to some embodiments of the present application. FIG. 1B shows a schematic diagram of an application scenario of a method for displaying dynamic weather effects according to some embodiments of the present application. FIG. 2 shows a schematic diagram of a display interface of dynamic weather effects in a mobile phone 100 when the viewing angle of the display screen of the mobile phone 100 is level viewing, corresponding to FIG. 1A and FIG. 1B according to some embodiments of the present application.
如图1A所示,该应用场景中包括用户和用户手持的手机100。手机100的显示屏的可视角度为平视。如图1B所示,手机100的显示屏的平视范围可以为角度A对应的视角范围。手机100响应于用户打开天气应用的操作,手机100获取当前的天气类型为雨天,启动手机100的陀螺仪,该陀螺仪采集的数据可以确定手机100的显示屏的可视角度为平视。手机100显示第一界面,其中,第一界面包括雨天对应的雨天效果元素的动态效果图;该动态效果图用于模拟现实场景中,用户以平视观看到的现实场景下雨天的动态效果。例如,如图2所示,在可视角度是平视的情况下,雨天动态效果图呈现雨天对应的雨滴效果元素由手机100的第一端向第二端且与显示屏所在平面的夹角为零度移动;其中,第一端为手机100上远离地面的一端,第二端为手机100上靠近地面的一端。As shown in FIG1A , the application scenario includes a user and a mobile phone 100 held by the user. The viewing angle of the display screen of the mobile phone 100 is horizontal. As shown in FIG1B , the horizontal range of the display screen of the mobile phone 100 can be the viewing angle range corresponding to angle A. In response to the user's operation of opening the weather application, the mobile phone 100 obtains that the current weather type is rainy, and starts the gyroscope of the mobile phone 100. The data collected by the gyroscope can determine that the viewing angle of the display screen of the mobile phone 100 is horizontal. The mobile phone 100 displays a first interface, wherein the first interface includes a dynamic effect diagram of a rainy day effect element corresponding to a rainy day; the dynamic effect diagram is used to simulate the dynamic effect of a rainy day in a real scene that the user sees horizontally in a real scene. For example, as shown in FIG2 , when the viewing angle is horizontal, the rainy day dynamic effect diagram shows that the raindrop effect element corresponding to the rainy day moves from the first end of the mobile phone 100 to the second end and the angle with the plane where the display screen is located is zero degrees; wherein the first end is the end of the mobile phone 100 away from the ground, and the second end is the end of the mobile phone 100 close to the ground.
在可视角度是仰视的情况下,动态效果图呈现天气类型对应的天气效果元素由电子设备的第一端向第二端移动,且天气类型对应的天气效果元素由小变大的动态效果。When the viewing angle is looking up, the dynamic effect diagram presents a dynamic effect in which the weather effect element corresponding to the weather type moves from the first end to the second end of the electronic device, and the weather effect element corresponding to the weather type changes from small to large.
例如,图3A根据本申请的一些实施例,示出了一种天气动态效果显示方法的应用场景示意图。图3B根据本申请的一些实施例,示出了一种天气动态效果显示方法的应用场景示意图。图4根据本申请的一些实施例,对应于图3A和图3B,示出了一种手机100的显示屏的可视角度是仰视的情况下,手机100中天气动态效果的显示界面示意图。For example, FIG. 3A shows a schematic diagram of an application scenario of a method for displaying dynamic weather effects according to some embodiments of the present application. FIG. 3B shows a schematic diagram of an application scenario of a method for displaying dynamic weather effects according to some embodiments of the present application. FIG. 4 shows a schematic diagram of a display interface of dynamic weather effects in a mobile phone 100 when the viewing angle of the display screen of the mobile phone 100 is upward, corresponding to FIG. 3A and FIG. 3B, according to some embodiments of the present application.
如图3A所示,手机100的显示屏的可视角度为仰视。如图3B所示,手机100的显示屏的平视范围可以为角度B对应的视角范围。手机100响应于用户打开天气应用的操作,手机100获取当前的天气类型为雨天,启动手机100的陀螺仪,该陀螺仪采集的数据可以确定手机100的显示屏的可视角度为仰视。手机100显示第一界面,其中,第一界面包括雨天对应的雨天效果元素的动态效果图;该动态效果图用于模拟现实场景中,用户以仰视观看到的现实场景下雨天的动态效果。例如,如图4所示,在可视角度是仰视的情况下,雨天动态效果图呈现雨天对应的雨滴效果元素由手机100的第一端向第二端移动,且雨天对应的雨滴效果元素由小变大的动态效果。As shown in FIG3A , the viewing angle of the display screen of the mobile phone 100 is looking up. As shown in FIG3B , the horizontal viewing range of the display screen of the mobile phone 100 may be the viewing angle range corresponding to angle B. In response to the user's operation of opening the weather application, the mobile phone 100 obtains that the current weather type is rainy, and starts the gyroscope of the mobile phone 100. The data collected by the gyroscope can determine that the viewing angle of the display screen of the mobile phone 100 is looking up. The mobile phone 100 displays a first interface, wherein the first interface includes a dynamic effect diagram of a rainy day effect element corresponding to a rainy day; the dynamic effect diagram is used to simulate the dynamic effect of a rainy day in a real scene that the user sees by looking up in a real scene. For example, as shown in FIG4 , when the viewing angle is looking up, the rainy day dynamic effect diagram presents a dynamic effect that the raindrop effect element corresponding to the rainy day moves from the first end to the second end of the mobile phone 100, and the raindrop effect element corresponding to the rainy day changes from small to large.
在可视角度是俯视的情况下,动态效果图呈现天气类型对应的天气效果元素由高处向平面落下、且天气类型对应的天气效果元素由小变大,落在平面上的动态效果。When the viewing angle is a bird's-eye view, the dynamic effect diagram presents a dynamic effect in which the weather effect elements corresponding to the weather type fall from a high place to a plane, and the weather effect elements corresponding to the weather type change from small to large and fall on the plane.
例如,图5A根据本申请的一些实施例,示出了一种天气动态效果显示方法的应用场景示意图。图5B根据本申请的一些实施例,示出了一种天气动态效果显示方法的应用场景示意图。图6根据本申请的一些实施例,对应于图5A和图5B,示出了一种手机100的显示屏的可视角度是俯视的情况下,手机100中天气动态效果的显示界面示意图。For example, FIG. 5A shows a schematic diagram of an application scenario of a method for displaying dynamic weather effects according to some embodiments of the present application. FIG. 5B shows a schematic diagram of an application scenario of a method for displaying dynamic weather effects according to some embodiments of the present application. FIG. 6 shows a schematic diagram of a display interface of dynamic weather effects in a mobile phone 100 when the viewing angle of the display screen of the mobile phone 100 is a top view, corresponding to FIG. 5A and FIG. 5B, according to some embodiments of the present application.
如图5A所示,手机100的显示屏的可视角度为俯视。如图5B所示,手机100的显示屏的平视范围可以为角度C对应的视角范围。手机100响应于用户打开天气应用的操作,手机100获取当前的天气类型为雨天,启动手机100的陀螺仪,该陀螺仪采集的数据可以确定手机100的显示屏的可视角度为俯视。手机100显示第一界面,其中,第一界面包括雨天对应的雨天效果元素的动态效果图;该动态效果图用于模拟现实场景中,用户以俯视观看到的现实场景下雨天的动态效果。例如,如图6所示,雨天动态效果图呈现雨天对应的雨滴效果元素由高处向平面落下、且雨天对应的雨滴效果元素由小变大,落在平面上溅起水花的动态效果。As shown in FIG5A , the viewing angle of the display screen of the mobile phone 100 is a top view. As shown in FIG5B , the horizontal viewing range of the display screen of the mobile phone 100 may be a viewing angle range corresponding to angle C. In response to the user's operation of opening the weather application, the mobile phone 100 obtains that the current weather type is rainy, and starts the gyroscope of the mobile phone 100. The data collected by the gyroscope can determine that the viewing angle of the display screen of the mobile phone 100 is a top view. The mobile phone 100 displays a first interface, wherein the first interface includes a dynamic effect diagram of a rainy day effect element corresponding to a rainy day; the dynamic effect diagram is used to simulate the dynamic effect of a rainy day in a real scene that the user sees from a top view. For example, as shown in FIG6 , the rainy day dynamic effect diagram presents a dynamic effect of a raindrop effect element corresponding to a rainy day falling from a high place to a plane, and the raindrop effect element corresponding to a rainy day changes from small to large, and falls on a plane and splashes water.
本申请实施例中,天气类型主要分雨天、雪天和冰雹等。当然,本申请实施例中所述的天气类型包括但不限于上述天气。例如,雨天还可以细分为:小雨、中雨、大雨、暴雨等;雪天还可以细分为:小雪、中雪、大雪、暴雪等。电子设备可以是各种能够显示动态效果的设备,例如手机、平板等。In the embodiment of the present application, the weather types are mainly divided into rainy days, snowy days, hail, etc. Of course, the weather types described in the embodiment of the present application include but are not limited to the above weather. For example, rainy days can also be subdivided into: light rain, moderate rain, heavy rain, rainstorm, etc.; snowy days can also be subdivided into: light snow, moderate snow, heavy snow, blizzard, etc. The electronic device can be various devices that can display dynamic effects, such as mobile phones, tablets, etc.
可以理解,第一界面包括多个预设模块显示信息和动态天气效果,或者多个预设模块显示信息和动态效果图。例如,多个预设模块显示信息可以包括10天预报、每日温度、空气质量、降水、紫外线指数、日落/日出时间、风、湿度、“体感”温度、能见度和压力。用户可以点击这些模块以获取更多信息。It is understood that the first interface includes multiple preset modules displaying information and dynamic weather effects, or multiple preset modules displaying information and dynamic effect diagrams. For example, multiple preset modules displaying information may include 10-day forecast, daily temperature, air quality, precipitation, UV index, sunset/sunrise time, wind, humidity, "feeling" temperature, visibility, and pressure. Users can click on these modules to get more information.
在一些实施例中,第一界面的预设区域显示动态天气效果或者动态效果图,并不覆盖多个预设模块的显示信息。具体地,若部分预设模块显示信息显示在预设区域,则部分预设模块显示信息显示在动态天气效果或者动态效果图的图层之上。如此,既能使用户清楚地看到预设模块的显示信息,又能使用户看到完整的动态天气效果,提高用户体验。In some embodiments, the preset area of the first interface displays dynamic weather effects or dynamic effect graphs, and does not cover the display information of multiple preset modules. Specifically, if part of the display information of the preset modules is displayed in the preset area, part of the display information of the preset modules is displayed on the layer of the dynamic weather effect or dynamic effect graph. In this way, the user can clearly see the display information of the preset modules and can also see the complete dynamic weather effect, thereby improving the user experience.
图7根据本申请的一些实施例,示出了一种天气动态效果显示方法的流程示意图。如图7所示,该流程的执行主体可以是手机100,该流程包括如下步骤:FIG7 shows a schematic diagram of a method for displaying dynamic weather effects according to some embodiments of the present application. As shown in FIG7 , the execution subject of the process may be the mobile phone 100, and the process includes the following steps:
701:响应于用户打开天气应用的操作,获取当前的天气类型,启动手机100的至少一个传感器;其中,陀螺仪采集的数据用于确定手机100的显示屏的可视角度,可视角度包括平视、仰视和俯视。701: In response to the user opening the weather application, the current weather type is obtained and at least one sensor of the mobile phone 100 is activated; wherein the data collected by the gyroscope is used to determine the viewing angle of the display screen of the mobile phone 100, and the viewing angle includes horizontal, upward and downward viewing.
其中,手机100的主界面包括多个应用的图标,该多个应用包括天气应用。上述用户打开天气应用的操作,可以是:用户对天气应用的图标的点击操作。一般而言,手机100响应于用户打开天气应用的操作,可以获取当前的天气类型,并显示天气应用的主页。该天气应用的主页(如第二界面)可以包括天气类型对应的动态天气效果的图像。The main interface of the mobile phone 100 includes icons of multiple applications, including a weather application. The user's operation of opening the weather application may be: a user clicking on the icon of the weather application. Generally speaking, in response to the user's operation of opening the weather application, the mobile phone 100 may obtain the current weather type and display the homepage of the weather application. The homepage of the weather application (such as the second interface) may include an image of a dynamic weather effect corresponding to the weather type.
而本申请实施例中,手机100响应于用户打开天气应用的操作,不仅要获取当前的天气类型,还要启动陀螺仪。其中,手机100启动陀螺仪用于确定手机100的显示屏的可视角度,以在天气应用中,为用户模拟出:现实场景中,用户以可视角度观看到的现实场景下天气类型对应天气的动态效果。In the embodiment of the present application, in response to the user opening the weather application, the mobile phone 100 not only obtains the current weather type, but also activates the gyroscope. The mobile phone 100 activates the gyroscope to determine the viewing angle of the display screen of the mobile phone 100, so as to simulate for the user in the weather application: in the real scene, the weather type in the real scene viewed by the user at the viewing angle corresponds to the dynamic effect of the weather.
在一些实施例中,手机100响应于用户打开天气应用的操作,可以获取当前的天气类型,然后先显示天气应用的主页(如第二界面)。然后,手机100响应于用户在第二界面的操作,再启动陀螺仪,以便于为用户呈现上述基于天气类型的人机交互动态效果。具体的,上述701可以包括701a-701b:In some embodiments, in response to the user's operation of opening the weather application, the mobile phone 100 can obtain the current weather type, and then display the homepage of the weather application (such as the second interface). Then, in response to the user's operation on the second interface, the mobile phone 100 activates the gyroscope to present the above-mentioned human-computer interaction dynamic effect based on the weather type to the user. Specifically, the above-mentioned 701 may include 701a-701b:
701a:响应于用户打开天气应用的操作,手机100获取当前的天气类型,并显示第二界面。701a: In response to the user opening the weather application, the mobile phone 100 obtains the current weather type and displays the second interface.
其中,第二界面包括天气类型对应的动态天气效果的图像。例如,图8根据本申请的一些实施例,示出了一种界面的示意图,如图8所示,在当前视角下,若天气类型是雨天,则第二界面包括雨滴从手机100的顶端朝底端落下的动态效果。The second interface includes an image of a dynamic weather effect corresponding to the weather type. For example, FIG8 shows a schematic diagram of an interface according to some embodiments of the present application. As shown in FIG8, in the current viewing angle, if the weather type is rainy, the second interface includes a dynamic effect of raindrops falling from the top to the bottom of the mobile phone 100.
701b:响应于用户在第二界面的第一手势操作,手机100启动后置摄像头。其中,第一手势操作用于触发手机100启动天气应用的预设动效功能,预设动效功能用于展示动态效果图。701b: In response to the user's first gesture operation on the second interface, the mobile phone 100 activates the rear camera. The first gesture operation is used to trigger the mobile phone 100 to activate a preset dynamic effect function of the weather application, and the preset dynamic effect function is used to display a dynamic effect diagram.
可以理解,预设动效功能是指手机100可以应用本申请实施例提供的天气动态效果的显示方案,展示动态效果图。It can be understood that the preset dynamic effect function means that the mobile phone 100 can apply the display solution of weather dynamic effects provided in the embodiment of the present application to display dynamic effect pictures.
在一种实现方式中,第一手势操作可以是用户在第二界面输入的预设形状的手势,如√型手势或者S型手势等任一种手势。In one implementation, the first gesture operation may be a gesture of a preset shape input by the user on the second interface, such as a √-shaped gesture or an S-shaped gesture.
在另一种实现方式中,第二界面还包括用于触发手机100启动天气应用的预设动效功能的功能开关或者弹出窗口。该第一手势操作可以为用户开启前述功能开关或者选择前述弹出窗口中的确定选项。例如,图9根据本申请的一些实施例,示出了一种界面示意图,如图9所示,第二界面还包括弹出窗口1,弹出窗口1包括提示信息:“是否开启天气应用的动效功能?”。弹出窗口1还包括确定按钮2和取消按钮,确定按钮2用于触发手机100启动天气应用的预设动效功能,第一手势操作可以是用户单击确定按钮2。In another implementation, the second interface also includes a function switch or pop-up window for triggering the mobile phone 100 to start the preset dynamic effect function of the weather application. The first gesture operation can turn on the aforementioned function switch for the user or select the confirmation option in the aforementioned pop-up window. For example, Figure 9 shows an interface schematic diagram according to some embodiments of the present application. As shown in Figure 9, the second interface also includes a pop-up window 1, and the pop-up window 1 includes a prompt message: "Do you want to turn on the dynamic effect function of the weather application?". The pop-up window 1 also includes an OK button 2 and a Cancel button. The OK button 2 is used to trigger the mobile phone 100 to start the preset dynamic effect function of the weather application. The first gesture operation can be that the user clicks the OK button 2.
本申请实施例中,手机100可以在第二界面为用户提供开启上述预设动效功能的开关入口,由用户选择是否开启上述预设动效功能。这样,手机100便可以按照用户的意愿选择是否开启上述预设动效功能。In the embodiment of the present application, the mobile phone 100 can provide the user with a switch entrance for turning on the preset motion effect function on the second interface, and the user can choose whether to turn on the preset motion effect function. In this way, the mobile phone 100 can choose whether to turn on the preset motion effect function according to the user's wishes.
在另一些实施例中,手机100不仅可以在第二界面为用户提供开启预设动效功能的开关入口,还可以在第二界面显示上述预设动效功能对应的效果视频。如此,可以方便用户基于该效果视频,选择是否启动预设动效功能。 In other embodiments, the mobile phone 100 can not only provide the user with a switch entrance for turning on the preset motion effect function on the second interface, but also display the effect video corresponding to the preset motion effect function on the second interface. In this way, the user can conveniently choose whether to turn on the preset motion effect function based on the effect video.
702:显示第一界面,其中,第一界面包括天气类型对应的天气效果元素的动态效果图;动态效果图用于模拟现实场景中,用户以可视角度观看到的现实场景下天气类型对应天气的动态效果。702: Display the first interface, wherein the first interface includes a dynamic effect diagram of the weather effect element corresponding to the weather type; the dynamic effect diagram is used to simulate the dynamic effect of the weather corresponding to the weather type in the real scene in which the user views the real scene from a visual angle.
具体地,在可视角度是平视的情况下,动态效果图呈现天气类型对应的天气效果元素由电子设备的第一端向第二端的方向,且与显示屏所在平面的夹角小于第一预设角度;其中,第一端为电子设备上远离地面的一端,第二端为电子设备上靠近地面的一端。下面以电子设备为手机,天气类型为雨天为例,进一步详细介绍本申请的技术方案。Specifically, when the viewing angle is horizontal, the weather effect element corresponding to the weather type presented in the dynamic effect diagram is from the first end of the electronic device to the second end, and the angle with the plane where the display screen is located is less than the first preset angle; wherein the first end is the end of the electronic device away from the ground, and the second end is the end of the electronic device close to the ground. The following takes the electronic device as a mobile phone and the weather type as a rainy day as an example to further describe the technical solution of the present application.
例如,图1A根据本申请的一些实施例,示出了一种天气动态效果显示方法的应用场景示意图。图1B根据本申请的一些实施例,示出了一种天气动态效果显示方法的应用场景示意图。图2根据本申请的一些实施例,对应于图1A和图1B,示出了一种手机100的显示屏的可视角度是平视的情况下,手机100中天气动态效果的显示界面示意图。For example, FIG. 1A shows a schematic diagram of an application scenario of a method for displaying dynamic weather effects according to some embodiments of the present application. FIG. 1B shows a schematic diagram of an application scenario of a method for displaying dynamic weather effects according to some embodiments of the present application. FIG. 2 shows a schematic diagram of a display interface of dynamic weather effects in a mobile phone 100 when the viewing angle of the display screen of the mobile phone 100 is level viewing, corresponding to FIG. 1A and FIG. 1B according to some embodiments of the present application.
如图1A所示,该应用场景中包括用户和用户手持的手机100。手机100的显示屏的可视角度为平视。如图1B所示,手机100的显示屏的平视范围可以为角度A对应的视角范围。手机100响应于用户打开天气应用的操作,手机100获取当前的天气类型为雨天,启动手机100的陀螺仪,该陀螺仪采集的数据可以确定手机100的显示屏的可视角度为平视。手机100显示第一界面,其中,第一界面包括雨天对应的雨天效果元素的动态效果图;该动态效果图用于模拟现实场景中,用户以平视观看到的现实场景下雨天的动态效果。例如,如图2所示,在可视角度是平视的情况下,雨天动态效果图呈现雨天对应的雨滴效果元素由手机100的第一端向第二端且与显示屏所在平面的夹角为零度移动;其中,第一端为手机100上远离地面的一端,第二端为手机100上靠近地面的一端。As shown in FIG1A , the application scenario includes a user and a mobile phone 100 held by the user. The viewing angle of the display screen of the mobile phone 100 is horizontal. As shown in FIG1B , the horizontal range of the display screen of the mobile phone 100 can be the viewing angle range corresponding to angle A. In response to the user's operation of opening the weather application, the mobile phone 100 obtains that the current weather type is rainy, and starts the gyroscope of the mobile phone 100. The data collected by the gyroscope can determine that the viewing angle of the display screen of the mobile phone 100 is horizontal. The mobile phone 100 displays a first interface, wherein the first interface includes a dynamic effect diagram of a rainy day effect element corresponding to a rainy day; the dynamic effect diagram is used to simulate the dynamic effect of a rainy day in a real scene that the user sees horizontally in a real scene. For example, as shown in FIG2 , when the viewing angle is horizontal, the rainy day dynamic effect diagram shows that the raindrop effect element corresponding to the rainy day moves from the first end of the mobile phone 100 to the second end and the angle with the plane where the display screen is located is zero degrees; wherein the first end is the end of the mobile phone 100 away from the ground, and the second end is the end of the mobile phone 100 close to the ground.
在可视角度是仰视的情况下,动态效果图呈现天气类型对应的天气效果元素由电子设备的第一端向第二端移动,且天气类型对应的天气效果元素由小变大的动态效果。When the viewing angle is looking up, the dynamic effect diagram presents a dynamic effect in which the weather effect element corresponding to the weather type moves from the first end to the second end of the electronic device, and the weather effect element corresponding to the weather type changes from small to large.
例如,图3A根据本申请的一些实施例,示出了一种天气动态效果显示方法的应用场景示意图。图3B根据本申请的一些实施例,示出了一种天气动态效果显示方法的应用场景示意图。图4根据本申请的一些实施例,对应于图3A和图3B,示出了一种手机100的显示屏的可视角度是仰视的情况下,手机100中天气动态效果的显示界面示意图。For example, FIG. 3A shows a schematic diagram of an application scenario of a method for displaying dynamic weather effects according to some embodiments of the present application. FIG. 3B shows a schematic diagram of an application scenario of a method for displaying dynamic weather effects according to some embodiments of the present application. FIG. 4 shows a schematic diagram of a display interface of dynamic weather effects in a mobile phone 100 when the viewing angle of the display screen of the mobile phone 100 is upward, corresponding to FIG. 3A and FIG. 3B, according to some embodiments of the present application.
如图3A所示,手机100的显示屏的可视角度为仰视。如图3B所示,手机100的显示屏的平视范围可以为角度B对应的视角范围。手机100响应于用户打开天气应用的操作,手机100获取当前的天气类型为雨天,启动手机100的陀螺仪,该陀螺仪采集的数据可以确定手机100的显示屏的可视角度为仰视。手机100显示第一界面,其中,第一界面包括雨天对应的雨天效果元素的动态效果图;该动态效果图用于模拟现实场景中,用户以仰视观看到的现实场景下雨天的动态效果。例如,如图4所示,在可视角度是仰视的情况下,雨天动态效果图呈现雨天对应的雨滴效果元素由手机100的第一端向第二端移动,且雨天对应的雨滴效果元素由小变大的动态效果。As shown in FIG3A , the viewing angle of the display screen of the mobile phone 100 is looking up. As shown in FIG3B , the horizontal viewing range of the display screen of the mobile phone 100 may be the viewing angle range corresponding to angle B. In response to the user's operation of opening the weather application, the mobile phone 100 obtains that the current weather type is rainy, and starts the gyroscope of the mobile phone 100. The data collected by the gyroscope can determine that the viewing angle of the display screen of the mobile phone 100 is looking up. The mobile phone 100 displays a first interface, wherein the first interface includes a dynamic effect diagram of a rainy day effect element corresponding to a rainy day; the dynamic effect diagram is used to simulate the dynamic effect of a rainy day in a real scene that the user sees by looking up in a real scene. For example, as shown in FIG4 , when the viewing angle is looking up, the rainy day dynamic effect diagram presents a dynamic effect that the raindrop effect element corresponding to the rainy day moves from the first end to the second end of the mobile phone 100, and the raindrop effect element corresponding to the rainy day changes from small to large.
在可视角度是俯视的情况下,动态效果图呈现天气类型对应的天气效果元素由高处向平面落下、且天气类型对应的天气效果元素由小变大,落在平面上的动态效果。When the viewing angle is a bird's-eye view, the dynamic effect diagram presents a dynamic effect in which the weather effect elements corresponding to the weather type fall from a high place to a plane, and the weather effect elements corresponding to the weather type change from small to large and fall on the plane.
例如,图5A根据本申请的一些实施例,示出了一种天气动态效果显示方法的应用场景示意图。图5B根据本申请的一些实施例,示出了一种天气动态效果显示方法的应用场景示意图。图6根据本申请的一些实施例,对应于图5A和图5B,示出了一种手机100的显示屏的可视角度是俯视的情况下,手机100中天气动态效果的显示界面示意图。For example, FIG. 5A shows a schematic diagram of an application scenario of a method for displaying dynamic weather effects according to some embodiments of the present application. FIG. 5B shows a schematic diagram of an application scenario of a method for displaying dynamic weather effects according to some embodiments of the present application. FIG. 6 shows a schematic diagram of a display interface of dynamic weather effects in a mobile phone 100 when the viewing angle of the display screen of the mobile phone 100 is a top view, corresponding to FIG. 5A and FIG. 5B, according to some embodiments of the present application.
如图5A所示,手机100的显示屏的可视角度为俯视。如图5B所示,手机100的显示屏的平视范围可以为角度C对应的视角范围。手机100响应于用户打开天气应用的操作,手机100获取当前的天气类型为雨天,启动手机100的陀螺仪,该陀螺仪采集的数据可以确定手机100的显示屏的可视角度为俯视。手机100显示第一界面,其中,第一界面包括雨天对应的雨天效果元素的动态效果图;该动态效果图用于模拟现实场景中,用户以俯视观看到的现实场景下雨天的动态效果。例如,如图6所示,雨天动态效果图呈现雨天对应的雨滴效果元素由高处向平面落下、且雨天对应的雨滴效果元素由小变大,落在平面上溅起水花的动态效果。As shown in FIG5A , the viewing angle of the display screen of the mobile phone 100 is a top view. As shown in FIG5B , the horizontal viewing range of the display screen of the mobile phone 100 may be a viewing angle range corresponding to angle C. In response to the user's operation of opening the weather application, the mobile phone 100 obtains that the current weather type is rainy, and starts the gyroscope of the mobile phone 100. The data collected by the gyroscope can determine that the viewing angle of the display screen of the mobile phone 100 is a top view. The mobile phone 100 displays a first interface, wherein the first interface includes a dynamic effect diagram of a rainy day effect element corresponding to a rainy day; the dynamic effect diagram is used to simulate the dynamic effect of a rainy day in a real scene viewed by a user from a top view in a real scene. For example, as shown in FIG6 , the rainy day dynamic effect diagram presents a dynamic effect of a raindrop effect element corresponding to a rainy day falling from a high place to a plane, and the raindrop effect element corresponding to a rainy day changes from small to large, and falls on a plane and splashes water.
在本申请实施例中,手机100除了基于手机100的可视角度,模拟现实场景中,用户以变动的可视角度观看到的现实场景下天气类型对应天气的动态效果,还可以更进一步地基于手机100离地的竖直距离和/或与手机100的水平距离,模拟现实场景中,用户以变动的前述竖直距离和/或水平距离观看到的现实场景下天气类型对应天气的动态效果。In the embodiment of the present application, in addition to simulating the dynamic effects of the weather corresponding to the weather type in the real scene viewed by the user with a changing viewing angle based on the viewing angle of the mobile phone 100, the mobile phone 100 can also further simulate the dynamic effects of the weather corresponding to the weather type in the real scene viewed by the user with a changing vertical distance and/or horizontal distance from the mobile phone 100 based on the vertical distance of the mobile phone 100 from the ground and/or the horizontal distance from the mobile phone 100.
在一些实施例中,手机100的至少一个传感器还包括高度仪,高度仪用于采集显示屏距离地面的高度;显示屏距离地面的高度影响动态效果图呈现的天气类型对应的天气效果元素落在平面时与平面的接触面积;其中,显示屏距离地面的高度越大,接触面积越大;显示屏距离地面的高度越小,接触面积越小。In some embodiments, at least one sensor of mobile phone 100 also includes an altimeter, which is used to collect the height of the display screen from the ground; the height of the display screen from the ground affects the contact area between the weather effect element corresponding to the weather type presented in the dynamic effect diagram and the plane when it falls on the plane; wherein, the greater the height of the display screen from the ground, the greater the contact area; the smaller the height of the display screen from the ground, the smaller the contact area.
如此,电子设备会随着用户手持电子设备的移动,显示模拟现实场景中,用户以离地距离的远近观看到的现实场景下天气类型对应天气的动态效果,提高用户的视觉体验。In this way, the electronic device will display the dynamic weather effects corresponding to the weather type in the real scene viewed by the user at a different distance from the ground in a simulated real scene as the user moves the electronic device, thereby improving the user's visual experience.
在一些实施例中,手机100的至少一个传感器还包括距离传感器,距离传感器用于采集显示屏与用户之间的距离;距离影响动态效果图呈现的天气类型对应的天气效果元素的大小,以及天气类型对应的天气效果元素的大小的疏密程度;其中,距离越大,天气类型对应的天气效果元素越小,天气类型对应的天气效果元素越密集;距离越小,天气类型对应的天气效果元素越大,天气类型对应的天气效果元素越稀疏。In some embodiments, at least one sensor of mobile phone 100 also includes a distance sensor, which is used to collect the distance between the display screen and the user; the distance affects the size of the weather effect elements corresponding to the weather type presented in the dynamic effect graph, as well as the density of the size of the weather effect elements corresponding to the weather type; wherein, the greater the distance, the smaller the weather effect elements corresponding to the weather type, and the denser the weather effect elements corresponding to the weather type; the smaller the distance, the larger the weather effect elements corresponding to the weather type, and the sparser the weather effect elements corresponding to the weather type.
如此,电子设备会随着用户手持电子设备的移动,显示模拟现实场景中,用户以近大远疏观看到的现实场景下天气类型对应天气的动态效果,提高用户的视觉体验。In this way, the electronic device will display the dynamic weather effects corresponding to the weather types in the real scene viewed by the user from near and far as the user moves the electronic device, thereby improving the user's visual experience.
图10根据本申请的一些实施例,示出了一种适应于本申请的手机100的结构示意图。如图10所示,手机100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块 (subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,高度仪180M等。FIG10 shows a schematic diagram of the structure of a mobile phone 100 adapted to the present application according to some embodiments of the present application. As shown in FIG10 , the mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, an altimeter 180M, etc.
可以理解的是,本申请实施例示意的结构并不构成对手机100的具体限定。在本申请另一些实施例中,手机100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the mobile phone 100. In other embodiments of the present application, the mobile phone 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。本申请实施例中,处理器110可以执行本申请实施例提供的天气动态效果显示方法。The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors. In the embodiment of the present application, the processor 110 can execute the weather dynamic effect display method provided in the embodiment of the present application.
其中,控制器可以是手机100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of the mobile phone 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuits sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
手机100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the mobile phone 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
手机100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The mobile phone 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,手机100可以包括1个或N个显示屏194,N为大于1的正整数。本申请实施例中,显示屏194可以显示前述的第一界面和第二界面。The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc. In some embodiments, the mobile phone 100 may include 1 or N display screens 194, where N is a positive integer greater than 1. In the embodiment of the present application, the display screen 194 can display the aforementioned first interface and the second interface.
手机100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The mobile phone 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,手机100可以包括1个或N个摄像头193,N为大于1的正整数。本申请实施例中,摄像头193包括后置摄像头,用于拍摄后置场景。The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the mobile phone 100 may include 1 or N cameras 193, where N is a positive integer greater than 1. In the embodiment of the present application, the camera 193 includes a rear camera for shooting rear scenes.
手机100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The mobile phone 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于手机100的表面,与显示屏194所处的位置不同。The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the mobile phone 100, which is different from the position of the display screen 194.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。手机100可以接收按键输入,产生与手机100的用户设置以及功能控制有关的键信号输入。The key 190 includes a power key, a volume key, etc. The key 190 can be a mechanical key or a touch key. The mobile phone 100 can receive key input and generate key signal input related to the user settings and function control of the mobile phone 100.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.
本申请公开的机制的各实施例可以被实现在硬件、软件、固件或这些实现方法的组合中。本申请的实施例可实现为在可编程系统上执行的计算机程序或程序代码,该可编程系统包括至少一个处理器、存储系统(包括易失性和非易失性存储器和/或存储元件)、至少一个输入设备以及至少一个输出设备。 The various embodiments of the mechanism disclosed in the present application can be implemented in hardware, software, firmware or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements), at least one input device and at least one output device.
可将程序代码应用于输入指令,以执行本申请描述的各功能并生成输出信息。可以按已知方式将输出信息应用于一个或多个输出设备。为了本申请的目的,处理系统包括具有诸如例如数字信号处理器(Digital Signal Processor,DSP)、微控制器、专用集成电路(Application Specific Integrated Circuit,ASIC)或微处理器之类的处理器的任何系统。Program code may be applied to input instructions to perform the functions described herein and to generate output information. The output information may be applied to one or more output devices in a known manner. For purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
程序代码可以用高级程序化语言或面向对象的编程语言来实现,以便与处理系统通信。在需要时,也可用汇编语言或机器语言来实现程序代码。事实上,本申请中描述的机制不限于任何特定编程语言的范围。在任一情形下,该语言可以是编译语言或解释语言。Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.
在一些情况下,所公开的实施例可以以硬件、固件、软件或其任何组合来实现。所公开的实施例还可以被实现为由一个或多个暂时或非暂时性机器可读(例如,计算机可读)存储介质承载或存储在其上的指令,其可以由一个或多个处理器读取和执行。例如,指令可以通过网络或通过其他计算机可读存储介质分发。因此,机器可读存储介质可以包括用于以机器(例如,计算机)可读的形式存储或传输信息的任何机制,包括但不限于,软盘、光盘、光碟、只读存储器(CD-ROMs)、磁光盘、只读存储器(Read Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、磁卡或光卡、闪存、或用于基于因特网以电、光、声或其他形式的传播信号来传输信息(例如,载波、红外信号数字信号等)的有形的机器可读存储器。因此,机器可读存储介质包括适合于以机器(例如计算机)可读的形式存储或传输电子指令或信息的任何类型的机器可读存储介质。In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed over a network or through other computer-readable storage media. Therefore, machine-readable storage media may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including, but not limited to, floppy disks, optical disks, optical discs, CD-ROMs, magneto-optical disks, read-only memories (ROMs), random access memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or tangible machine-readable storage for transmitting information via electrical, optical, acoustic or other forms of propagation signals (e.g., carrier waves, infrared signals, digital signals, etc.) over the Internet. Therefore, machine-readable storage media include any type of machine-readable storage media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).
在附图中,可以以特定布置和/或顺序示出一些结构或方法特征。然而,应该理解,可能不需要这样的特定布置和/或排序。而是,在一些实施例中,这些特征可以以不同于说明性附图中所示的方式和/或顺序来布置。另外,在特定图中包括结构或方法特征并不意味着暗示在所有实施例中都需要这样的特征,并且在一些实施例中,可以不包括这些特征或者可以与其他特征组合。In the accompanying drawings, some structural or method features may be shown in a specific arrangement and/or order. However, it should be understood that such a specific arrangement and/or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and/or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.
需要说明的是,本申请各设备实施例中提到的各单元/模块都是逻辑单元/模块,在物理上,一个逻辑单元/模块可以是一个物理单元/模块,也可以是一个物理单元/模块的一部分,还可以以多个物理单元/模块的组合实现,这些逻辑单元/模块本身的物理实现方式并不是最重要的,这些逻辑单元/模块所实现的功能的组合才是解决本申请所提出的技术问题的关键。此外,为了突出本申请的创新部分,本申请上述各设备实施例并没有将与解决本申请所提出的技术问题关系不太密切的单元/模块引入,这并不表明上述设备实施例并不存在其它的单元/模块。It should be noted that the units/modules mentioned in the various device embodiments of the present application are all logical units/modules. Physically, a logical unit/module can be a physical unit/module, or a part of a physical unit/module, or can be implemented as a combination of multiple physical units/modules. The physical implementation method of these logical units/modules themselves is not the most important. The combination of functions implemented by these logical units/modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units/modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units/modules in the above-mentioned device embodiments.
需要说明的是,在本专利的示例和说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.
虽然通过参照本申请的某些优选实施例,已经对本申请进行了图示和描述,但本领域的普通技术人员应该明白,可以在形式上和细节上对其作各种改变,而不偏离本申请的精神和范围。 Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be apparent to those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.

Claims (10)

  1. 一种天气动态效果显示方法,其特征在于,所述方法应用于电子设备,所述电子设备包括至少一个传感器,所述至少一个传感器包括陀螺仪,所述方法包括:A method for displaying dynamic weather effects, characterized in that the method is applied to an electronic device, the electronic device includes at least one sensor, the at least one sensor includes a gyroscope, and the method includes:
    响应于用户打开天气应用的操作,获取当前的天气类型,启动所述至少一个传感器;所述陀螺仪采集的数据用于确定所述电子设备的显示屏的可视角度,所述可视角度包括平视、仰视和俯视;In response to a user opening a weather application, the current weather type is obtained and the at least one sensor is activated; the data collected by the gyroscope is used to determine the viewing angle of the display screen of the electronic device, the viewing angle including horizontal viewing, upward viewing and downward viewing;
    所述电子设备显示第一界面;其中,所述第一界面包括所述天气类型对应的天气效果元素的动态效果图;所述动态效果图用于模拟现实场景中,用户以所述可视角度观看到的所述现实场景下所述天气类型对应天气的动态效果。The electronic device displays a first interface; wherein the first interface includes a dynamic rendering of the weather effect element corresponding to the weather type; the dynamic rendering is used to simulate the dynamic effect of the weather corresponding to the weather type in the real scene viewed by the user at the visual angle in the real scene.
  2. 根据权利要求1所述的方法,其特征在于,在所述可视角度是平视的情况下,所述动态效果图呈现所述天气类型对应的天气效果元素由所述电子设备的第一端向第二端的方向,且与所述显示屏所在平面的夹角小于第一预设角度;其中,所述第一端为所述电子设备上远离地面的一端,所述第二端为所述电子设备上靠近地面的一端。The method according to claim 1 is characterized in that, when the viewing angle is horizontal, the dynamic effect diagram presents the weather effect element corresponding to the weather type from the first end of the electronic device to the second end, and the angle with the plane where the display screen is located is less than a first preset angle; wherein the first end is the end of the electronic device away from the ground, and the second end is the end of the electronic device close to the ground.
  3. 根据权利要求1或2所述的方法,其特征在于,在所述可视角度是仰视的情况下,所述动态效果图呈现所述天气类型对应的天气效果元素由所述电子设备的第一端向第二端移动,且所述天气类型对应的天气效果元素由小变大的动态效果。The method according to claim 1 or 2 is characterized in that, when the viewing angle is looking up, the dynamic effect diagram presents a dynamic effect in which the weather effect element corresponding to the weather type moves from the first end to the second end of the electronic device, and the weather effect element corresponding to the weather type changes from small to large.
  4. 根据权利要求1-3中任一项所述的方法,其特征在于,The method according to any one of claims 1 to 3, characterized in that
    在所述可视角度是俯视的情况下,所述动态效果图呈现所述天气类型对应的天气效果元素由高处向平面落下、且所述天气类型对应的天气效果元素由小变大,落在平面上的动态效果。When the viewing angle is a top-down view, the dynamic effect diagram presents a dynamic effect in which the weather effect element corresponding to the weather type falls from a high place to a plane, and the weather effect element corresponding to the weather type changes from small to large and falls on the plane.
  5. 根据权利要求4所述的方法,其特征在于,所述至少一个传感器还包括高度仪,所述高度仪用于采集所述显示屏距离地面的高度;The method according to claim 4, characterized in that the at least one sensor further comprises an altimeter, and the altimeter is used to collect the height of the display screen from the ground;
    所述显示屏距离地面的高度影响所述动态效果图呈现的所述天气类型对应的天气效果元素落在所述平面时与所述平面的接触面积;The height of the display screen from the ground affects the contact area between the weather effect element corresponding to the weather type presented by the dynamic effect graph and the plane when the weather effect element falls on the plane;
    其中,所述显示屏距离地面的高度越大,所述接触面积越大;所述显示屏距离地面的高度越小,所述接触面积越小。The greater the height of the display screen from the ground, the greater the contact area; the smaller the height of the display screen from the ground, the smaller the contact area.
  6. 根据权利要求1-5中任一项所述的方法,其特征在于,所述至少一个传感器还包括距离传感器,所述距离传感器用于采集所述显示屏与所述用户之间的距离;The method according to any one of claims 1 to 5, characterized in that the at least one sensor further comprises a distance sensor, and the distance sensor is used to collect the distance between the display screen and the user;
    所述距离影响所述动态效果图呈现的所述天气类型对应的天气效果元素的大小,以及所述天气类型对应的天气效果元素的大小的疏密程度;The distance affects the size of the weather effect element corresponding to the weather type presented by the dynamic effect graph, as well as the density of the size of the weather effect element corresponding to the weather type;
    其中,所述距离越大,所述天气类型对应的天气效果元素越小,所述天气类型对应的天气效果元素越密集;所述距离越小,所述天气类型对应的天气效果元素越大,所述天气类型对应的天气效果元素越稀疏。Among them, the larger the distance is, the smaller the weather effect element corresponding to the weather type is, and the denser the weather effect elements corresponding to the weather type are; the smaller the distance is, the larger the weather effect element corresponding to the weather type is, and the sparser the weather effect elements corresponding to the weather type are.
  7. 根据权利要求1-6中任一项所述的方法,其特征在于,所述响应于用户打开天气应用的操作,获取当前的天气类型,启动所述至少一个传感器,包括:The method according to any one of claims 1 to 6, characterized in that, in response to the user opening the weather application, obtaining the current weather type and activating the at least one sensor comprises:
    响应于用户打开所述天气应用的操作,获取当前的所述天气类型,并显示第二界面;其中,所述第二界面包括所述天气类型对应的动态天气效果的图像;In response to the user opening the weather application, the current weather type is obtained, and a second interface is displayed; wherein the second interface includes an image of a dynamic weather effect corresponding to the weather type;
    响应于用户在所述第二界面的第一手势操作,启动所述至少一个传感器;其中, 所述第一手势操作用于触发所述电子设备启动所述天气应用的预设动效功能,所述预设动效功能用于展示所述动态效果图。In response to a first gesture operation of the user on the second interface, the at least one sensor is activated; wherein, The first gesture operation is used to trigger the electronic device to start a preset motion effect function of the weather application, and the preset motion effect function is used to display the dynamic effect diagram.
  8. 根据权利要求1所述的方法,其特征在于,所述天气类型包括雨天、雪天或冰雹中的任一种。The method according to claim 1 is characterized in that the weather type includes any one of rainy days, snowy days or hail days.
  9. 一种电子设备,其特征在于,包括处理器和存储器;所述存储器用于存储代码指令;所述处理器用于运行所述代码指令,使得所述电子设备执行如权利要求1-8中任一项所述的方法。An electronic device, characterized in that it includes a processor and a memory; the memory is used to store code instructions; the processor is used to run the code instructions, so that the electronic device executes the method as described in any one of claims 1-8.
  10. 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-8中任一项所述的方法。 A computer storage medium, characterized in that it includes computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method as described in any one of claims 1 to 8.
PCT/CN2023/114315 2022-09-29 2023-08-22 Dynamic weather effect display method, computer storage medium and electronic device WO2024066810A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211201954.X 2022-09-29
CN202211201954.XA CN117793239A (en) 2022-09-29 2022-09-29 Weather dynamic effect display method, computer storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
WO2024066810A1 WO2024066810A1 (en) 2024-04-04
WO2024066810A9 true WO2024066810A9 (en) 2024-07-04

Family

ID=90396952

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/114315 WO2024066810A1 (en) 2022-09-29 2023-08-22 Dynamic weather effect display method, computer storage medium and electronic device

Country Status (2)

Country Link
CN (1) CN117793239A (en)
WO (1) WO2024066810A1 (en)

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945173A (en) * 2010-09-17 2011-01-12 宇龙计算机通信科技(深圳)有限公司 Weather information display method and mobile terminal
CN102164209B (en) * 2011-03-23 2013-07-31 北京百纳威尔科技有限公司 Mobile terminal screen display control method and mobile terminal
CN103389855B (en) * 2013-07-11 2017-02-08 广东欧珀移动通信有限公司 Mobile terminal interacting method and device
CN104427123B (en) * 2013-09-09 2018-02-27 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN104183004A (en) * 2014-08-12 2014-12-03 小米科技有限责任公司 Weather display method and weather display device
CN104777962A (en) * 2015-04-30 2015-07-15 上海天奕达电子科技有限公司 Method for dynamic effect interaction and mobile terminal
CN108132712A (en) * 2018-01-12 2018-06-08 网易(杭州)网络有限公司 The rendering method of state of weather, device and storage medium and terminal in virtual scene
CN111435269A (en) * 2019-01-14 2020-07-21 上海博泰悦臻网络技术服务有限公司 Display adjusting method, system, medium and terminal of vehicle head-up display device
CN113360005B (en) * 2020-03-04 2022-10-18 Oppo广东移动通信有限公司 Color cast adjusting method and related product
CN111538451A (en) * 2020-03-31 2020-08-14 北京小米移动软件有限公司 Weather element display method and device and storage medium
CN111885265B (en) * 2020-07-31 2022-06-24 Oppo广东移动通信有限公司 Screen interface adjusting method and related device
CN112083805A (en) * 2020-09-03 2020-12-15 深圳市雷鸟网络传媒有限公司 Screen picture self-adaptive adjusting method, device, equipment and storage medium
CN113032072B (en) * 2021-03-25 2024-05-24 北京小米移动软件有限公司 Weather state display method and device, electronic equipment and storage medium
CN114691068A (en) * 2022-03-23 2022-07-01 北京优酷科技有限公司 Information display method and device based on screen projection technology
CN114442894B (en) * 2022-04-06 2022-09-02 荣耀终端有限公司 Screen display picture adjusting method and device and electronic equipment

Similar Documents

Publication Publication Date Title
JP2021100249A (en) Shooting and user interface using night shooting mode processing
WO2021027725A1 (en) Method for displaying page elements and electronic device
CN109831636B (en) Interactive video control method, terminal and computer readable storage medium
WO2021104485A1 (en) Photographing method and electronic device
CN114895861A (en) Message processing method, related device and system
WO2019174628A1 (en) Photographing method and mobile terminal
CN113824873B (en) Image processing method and related electronic equipment
JP7495517B2 (en) Image capturing method and electronic device
US20220150403A1 (en) Input Method and Electronic Device
CN110225241A (en) A kind of video capture control method, terminal and computer readable storage medium
CN109819168B (en) Camera starting method and mobile terminal
CN108089891A (en) A kind of application program launching method, mobile terminal
CN113986408A (en) Application page display method and electronic equipment
CN107566643A (en) Information processing method, device, storage medium and electronic equipment
US20230017899A1 (en) Method for obtaining exposure data and electronic device
WO2022052712A1 (en) Method and apparatus for processing interaction event
CN109120864B (en) Light supplement processing method and device, storage medium and mobile terminal
CN108345425A (en) A kind of management method and mobile terminal of application
CN114125143B (en) Voice interaction method and electronic equipment
CN107566746A (en) A kind of photographic method and user terminal
CN111246111B (en) Photographing method, electronic device, and medium
CN108616687A (en) A kind of photographic method, device and mobile terminal
WO2021185374A1 (en) Image capturing method and electronic device
CN108830160B (en) Facial feature acquisition method, mobile terminal and storage medium
EP4394560A1 (en) Display method and electronic device