TECHNICAL FIELD
[0001] The present disclosure relates to the field of information processing technologies,
and more particularly, relates to a weather displaying method and a weather displaying
apparatus.
BACKGROUND
[0002] In recent years, with the development of smart phones, mobile phone applications
have become indispensable products in people's daily life. As desired by people over
thousands of years, acquisition of weather information occupies an important place
in the mobile phone applications.
[0003] Weather applications are significantly developed, and a large variety of weather
application products are available in the market. In related technologies, a weather
application describes weather conditions. Generally, some pictures or animations are
preconfigured in the application, and these pictures or animations are placed on the
interface of the application according to different weather types.
[0004] However, the following defects exist in the related technologies: since the preconfigured
pictures or animations are constant in the weather application, when a plurality of
weather conditions are present concurrently, for example, when it is blowing wind
and raining, the plurality of weather conditions fail to be comprehensively and dynamically
presented. Therefore, display of the weather conditions is not accurate or not verisimilar.
In addition, the weather application only achieves a single display effect of the
weather, and thus users may be tired of the monotonous display of weather. Therefore,
user experience is poor.
SUMMARY
[0005] To overcome the defects existent in the related technologies, embodiments of the
present disclosure provide a weather displaying method and a weather displaying apparatus.
[0006] According to a first aspect of the embodiments of the present disclosure, a weather
displaying method is provided. The method includes:
acquiring weather information and orientation information of a terminal;
generating a weather animation according to the weather information and the orientation
information of the terminal; and
displaying the weather animation on the terminal.
[0007] In this embodiment, a weather animation is generated according to weather information
and orientation information. In this way, a plurality of weather conditions are comprehensively
and dynamically presented via pictures, and displaying of the weather conditions is
more accurate, more verisimilar, and more visualized. In addition, the weather conditions
are presented in combination with current orientation information of a terminal, such
that use conditions of the terminal by a user are considered in the presentation of
the weather conditions, effective interactions are achieved with the user, and effects
of the presentation of the weather conditions are more diversified. This gives a fully
immersive experience for the user, and improves user experience.
[0008] Optionally, generating a weather animation according to the weather information and
the orientation information of the terminal includes:
determining at least one weather element composing the weather animation according
to the weather information;
determining a motion state of each of the at least one weather element according to
the orientation information of the terminal; and
generating the weather animation according to the motion state of the weather element.
[0009] In an optional technical solution, a motion state of a weather element in a weather
animation is determined, such that the weather animation is more accurate, more verisimilar,
and more visualized. This gives a fully immersive experience for the user, and improves
user experience.
[0010] Optionally, the weather information includes: weather type and weather grade; and
parameters of the weather element include: type of the weather element, number of
objects of each weather element, and size of each object; and
determining at least one weather element composing the weather animation according
to the weather information includes:
determining the type of the weather element, the number of objects of each weather
element, and the size of each object according to the weather type and the weather
grade.
[0011] In an optional technical solution, a weather element in a weather animation is more
delicately presented according to a weather type and a weather grade. This improves
verisimilitude and visualizability in displaying the weather condition.
[0012] Optionally, the motion state includes an initial position and a motion trajectory;
determining a motion state of each of the at least one weather element according to
the orientation information of the terminal includes:
determining an initial position and a motion trajectory of each object of the weather
element according to the orientation information of the terminal; and
displaying the weather animation on the terminal includes:
displaying, on the terminal, each object of the weather element as moving from the
initial position along the motion trajectory.
[0013] In an optional technical solution, an initial position and a motion trajectory of
each weather element in a weather animation are determined according to orientation
information of the terminal, such that a weather element in a weather animation is
more delicately presented. This improves verisimilitude and visualizability in displaying
the weather condition.
[0014] Optionally, determining an initial position and a motion trajectory of each object
of the weather element according to the orientation information of the terminal includes:
determining, according to the orientation information of the terminal, that the motion
trajectory of each object of the weather element is displayed as moving from the initial
position along a gravity direction.
[0015] In an optional technical solution, a weather element is set as falling along a gravity
direction, such that a weather element in a weather animation is more delicately presented.
This improves verisimilitude in displaying the weather condition.
[0016] Optionally, the orientation information of the terminal includes: horizontal, vertical,
and inclined; and
determining, according to the orientation information of the terminal, that the motion
trajectory of each object of the weather element is displayed as moving from the initial
position along a gravity direction includes:
when the terminal is laid horizontally, determining that the motion trajectory of
each object of the weather element is displayed as: moving along a direction vertical
to a plane where a screen of the terminal is located;
when the terminal is laid vertically, determining that the motion trajectory of each
object of the weather element is displayed as: moving from top to bottom on a plane
where the screen of the terminal is located; or
when the terminal is laid inclinedly, determining that the motion trajectory of each
object of the weather element is displayed as: moving from top to bottom along an
upright direction in a plane where the screen of the terminal is located.
[0017] In an optional technical solution, a weather animation is generated according to
a orientation of the terminal, such that the generated weather animation is more verisimilar.
This gives a fully immersive experience for the user, and improves user experience.
[0018] Optionally, the orientation information of the terminal further includes: horizontally
upward and horizontally downward of the screen of the terminal; and
determining, according to the orientation information of the terminal, that the motion
trajectory of each object of the weather element is displayed as moving from the initial
position along a gravity direction includes:
when the screen is horizontally upward, determining that the motion trajectory of
each object of the weather element is displayed as: falling down from outside of the
screen to inside of the screen along a direction vertical to a plane where the screen
is located; or
when the screen is horizontally downward, determining that the motion trajectory of
each object of the weather element is displayed as: falling down from inside of the
screen to outside of the screen along a direction vertical to a plane where the screen
is located.
[0019] In an optional technical solution, a weather animation is generated according to
a orientation of the terminal, such that the generated weather animation is more verisimilar.
This gives a fully immersive experience for the user, and improves user experience.
[0020] Optionally, the weather information further includes: wind force information and
wind direction information; and
determining an initial position and a motion trajectory of each object of the weather
element according to the orientation information of the terminal includes:
calculating a position of each object of the weather element in each frame of animation
according to the type of the weather element, the size of each object, the wind force
information, the wind direction information, and the orientation information of the
terminal.
[0021] In an optional technical solution, a weather animation is generated according to
information of a plurality of weather conditions. In this way, a plurality of weather
conditions are comprehensively and dynamically presented via pictures, and displaying
of the weather conditions is more accurate, more verisimilar, and more visualized.
[0022] Optionally, generating a weather animation according to the weather information and
the orientation information of the terminal includes:
using a picture picked up by a camera of the terminal as a background of the weather
animation, or using a predetermined picture as a background of the weather animation.
[0023] In an optional technical solution, the background of a weather animation may be a
constant, predetermined picture or a real scene picture, such that displaying of the
weather conditions is more diversified, more verisimilar, and more visualized. This
gives a fully immersive experience for the user, and improves user experience.
[0024] Optionally, when the predetermined picture is used as the background of the weather
animation, the method further includes:
acquiring current time;
determining background chromaticity value information of the weather animation according
to the current time; and
adjusting a chromaticity value of the background of the weather animation according
to the background chromaticity value information.
[0025] In an optional technical solution, the background using the predetermined picture
varies with the time, such that the background of a weather animation is subjected
to variations of luminosity and chromaticity, and variations of light with the time
are practically presented, thereby giving a fully immersive experience for the user.
In addition, it is unnecessary to change the background picture, and only a chromaticity
value thereof needs to be modified. This reduces stored picture resources, and improves
processing efficiency.
[0026] Optionally, when the predetermined picture is used as the background of the weather
animation, the method further includes:
acquiring a current date;
determining a season of the current date; and
determining a background type of the weather animation according to the season of
the current date; and
selecting a predetermined picture corresponding to the background type as the background
of the weather animation.
[0027] In an optional technical solution, with respect to a background using a predetermined
picture, a corresponding background picture may be selected to display a weather animation
according to a current season. For example, four-season (spring, summer, autumn, and
winter) modes may be set, wherein in each mode, different pictures are assigned to
correspond to different months; and a corresponding picture may be selected as the
background of the weather animation according to a current date. The season factor
is considered in displaying a weather animation, such that a fully immersive experience
is given to the user, and user experience is improved.
[0028] According to a second aspect of the embodiments of the present disclosure, a weather
displaying apparatus is provided. The apparatus includes:
an acquiring module, configured to acquire weather information and orientation information
of a terminal;
a generating module, configured to generate a weather animation according to the weather
information and the orientation information of the terminal; and
a displaying module, configured to display the weather animation on the terminal.
[0029] In this embodiment, a weather animation is generated according to weather information
and orientation information. In this way, a plurality of weather conditions are comprehensively
and dynamically presented via pictures, and displaying of the weather conditions is
more accurate, more verisimilar, and more visualized. In addition, the weather conditions
are presented in combination with current orientation information of a terminal, such
that use conditions of the terminal by a user are considered in the presentation of
the weather conditions, effective interactions are achieved with the user, and effects
of the presentation of the weather conditions are more diversified. This gives a fully
immersive experience for the user, and improves user experience.
[0030] Optionally, the generating module includes:
a first determining submodule, configured to determine at least one weather element
composing the weather animation according to the weather information;
a second determining submodule, configured to determine a motion state of each of
the at least one weather element according to the orientation information of the terminal;
and
an animation generating submodule, configured to generate the weather animation according
to the motion state of the weather element.
[0031] In an optional technical solution, a motion state of a weather element in a weather
animation is determined, such that the weather animation is more accurate, more verisimilar,
and more visualized. This gives a fully immersive experience for the user, and improves
user experience.
[0032] Optionally, the weather information acquired by the acquiring module includes: weather
type and weather grade; and parameters of the weather element determined by the first
determining submodule include: type of the weather element, number of objects of each
weather element, and size of each object;
the first determining submodule is configured to determine the type of the weather
element, the number of objects of each weather element, and the size of each object
according to the weather type and the weather grade.
[0033] In an optional technical solution, a weather element in a weather animation is more
delicately presented according to the weather type and the weather grade. This improves
verisimilitude and visualizability in displaying the weather condition.
[0034] Optionally, the motion state determined by the second determining submodule includes
an initial position and a motion trajectory;
the second determining submodule is configured to determine an initial position and
a motion trajectory of each object of the weather element according to the orientation
information of the terminal; and
the displaying module is configured to display each object of the weather element
as moving from the initial position along the motion trajectory on the terminal.
[0035] In an optional technical solution, an initial position and a motion trajectory of
each weather element in a weather animation are determined according to orientation
information of the terminal, such that a weather element in a weather animation is
more delicately presented. This improves verisimilitude and visualizability in displaying
the weather condition.
[0036] Optionally, the second determining submodule is configured to determine, according
to the orientation information of the terminal, that the motion trajectory of each
object of the weather element is displayed as moving from the initial position along
a gravity direction.
[0037] In an optional technical solution, a weather element is set as falling along a gravity
direction, such that a weather element in a weather animation is more delicately presented.
This improves verisimilitude in displaying the weather condition.
[0038] Optionally, the orientation information of the terminal acquired by the acquiring
module includes: horizontal, vertical, and inclined; and
[0039] the second determining submodule is configured to: when the terminal is laid horizontally,
determine that the motion trajectory of each object of the weather element is displayed
as moving along a direction vertical to a plane where a screen of the terminal is
located; when the terminal is laid vertically, determine that the motion trajectory
of each object of the weather element is displayed as moving from top to bottom on
a plane where the screen of the terminal is located; or when the terminal is laid
inclinedly, determine that the motion trajectory of each object of the weather element
is displayed as moving from top to bottom along an upright direction in a plane where
the screen of the terminal is located.
[0040] In an optional technical solution, a weather animation is generated according to
a orientation of the terminal, such that the generated weather animation is more verisimilar.
This gives a fully immersive experience for the user, and improves user experience.
[0041] Optionally, the orientation information of the terminal acquired by the acquiring
module further includes: horizontally upward and horizontally downward of the screen
of the terminal; and
the second determining submodule is configured to: when the screen is horizontally
upward, determine that the motion trajectory of each object of the weather element
is displayed as falling down from outside of the screen to inside of the screen along
a direction vertical to a plane where the screen is located; or when the screen is
horizontally downward, determine that the motion trajectory of each object of the
weather element is displayed as falling down from inside of the screen to outside
of the screen along a direction vertical to a plane where the screen is located.
[0042] In an optional technical solution, a weather animation is generated according to
a orientation of the terminal, such that the generated weather animation is more verisimilar.
This gives a fully immersive experience for the user, and improves user experience.
[0043] Optionally, the weather information acquired by the acquiring module further includes:
wind force information and wind direction information; and the second determining
submodule is configured to calculate a position of each object of the weather element
in each frame of animation according to the type of the weather element, the size
of each object, the wind force information, the wind direction information, and the
orientation information of the terminal.
[0044] In an optional technical solution, a weather animation is generated according to
information of a plurality of weather conditions. In this way, a plurality of weather
conditions are comprehensively and dynamically presented via pictures, and displaying
of the weather conditions is more accurate, more verisimilar, and more visualized.
[0045] Optionally, the generating module includes:
a background selecting submodule, configured to use a picture picked up by a camera
of the terminal as a background of the weather animation, or use a predetermined picture
as a background of the weather animation.
[0046] In an optional technical solution, the background of a weather animation may be a
constant, predetermined picture or a real scene picture, such that displaying of the
weather conditions is more diversified, more verisimilar, and more visualized. This
gives a fully immersive experience for the user, and improves user experience.
[0047] Optionally, the apparatus further includes:
a time acquiring module, configured to acquire current time when the predetermined
picture is used as the background of the weather animation; and
the generating module further includes:
a third determining submodule, configured to determine background chromaticity value
information of the weather animation according to the current time; and
an adjusting submodule, configured to adjust a chromaticity value of the background
of the weather animation according to the background chromaticity value information.
[0048] In an optional technical solution, the background using the predetermined picture
varies with the time, such that the background of a weather animation is subjected
to variations of luminosity and chromaticity, and variations of light with the time
are practically presented, thereby giving a fully immersive experience for the user.
In addition, it is unnecessary to change the background picture, and only a chromaticity
value thereof needs to be modified. This reduces stored picture resources, and improves
processing efficiency.
[0049] Optionally, the apparatus further includes:
a date acquiring module, configured to acquire a current date when the predetermined
picture is used as the background of the weather animation; and
a season determining module, configured to determine a season of the current date;
the generating module further includes:
a fourth determining submodule, configured to determine a background type of the weather
animation according to the season of the current date; and
the background selecting submodule is configured to select a predetermined picture
corresponding to the background type as the background of the weather animation.
[0050] In an optional technical solution, with respect to the background with a predetermined
picture, a corresponding background picture may be selected to display a weather animation
according to a current season. For example, four-season (spring, summer, autumn, and
winter) modes may be set, wherein in each mode, different pictures are assigned to
correspond to different months; and a corresponding picture may be selected as the
background of the weather animation according to a current date. The season factor
is considered in displaying a weather animation, such that a fully immersive experience
is given to the user, and user experience is improved.
[0051] According to a third aspect of the embodiments of the present disclosure, an apparatus
for use in weather displaying is provided. The apparatus includes:
a processor; and
a memory for storing instructions executable by the processor;
wherein the processor is configured to:
acquire weather information and orientation information of a terminal;
generate a weather animation according to the weather information and the orientation
information of the terminal; and
display the weather animation on the terminal.
[0052] According to a fourth aspect of embodiments of the present disclosure, there is provided
a computer program which, when being executed on a processor of an apparatus, performs
any one of the above methods.
[0053] In this embodiment, a weather animation is generated according to weather information
and orientation information. In this way, a plurality of weather conditions are comprehensively
and dynamically presented via pictures, and displaying of the weather conditions is
more accurate, more verisimilar, and more visualized. In addition, the weather conditions
are presented in combination with current orientation information of a terminal, such
that use conditions of the terminal by a user are considered in the presentation of
the weather conditions, effective interactions are achieved with the user, and effects
of the presentation of the weather conditions are more diversified. This gives a fully
immersive experience for the user, and improves user experience.
[0054] It shall be appreciated that the above general description and the detailed description
hereinafter are only illustrative and interpretative, but not for limiting the present
disclosure.
BRIEF DESCRIPTION OF THE DRAWINGS
[0055] The accompanying drawings herein, which are incorporated into and constitute a part
of the specification, illustrate embodiments consistent with the present disclosure,
and together with the specification, serve to explain the principles of the present
disclosure.
FIG. 1 is a flowchart illustrating a weather displaying method according to an exemplary
embodiment of the present disclosure;
FIG. 2 is a flowchart illustrating a weather displaying method according to another
exemplary embodiment of the present disclosure;
FIG. 3 and FIG. 4 are schematic diagrams illustrating displaying of a weather animation
according to an exemplary embodiment of the present disclosure;
FIG. 5 and FIG. 6 are schematic diagrams illustrating displaying of a weather animation
according to another exemplary embodiment of the present disclosure;
FIG. 7 is a flowchart illustrating a weather displaying method according to another
exemplary embodiment of the present disclosure;
FIG. 8 is a flowchart illustrating a weather displaying method according to another
exemplary embodiment of the present disclosure;
FIG. 9 is a block diagram illustrating a weather displaying apparatus according to
an exemplary embodiment of the present disclosure;
FIG. 10 is a block diagram illustrating a generating module according to an exemplary
embodiment of the present disclosure;
FIG. 11 is a block diagram illustrating a generating module according to another exemplary
embodiment of the present disclosure;
FIG. 12 is a block diagram illustrating a weather displaying apparatus according to
another exemplary embodiment of the present disclosure;
FIG. 13 is a block diagram illustrating a weather displaying apparatus according to
another exemplary embodiment of the present disclosure; and
FIG. 14 is a block diagram illustrating an apparatus 1300 for use in weather displaying
according to an exemplary embodiment of the present disclosure.
DETAILED DESCRIPTION
[0056] Reference will now be made in detail to exemplary embodiments, examples of which
are illustrated in the accompanying drawings. The following description refers to
the accompanying drawings in which the same numbers in different drawings represent
the same or similar elements unless otherwise represented. The implementations set
forth in the following description of exemplary embodiments do not represent all implementations
consistent with the present disclosure. Instead, they are merely examples of apparatuses
and methods consistent with aspects related to the present disclosure as recited in
the appended claims.
[0057] FIG. 1 is a flowchart illustrating a weather displaying method according to an exemplary
embodiment of the present disclosure. As illustrated in FIG. 1, the weather displaying
method is applicable to a terminal, and includes the following steps.
[0058] In step S11, weather information and orientation information of a terminal are acquired.
[0059] In step S12, a weather animation is generated according to the weather information
and the orientation information.
[0060] In step S13, the weather animation is displayed on the terminal.
[0061] In the above step S11, the terminal may acquire over the Internet weather information
covering a plurality of weather conditions, for example, such weather-related information
as sun, cloud, overcast, rain (at different grades), freezing rain, shower, snow (at
different grades), sleet, hail, foggy, flying sand, flying dust, haze (at different
grades), wind (wind direction and wind force), temperature, humidity, and the like.
[0062] In the above step S11, the current orientation information of the terminal, i.e.,
information indicating whether the terminal is laid horizontally, vertically, or inclinedly,
and what is the specific inclination angle, and the like may be detected by using
a gravity sensor equipped in the terminal, for example, an accelerometer, a gyroscope,
an electronic compass, and the like. Further, it may also be detected whether a screen
of the terminal is horizontally upward or horizontally downward. When the terminal
is held in different orientations, different weather animations are presented for
the user; and when the user changes the orientation of the terminal, an animation
corresponding to the current orientation of the terminal is accordingly displayed
on the screen of the terminal.
[0063] In this embodiment, a weather animation is generated according to weather information
and orientation information. In this way, a plurality of weather conditions are comprehensively
and dynamically presented via pictures, and displaying of the weather conditions is
more accurate, more verisimilar, and more visualized. In addition, the weather conditions
are presented in combination with current orientation information of a terminal, such
that use conditions of the terminal by a user are considered in the presentation of
the weather conditions, effective interactions are achieved with the user, and effects
of the presentation of the weather conditions are more diversified. This gives a fully
immersive experience for the user, and improves user experience.
[0064] FIG 2 is a flowchart illustrating a weather displaying method according to another
exemplary embodiment of the present disclosure. As illustrated in FIG. 2, optionally,
the above step S12 includes the following steps.
[0065] In step S21, at least one weather element composing the weather animation is determined
according to the weather information.
[0066] In step S22, a motion state of each of the at least one weather element is determined
according to the orientation information of the terminal.
[0067] In step S23, the weather animation is generated according to the motion state of
the weather element.
[0068] The weather element in the weather animation refers to an element composing displaying
of the weather animation. For example, with respect to a weather animation showing
rain, the weather element is rain drops; with respect to a weather animation showing
snow, the weather element is snow flakes; with respect to a weather animation showing
flying sand, the weather element is sand; with respect to a weather animation showing
sunny day, the weather element may include the sun, the moon, or the cloud; and so
on.
[0069] In an optional technical solution, a motion state of a weather element in a weather
animation is determined, such that the weather animation is more accurate, more verisimilar,
and more visualized. This gives a fully immersive experience for the user, and improves
user experience.
[0070] Optionally, the weather information includes: weather type and weather grade; and
parameters of the weather element include: type of the weather element, number of
objects of each weather element, and size of each object.
[0071] The above Step S21 includes: determining the type of the weather element, the number
of objects of each weather element, and the size of each object according to the weather
type and the weather grade.
[0072] For example, when the weather type is rainy and the weather grade is heavy rain,
it is determined that the type of the weather element in the weather animation is
rain drops, and the number of rain drops in the weather animation is 300. The size
of each rain drop may be set to be the same or to be different.
[0073] In an optional technical solution, a weather element in a weather animation is more
delicately presented according to the weather type and the weather grade. This improves
verisimilitude and visualizability in displaying the weather condition.
[0074] Optionally, the motion state includes an initial position and a motion trajectory.
[0075] The above Step S22 includes: determining an initial position and a motion trajectory
of each object of the weather element according to the orientation information of
the terminal; and the above step S23 includes: displaying each object of the weather
element as moving from the initial position along the motion trajectory on the terminal.
[0076] For example, with respect to the rain drops, when the terminal is laid vertically,
it is determined that the initial position of the rain drops is the upper end of the
weather animation; and when the terminal is laid horizontally, the initial position
of the rain drops may be randomly laid on the entire region of the weather animation.
In the weather animation, it may be set that each rain drop has a different initial
position, such that the weather animation is more verisimilar.
[0077] In an optional technical solution, an initial position and a motion trajectory of
each weather element in a weather animation are determined according to orientation
information of the terminal, such that a weather element in a weather animation is
more delicately presented. This improves verisimilitude and visualizability in displaying
the weather condition.
[0078] Optionally, determining an initial position and a motion trajectory of each object
of the weather element according to the orientation information of the terminal includes:
[0079] determining, according to the orientation information of the terminal, that the motion
trajectory of each object of the weather element is displayed as moving from the initial
position along a gravity direction.
[0080] For example, with respect to the motion trajectory of the rain drops, regardless
of in which orientation the terminal is held, the rain drops always fall along a gravity
direction.
[0081] In an optional technical solution, a weather element is set as falling along a gravity
direction, such that a weather element in a weather animation is more delicately presented.
This improves verisimilitude in displaying the weather condition.
[0082] Optionally, the orientation information of the terminal includes, but not limited
to: horizontal, vertical, and inclined; wherein "horizontal", "vertical" and "inclined"
indicate the positional relationship between a plane where the screen of the terminal
is located and the ground; when the terminal is inclined, such information as a direction
and an angle of the inclination may be further acquired. Determining, according to
the orientation information of the terminal, that the motion trajectory of each object
of the weather element is displayed as moving from the initial position along a gravity
direction includes:
when the terminal is laid horizontally, determining that the motion trajectory of
each object of the weather element is displayed as: moving along a direction vertical
to a plane where the screen of the terminal is located;
when the terminal is laid vertically, determining that the motion trajectory of each
object of the weather element is displayed as: moving from top to bottom on a plane
where the screen of the terminal is located; or
when the terminal is laid inclinedly, determining that the motion trajectory of each
object of the weather element is displayed as: moving from top to bottom along an
upright direction in a plane where the screen of the terminal is located.
[0083] FIG. 3 and FIG. 4 are schematic diagrams illustrating displaying of a weather animation
according to an exemplary embodiment of the present disclosure.
[0084] For example, using the falling trajectory of the rain drops as an example, as illustrated
in FIG. 3, when the terminal is laid vertically, the rain drops may be displayed as
falling from top to bottom on a plane where the screen of the terminal is located.
As illustrated in FIG. 4, when the terminal is laid inclinedly, the rain drops may
be displayed as falling from top to bottom along an upright direction in a plane where
the screen of the terminal is located. When the terminal is laid horizontally, the
rain drops may be displayed as falling along a direction vertical to a plane where
the screen of the terminal is located.
[0085] Optionally, the orientation information of the terminal further includes: horizontally
upward and horizontally downward of the screen of the terminal. Determining, according
to the orientation information of the terminal, that the motion trajectory of each
object of the weather element is displayed as moving from the initial position along
a gravity direction includes:
when the screen is horizontally upward, determining that the motion trajectory of
each object of the weather element is displayed as: falling down from outside of the
screen to inside of the screen along a direction vertical to a plane where the screen
is located; or
when the screen is horizontally downward, determining that the motion trajectory of
each object of the weather element is displayed as: falling down from inside of the
screen to outside of the screen along a direction vertical to a plane where the screen
is located.
[0086] FIG. 5 and FIG. 6 are schematic diagrams illustrating displaying of a weather animation
according to another exemplary embodiment of the present disclosure.
[0087] For example, using the falling trajectory of the rain drops as an example, as illustrated
in FIG. 5, when the screen of the terminal is horizontally upward, the rain drops
are displayed as falling from outside of the screen to inside of the screen. As illustrated
in FIG. 6, when the screen of the terminal is horizontally downward, the rain drops
are displayed as falling from inside of the screen to outside of the screen.
[0088] In an optional technical solution, a weather animation is generated according to
a orientation of the terminal, such that the generated weather animation is more verisimilar.
This gives a fully immersive experience for the user, and improves user experience.
[0089] Optionally, the weather information further includes: wind force information and
wind direction information. Determining an initial position and a motion trajectory
of each object of the weather element according to the orientation information of
the terminal includes: calculating a position of each object of the weather element
in each frame of animation according to the type of the weather element, the size
of each object, the wind force information, the wind direction information, and the
orientation information of the terminal.
[0090] For example, with respect to determining of a motion trajectory of the rain drops,
weather information and orientation information of the terminal need to be collaboratively
considered. For example, when it is windy, the rain drops may not fall vertically,
but fall inclinedly at a specific angle. An inclination angle of falling of the rain
drops is calculated according to such information as wind force and wind direction.
When the wind direction is East and the wind force is Grade 3, it may be set that
the rain drops fall at a smaller angle towards the right side of the screen.
[0091] In an optional technical solution, a weather animation is generated according to
information of a plurality of weather conditions. In this way, a plurality of weather
conditions are comprehensively and dynamically presented via pictures, and displaying
of the weather conditions is more accurate, more verisimilar, and more visualized.
[0092] Optionally, the above step S12 includes:
using a picture picked up by a camera of the terminal as a background of the weather
animation, or using a predetermined picture as a background of the weather animation.
[0093] For example, as illustrated in FIG. 3 and FIG. 4, a predetermined picture is used
as the background of the weather animation; or, as illustrated in FIG. 5 and FIG.
6, a camera at the rear side of the terminal is opened, and a picture picked up by
the camera is used as the background of the weather animation. Herein, if the user
looks down at the screen, the user may find that the rain drops seemingly fall from
the screen down to the ground; if the user looks up at the screen, the user may find
that the rain drops seemingly fall from the sky.
[0094] In an optional technical solution, the background of a weather animation may be a
constant, predetermined picture or a real scene picture, such that displaying of the
weather conditions is more diversified, more verisimilar, and more visualized. This
gives a fully immersive experience for the user, and improves user experience.
[0095] FIG. 7 is a flowchart illustrating a weather displaying method according to another
exemplary embodiment of the present disclosure. As illustrated in FIG. 7, optionally,
when a predetermined picture is used as the background of the weather animation, the
method further includes the following steps.
[0096] In step S71, current time is acquired.
[0097] In step S72, background chromaticity value information of the weather animation is
determined according to the current time.
[0098] In step S73, a chromaticity value of the background of the weather animation is adjusted
according to the background chromaticity value information.
[0099] In an optional technical solution, the background using the predetermined picture
varies with the time, such that the background of a weather animation is subjected
to variations of luminosity and chromaticity, and variations of light with the time
are practically presented, thereby giving a fully immersive experience for the user.
In addition, it is unnecessary to change the background picture, and only a chromaticity
value thereof needs to be modified. This reduces stored picture resources, and improves
processing efficiency.
[0100] FIG. 8 is a flowchart illustrating a weather displaying method according to another
exemplary embodiment of the present disclosure. As illustrated in FIG. 8, optionally,
when a predetermined picture is used as the background of the weather animation, the
method further includes the following steps.
[0101] In step S81, a current date is acquired.
[0102] In step S82, a season of the current date is determined.
[0103] In step S83, a background type of the weather animation is determined according to
the season of the current date.
[0104] In step S84, a predetermined picture corresponding to the background type is selected
as the background of the weather animation.
[0105] In an optional technical solution, with respect to a background with a predetermined
picture, a corresponding background picture may be selected to display a weather animation
according to a current season. For example, four-season (spring, summer, autumn, and
winter) modes may be set, wherein in each mode, different pictures are assigned to
correspond to different months; and a corresponding picture may be selected as the
background of the weather animation according to a current date. The season factor
is considered in displaying a weather animation, such that a fully immersive experience
is given to the user, and user experience is improved.
[0106] Optionally, a current ambient temperature and/or a current ambient humidity may be
further acquired, and the display effect of the weather animation may be adjusted
according to the current ambient temperature and/or the current ambient humidity.
[0107] In this embodiment, with respect to such weather conditions as rain, snow, hail,
sand and dust, and the like, a weather animation may be generated in collaborative
consideration of a plurality of weather information, for example, rain, snow, hail,
sand and dust volume, wind force, wind direction, current time, season, temperature
and the like, and orientation of the terminal, and direction of the screen. When lightning
is present, an animation of lightning may be added. For example, an effect of lightning
may be achieved by suddenly lighting a specific region in the animation.
[0108] With respect to a sunny weather condition, a sunlight irradiation direction and color
thereof, or a moon shape and color thereof, or the like may be set according to current
time, season, temperature, and the like.
[0109] With respect to a cloudy weather condition, a cloud drifting effect may be displayed
in the animation according to current wind force and wind direction.
[0110] With respect to a foggy or hazy weather condition, visibility of the background may
be adjusted, and a severity grade of the fog or haze may be displayed.
[0111] In this embodiment, a weather animation may be generated by using the Draw function
in the Android system. For example, rain drops may be continuously drawn to generate
an animation about the rain. If a 3D effect needs to be simulated, the OpenGL technology
may be used to generate a 3D weather animation.
[0112] According to the weather displaying method provided in the present disclosure, the
animation effect generated is more accurate and verisimilar. This gives a fully immersive
experience for the user, and improves user experience.
[0113] FIG. 9 is a block diagram illustrating a weather displaying apparatus according to
an exemplary embodiment of the present disclosure. As illustrated in FIG. 9, the apparatus
includes: an acquiring module 91, a generating module 92, and a displaying module
93.
[0114] The acquiring module 91 is configured to acquire weather information and orientation
information of a terminal.
[0115] The generating module 92 is configured to generate a weather animation according
to the weather information and the orientation information of the terminal.
[0116] The displaying module 93 is configured to display the weather animation on the terminal.
[0117] FIG. 10 is a block diagram illustrating a generating module according to an exemplary
embodiment of the present disclosure. As illustrated in FIG. 10, optionally, the generating
module 92 includes: a first determining submodule 921, a second determining submodule
922, and an animation generating submodule 923.
[0118] The first determining submodule 921 is configured to determine at least one weather
element composing the weather animation according to the weather information.
[0119] The second determining submodule 922 is configured to determine a motion state of
each of the at least one weather element according to the orientation information
of the terminal.
[0120] The animation generating submodule 923 is configured to generate the weather animation
according to the motion state of the weather element.
[0121] Optionally, the weather information acquired by the acquiring module 91 includes:
weather type and weather grade; and parameters of the weather element determined by
the first determining submodule 921 include: type of the weather element, number of
objects of each weather element, and size of each object. The first determining submodule
921 is configured to determine the type of the weather element, the number of objects
of each weather element, and the size of each object according to the weather type
and the weather grade.
[0122] Optionally, the motion state determined by the second determining submodule 922 includes
an initial position and a motion trajectory;
the second determining submodule 922 is configured to determine an initial position
and a motion trajectory of each object of the weather element according to the orientation
information of the terminal; and
the displaying module 93 is configured to display each object of the weather element
as moving from the initial position along the motion trajectory on the terminal.
[0123] Optionally, the second determining submodule 922 is configured to determine, according
to the orientation information of the terminal, that each object of the weather element
moves from the initial position along a gravity direction.
[0124] Optionally, the orientation information of the terminal acquired by the acquiring
module 91 includes: horizontal, vertical, and inclined. The second determining submodule
922 is configured to: when the terminal is laid horizontally, determine that the motion
trajectory of each object of the weather element is displayed as moving along a direction
vertical to a plane where the screen of the terminal is located; when the terminal
is laid vertically, determine that the motion trajectory of each object of the weather
element is displayed as moving from top to bottom on a plane where the screen of the
terminal is located; or when the terminal is laid inclinedly, determine that the motion
trajectory of each object of the weather element is displayed as moving from top to
bottom along an upright direction in a plane where the screen of the terminal is located.
[0125] Optionally, the orientation information of the terminal acquired by the acquiring
module 91 further includes: horizontally upward and horizontally downward of the screen
of the terminal. The second determining submodule 922 is configured to: when the screen
is horizontally upward, determine that the motion trajectory of each object of the
weather element is displayed as falling down from outside of the screen to inside
of the screen along a direction vertical to a plane where the screen is located; or
when the screen is horizontally downward, determine that the motion trajectory of
each object of the weather element is displayed as falling down from inside of the
screen to outside of the screen along a direction vertical to a plane where the screen
is located.
[0126] Optionally, the weather information acquired by the acquiring module 91 further includes:
wind force information and wind direction information; and the second determining
submodule 922 is configured to calculate a position of each object of the weather
element in each frame of animation according to the type of the weather element, the
size of each object, the wind force information, the wind direction information, and
the orientation information of the terminal.
[0127] FIG. 11 is a block diagram illustrating a generating module according to another
exemplary embodiment of the present disclosure. As illustrated in FIG. 11, optionally,
the generating module 92 includes a background selecting submodule 924.
[0128] The background selecting submodule 924 is configured to use a picture picked up by
a camera of the terminal as a background of the weather animation, or use a predetermined
picture as a background of the weather animation.
[0129] FIG. 12 is a block diagram illustrating a weather displaying apparatus according
to another exemplary embodiment of the present disclosure. As illustrated in FIG.
12, optionally, the apparatus further includes a time acquiring module 94.
[0130] The time acquiring module 94 is configured to acquire current time when the predetermined
picture is used as the background of the weather animation.
[0131] The generating module 92 further includes: a third determining submodule 925 and
an adjusting submodule 926.
[0132] The third determining submodule 925 is configured to determine background chromaticity
value information of the weather animation according to the current time.
[0133] The adjusting submodule 926 is configured to adjust a chromaticity value of the background
of the weather animation according to the background chromaticity value information.
[0134] FIG. 13 is a block diagram illustrating a weather displaying apparatus according
to another exemplary embodiment of the present disclosure. As illustrated in FIG.
13, optionally, the apparatus further includes: a date acquiring module 95 and a season
determining module 96.
[0135] The date acquiring module 95 is configured to acquire a current date when the predetermined
picture is used as the background of the weather animation.
[0136] The season determining module 96 is configured to determine a season of the current
date.
[0137] The generating module 92 further includes a fourth determining submodule 927.
[0138] The fourth determining submodule 927 is configured to determine a background type
of the weather animation according to the season of the current date.
[0139] The background selecting submodule 924 is configured to select a predetermined picture
corresponding to the background type as the background of the weather animation.
[0140] With respect to the apparatuses in the above embodiments, the specific implementations
of operations executed by various modules thereof have been described in detail in
the embodiments illustrating the methods, which are not described herein any further.
[0141] In this embodiment, a weather animation is generated according to weather information
and orientation information. In this way, a plurality of weather conditions are comprehensively
and dynamically presented via pictures, and displaying of the weather conditions is
more accurate, more verisimilar, and more visualized. In addition, the weather conditions
are presented in combination with current orientation information of a terminal, such
that use conditions of the terminal by a user are considered in the presentation of
the weather conditions, effective interactions are achieved with the user, and effects
of the presentation of the weather conditions are more diversified. This gives a fully
immersive experience for the user, and improves user experience.
[0142] The present disclosure further provides an apparatus for use in weather display,
including:
a processor; and
a memory for storing instructions executable by the processor;
wherein the processor is configured to:
acquire weather information and orientation information of a terminal
generate a weather animation according to the weather information and the orientation
information of the terminal; and
display the weather animation on the terminal.
[0143] In this embodiment, a weather animation is generated according to weather information
and orientation information. In this way, a plurality of weather conditions are comprehensively
and dynamically presented via pictures, and displaying of the weather conditions is
more accurate, more verisimilar, and more visualized. In addition, the weather conditions
are presented in combination with current orientation information of a terminal, such
that use conditions of the terminal by a user are considered in the presentation of
the weather conditions, effective interactions are achieved with the user, and effects
of the presentation of the weather conditions are more diversified. This gives a fully
immersive experience for the user, and improves user experience.
[0144] FIG. 14 is a block diagram illustrating an apparatus 1300 for use in weather displaying
according to an exemplary embodiment of the present disclosure. For example, the apparatus
1300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging
device, a gaming console, a tablet, a medical device, an exercise equipment, a personal
digital assistant, and the like.
[0145] Referring to FIG. 14, the apparatus 1300 may include one or more of the following
components: a processing component 1302, a memory 1304, a power component 1306, a
multimedia component 1308, an audio component 1310, an input/output (I/O) interface
1312, a sensor component 1314, and a communication component 1316.
[0146] The processing component 1302 typically controls overall operations of the apparatus
1300, such as the operations associated with display, telephone calls, data communications,
camera operations, and recording operations. The processing component 1302 may include
one or more processors 1320 to execute instructions to perform all or a part of the
steps in the above-described methods. In addition, the processing component 1302 may
include one or more modules which facilitate the interaction between the processing
component 1302 and other components. For example, the processing component 1302 may
include a multimedia module to facilitate the interaction between the multimedia component
1308 and the processing component 1302.
[0147] The memory 1304 is configured to store various types of data to support the operations
of the apparatus 1300. Examples of such data include instructions for any application
or method operated on the apparatus 1300, contact data, phonebook data, messages,
pictures, videos, and the like. The memory 1304 may be implemented using any type
of volatile or non-volatile memory devices, or a combination thereof, such as a static
random access memory (SRAM), an electrically erasable programmable read-only memory
(EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only
memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic
or optical disk.
[0148] The power component 1306 provides power to various components of the apparatus 1300.
The power component 1306 may include a power management system, one or more power
supplies, and other components associated with the generation, management, and distribution
of power in the apparatus 1300.
[0149] The multimedia component 1308 includes a screen providing an output interface between
the apparatus 1300 and the user. In some embodiments, the screen may include a liquid
crystal display (LCD) and a touch panel (TP). If the screen includes the touch panel,
the screen may be implemented as a touch screen to receive input signals from the
user. The touch panel includes one or more touch sensors to sense touches, swipes,
and gestures on the touch panel. The touch sensors may not only sense a boundary of
a touch or swipe action, but also sense a period of time and a pressure associated
with the touch or swipe action. In some embodiments, the multimedia component 1308
includes a front camera and/or a rear camera. The front camera and/or the rear camera
may receive external multimedia data while the apparatus 1300 is in an operation mode,
such as a photographing mode or a video mode. Each of the front camera and the rear
camera may be a fixed optical lens system or have focus and optical zoom capability.
[0150] The audio component 1310 is configured to output and/or input audio signals. For
example, the audio component 1310 includes a microphone (MIC) configured to receive
an external audio signal when the apparatus 1300 is in an operation mode, such as
a call mode, a recording mode, or a voice recognition mode. The received audio signal
may be further stored in the memory 1304 or transmitted via the communication component
1316. In some embodiments, the audio component 1310 further includes a speaker to
output audio signals.
[0151] The I/O interface 1312 provides an interface between the processing component 1302
and a peripheral interface module, such as a keyboard, a click wheel, a button, or
the like. The buttons may include, but are not limited to, a home button, a volume
button, a starting button, and a locking button.
[0152] The sensor component 1314 includes one or more sensors to provide status assessments
of various aspects of the apparatus 1300. For example, the sensor component 1314 may
detect an open/closed status of the apparatus 1300, relative positioning of components,
e.g., the display and the keypad, of the apparatus 1300, a change in position of the
apparatus 1300 or a component of the apparatus 1300, a presence or absence of user
contact with the apparatus 1300, an orientation or an acceleration/deceleration of
the apparatus 1300, and a change in temperature of the apparatus 1300. The sensor
component 1314 may include a proximity sensor configured to detect the presence of
nearby objects without any physical contact. The sensor component 1314 may also include
a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
In some embodiments, the sensor component 1314 may also include an accelerometer sensor,
a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0153] The communication component 1316 is configured to facilitate communications, wired
or wirelessly, between the apparatus 1300 and other devices. The apparatus 1300 may
access a wireless network based on a communication standard, such as WiFi, 2G, or
3G, or a combination thereof. In one exemplary embodiment, the communication component
1316 receives a broadcast signal or broadcast associated information from an external
broadcast management system via a broadcast channel. In one exemplary embodiment,
the communication component 1316 further includes a near field communication (NFC)
module to facilitate short-range communications. For example, the NFC module may be
implemented based on a radio frequency identification (RFID) technology, an infrared
data association (IrDA) technology, an ultra-wideband (UWB) technology, a Bluetooth
(BT) technology, and other technologies.
[0154] In exemplary embodiments, the apparatus 1300 may be implemented with one or more
application specific integrated circuits (ASICs), digital signal processors (DSPs),
digital signal processing devices (DSPDs), programmable logic devices (PLDs), field
programmable gate arrays (FPGAs), controllers, micro-controllers, microprocessors,
or other electronic components, for performing the above-described methods.
[0155] In exemplary embodiments, there is also provided a non-transitory computer-readable
storage medium including instructions, for example, the memory 1304 including instructions,
executable by the processor 1320 in the apparatus 1300, for performing the above-described
methods. For example, the non-transitory computer-readable storage medium may be a
ROM, a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic
tape, a floppy disc, an optical data storage device, or the like.
[0156] A non-transitory computer-readable storage medium is provided. When instructions
stored in the storage medium are executed by a processor of a mobile terminal, the
mobile terminal is caused to perform a weather displaying method, wherein the method
includes:
acquiring weather information and orientation information of a terminal;
generating a weather animation according to the weather information and the orientation
information of the terminal; and
displaying the weather animation on the terminal.
[0157] Optionally, generating a weather animation according to the weather information and
the orientation information of the terminal includes:
determining at least one weather element composing the weather animation according
to the weather information;
determining a motion state of each of the at least one weather element according to
the orientation information of the terminal; and
generating the weather animation according to the motion state of the weather element.
[0158] Optionally, the weather information includes: weather type and weather grade; and
parameters of the weather element include: type of the weather element, number of
objects of each weather element, and size of each object;
determining at least one weather element composing the weather animation according
to the weather information includes:
determining the type of the weather element, the number of objects of each weather
element, and the size of each object according to the weather type and the weather
grade.
[0159] Optionally, the motion state includes an initial position and a motion trajectory;
determining a motion state of each of the at least one weather element according to
the orientation information of the terminal includes:
determining an initial position and a motion trajectory of each object of the weather
element according to the orientation information of the terminal; and
displaying the weather animation on the terminal includes:
displaying each object of the weather element as moving from the initial position
along the motion trajectory on the terminal.
[0160] Optionally, determining an initial position and a motion trajectory of each object
of the weather element according to the orientation information of the terminal includes:
determining, according to the orientation information of the terminal, that the motion
trajectory of each object of the weather element is displayed as moving from the initial
position along a gravity direction.
[0161] Optionally, the orientation information of the terminal includes: horizontal, vertical,
and inclined; and
determining, according to the orientation information of the terminal, that the motion
trajectory of each object of the weather element is displayed as moving from the initial
position along a gravity direction includes:
when the terminal is laid horizontally, determining that the motion trajectory of
each object of the weather element is displayed as: moving along a direction vertical
to a plane where the screen of the terminal is located;
when the terminal is laid vertically, determining that the motion trajectory of each
object of the weather element is displayed as: moving from top to bottom on a plane
where the screen of the terminal is located; or
when the terminal is laid inclinedly, determining that the motion trajectory of each
object of the weather element is displayed as: moving from top to bottom along an
upright direction in a plane where the screen of the terminal is located.
[0162] Optionally, the orientation information of the terminal further includes: horizontally
upward and horizontally downward of the screen of the terminal; and
determining, according to the orientation information of the terminal, that the motion
trajectory of each object of the weather element is displayed as moving from the initial
position along a gravity direction includes:
when the screen is horizontally upward, determining that the motion trajectory of
each object of the weather element is displayed as: falling down from outside of the
screen to inside of the screen along a direction vertical to a plane where the screen
is located; or
when the screen is horizontally downward, determining that the motion trajectory of
each object of the weather element is displayed as: falling down from inside of the
screen to outside of the screen along a direction vertical to a plane where the screen
is located.
[0163] Optionally, the weather information further includes: wind force information and
wind direction information; and
determining an initial position and a motion trajectory of each object of the weather
element according to the orientation information of the terminal includes:
calculating a position of each object of the weather element in each frame of animation
according to the type of the weather element, the size of each object, the wind force
information, the wind direction information, and the orientation information of the
terminal.
[0164] Optionally, generating a weather animation according to the weather information and
the orientation information of the terminal includes:
using a picture picked up by a camera of the terminal as a background of the weather
animation, or using a predetermined picture as a background of the weather animation.
[0165] Optionally, when the predetermined picture is used as the background of the weather
animation, the method further includes:
acquiring current time;
determining background chromaticity value information of the weather animation according
to the current time; and
adjusting a chromaticity value of the background of the weather animation according
to the background chromaticity value information.
[0166] Optionally, when the predetermined picture is used as the background of the weather
animation, the method further includes:
acquiring a current date;
determining a season of the current date; and
determining a background type of the weather animation according to the season of
the current date; and
selecting a predetermined picture corresponding to the background type as the background
of the weather animation.
[0167] In this embodiment, a weather animation is generated according to weather information
and orientation information. In this way, a plurality of weather conditions are comprehensively
and dynamically presented via pictures, and displaying of the weather conditions is
more accurate, more verisimilar, and more visualized. In addition, the weather conditions
are presented in combination with current orientation information of a terminal, such
that use conditions of the terminal by a user are considered in the presentation of
the weather conditions, effective interactions are achieved with the user, and effects
of the presentation of the weather conditions are more diversified. This gives a fully
immersive experience for the user, and improves user experience.
[0168] Other embodiments of the present disclosure will be apparent to those skilled in
the art from consideration of the specification and practice disclosed herein. This
application is intended to cover any variations, uses, or adaptations of the present
disclosure following the general principles thereof and including such departures
from the present disclosure as coming within common knowledge or customary technical
means in the art. It is intended that the specification and embodiments be considered
as exemplary only, with a true scope and spirit of the present disclosure being indicated
by the appended claims.
[0169] It will be appreciated that the present disclosure is not limited to the exact construction
that has been described above and illustrated in the accompanying drawings, and that
various modifications and changes can be made without departing from the scope thereof.
The scope of the present disclosure is only defined by the appended claims.