WO2020244491A1 - 信息的展示方法、装置、电子设备及计算机存储介质 - Google Patents

信息的展示方法、装置、电子设备及计算机存储介质 Download PDF

Info

Publication number
WO2020244491A1
WO2020244491A1 PCT/CN2020/093860 CN2020093860W WO2020244491A1 WO 2020244491 A1 WO2020244491 A1 WO 2020244491A1 CN 2020093860 W CN2020093860 W CN 2020093860W WO 2020244491 A1 WO2020244491 A1 WO 2020244491A1
Authority
WO
WIPO (PCT)
Prior art keywords
target vehicle
trajectory
moment
motion
speed
Prior art date
Application number
PCT/CN2020/093860
Other languages
English (en)
French (fr)
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
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to JP2021543180A priority Critical patent/JP7232341B2/ja
Publication of WO2020244491A1 publication Critical patent/WO2020244491A1/zh
Priority to US17/325,303 priority patent/US11806622B2/en
Priority to US18/478,681 priority patent/US20240024779A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/35Details of game servers
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/537Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen
    • A63F13/5375Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen for graphically or textually suggesting an action, e.g. by displaying an arrow indicating a turn in a driving game
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • A63F13/56Computing the motion of game characters with respect to other game characters, game objects or elements of the game scene, e.g. for simulating the behaviour of a group of virtual soldiers or for path finding
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • A63F13/57Simulating properties, behaviour or motion of objects in the game world, e.g. computing tyre load in a car race game
    • A63F13/573Simulating properties, behaviour or motion of objects in the game world, e.g. computing tyre load in a car race game using trajectories of game objects, e.g. of a golf ball according to the point of impact
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/803Driving vehicles or craft, e.g. cars, airplanes, ships, robots or tanks
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/30Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
    • A63F2300/303Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device for displaying additional data, e.g. simulating a Head Up Display
    • A63F2300/305Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device for displaying additional data, e.g. simulating a Head Up Display for providing a graphical or textual hint to the player
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/30Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
    • A63F2300/308Details of the user interface
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/8017Driving on land or water; Flying

Definitions

  • This application relates to the Internet field, and in particular to an information display method, device, electronic equipment and computer storage medium.
  • Electronic games refer to games that use equipment assembled from electronic components (or called game terminals) as a running platform. This is different from traditional games.
  • Traditional games require real game props, such as chess and poker.
  • the electronic game is a way of interacting with the electronic game by controlling the game terminal.
  • the player's vehicle will only display the trajectory that the player has passed while driving, the information display is single, and the user experience is low.
  • the embodiments of the present application provide an information display method, device, electronic equipment, and computer storage medium, which can simultaneously display the trajectory of the vehicle and the predicted trajectory of the vehicle in the future, which enriches the virtual scene Information displayed.
  • the embodiment of the application provides a method for displaying information, including:
  • the first motion trajectory includes: the line and the direction of the movement of the target vehicle within a period of time after the current moment;
  • the first and second motion trajectories are displayed.
  • the second motion trajectory is the motion trajectory of the target vehicle before the current moment.
  • the location where the first motion trajectory and the second motion trajectory meet is the position of the target vehicle at the current moment.
  • the embodiment of the present application also provides a method for displaying information.
  • the method is executed by a terminal.
  • the terminal includes one or more processors and a memory, and one or more programs, wherein the one or one The above program is stored in a memory, the program may include one or more units each corresponding to a set of instructions, and the one or more processors are configured to execute instructions; the method includes:
  • the first motion trajectory includes: the line and the direction of the movement of the target vehicle within a period of time after the current moment;
  • the connected position is the position of the target vehicle at the current moment.
  • An embodiment of the present application also provides an information display device, the device includes:
  • An acquiring unit configured to acquire the current motion state of the target vehicle in the virtual scene, and a first operation for controlling the target vehicle to move in the virtual scene;
  • the determining unit is configured to combine the movement state of the target vehicle at the current moment and the first operation to predict the first movement trajectory of the target vehicle within a period of time after the current moment;
  • the first motion trajectory includes: the line and the direction of the movement of the target vehicle within a period of time after the current moment;
  • the display unit is configured to display the first movement track and the second movement track on the client;
  • the second motion trajectory is the motion trajectory of the target vehicle before the current moment
  • the position where the first motion trajectory and the second motion trajectory meet is the position of the target vehicle at the current moment
  • the embodiment of the present application provides a method for displaying information.
  • the method is executed by a terminal.
  • the terminal includes one or more processors and memories, and one or more programs, wherein the one or more The program of is stored in the memory, the program may include one or more units each corresponding to a set of instructions, and the one or more processors are configured to execute the instructions; the method includes:
  • the first movement trajectory includes: a route of the target object moving within a period of time after the current moment;
  • the connected position is the position of the target object at the current moment.
  • An embodiment of the present application also provides an information display device, the device includes:
  • An acquiring unit configured to acquire the current motion state of the target object in the virtual scene, and a first operation for controlling the motion of the target object in the virtual scene;
  • a determining unit configured to combine the motion state of the target object at the current moment and the first operation to predict the first motion track of the target object within a period of time after the current moment;
  • the first movement trajectory includes: a route of the target object moving within a period of time after the current moment;
  • the display unit is configured to display the first movement track and the second movement track, wherein the second movement track is the movement track of the target object before the current moment, and the first movement track and the The position where the second motion track meets is the position of the target object at the current moment.
  • the embodiment of the present application also provides a computer storage medium.
  • the computer stores a computer program, and the computer program is used to execute the information display method provided by the embodiment of the present application.
  • the embodiment of the present application also provides an electronic device including a memory and a processor
  • the memory is configured to store a computer program
  • the processor is configured to execute the method for displaying the information provided in the embodiment of the present application when executing the computer program in the memory.
  • the trajectory (the second motion trajectory) that the vehicle has traveled can be displayed at the same time that the predicted vehicle will be displayed in the future.
  • the driving trajectory (the first motion trajectory) enriches the information displayed in the virtual scene, and at the same time, assists the user to more accurately control the target vehicle, which improves the user experience.
  • FIG. 1 is a schematic diagram of a hardware environment of a method for displaying information provided by an embodiment of the present application
  • FIG. 2 is a flowchart of an optional information display method provided by an embodiment of the present application.
  • Figure 3 is a schematic diagram of an optional game interface provided by an embodiment of the present application.
  • Figure 4 is a schematic diagram of an optional game interface provided by an embodiment of the present application.
  • Figure 5 is a schematic diagram of an optional game interface provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of an optional game interface provided by an embodiment of the present application.
  • FIG. 7 is a flowchart of an optional information display method provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of an optional vehicle state provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of an optional game interface provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of an optional game interface provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of an optional information display device provided by an embodiment of the present application.
  • FIG. 12 is a structural block diagram of a terminal provided by an embodiment of the present application.
  • FIG. 1 is a schematic diagram of the hardware environment of the method for displaying information provided by an embodiment of the present application. See FIG. 1.
  • the method for displaying information provided by an embodiment of the present application can be applied to the method shown in FIG.
  • the terminal 101 and the server 103 constitute a hardware environment.
  • the server 103 is connected to the terminal 101 through the network, and can provide services (such as game services, application services, etc.) for the terminal or the client installed on the terminal.
  • the database 105 can be set on the server, or independent of the server 103 sets up a separate database 105, and the database 105 provides data storage services for the server 103.
  • the aforementioned networks include but are not limited to: wide area networks, metropolitan area networks, or local area networks.
  • the terminal 101 is not limited to PCs, mobile phones, tablet computers, etc.
  • the information display method in the embodiment of the present application may be executed by the terminal 101, or implemented by the terminal 101 and the server 103 in cooperation.
  • a client terminal is installed on the terminal 101, and the information display method of the embodiment of the present application is executed through the client terminal.
  • the method for displaying information provided in the embodiments of the present application includes:
  • S1 The terminal obtains the movement state of the target object in the virtual scene at the current moment, and the first operation for controlling the movement of the target object in the virtual scene.
  • the target object can be any object in a virtual scene that can be in motion, such as a vehicle object, an animal object, an animation character object, etc.;
  • the first operation is used to control the movement of the target object in the virtual scene, such as controlling the target object to advance, reverse, turn, accelerate, etc. along the target path in the virtual scene.
  • the first movement trajectory includes: a route of the target object moving within a period of time after the current moment.
  • the second motion trajectory is the motion trajectory of the target object before the current moment
  • the position where the first motion trajectory and the second motion trajectory meet is the target object The location at the current moment.
  • FIG. 2 is a flowchart of an optional information display method provided by an embodiment of the present application. As shown in FIG. 2, the method may include the following steps:
  • Step S202 The terminal obtains the current motion state of the target vehicle in the virtual scene and the first operation for controlling the target vehicle to move in the virtual scene.
  • the virtual scene can be displayed in the client.
  • the visual perception of the virtual scene can be formed with the aid of the naked eye or the device, for example, the two-dimensional image output by the display screen, through the stereo Projection, virtual reality and augmented reality technology and other three-dimensional display technologies to output three-dimensional images;
  • various possible hardware can also form a variety of simulated real world perceptions such as auditory perception, tactile perception, olfactory perception and motion perception;
  • the virtual scene may be a game scene.
  • the first operation is an operation for controlling the movement of the target vehicle in the virtual scene detected on the client at the current moment.
  • the above-mentioned client is the client formed after the target application is installed on the terminal.
  • the virtual scene is the virtual scene of social or game provided by the target application (such as social application, game application, etc.).
  • the client provides the user with the virtual scene
  • the interactive interface of the vehicle in the vehicle is convenient for the user to control the vehicle. For example, various control buttons are displayed on the client. The user can click these control buttons (such as the first operation, the second operation, etc.) to realize the control of the vehicle. Manipulation.
  • the aforementioned movement state may be at least one of the movement speed, movement direction, and external force of the target vehicle, and the first operation is a user's operation, such as an acceleration operation, a deceleration operation, and the like.
  • Step S204 The terminal determines the first movement trajectory of the target vehicle within a period of time after the current moment according to the movement state and the first operation.
  • the terminal predicts the first motion trajectory of the target vehicle after the current moment according to the motion state and the first operation, that is, the terminal predicts the motion trajectory of the target vehicle in the future period of time (such as 10 seconds) according to the motion state and the first operation,
  • the motion trajectory includes two parts: the line of motion and the direction of motion.
  • Step S206 the terminal displays the first motion trajectory and the second motion trajectory on the client, the second motion trajectory is the motion trajectory of the target vehicle before the current moment, and the position where the first motion trajectory and the second motion trajectory meet is the target vehicle The location at the current moment.
  • the embodiment of the application provides a visual presentation scheme for comprehensive information about the game, which integrates the power direction determination scheme after the comprehensive factors of power, steering, and inertial resistance are combined.
  • the power travel information is presented in real time in the game and provides inertia,
  • the way of presentation is the feedback that is presented interactively between the game and the scene.
  • the terminal determines the first movement track of the target vehicle within a period of time after the current time according to the movement state and the first operation.
  • the determination of the first motion trajectory of the target vehicle within a period of time after the current time according to the motion state and the first operation can be implemented through steps S2042-step S2046 as shown below:
  • Step S2042 Determine the first speed v1 of the target vehicle at the first time t1 by using the power model.
  • the power model is used to describe the external force of the target vehicle at the second time t2, the second speed v2 of the target vehicle at the second time, the traction force of the target vehicle at the second time and the first speed of the target vehicle at the first time Relationship;
  • the second moment is the moment before the first moment, and the motion state includes the external force of the target vehicle at the second moment and the second speed of the target vehicle at the second moment;
  • the tractive force of the target vehicle at the second moment is determined according to the first operation.
  • using the power model to determine the first speed of the target vehicle at the first moment includes: in the case that the external force includes the friction of the target vehicle at the second moment, using the power model to determine that the target vehicle is at the second speed The friction at the moment, the second speed, and the first speed corresponding to the traction of the target vehicle at the second moment; that is, when the external force of the target vehicle at the second moment includes the friction of the target vehicle at the second moment.
  • the dynamic model is used to describe the relationship between the friction force, the second speed, the traction force of the target vehicle at the second moment and the first speed; , The second speed, the relationship between the traction force of the target vehicle at the second moment and the first speed, determine the first speed.
  • using the power model to determine the first speed of the target vehicle includes: when the external force includes the rebound force of the target vehicle being collided at the second moment, using the power model to determine the speed of the target vehicle at the second moment The rebound force, the second speed, and the first speed corresponding to the traction force of the target vehicle at the second moment; that is, when the target vehicle's external force at the second moment includes the target vehicle's impact at the second moment
  • the power model is used to describe the relationship between the rebound force, the second speed, the traction force of the target vehicle at the second moment, and the first speed; , The second speed, the relationship between the traction force of the target vehicle at the second moment and the first speed, determine the first speed.
  • the direction of a is the arrow direction at the second moment, and a similar method can be used to calculate the acceleration at the first moment, and the direction of the acceleration is the arrow direction at the second moment.
  • Step S2044 Determine the trajectory point of the target vehicle at the second moment according to the first speed and the second speed of the target vehicle.
  • the distance traversed by the target vehicle from t1 to t2 can be calculated using integral or other methods to determine the trajectory point at the second moment of the target vehicle.
  • Step S2046 Fit at least two trajectory points within the period of time to obtain a first motion trajectory.
  • a fitting formula can be used to fit all trajectory points. If the trajectory of a formula does not completely represent the first motion trajectory, the first motion trajectory can be expressed in the form of multiple trajectory segments, and the fitting process is sufficient. It is understood as the process of substituting the value of the known track point into the fitting formula to obtain the value of the unknown parameter in the fitting formula.
  • the terminal displays the first motion trajectory and the second motion trajectory on the client.
  • the second motion trajectory is the motion trajectory of the target vehicle before the current moment, and the first motion trajectory and the second motion trajectory are relative to each other.
  • the connected position is the position of the target vehicle at the current moment.
  • the first movement trajectory and the second movement trajectory can be displayed in the following manner:
  • the first motion track is displayed according to the first display method
  • the second motion track is displayed according to the second display method.
  • the first display method is different from the second display method.
  • the display methods here include but are not limited Because the track color is different, the shape or color of the track fill is different, the shape of the track itself is different, etc.
  • the presentation mode is not limited to the arrow special effect, but also includes other expression modes of vector information such as direction and length that can be represented by concrete information.
  • the first trajectory is a complete trajectory. If there are obstacles on the estimated trajectory of the target vehicle, Then the first motion trajectory includes multiple trajectories. At this time, displaying the first motion trajectory in the first display mode on the client includes: displaying the first trajectory and the second trajectory in the first display mode on the client.
  • the first trajectory includes a first trajectory and a second trajectory, the first trajectory starts with the position of the target vehicle at the current moment, and the first trajectory is the trajectory generated by the target vehicle moving in accordance with the state of motion.
  • the second trajectory takes the end position of the first trajectory as the starting position, and the second trajectory is the motion trajectory generated after the target vehicle collides with an obstacle when it moves in accordance with the motion state.
  • the client in the process of displaying the first movement track and the second movement track on the client, when the client detects the second operation, that is, when there is a new operation of the user, the client
  • the third and fourth trajectories are shown above.
  • the third trajectory is the trajectory of the target vehicle after the second operation is detected.
  • the fourth trajectory is the trajectory of the target vehicle before the second operation is detected.
  • the method for determining the motion trajectory is the same as the first motion trajectory, which will not be repeated here.
  • the second operation is different from the first operation detected on the client at the current moment.
  • the result of the comprehensive stress of the unit operated by the user and the interactive prompt with the scene can be presented through an intuitive display form, and the user is reminded to avoid subsequent adverse consequences in advance.
  • the following takes the application of the technical solution of the embodiment of the present application to a game, that is, an example in which the virtual scene is a game scene, in detail the display method of the information provided by the embodiment of the present application.
  • the direction indicated by the arrow number 41 in Figure 4 is the current heading direction.
  • the direction is not the direction of travel of the vehicle; if the forward direction is sensed by using the reverse extension line of the wheel, the direction indicated by the arrow number 42 in Figure 4 is the direction of the reverse extension line of the wheel, and the direction can be known
  • the current direction of the vehicle but it is difficult for new users to perceive the actual meaning of this approach.
  • the information display method of the embodiment of the present application is proposed, which can present the results of the comprehensive force (including direction and size) of the unit operated by the user and interactive prompts with the scene through an intuitive display form, reminding the user to avoid in advance , And proceed with subsequent operations.
  • an extension line from the user to operate the vehicle (such as a green extension line, that is, the arrow in front of the vehicle shown by number 51 in Figure 5), illustrates the direction of the vehicle's travel.
  • the operating power model indicates the line
  • Real-time changes are made to display the following trajectory; as shown in Figure 6, when the vehicle is about to collide, the predicted trajectory line will also be shown in accordance with the rebound route, as shown by number 61 in Figure 6, when the vehicle is about to collide, The predicted trajectory (No. 61) will change and display according to the rebound route.
  • Step S701 the input operation (such as the first operation) is detected, and the number of frames n is predicted.
  • step S702 if the user operation is unchanged, the power model data is updated.
  • step S703 it is judged whether n updates have been completed, if yes, step S704 is executed, otherwise, step S702 is executed.
  • step S704 the position information is processed to maintain relative stability with the vehicle.
  • step S705 an arrow is generated according to the position data of n frames.
  • the dynamic model of the system monitors user operations in real time.
  • the predicted route of the trajectory is refreshed, and the special effect mark presentation is refreshed.
  • the embodiment of the present application can uniformly count the power, steering operation, and drift inertia attenuation of the operating unit as a final result, a vector result based on speed and forward direction, as shown in Figure 8, where f is the force on the vehicle when turning The friction force of is opposite to the forward direction, F is the actual forward direction, v is the vehicle power, F depends on the comprehensive calculation result of f and v.
  • f the force on the vehicle when turning
  • F is the actual forward direction
  • v the vehicle power
  • F depends on the comprehensive calculation result of f and v.
  • the trajectory of the vehicle can be drawn for a period of time. It is shown as 91 in Figure 9. But it is not visible to users. This leads to a higher threshold for users to understand inertia.
  • the embodiment of the present application can present the vector in the form of an arrow by adopting special effects.
  • the unit center of gravity position of the user operation is connected with the position end point after x time units based on the previous force result through special effects.
  • the length, angle and radian allow users to intuitively feel the position prediction after x time unit, the forward force direction is the current acceleration of the travel route, and the arc-shaped travel route can be obtained by recursive processing.
  • any user's operation that affects the result of the journey can be presented in real-time feedback in the game.
  • the manifestation is that if the power increases, the display special effect will be elongated (actually the speed Increase, the side length of the trajectory driving in the same time), the force angle (that is, the direction of travel) changes; in some embodiments, when there is an obstacle in the first motion trajectory, the first motion trajectory can be displayed by the target color ; Among them, the target color is different from the color when there are no obstacles in the first motion trajectory.
  • the predicted route will be displayed in green.
  • the arrow shown as number 11 in Figure 10 is the prediction The route is green; if a collision occurs, the prediction line will turn red to warn, and according to the result of the collision, the route of travel caused by the result of the collision is displayed.
  • the application of the above-mentioned embodiments of this application can intuitively reflect the trajectory of the vehicle during driving and the final force status, and present the dynamic model and travel trend of the vehicle through an intuitive display, which can reduce the user's understanding of the difficulty and facilitate the user's vehicle control .
  • ROM Read Only Memory
  • RAM Random Access Memory
  • CD-ROM Random Access Memory
  • the embodiment of the present application also provides an information display device for implementing the foregoing information display method.
  • the information display device provided in the embodiment of the present application includes:
  • An acquiring unit configured to acquire the current motion state of the target object in the virtual scene, and a first operation for controlling the motion of the target object in the virtual scene;
  • a determining unit configured to combine the motion state of the target object at the current moment and the first operation to predict the first motion track of the target object within a period of time after the current moment;
  • the first movement trajectory includes: a route of the target object moving within a period of time after the current moment;
  • the display unit is configured to display the first movement track and the second movement track, wherein the second movement track is the movement track of the target object before the current moment, and the first movement track and the The position where the second motion track meets is the position of the target object at the current moment.
  • FIG. 11 is a schematic diagram of an optional information display device provided by an embodiment of the present application. As shown in FIG. 11, the device may include: an acquisition unit 1101, a determination unit 1103, and a display unit 1105.
  • the acquiring unit 1101 is configured to acquire the motion state of the target vehicle in the virtual scene at the current moment, and a first operation for controlling the target vehicle to move in the virtual scene;
  • the above-mentioned client is the client formed after the target application is installed on the terminal.
  • the virtual scene is the virtual scene of social or game provided by the target application (such as social application, game application, etc.).
  • the client provides the user with the virtual scene
  • the interactive interface of the vehicle in the vehicle is convenient for the user to control the vehicle. For example, various control buttons are displayed on the client. The user can click these control buttons (such as the first operation, the second operation, etc.) to realize the control of the vehicle. Manipulation.
  • the aforementioned movement state may be at least one of the movement speed, movement direction, and external force of the target vehicle, and the first operation is a user's operation, such as an acceleration operation, a deceleration operation, and the like.
  • the determining unit 1103 is configured to combine the motion state and the first operation to predict the first motion trajectory of the target vehicle within a period of time after the current moment;
  • the first motion trajectory includes: the line and the direction of the movement of the target vehicle within a period of time after the current moment;
  • the terminal determines the first motion trajectory of the target vehicle after the current moment according to the motion state and the first operation, that is, the motion trajectory of the target vehicle estimated by the terminal according to the motion state and the first operation in the future period of time (such as 10 seconds).
  • the motion trajectory includes two parts: the line of motion and the direction of motion.
  • the display unit 1105 is configured to display the first motion trajectory and the second motion trajectory on the client, where the second motion trajectory is the motion trajectory of the target vehicle before the current moment, and the first motion trajectory and the second motion trajectory are connected
  • the location is the location of the target vehicle at the current moment.
  • the acquiring unit 1101 in this embodiment can be configured to execute step S202 in the embodiment of this application
  • the determining unit 1103 in this embodiment can be configured to execute step S204 in the embodiment of this application
  • the display unit 1105 in the embodiment may be configured to perform step S206 in the embodiment of the present application.
  • the display device using the information provided by the embodiments of the present application can display the trajectory (the second motion trajectory) of the vehicle and the predicted driving trajectory (the first motion trajectory) of the vehicle in the future for a period of time.
  • the information displayed in the virtual scene also assists the user to more accurately control the target vehicle, which improves the user experience.
  • the display unit is further configured to: display the first motion track in a first display manner, and display the second motion track in a second display manner, wherein the first display manner and the second display manner different.
  • the first motion trajectory includes a first trajectory and a second trajectory
  • the display unit is further configured to:
  • the first trajectory takes the position of the target vehicle at the current moment as the starting position, and the first trajectory is the movement trajectory generated by the movement of the target vehicle according to the movement state;
  • the second trajectory takes the end position of the first trajectory as the starting position, and the second trajectory is the motion trajectory generated after the target vehicle collides with an obstacle when the target vehicle moves according to the motion state.
  • the display unit is further configured to display the third motion trajectory and the fourth motion trajectory on the client when the second operation is detected by the client, where the third motion trajectory is when the second operation is detected.
  • the second operation is the trajectory of the target vehicle after the operation
  • the fourth trajectory is the trajectory of the target vehicle before the second operation is detected
  • the second operation is different from the first operation detected on the client at the current moment.
  • the determining unit includes: a first determining module configured to determine the first speed of the target vehicle at the first moment by using the power model,
  • the power model is used to describe the external force of the target vehicle at the second moment, the second speed of the target vehicle at the second moment, the traction force of the target vehicle at the second moment and the first speed of the target vehicle at the first moment Relationship;
  • the second moment is the moment before the first moment
  • the second determining module is configured to determine the trajectory point of the target vehicle at the second moment according to the first speed and the second speed of the target vehicle;
  • the fitting module is configured to fit at least two trajectory points in the period of time to obtain a first movement trajectory.
  • the first determination module is further configured to: in the case where the external force includes the friction force of the target vehicle at the second moment, use the dynamic model to determine the friction force and the second speed of the target vehicle at the second moment. And the first speed corresponding to the traction of the target vehicle at the second moment.
  • the first determining module is further configured to: in the case where the external force includes the rebound force of the target vehicle at the second moment of collision, use the dynamic model to determine the rebound force and the first The second speed and the first speed corresponding to the traction of the target vehicle at the second moment.
  • the above-mentioned modules can run in the hardware environment as shown in FIG. 1, and can be implemented by software or hardware, where the hardware environment includes a network environment.
  • the embodiment of the present application also provides a server or terminal for implementing the foregoing information display method.
  • FIG. 12 is a structural block diagram of a terminal according to an embodiment of the present application.
  • the terminal may include: one or more (only one is shown in FIG. 12) processor 1201, memory 1203, and transmission device 1205, as shown in FIG. 12, the terminal may also include an input and output device 1207.
  • the memory 1203 can be configured to store software programs and modules, such as the program instructions/modules corresponding to the information display method and device in the embodiments of the present application.
  • the processor 1201 runs the software programs and modules stored in the memory 1203, In this way, various functional applications and data processing are executed, that is, the above-mentioned information display method is realized.
  • the memory 1203 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • the memory 1203 may further include memories remotely provided with respect to the processor 1201, and these remote memories may be connected to the terminal through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
  • the aforementioned transmission device 1205 is configured to receive or send data via a network, and can also be used for data transmission between the processor and the memory.
  • the foregoing examples may include wired networks and wireless networks.
  • the transmission device 1205 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network.
  • the transmission device 1205 is a radio frequency (RF) module, configured to communicate with the Internet in a wireless manner.
  • RF radio frequency
  • the memory 1203 is configured to store application programs.
  • the processor 1201 may execute the information display method provided in the embodiment of the present application by running the application program stored in the memory 1203.
  • the structure shown in FIG. 12 is only for illustration, and the terminal can be a smart phone (such as an Android phone, an ios phone, etc., a tablet computer, a handheld computer, and a mobile Internet Device (MID), PAD).
  • Figure 12 does not limit the structure of the above electronic device.
  • the terminal may also include more or less components (such as network interfaces, display devices, etc.) than those shown in Figure 12, or have 12 shows different configurations.
  • the program can be stored in a computer-readable storage medium, which can be Including: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), magnetic disk or optical disk, etc.
  • the embodiment of the present application also provides a computer storage medium that stores a computer program for executing the information display method, and the computer program is used to execute the above-mentioned information display method provided by the embodiment of the present application.
  • the foregoing storage medium may be located on at least one network device among the multiple network devices in the network shown in the foregoing embodiment.
  • the storage medium is configured to store a computer program for performing the following steps:
  • the first motion trajectory includes: the line and the direction of the movement of the target vehicle within a period of time after the current moment;
  • the connected location is the location of the target vehicle at the current moment.
  • the above-mentioned computer storage medium may include but is not limited to: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk, etc., which can store various programs The medium of the code.
  • the integrated unit in the foregoing embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in the foregoing computer-readable storage medium.
  • the technical solution of this application essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, A number of instructions are included to enable one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the disclosed client can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division.
  • multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of units or modules, and may be in electrical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • each unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the current state of motion of the target vehicle in the virtual scene is acquired, and the first operation for controlling the motion of the target vehicle in the virtual scene; combined with the motion state of the target vehicle at the current time And the first operation to predict the first movement track of the target vehicle within a period of time after the current moment; wherein the first movement track includes: the target vehicle within a period of time after the current moment The line of motion and the direction of motion; showing the first motion trajectory and the second motion trajectory, wherein the second motion trajectory is the motion trajectory of the target vehicle before the current moment, and the first motion trajectory The position connected with the second motion track is the position of the target vehicle at the current moment.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种信息的展示方法、装置、电子设备及计算机存储介质。其中,方法包括:获取虚拟场景内的目标车辆在当前时刻的运动状态,以及用于控制所述目标车辆在所述虚拟场景中运动的第一操作(S202);结合所述目标车辆在当前时刻的运动状态和所述第一操作,预测所述目标车辆在所述当前时刻之后一段时间内的第一运动轨迹(S204);其中,所述第一运动轨迹包括:所述目标车辆在所述当前时刻之后一段时间内运动的线路和运动的方向;展示所述第一运动轨迹和第二运动轨迹,其中,所述第二运动轨迹为所述目标车辆在所述当前时刻之前的运动轨迹,所述第一运动轨迹和所述第二运动轨迹相接的位置,为所述目标车辆在所述当前时刻所在的位置(S206)。

Description

信息的展示方法、装置、电子设备及计算机存储介质
相关申请的交叉引用
本申请基于申请号为201910487795.6、申请日为2019年06月05日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本申请涉及互联网领域,尤其涉及一种信息的展示方法、装置、电子设备及计算机存储介质。
背景技术
随着计算机以及图形图像技术的发展,出现了电子游戏。电子游戏指以电子元器件组装成的设备(或称为游戏终端)为运行平台的游戏。这与传统的游戏方式是不同的,传统的游戏需要现实中的游戏道具,如:象棋、扑克牌等。而电子游戏则是通过控制游戏终端与电子游戏进行交互的游戏方式。
在互联网时代,电子游戏已经发展成为网络游戏。玩网络游戏也已经成为当今人们体闲娱乐最为流行的一种方式。网络游戏拥有强大的人与人之间的交流平台,用户在游戏中得到充足的虚拟现实体验,这是过去传统游戏不能比拟的。玩家(或称为游戏用户)可以在游戏终端的游戏界面中扮演某个虚拟角色,实现与游戏中其他虚拟角色进行游戏。
在竞速类游戏中,玩家的车辆行驶过程中仅仅会显示玩家已经经过的轨迹,信息显示单一、用户体验低。
发明内容
本申请实施例提供了一种信息的展示方法、装置、电子设备及计算机存储介质,能够同时显示车辆行驶过的轨迹,以及预测得到的车辆在未来一段时间内的行驶轨迹,丰富了虚拟场景中显示的信息。
本申请实施例提供了一种信息的展示方法,包括:
获取虚拟场景内的目标车辆在当前时刻的运动状态,以及用于控制所述目标车辆在所述虚拟场景中运动的第一操作;
结合所述目标车辆在当前时刻的运动状态和所述第一操作,预测目标车辆在当前时刻之后一段时间内的第一运动轨迹;
其中,所述第一运动轨迹包括:所述目标车辆在所述当前时刻之后一段时间内运动的线路和运动的方向;
展示第一运动轨迹和第二运动轨迹,第二运动轨迹为目标车辆在当前时刻之前的运动轨迹,第一运动轨迹和第二运动轨迹相接的位置,为目标车辆在当前时刻所在的位置。
本申请实施例还提供了一种信息的展示方法,所述方法由终端执行,所述终端包括有一个或多个处理器以及存储器,以及一个或一个以上的程序,其中,所述一个或一个以上的程序存储于存储器中,所述程序可以包括一个或一个以上的每一个对应于一组指令的单元,所述一个或多个处理器被配置为执行指令;所述方法包括:
获取虚拟场景内的目标车辆在当前时刻的运动状态,以及用于控制所述目标车辆在所述虚拟场景中运动的第一操作;
结合所述目标车辆在当前时刻的运动状态和所述第一操作,预测所述目标车辆在所述当前时刻之后一段时间内的第一运动轨迹;
其中,所述第一运动轨迹包括:所述目标车辆在所述当前时刻之后一段时间内运动的线路和运动的方向;
展示所述第一运动轨迹和第二运动轨迹,其中,所述第二运动轨迹为所述目标车辆在所述当前时刻之前的运动轨迹,所述第一运动轨迹和所述第二运动轨迹相接的位置为所述目标车辆在所述当前时刻所在的位置。
本申请实施例还提供了一种信息的展示装置,所述装置包括:
获取单元,配置为获取虚拟场景内的目标车辆在当前时刻的运动状态,以及用于控制所述目标车辆在所述虚拟场景中运动的第一操作;
确定单元,配置为结合所述目标车辆在当前时刻的运动状态和第一操作,预测目标车辆在当前时刻之后一段时间内的第一运动轨迹;
其中,所述第一运动轨迹包括:所述目标车辆在所述当前时刻之后一段时间内运动的线路和运动的方向;
展示单元,配置为在客户端上展示第一运动轨迹和第二运动轨迹;
其中,第二运动轨迹为目标车辆在当前时刻之前的运动轨迹,第一运动轨迹和第二运动轨迹相接的位置为目标车辆在当前时刻所在的位置。
本申请实施例提供了一种信息的展示方法,所述方法由终端执行,所述终端包括有一个或多个处理器以及存储器,以及一个或一个以上的程序,其中,所述一个或一个以上的程序存储于存储器中,所述程序可以包括一个或一个以上的每一个对应于一组指令的单元,所述一个或多个处理器被配置为执行指令;所述方法包括:
获取虚拟场景内的目标对象在当前时刻的运动状态,以及用于控制所述目标对象在所述虚拟场景中运动的第一操作;
结合所述目标对象在当前时刻的运动状态和所述第一操作,预测所述目标对象在所述当前时刻之后一段时间内的第一运动轨迹;
其中,所述第一运动轨迹包括:所述目标对象在所述当前时刻之后一段时间内运动的线路;
展示所述第一运动轨迹和第二运动轨迹,其中,所述第二运动轨迹为所述目标对象在所述当前时刻之前的运动轨迹,所述第一运动轨迹和所述第二运动轨迹相接的位置,为所述目标对象在所述当前时刻所在的位置。
本申请实施例还提供了一种信息的展示装置,所述装置包括:
获取单元,配置为获取虚拟场景内的目标对象在当前时刻的运动状态,以及用于控制所述目标对象在所述虚拟场景中运动的第一操作;
确定单元,配置为结合所述目标对象在当前时刻的运动状态和所述第一操作,预测所述目标对象在所述当前时刻之后一段时间内的第一运动轨迹;
其中,所述第一运动轨迹包括:所述目标对象在所述当前时刻之后一段时间内运动的线路;
展示单元,配置为展示所述第一运动轨迹和第二运动轨迹,其中,所述第二运动轨迹为所述目标对象在所述当前时刻之前的运动轨迹,所述第一运动轨迹和所述第二运动轨迹相接的位置,为所述目标对象在所述当前时刻所在的位置。
本申请实施例还提供了一种计算机存储介质,该计算机存储有计算机程序,所述计算机程序用于执行本申请实施例提供的信息的展示方法。
本申请实施例还提供了一种电子设备,包括存储器及处理器;
其中,所述存储器,配置为存储计算机程序;
所述处理器,配置为执行所述存储器中的计算机程序时,执行本申请实施例提供的所述信息的展示方法。
在本申请实施例中,通过获取虚拟场景内的目标车辆在当前时刻的运动状态,以及用于控制所述目标车辆在所述虚拟场景中运动的第一操作;结合目标车辆在当前时刻的运动状态和第一操作,预测目标车辆在当前时 刻之后一段时间内的第一运动轨迹;展示第一运动轨迹和第二运动轨迹,第二运动轨迹为目标车辆在当前时刻之前的运动轨迹,第一运动轨迹和第二运动轨迹相接的位置为目标车辆在当前时刻所在的位置;如此,可以在显示车辆行驶过的轨迹(第二运动轨迹)的同时显示预测得到的车辆在未来一段时间内的行驶轨迹(第一运动轨迹),丰富了虚拟场景中显示的信息,同时,辅助用户更加准确的对目标车辆进行控制,提高了用户体验。
附图说明
此处所说明的附图用来提供对本申请实施例的理解,构成本申请实施例的一部分,本申请实施例的示意性实施例及其说明用于解释本申请实施例,并不构成对本申请实施例的限定。在附图中:
图1是本申请实施例提供的信息的展示方法的硬件环境的示意图;
图2是本申请实施例提供的一种可选的信息的展示方法的流程图;
图3是本申请实施例提供的一种可选的游戏界面的示意图;
图4是本申请实施例提供的一种可选的游戏界面的示意图;
图5是本申请实施例提供的一种可选的游戏界面的示意图;
图6是本申请实施例提供的一种可选的游戏界面的示意图;
图7是本申请实施例提供的一种可选的信息的展示方法的流程图;
图8是本申请实施例提供的一种可选的车辆状态的示意图;
图9是本申请实施例提供的一种可选的游戏界面的示意图;
图10是本申请实施例提供的一种可选的游戏界面的示意图;
图11是本申请实施例提供的一种可选的信息的展示装置的示意图;
图12是本申请实施例提供的一种终端的结构框图。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申 请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
图1是本申请实施例提供的信息的展示方法的硬件环境的示意图,参见图1,在一些实施例中,本申请实施例提供的信息的展示方法,可以应用于如图1所示的由终端101和服务器103所构成的硬件环境中。如图1所示,服务器103通过网络与终端101进行连接,可为终端或终端上安装的客户端提供服务(如游戏服务、应用服务等),可在服务器上设置数据库105,或独立于服务器103设置单独的数据库105,数据库105为服务器103提供数据存储服务,上述网络包括但不限于:广域网、城域网或局域网,终端101并不限定于PC、手机、平板电脑等。
本申请实施例的信息的展示方法可以由终端101来执行,或者由终端101与服务器103协同实施。在一些实施例中,终端101上安装有客户端,通过该客户端执行本申请实施例的信息的展示方法。
在一些实施例中,本申请实施例提供的信息的展示方法包括:
S1:终端获取虚拟场景内的目标对象在当前时刻的运动状态,以及用于控制所述目标对象在所述虚拟场景中运动的第一操作。
这里,在实际实施时,目标对象可以为处于虚拟场景内的任意能够处于运动状态的对象,如车辆对象,动物对象、动漫人物对象等等;
第一操作用于控制目标对象在虚拟场景中的运动,如控制目标对象在虚拟场景中沿目标路径前进、倒退、拐弯、加速等等。
S2:结合所述目标对象在当前时刻的运动状态和所述第一操作,预测所述目标对象在所述当前时刻之后一段时间内的第一运动轨迹。
这里,所述第一运动轨迹包括:所述目标对象在所述当前时刻之后一段时间内运动的线路。
S3:展示所述第一运动轨迹和第二运动轨迹。
在一些实施例中,所述第二运动轨迹为所述目标对象在所述当前时刻之前的运动轨迹,所述第一运动轨迹和所述第二运动轨迹相接的位置,为所述目标对象在所述当前时刻所在的位置。
接下来以目标对象为目标车辆为例,对本申请实施例提供的信息的展示方法进行说明。图2是本申请实施例提供的一种可选的信息的展示方法的流程图,如图2所示,该方法可以包括以下步骤:
步骤S202,终端获取虚拟场景内的目标车辆在当前时刻的运动状态,以及用于控制所述目标车辆在所述虚拟场景中运动的第一操作。
这里,虚拟场景可在客户端中显示,为利用设备输出的区别于现实世界的场景,通过裸眼或设备的辅助能够形成对虚拟场景的视觉感知,例如通过显示屏幕输出的二维影像,通过立体投影、虚拟现实和增强现实技术等立体显示技术来输出的三维影像;此外,还可以通过各种可能的硬件形成听觉感知、触觉感知、嗅觉感知和运动感知等各种模拟现实世界的感知;在实际应用中,虚拟场景可以为游戏场景。
第一操作为当前时刻在客户端上检测到的用于控制目标车辆在虚拟场景中运动的操作。
上述客户端为目标应用安装在终端上后形成的客户端,虚拟场景即该目标应用(如社交应用、游戏应用等)等提供的社交或者游戏等的虚拟场景,客户端提供了用户对虚拟场景中的车辆进行交互的接口,便于用户对车辆进行操控,例如,在客户端上展示有各种操控按钮,用户可通过点击这些操控按钮(如第一操作、第二操作等)实现对车辆的操控。
上述的运动状态可以为目标车辆的运动速度、运动方向以及外部受力中的至少之一,第一操作为用户的操作,如加速操作、减速操作等。
步骤S204,终端根据运动状态和第一操作确定目标车辆在当前时刻之后一段时间内的第一运动轨迹。
终端根据运动状态和第一操作预测目标车辆在当前时刻之后的第一运动轨迹,即终端根据运动状态和第一操作,预估目标车辆在未来一段时间(如10秒钟)内的运动轨迹,该运动轨迹包括运动的线路和运动的方向两个部分。
步骤S206,终端在客户端上展示第一运动轨迹和第二运动轨迹,第二运动轨迹为目标车辆在当前时刻之前的运动轨迹,第一运动轨迹和第二运动轨迹相接的位置为目标车辆在当前时刻所在的位置。
通过上述步骤S202至步骤S206,可以在显示第二运动轨迹的同时显示第一运动轨迹,即显示车辆行驶过的轨迹的同时,显示预测得到的车辆在未来一段时间内的行驶轨迹,丰富了虚拟场景中显示的信息,同时,辅助用户更加准确的对目标车辆进行控制,提高了用户体验。
本申请实施例提供了一种关于游戏综合信息的可视化呈现方案,综合了动力,转向以及惯性阻力的综合因素汇集之后的动力方向确定方案,动力行进信息在游戏内实时呈现,并提供了惯性、呈现方式在游戏与场 景交互呈现的反馈。下面结合步骤S204-步骤S206详述本申请实施例的技术方案:
在步骤S204提供的技术方案中,终端根据运动状态和第一操作确定目标车辆在当前时刻之后一段时间内的第一运动轨迹。
上述实施例中,根据运动状态和第一操作确定目标车辆在当前时刻之后一段时间内的第一运动轨迹,可以通过如下所示的步骤S2042-步骤S2046实现:
步骤S2042,利用动力模型确定目标车辆在第一时刻t1的第一速度v1。
动力模型用于描述目标车辆在第二时刻t2的外部受力、目标车辆在第二时刻的第二速度v2、目标车辆在第二时刻的牵引力与目标车辆在第一时刻的第一速度之间的关系;
第二时刻为第一时刻之前的时刻,运动状态包括目标车辆在第二时刻的外部受力以及目标车辆在第二时刻的第二速度;
目标车辆在第二时刻的牵引力为根据第一操作确定的。
在一些实施例中,利用动力模型确定目标车辆在第一时刻的第一速度包括:在外部受力包括目标车辆在第二时刻的摩擦力的情况下,利用动力模型确定与目标车辆在第二时刻的摩擦力、第二速度以及目标车辆在第二时刻的牵引力对应的第一速度;也即,当所述目标车辆在第二时刻的外部受力包括所述目标车辆在第二时刻的摩擦力时,所述动力模型用于描述所述摩擦力、所述第二速度、所述目标车辆在第二时刻的牵引力与所述第一速度之间的关系;进而,可根据所述摩擦力、所述第二速度、所述目标车辆在第二时刻的牵引力与所述第一速度之间的关系,确定所述第一速度。在实际实施时,可以计算外部受力摩擦力和牵引力的合力F,进而知晓加速度a=F/m,m为目标车辆的质量,v1=v2+(t1-t2) *a。
在一些实施例中,利用动力模型确定目标车辆的第一速度包括:在外部受力包括目标车辆在第二时刻受到碰撞的反弹力的情况下,利用动力模型确定与目标车辆在第二时刻的反弹力、第二速度以及目标车辆在第二时刻的牵引力对应的第一速度;也即,当所述目标车辆在第二时刻的外部受力包括所述目标车辆在第二时刻受到碰撞时的反弹力时,所述动力模型用于描述所述反弹力、所述第二速度、所述目标车辆在第二时刻的牵引力与所述第一速度之间的关系;进而可根据所述反弹力、所述第二速度、所述目标车辆在第二时刻的牵引力与所述第一速度之间的关系,确定所述第一速度。在实际实施时,可以计算外部受力反弹力和牵引力的合力F,进而知晓加速度a=F/m,m为目标车辆的质量,v1=v2+(t1-t2)*a。
a的方向即为第二时刻的箭头方向,可采用相似的方法计算第一时刻的加速度,以该加速度的方向为第二时刻的箭头方向。
步骤S2044,根据目标车辆的第一速度和第二速度,确定目标车辆在第二时刻所处的轨迹点。
例如,在已知第一时刻所处的轨迹点的情况下,可以用积分或者其他方式,计算目标车辆从t1到t2所经过的距离,即可确定目标车辆第二时刻所处的轨迹点。
步骤S2046,对所述一段时间内的至少两个轨迹点进行拟合,得到第一运动轨迹。
这里,可以采用拟合公式对所有轨迹点进行拟合,若一个公式的轨迹并不能完整表示第一运动轨迹,可以采用多个轨迹分段的形式表示第一运动轨迹,拟合的过程即可理解为将已知轨迹点的值代入拟合公式而求取拟合公式中未知参数的数值的过程。
在步骤S206提供的技术方案中,终端在客户端上展示第一运动轨迹和第二运动轨迹,第二运动轨迹为目标车辆在当前时刻之前的运动轨迹,第一运动轨迹和第二运动轨迹相接的位置为目标车辆在当前时刻所在的位置。
在一些实施例中,可通过如下方式展示第一运动轨迹和第二运动轨迹:
在客户端上按照第一展示方式对第一运动轨迹进行展示,按照第二展示方式对第二运动轨迹进行展示,第一展示方式与第二展示方式不同,此处的展示方式包括但不局限于轨迹颜色不同、轨迹填充的形状或者填充的颜色不同、轨迹自身形状不同等。
在一些实施例中,对于第一运动轨迹,呈现方式不只局限于箭头特效,还包括其他能通过具象信息表现出的方向,长度等向量信息的表现方式。
在一些实施例中,若目标车辆的预估运动轨迹(即第一运动轨迹)上没有障碍物,那么第一运动轨迹就是一段完整的轨迹,若目标车辆的预估运动轨迹上有障碍物,那么第一运动轨迹就包括多段轨迹,此时,在客户端上按照第一展示方式对第一运动轨迹进行展示包括:在客户端上按照第一展示方式展示第一段轨迹和第二段轨迹,第一运动轨迹包括第一段轨迹和第二段轨迹,第一段轨迹以目标车辆在当前时刻所在的位置为起始位置,第一段轨迹为目标车辆按照运动状态运动产生的运动轨迹,第二段轨迹以第一段轨迹的结束位置为起始位置,第二段轨迹为目标车辆按照运动状态运动时与障碍物相撞后产生的运动轨迹。
在一些实施例中,在客户端上展示第一运动轨迹和第二运动轨迹的过程中,在客户端检测到第二操作的情况下,即存在用户的新的操作的情况下,在客户端上展示第三运动轨迹和第四运动轨迹,第三运动轨迹 为在检测到第二操作之后目标车辆的运动轨迹,第四运动轨迹为在检测到第二操作之前目标车辆的运动轨迹,第三运动轨迹的确定方式与第一运动轨迹相同,在此不再赘述,第二操作不同于当前时刻时在客户端上检测到的第一操作。
采用本申请的技术方案,可通过直观的显示形式,呈现出用户操作的单位综合受力的结果以及和场景的交互提示,提醒用户提前进行规避后续不良后果。
下面以将本申请实施例的技术方案应用于游戏,即虚拟场景为游戏场景为例详述本申请实施例提供的信息的展示方法。
如图3所示,在竞速类游戏中,比如飞车手游、一起来飞车等游戏,通过车头朝向等来实现路线预判与认知,如图3中编号31所示为车辆的车头部分,用户通过车头的朝向进行前进路线的预判,而卡丁车惯性使用这种方法来实现不能体现车辆的实际前进方向。因为惯性受力比较简单,采取车头朝向方式实现行进方向的呈现的方式可行性较高,但是考虑到摩擦力等时,车头朝向并不能体现车辆的实际前进方向。
在如图4所示的卡丁车游戏中,由于惯性和摩擦力的存在,上述呈现方式并不能直观呈现出车辆的行进方向,如图4中编号41的箭头所示方向为当前车头方向,然而该方向并非车辆的行进方向;若采用通过用车轮的反向延长线的方式感知前进方向,如图4中编号42的箭头所示的方向为车轮的反向延长线的方向,通过该方向可获知当前车辆的前进方向,然而对于新用户而言比较难感知这种方式的实际含义。
基于此,提出本申请实施例的信息的展示方法,能够通过直观的显示形式,呈现出用户操作的单位综合受力的结果(包括方向与大小)以及和场景的交互提示,提醒用户提前进行规避,并进行后续操作。
如图5所示,通过一条从用户操作车辆的延长线(如绿色延长线, 即图5中编号51所示的车辆前方的箭头),说明车辆行进的方向,随着操作动力模型指示线会实时进行变化,显示后面的行进轨迹;如图6所示,在车辆将发生碰撞时,预测轨迹线也会按照反弹路线表现出来,如图6中编号61所示,当车辆将发生碰撞时,预测轨迹线(编号61)会按照反弹路线发生变化并展示。
采用本申请实施例的技术方案,通过当前车辆行进状态和用户操作,实时通过车辆动力模型进行预测,并将车辆在固定时长(如1秒)之内的行进路线通过特效绘制出来。实现方式如图7所示:
步骤S701,检测到输入操作(如第一操作),预测帧数n。
步骤S702,若用户操作不变,更新动力模型数据。
步骤S703,判断是否完成n次更新,若是则执行步骤S704,否则执行步骤S702。
步骤S704,处理位置信息,保持与车辆的相对稳定。
步骤S705,根据n帧的位置数据生成箭头。
应用本申请上述实施例,本系统的动力模型实时监控用户操作,当用户有任何操作输入,或者在竞速过程中发生碰撞时,都会刷新轨迹的预测路线,并且刷新特效标记呈现。
本申请实施例可将操作单位的动力,转向操作,以及漂移惯性衰减统一统计为一个最终结果,一个基于速度和前进方向的向量结果,如图8所示,其中,f为转弯时车辆受力的摩擦力,与前进方向相反,F为实际前进方向,v为车辆动力,F取决于f和v的综合运算结果,通过当前力和时间的函数,可以绘制出车辆一段时间内的运行轨迹,如图9中编号91所示。但是对于用户并不可见。导致用户对惯性的理解门槛较高。
本申请实施例可通过采用特效的方式把该向量用箭头的形式呈现出来,在用户操作的单位重心位置,与基于前面受力结果x个时间单位后 的位置终点通过特效连接起来,通过特效的长度角度和弧度,让用户能直观的感受到x时间单位后的位置预测,前进受力方向为行进路线的当前加速度,递归处理可以获得弧形的行进路线。
如图10所示,用户对行进结果任何有影响的操作(如前述第二操作等)可在游戏中实时呈现反馈出来,表现形式为,如果动力增加,则显示特效会拉长(实际是速度增大,相同时间内行驶的轨迹边长),受力角度(即行进方向)发生变化;在一些实施例中,当第一运动轨迹中存在障碍物时,可通过目标颜色展示第一运动轨迹;其中,目标颜色与第一运动轨迹中不存在障碍物时的颜色不同,在一些实施例中,在正常行驶的前提下,预测路线会绿色显示,如图10中编号11所示箭头为预测路线,且为绿色;在会发生碰撞的前提现,预测线会变成红色进行警示,并且根据碰撞的结果,显示出碰撞结果导致的行进路线。
应用本申请上述实施例,可以直观的体现出驾驶过程中车辆行进的轨迹和最终受力情况,通过直观显示来呈现车辆的动力模型和行进趋势,可以降低用户的理解难度,便于用户进行车辆操控。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请实施例并不受所描述的动作顺序的限制,因为依据本申请实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请实施例所必须的。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡 献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如只读存储器(Read-Only Memory,ROM)/随机存取器(Random Access Memory,RAM)、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
本申请实施例还提供了一种用于实施上述信息的展示方法的信息的展示装置,在一些实施例中,本申请实施例提供的信息的展示装置包括:
获取单元,配置为获取虚拟场景内的目标对象在当前时刻的运动状态,以及用于控制所述目标对象在所述虚拟场景中运动的第一操作;
确定单元,配置为结合所述目标对象在当前时刻的运动状态和所述第一操作,预测所述目标对象在所述当前时刻之后一段时间内的第一运动轨迹;
其中,所述第一运动轨迹包括:所述目标对象在所述当前时刻之后一段时间内运动的线路;
展示单元,配置为展示所述第一运动轨迹和第二运动轨迹,其中,所述第二运动轨迹为所述目标对象在所述当前时刻之前的运动轨迹,所述第一运动轨迹和所述第二运动轨迹相接的位置,为所述目标对象在所述当前时刻所在的位置。
本申请实施例还提供了一种用于实施上述信息的展示方法的信息的展示装置。图11是本申请实施例提供的一种可选的信息的展示装置的示意图,如图11所示,该装置可以包括:获取单元1101、确定单元1103以及展示单元1105。
获取单元1101,配置为获取虚拟场景内的目标车辆在当前时刻的运动状态,以及用于控制所述目标车辆在所述虚拟场景中运动的第一操作;
上述客户端为目标应用安装在终端上后形成的客户端,虚拟场景即 该目标应用(如社交应用、游戏应用等)等提供的社交或者游戏等的虚拟场景,客户端提供了用户对虚拟场景中的车辆进行交互的接口,便于用户对车辆进行操控,例如,在客户端上展示有各种操控按钮,用户可通过点击这些操控按钮(如第一操作、第二操作等)实现对车辆的操控。
上述的运动状态可以为目标车辆的运动速度、运动方向以及外部受力中的至少之一,第一操作为用户的操作,如加速操作、减速操作等。
确定单元1103,配置为结合运动状态和第一操作,预测目标车辆在当前时刻之后一段时间内的第一运动轨迹;
其中,所述第一运动轨迹包括:所述目标车辆在所述当前时刻之后一段时间内运动的线路和运动的方向;
终端根据运动状态和第一操作确定目标车辆在当前时刻之后的第一运动轨迹即终端根据运动状态和第一操作预估的目标车辆在未来一段时间(如10秒钟)内的运动轨迹,该运动轨迹包括运动的线路和运动的方向两个部分。
展示单元1105,配置为在客户端上展示第一运动轨迹和第二运动轨迹,其中,第二运动轨迹为目标车辆在当前时刻之前的运动轨迹,第一运动轨迹和第二运动轨迹相接的位置为目标车辆在当前时刻所在的位置。
需要说明的是,该实施例中的获取单元1101,可以配置为执行本申请实施例中的步骤S202,该实施例中的确定单元1103,可以配置为执行本申请实施例中的步骤S204,该实施例中的展示单元1105,可以配置为执行本申请实施例中的步骤S206。
此处需要说明的是,上述模块与对应的步骤所实现的示例和应用场景相同,但不限于上述实施例所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在如图1所示的硬件环境中,可以通过软件 实现,也可以通过硬件实现。
应用本申请实施例提供的信息的展示装置,可以在显示车辆行驶过的轨迹(第二运动轨迹)的同时显示预测得到的车辆在未来一段时间内的行驶轨迹(第一运动轨迹),丰富了虚拟场景中显示的信息,同时,辅助用户更加准确的对目标车辆进行控制,提高了用户体验。
在一些实施例中,展示单元,还配置为:按照第一展示方式对第一运动轨迹进行展示,按照第二展示方式对第二运动轨迹进行展示,其中,第一展示方式与第二展示方式不同。
在一些实施例中,第一运动轨迹包括第一段轨迹和第二段轨迹,展示单元,还配置为:
按照第一展示方式展示第一段轨迹和第二段轨迹;
其中,第一段轨迹以目标车辆在当前时刻所在的位置为起始位置,第一段轨迹为目标车辆按照运动状态运动产生的运动轨迹;
第二段轨迹以第一段轨迹的结束位置为起始位置,第二段轨迹为目标车辆按照运动状态运动时,与障碍物相撞后产生的运动轨迹。
在一些实施例中,展示单元还配置为:在客户端检测到第二操作的情况下,在客户端上展示第三运动轨迹和第四运动轨迹,其中,第三运动轨迹为在检测到第二操作之后目标车辆的运动轨迹,第四运动轨迹为在检测到第二操作之前目标车辆的运动轨迹,第二操作不同于当前时刻时在客户端上检测到的第一操作。
在一些实施例中,确定单元包括:第一确定模块,配置为利用动力模型确定目标车辆在第一时刻的第一速度,
其中,动力模型用于描述目标车辆在第二时刻的外部受力、目标车辆在第二时刻的第二速度、目标车辆在第二时刻的牵引力与目标车辆在第一时刻的第一速度之间的关系;
第二时刻为第一时刻之前的时刻;
第二确定模块,配置为根据目标车辆的第一速度和第二速度,确定目标车辆在第二时刻所处的轨迹点;
拟合模块,配置为对所述一段时间内的至少两个轨迹点进行拟合,得到第一运动轨迹。
在一些实施例中,第一确定模块还配置为:在外部受力包括目标车辆在第二时刻的摩擦力的情况下,利用动力模型确定与目标车辆在第二时刻的摩擦力、第二速度以及目标车辆在第二时刻的牵引力对应的第一速度。
在一些实施例中,第一确定模块还配置为:在外部受力包括目标车辆在第二时刻受到碰撞的反弹力的情况下,利用动力模型确定与目标车辆在第二时刻的反弹力、第二速度以及目标车辆在第二时刻的牵引力对应的第一速度。
此处需要说明的是,上述模块与对应的步骤所实现的示例和应用场景相同,但不限于上述实施例所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在如图1所示的硬件环境中,可以通过软件实现,也可以通过硬件实现,其中,硬件环境包括网络环境。
本申请实施例还提供了一种用于实施上述信息的展示方法的服务器或终端。
图12是根据本申请实施例的一种终端的结构框图,如图12所示,该终端可以包括:一个或多个(图12中仅示出一个)处理器1201、存储器1203、以及传输装置1205,如图12所示,该终端还可以包括输入输出设备1207。
其中,存储器1203,可配置为存储软件程序以及模块,如本申请实施例中的信息的展示方法和装置对应的程序指令/模块,处理器1201通过 运行存储在存储器1203内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的信息的展示方法。存储器1203可包括高速随机存储器,还可以包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器1203还可包括相对于处理器1201远程设置的存储器,这些远程存储器可以通过网络连接至终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
上述的传输装置1205,配置为经由一个网络接收或者发送数据,还可以用于处理器与存储器之间的数据传输。上述的实例可包括有线网络及无线网络。在一个实例中,传输装置1205包括一个网络适配器(Network Interface Controller,NIC),其可通过网线与其他网络设备与路由器相连从而可与互联网或局域网进行通讯。在一个实例中,传输装置1205为射频(Radio Frequency,RF)模块,配置为通过无线方式与互联网进行通讯。
其中,存储器1203配置为存储应用程序。
处理器1201可以通过运行存储器1203存储的应用程序,执行本申请实施例提供的信息的展示方法。
本领域普通技术人员可以理解,图12所示的结构仅为示意,终端可以是智能手机(如Android手机、ios手机等、平板电脑、掌上电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。图12其并不对上述电子装置的结构造成限定。例如,终端还可包括比图12中所示更多或者更少的组件(如网络接口、显示装置等),或者具有与图12所示不同的配置。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令终端设备相关的硬件来完成,该程序可以 存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。
本申请的实施例还提供了一种计算机存储介质,该计算机存储介质存储有用于执行信息的展示方法的计算机程序,该计算机程序用于执行本申请实施例提供的上述信息的展示方法。
在一些实施例中,上述存储介质可以位于上述实施例所示的网络中的多个网络设备中的至少一个网络设备上。
在一些实施例中,存储介质被设置为存储用于执行以下步骤的计算机程序:
获取虚拟场景内的目标车辆在当前时刻的运动状态,以及用于控制所述目标车辆在所述虚拟场景中运动的第一操作;
结合所述目标车辆在当前时刻的运动状态和所述第一操作,预测所述目标车辆在所述当前时刻之后一段时间内的第一运动轨迹;
其中,所述第一运动轨迹包括:所述目标车辆在所述当前时刻之后一段时间内运动的线路和运动的方向;
展示所述第一运动轨迹和第二运动轨迹,其中,所述第二运动轨迹为所述目标车辆在所述当前时刻之前的运动轨迹,所述第一运动轨迹和所述第二运动轨迹相接的位置,为所述目标车辆在所述当前时刻所在的位置。
上述计算机存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
本申请实施例序号仅仅为了描述,不代表实施例的优劣。
上述实施例中的集成的单元如果以软件功能单元的形式实现并作为 独立的产品销售或使用时,可以存储在上述计算机可读取的存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在存储介质中,包括若干指令用以使得一台或多台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。
在本申请的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的客户端,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进 和润饰,这些改进和润饰也应视为本发明的保护范围。
工业实用性
本申请实施例中获取虚拟场景内的目标车辆在当前时刻的运动状态,以及用于控制所述目标车辆在所述虚拟场景中运动的第一操作;结合所述目标车辆在当前时刻的运动状态和所述第一操作,预测所述目标车辆在所述当前时刻之后一段时间内的第一运动轨迹;其中,所述第一运动轨迹包括:所述目标车辆在所述当前时刻之后一段时间内运动的线路和运动的方向;展示所述第一运动轨迹和第二运动轨迹,其中,所述第二运动轨迹为所述目标车辆在所述当前时刻之前的运动轨迹,所述第一运动轨迹和所述第二运动轨迹相接的位置,为所述目标车辆在所述当前时刻所在的位置。如此,可以在显示车辆行驶过的轨迹(第二运动轨迹)的同时显示预测得到的车辆在未来一段时间内的行驶轨迹(第一运动轨迹),丰富了虚拟场景中显示的信息,同时,辅助用户更加准确的对目标车辆进行控制,提高了用户体验。

Claims (20)

  1. 一种信息的展示方法,所述方法由终端执行,所述方法包括:
    获取虚拟场景内的目标车辆在当前时刻的运动状态,以及用于控制所述目标车辆在所述虚拟场景中运动的第一操作;
    结合所述目标车辆在当前时刻的运动状态和所述第一操作,预测所述目标车辆在所述当前时刻之后一段时间内的第一运动轨迹;
    其中,所述第一运动轨迹包括:所述目标车辆在所述当前时刻之后一段时间内运动的线路;
    展示所述第一运动轨迹和第二运动轨迹,其中,所述第二运动轨迹为所述目标车辆在所述当前时刻之前的运动轨迹,所述第一运动轨迹和所述第二运动轨迹相接的位置,为所述目标车辆在所述当前时刻所在的位置。
  2. 根据权利要求1所述的方法,其中,所述展示所述第一运动轨迹和第二运动轨迹,包括:
    按照第一展示方式对所述第一运动轨迹进行展示,按照第二展示方式对所述第二运动轨迹进行展示;
    其中,所述第一展示方式与所述第二展示方式不同。
  3. 根据权利要求2所述的方法,其中,所述第一运动轨迹包括第一段轨迹和第二段轨迹,所述按照第一展示方式对所述第一运动轨迹进行展示,包括:
    按照所述第一展示方式展示所述第一段轨迹和所述第二段轨迹;
    其中,所述第一段轨迹以所述目标车辆在所述当前时刻所在的位置为起始位置,所述第一段轨迹为所述目标车辆按照所述运动状态运动产生的运动轨迹;
    所述第二段轨迹以所述第一段轨迹的结束位置为起始位置,所述第 二段轨迹为所述目标车辆按照所述运动状态运动时,与障碍物相撞后产生的运动轨迹。
  4. 根据权利要求1至3中任意一项所述的方法,其中,所述展示所述第一运动轨迹和第二运动轨迹之后,所述方法还包括:
    检测到用于控制所述目标车辆在所述虚拟场景中运动的第二操作时,展示第三运动轨迹和第四运动轨迹;
    其中,所述第二操作不同于所述第一操作;所述第三运动轨迹为所述第二操作之后所述目标车辆的运动轨迹,所述第四运动轨迹为所述第二操作之前所述目标车辆的运动轨迹。
  5. 根据权利要求1至3中任意一项所述的方法,其中,所述结合所述目标车辆在当前时刻的运动状态和所述第一操作,预测所述目标车辆在所述当前时刻之后一段时间内的第一运动轨迹,包括:
    利用动力模型确定所述目标车辆在第一时刻的第一速度;
    其中,所述动力模型用于描述所述目标车辆在第二时刻的外部受力、所述目标车辆在第二时刻的第二速度、所述目标车辆在第二时刻的牵引力与所述目标车辆在第一时刻的第一速度之间的关系;
    所述第二时刻为所述第一时刻之前的时刻,所述运动状态包括:所述目标车辆在第二时刻的外部受力、以及所述目标车辆在第二时刻的第二速度;
    所述目标车辆在第二时刻的牵引力为根据所述第一操作确定的;
    根据所述目标车辆的所述第一速度和所述第二速度,确定所述目标车辆在所述第二时刻所处的轨迹点;
    对所述一段时间内的至少两个所述轨迹点进行拟合,得到所述第一运动轨迹。
  6. 根据权利要求5所述的方法,其中,当所述目标车辆在第二时刻 的外部受力包括所述目标车辆在第二时刻的摩擦力时,所述动力模型用于描述所述摩擦力、所述第二速度、所述目标车辆在第二时刻的牵引力与所述第一速度之间的关系;
    所述利用动力模型确定所述目标车辆在第一时刻的第一速度,包括:
    根据所述摩擦力、所述第二速度、所述目标车辆在第二时刻的牵引力与所述第一速度之间的关系,确定所述第一速度。
  7. 根据权利要求5所述的方法,其中,当所述目标车辆在第二时刻的外部受力包括所述目标车辆在第二时刻受到碰撞时的反弹力时,所述动力模型用于描述所述反弹力、所述第二速度、所述目标车辆在第二时刻的牵引力与所述第一速度之间的关系;
    所述利用动力模型确定所述目标车辆的第一速度,包括:
    根据所述反弹力、所述第二速度、所述目标车辆在第二时刻的牵引力与所述第一速度之间的关系,确定所述第一速度。
  8. 根据权利要求1所述的方法,其中,所述展示所述第一运动轨迹,包括:
    当所述第一运动轨迹中存在障碍物时,通过目标颜色展示所述第一运动轨迹;
    其中,所述目标颜色与所述第一运动轨迹中不存在障碍物时的颜色不同。
  9. 一种信息的展示方法,所述方法由终端执行,所述方法包括:
    获取虚拟场景内的目标对象在当前时刻的运动状态,以及用于控制所述目标对象在所述虚拟场景中运动的第一操作;
    结合所述目标对象在当前时刻的运动状态和所述第一操作,预测所述目标对象在所述当前时刻之后一段时间内的第一运动轨迹;
    其中,所述第一运动轨迹包括:所述目标对象在所述当前时刻之后 一段时间内运动的线路;
    展示所述第一运动轨迹和第二运动轨迹,其中,所述第二运动轨迹为所述目标对象在所述当前时刻之前的运动轨迹,所述第一运动轨迹和所述第二运动轨迹相接的位置,为所述目标对象在所述当前时刻所在的位置。
  10. 一种信息的展示装置,所述装置包括:
    获取单元,配置为获取虚拟场景内的目标车辆在当前时刻的运动状态,以及用于控制所述目标车辆在所述虚拟场景中运动的第一操作;
    确定单元,配置为结合所述目标车辆在当前时刻的运动状态和所述第一操作,预测所述目标车辆在所述当前时刻之后一段时间内的第一运动轨迹;
    其中,所述第一运动轨迹包括:所述目标车辆在所述当前时刻之后一段时间内运动的线路;
    展示单元,配置为展示所述第一运动轨迹和第二运动轨迹,其中,所述第二运动轨迹为所述目标车辆在所述当前时刻之前的运动轨迹,所述第一运动轨迹和所述第二运动轨迹相接的位置,为所述目标车辆在所述当前时刻所在的位置。
  11. 根据权利要求10所述的装置,其中,所述展示单元,还配置为:
    ,按照第一展示方式对所述第一运动轨迹进行展示,按照第二展示方式对所述第二运动轨迹进行展示;
    其中,所述第一展示方式与所述第二展示方式不同。
  12. 根据权利要求11所述的装置,其中,所述第一运动轨迹包括第一段轨迹和第二段轨迹,所述展示单元还配置为:
    按照所述第一展示方式展示所述第一段轨迹和所述第二段轨迹;
    其中,所述第一段轨迹以所述目标车辆在所述当前时刻所在的位置 为起始位置,所述第一段轨迹为所述目标车辆按照所述运动状态运动产生的运动轨迹;
    所述第二段轨迹以所述第一段轨迹的结束位置为起始位置,所述第二段轨迹为所述目标车辆按照所述运动状态运动时,与障碍物相撞后产生的运动轨迹。
  13. 根据权利要求10至12中任意一项所述的装置,其中,
    所述展示单元还配置为:检测到用于控制所述目标车辆在所述虚拟场景中运动的第二操作时,展示第三运动轨迹和第四运动轨迹;
    其中,所述第二操作不同于所述第一操作;所述第三运动轨迹为所述第二操作之后所述目标车辆的运动轨迹,所述第四运动轨迹为所述第二操作之前所述目标车辆的运动轨迹。
  14. 根据权利要求10至12中任意一项所述的装置,其中,所述确定单元包括:
    第一确定模块,配置为利用动力模型确定所述目标车辆在第一时刻的第一速度;
    其中,所述动力模型用于描述所述目标车辆在第二时刻的外部受力、所述目标车辆在第二时刻的第二速度、所述目标车辆在第二时刻的牵引力与所述目标车辆在第一时刻的第一速度之间的关系;
    所述第二时刻为所述第一时刻之前的时刻,所述运动状态包括:所述目标车辆在第二时刻的外部受力、以及所述目标车辆在第二时刻的第二速度;
    所述目标车辆在第二时刻的牵引力为根据所述第一操作确定的;
    第二确定模块,配置为根据所述目标车辆的所述第一速度和所述第二速度,确定所述目标车辆在所述第二时刻所处的轨迹点;
    拟合模块,配置为对所述一段时间内的至少两个所述轨迹点拟合, 得到所述第一运动轨迹。
  15. 根据权利要求14所述的装置,其中,当所述目标车辆在第二时刻的外部受力包括所述目标车辆在第二时刻的摩擦力时,所述动力模型用于描述所述摩擦力、所述第二速度、所述目标车辆在第二时刻的牵引力与所述第一速度之间的关系;
    所述第一确定模块还配置为:
    根据所述摩擦力、所述第二速度、所述目标车辆在第二时刻的牵引力与所述第一速度之间的关系,确定所述第一速度。
  16. 根据权利要求14所述的装置,其中,当所述目标车辆在第二时刻的外部受力包括所述目标车辆在第二时刻受到碰撞时的反弹力时,所述动力模型用于描述所述反弹力、所述第二速度、所述目标车辆在第二时刻的牵引力与所述第一速度之间的关系;
    所述第一确定模块还配置为:
    根据所述反弹力、所述第二速度、所述目标车辆在第二时刻的牵引力与所述第一速度之间的关系,确定所述第一速度。
  17. 根据权利要求10所述的装置,其中,所述展示单元还配置为:
    当所述第一运动轨迹中存在障碍物时,通过目标颜色展示所述第一运动轨迹;
    其中,所述目标颜色与所述第一运动轨迹中不存在障碍物时的颜色不同。
  18. 一种信息的展示装置,所述装置包括:
    获取单元,配置为获取虚拟场景内的目标对象在当前时刻的运动状态,以及用于控制所述目标对象在所述虚拟场景中运动的第一操作;
    确定单元,配置为结合所述目标对象在当前时刻的运动状态和所述第一操作,预测所述目标对象在所述当前时刻之后一段时间内的第一运 动轨迹;
    其中,所述第一运动轨迹包括:所述目标对象在所述当前时刻之后一段时间内运动的线路;
    展示单元,配置为展示所述第一运动轨迹和第二运动轨迹,其中,所述第二运动轨迹为所述目标对象在所述当前时刻之前的运动轨迹,所述第一运动轨迹和所述第二运动轨迹相接的位置,为所述目标对象在所述当前时刻所在的位置。
  19. 一种计算机存储介质,所述计算机存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至9任一项所述的信息的展示方法。
  20. 一种电子设备,包括存储器和处理器;
    所述存储器,配置为存储计算机程序;
    所述处理器,配置为执行所述存储器中的计算机程序时,执行所述权利要求1至9任一项所述的信息的展示方法。
PCT/CN2020/093860 2019-06-05 2020-06-02 信息的展示方法、装置、电子设备及计算机存储介质 WO2020244491A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2021543180A JP7232341B2 (ja) 2019-06-05 2020-06-02 情報の表示方法、装置、電子機器及びコンピュータプログラム
US17/325,303 US11806622B2 (en) 2019-06-05 2021-05-20 Information display method and apparatus, electronic device, and computer storage medium
US18/478,681 US20240024779A1 (en) 2019-06-05 2023-09-29 Information display method and apparatus, electronic device, and computer storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910487795.6A CN110170169B (zh) 2019-06-05 2019-06-05 信息的展示方法和装置、存储介质、电子装置
CN201910487795.6 2023-06-05

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/325,303 Continuation US11806622B2 (en) 2019-06-05 2021-05-20 Information display method and apparatus, electronic device, and computer storage medium

Publications (1)

Publication Number Publication Date
WO2020244491A1 true WO2020244491A1 (zh) 2020-12-10

Family

ID=67698018

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/093860 WO2020244491A1 (zh) 2019-06-05 2020-06-02 信息的展示方法、装置、电子设备及计算机存储介质

Country Status (4)

Country Link
US (2) US11806622B2 (zh)
JP (1) JP7232341B2 (zh)
CN (1) CN110170169B (zh)
WO (1) WO2020244491A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112546627A (zh) * 2020-12-22 2021-03-26 网易(杭州)网络有限公司 路线指引方法、装置、存储介质及计算机设备

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110170169B (zh) 2019-06-05 2021-03-26 腾讯科技(深圳)有限公司 信息的展示方法和装置、存储介质、电子装置
CN110694274A (zh) * 2019-10-15 2020-01-17 网易(杭州)网络有限公司 虚拟车辆的行驶状态预测方法、装置及电子设备
CN111035928B (zh) * 2019-11-19 2021-05-11 腾讯科技(深圳)有限公司 行进路线的显示方法和装置、存储介质及电子装置
CN111475573B (zh) * 2020-04-08 2023-02-28 腾讯科技(深圳)有限公司 数据同步方法、装置、电子设备及存储介质
CN112642147A (zh) * 2020-12-24 2021-04-13 网易(杭州)网络有限公司 游戏控制方法、装置、设备和存储介质
CN114470768B (zh) * 2022-02-15 2023-07-25 北京字跳网络技术有限公司 虚拟道具控制方法、装置、电子设备及可读存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107019915A (zh) * 2016-02-01 2017-08-08 腾讯科技(深圳)有限公司 一种确定移动轨迹的方法、用户设备及系统
CN108619722A (zh) * 2018-05-03 2018-10-09 网易(杭州)网络有限公司 竞速游戏的路线指示方法及装置
CN108654087A (zh) * 2018-05-09 2018-10-16 网易(杭州)网络有限公司 信息指示方法及装置、路况提示方法及装置
CN110170169A (zh) * 2019-06-05 2019-08-27 腾讯科技(深圳)有限公司 信息的展示方法和装置、存储介质、电子装置

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08215381A (ja) * 1995-02-10 1996-08-27 ▲高▼木 健治 カード式パチンコ機における打球発射装置
JP2000140419A (ja) 1998-11-11 2000-05-23 Namco Ltd 3dシミュレーション装置および方法
JP2000342846A (ja) 1999-06-03 2000-12-12 Taito Corp 移動体操縦シミュレーションゲーム装置
JP3977264B2 (ja) 2003-02-05 2007-09-19 株式会社バンダイナムコゲームス プログラム、情報記憶媒体及びゲーム装置
CN2673476Y (zh) * 2003-12-23 2005-01-26 蔡俊权 一种玩具车
US7785178B2 (en) * 2005-12-30 2010-08-31 Microsoft Corporation Computing a target speed in a virtual racing environment
US7284755B1 (en) * 2006-03-29 2007-10-23 Bolen Richard K Bulk vending machine having an integrated game of skill
JP5179020B2 (ja) * 2006-05-09 2013-04-10 任天堂株式会社 ゲームプログラム、ゲーム装置、ゲームシステムおよびゲーム処理方法
CN101850185A (zh) * 2010-06-21 2010-10-06 施庆生 狗狗系列玩具车
JP5816032B2 (ja) * 2011-09-09 2015-11-17 任天堂株式会社 入力装置、入力処理プログラム、入力処理方法、入力処理システム
US10357715B2 (en) 2017-07-07 2019-07-23 Buxton Global Enterprises, Inc. Racing simulation
JP2019193742A (ja) * 2018-05-02 2019-11-07 任天堂株式会社 情報処理プログラム、情報処理装置、情報処理システム、および情報処理方法
CN109395385B (zh) * 2018-09-13 2021-05-25 深圳市腾讯信息技术有限公司 虚拟场景的配置方法和装置、存储介质、电子装置
CN112755531B (zh) * 2018-11-28 2022-11-18 腾讯科技(深圳)有限公司 虚拟世界中的虚拟车辆漂移方法、装置及存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107019915A (zh) * 2016-02-01 2017-08-08 腾讯科技(深圳)有限公司 一种确定移动轨迹的方法、用户设备及系统
CN108619722A (zh) * 2018-05-03 2018-10-09 网易(杭州)网络有限公司 竞速游戏的路线指示方法及装置
CN108654087A (zh) * 2018-05-09 2018-10-16 网易(杭州)网络有限公司 信息指示方法及装置、路况提示方法及装置
CN110170169A (zh) * 2019-06-05 2019-08-27 腾讯科技(深圳)有限公司 信息的展示方法和装置、存储介质、电子装置

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
FANG SHE QU: "Crazyracing KartRider Mobile Domestic Internal Testing: Introducing Racing Helmets for Beginners Presented by Hu Ya Lun Hui)", 13 March 2019 (2019-03-13), pages 1, XP054981309, Retrieved from the Internet <URL:https://www.bilibili.com/video/av46167179?from=search&seid=14364666088407649280> DOI: 20200819151453X *
LU REN XIAO JIE: "Xiao Jie from Crazyracing KartRider: Tips and Tricks You Need to Know to Drift Smoothly", VIDEO, 13 April 2019 (2019-04-13), pages 1, XP054981308, Retrieved from the Internet <URL:https://www.bilibili.com/video/av49144514/> *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112546627A (zh) * 2020-12-22 2021-03-26 网易(杭州)网络有限公司 路线指引方法、装置、存储介质及计算机设备
CN112546627B (zh) * 2020-12-22 2024-04-09 网易(杭州)网络有限公司 路线指引方法、装置、存储介质及计算机设备

Also Published As

Publication number Publication date
CN110170169A (zh) 2019-08-27
JP7232341B2 (ja) 2023-03-02
CN110170169B (zh) 2021-03-26
US20210268382A1 (en) 2021-09-02
US11806622B2 (en) 2023-11-07
JP2022520016A (ja) 2022-03-28
US20240024779A1 (en) 2024-01-25

Similar Documents

Publication Publication Date Title
WO2020244491A1 (zh) 信息的展示方法、装置、电子设备及计算机存储介质
US20230016824A1 (en) Voice help system via hand held controller
JP7339318B2 (ja) ゲーム内位置ベースのゲームプレイコンパニオンアプリケーション
WO2021248789A1 (zh) 竞速游戏的信息控制方法、装置和电子设备
JP6767515B2 (ja) 位置に基づくゲームプレイコンパニオンアプリケーションへユーザの注目を向ける方法及びシステム
US11951398B2 (en) Method and apparatus for controlling virtual race car, storage medium, and device
CN110772784B (zh) 载具控制方法和装置、存储介质及电子装置
KR101783157B1 (ko) 소형 전동차를 이용한 증강 현실 서비스 방법
CN110694274A (zh) 虚拟车辆的行驶状态预测方法、装置及电子设备
CN110237528A (zh) 对象的控制方法和装置、存储介质及电子装置
JP2023506106A (ja) 仮想オブジェクトの制御方法及び装置、電子機器並びにコンピュータプログラム
CN111035928B (zh) 行进路线的显示方法和装置、存储介质及电子装置
CN114669046A (zh) 一种控制方法和控制装置
CN113345107A (zh) 增强现实数据展示方法、装置、电子设备及存储介质
US20240115948A1 (en) Method and system for auto-playing portions of a video game
US11983829B2 (en) Non-transitory computer readable medium including augmented reality processing program and augmented reality processing system
CN115155056A (zh) 使用基于位置的游戏配套应用程序生成挑战
CN117065326A (zh) 基于苹果手表的划船体感游戏操作方法
CN116726483A (zh) 基于苹果手表的滑雪体感游戏操作方法
CN116549965A (zh) 一种游戏中的过弯提示方法、装置、设备及存储介质
CN115300899A (zh) 车载游戏控制方法、装置、计算机可读存储介质和车辆
CN113813602A (zh) 虚拟场景的寻路方法、装置及电子设备
CN117797465A (zh) 游戏技能的控制方法、装置、电子设备和可读存储介质
CN115089969A (zh) 游戏中信息提示方法、装置、电子设备及存储介质
JP2010151942A (ja) ドライビングシミュレータ

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20819561

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021543180

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20819561

Country of ref document: EP

Kind code of ref document: A1