IP Library › Granted Patent US 9,981,187
Granted Patent B2
US 9,981,187 · App. 15/034,851 · Granted May 29, 2018

Method and apparatus for simulating sound in virtual scenario, and terminal

Inventors: Yi Yan (Shenzhen, CN); Weilin Zhang (Shenzhen, CN); Wenyong Zhao (Shenzhen, CN)
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
A63F13/54A63F13/573A63F13/577G06T7/20G06T13/00G10K15/02H04S7/30G06T2207/30241G06T2210/21
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,981,187
App. No.
15/034,851
Granted
May 29, 2018
Kind
B2
Abstract

Embodiments of the present invention provide a method and an apparatus for simulating a sound in a virtual scenario, and a terminal. The method includes: determining whether a virtual object is in a falling state; detecting, when the virtual object is in the falling state, whether a virtual object collides with another virtual object in a virtual scenario; and invoking sound data when the virtual object collides with the another virtual object, and simulating a sound according to the invoked sound data.

Claims (60)

1. A method for simulating a sound in a virtual scenario, comprising:

at a terminal having one or more processors, and a memory storing programs executed by the one or more processors:

determining whether a virtual object in a virtual scenario is in a falling state;

detecting, when the virtual object is in the falling state, whether the virtual object collides with another virtual object in the virtual scenario;

invoking sound data when the virtual object collides with the another virtual object; and

simulating a sound according to the invoked sound data,

wherein the invoking sound data when the virtual object collides with the another virtual object comprises:

detecting, when the virtual object collides with the another virtual object, a collision speed perpendicular to a collision area generated when the virtual object collides with the another virtual object; and

invoking predetermined collision sound data if the collision speed is greater than a predetermined minimum collision speed; and

the simulating a sound according to the invoked sound data comprises: simulating a collision sound according to the invoked predetermined collision sound data;

wherein the invoking sound data when the virtual object collides with the another virtual object comprises:

detecting, when the virtual object collides with the another virtual object, the collision speed perpendicular to the collision area generated when the virtual object collides with the another virtual object and collision momentum generated when the virtual object collides with the another virtual object; and

invoking predetermined dragging sound data if the collision speed is not greater than a predetermined collision speed, and the collision momentum is greater than predetermined minimum collision momentum; and

the simulating a sound according to the invoked sound data comprises: simulating a dragging sound according to the invoked predetermined dragging sound data.

2. The method for simulating a sound in a virtual scenario according to claim 1 , wherein the predetermined minimum collision speed corresponds to predetermined material information of the virtual object; and the invoking predetermined collision sound data if the collision speed is greater than a predetermined minimum collision speed comprises:

invoking the predetermined minimum collision speed corresponding to the predetermined material information of the virtual object; and

determining, when the collision speed is greater than the predetermined minimum collision speed corresponding to the material information, collision sound data corresponding to the predetermined material information of the virtual object, and invoking the determined collision sound data.

3. The method for simulating a sound in a virtual scenario according to claim 1 , wherein the predetermined minimum collision momentum corresponds to predetermined material information of the virtual object; and the invoking predetermined dragging sound data if the collision speed is not greater than a predetermined collision speed, and the collision momentum is greater than predetermined minimum collision momentum comprises:

invoking the predetermined collision speed, and the predetermined minimum collision momentum that corresponds to the predetermined material information of the virtual object; and

determining, when the collision speed is not greater than the predetermined collision speed and the collision momentum is greater than the predetermined minimum collision momentum corresponding to the material information, dragging sound data corresponding to the predetermined material information of the virtual object, and invoking the determined dragging sound data.

4. A terminal, comprising:

one or more processors;

a memory; and

one or more program modules stored in the memory and configured for execution by the one or more processors, the one or more program modules located within an apparatus for simulating a sound in a virtual scenario, comprising:

a falling determining module, configured to determine whether a virtual object is in a falling state;

a collision detection module, configured to detect, when the virtual object is in the falling state, whether the virtual object collides with another virtual object in a virtual scenario; and

a sound simulation module, configured to invoke sound data when the virtual object collides with the another virtual object, and simulate a sound according to the invoked sound data,

wherein the sound simulation module comprises:

a first detection unit, configured to detect, when the virtual object collides with the another virtual object, a collision speed perpendicular to a collision area generated when the virtual object collides with the another virtual object;

a first sound data invoking unit, configured to invoke predetermined collision sound data when the collision speed is greater than a predetermined minimum collision speed; and

a first sound simulation unit, configured to simulate a collision sound according to the invoked predetermined collision sound data;

wherein the sound simulation module comprises:

a second detection unit, configured to detect, when the virtual object collides with the another virtual object, the collision speed perpendicular to the collision area generated when the virtual object collides with the another virtual object and collision momentum generated when the virtual object collides with the another virtual object;

a second sound data invoking unit, configured to invoke predetermined dragging sound data if the collision speed is not greater than a predetermined collision speed, and the collision momentum is greater than predetermined minimum collision momentum; and

a second sound simulation unit, configured to simulate a dragging sound according to the invoked predetermined dragging sound data.

5. The terminal according to claim 4 , wherein the predetermined minimum collision speed corresponds to predetermined material information of the virtual object, and the first sound data invoking unit comprises:

a first invoking subunit, configured to invoke the predetermined minimum collision speed corresponding to the predetermined material information of the virtual object; and

a second invoking subunit, configured to determine, when the collision speed is greater than the predetermined minimum collision speed corresponding to the material information, collision sound data corresponding to the predetermined material information of the virtual object, and invoke the determined collision sound data.

6. The terminal according to claim 4 , wherein the predetermined minimum collision momentum corresponds to predetermined material information of the virtual object, and the second sound data invoking unit comprises:

a third invoking subunit, configured to invoke the predetermined collision speed, and the predetermined minimum collision momentum that corresponds to the predetermined material information of the virtual object; and

a fourth invoking subunit, configured to determine, when the collision speed is not greater than the predetermined collision speed and the collision momentum is greater than the predetermined minimum collision momentum corresponding to the material information, dragging sound data corresponding to the predetermined material information of the virtual object, and invoke the determined dragging sound data.

7. A non-transitory computer readable storage medium having stored therein one or more instructions, which, when executed by a terminal, cause the terminal to:

determine whether a virtual object in a virtual scenario is in a falling state;

detect, when the virtual object is in the falling state, whether the virtual object collides with another virtual object in the virtual scenario;

invoke sound data when the virtual object collides with the another virtual object; and

simulate a sound according to the invoked sound data,

wherein the invoking sound data when the virtual object collides with the another virtual object comprises:

detecting, when the virtual object collides with the another virtual object, a collision speed perpendicular to a collision area generated when the virtual object collides with the another virtual object; and

invoking predetermined collision sound data if the collision speed is greater than a predetermined minimum collision speed; and

the simulating a sound according to the invoked sound data comprises: simulating a collision sound according to the invoked predetermined collision sound data;

wherein the invoking sound data when the virtual object collides with the another virtual object comprises:

detecting, when the virtual object collides with the another virtual object, the collision speed perpendicular to the collision area generated when the virtual object collides with the another virtual object and collision momentum generated when the virtual object collides with the another virtual object; and

invoking predetermined dragging sound data if the collision speed is not greater than a predetermined collision speed, and the collision momentum is greater than predetermined minimum collision momentum; and

the simulating a sound according to the invoked sound data comprises: simulating a dragging sound according to the invoked predetermined dragging sound data.

8. The computer readable storage medium according to claim 7 , wherein the predetermined minimum collision speed corresponds to predetermined material information of the virtual object; and the invoking predetermined collision sound data if the collision speed is greater than a predetermined minimum collision speed comprises:

invoking the predetermined minimum collision speed corresponding to the predetermined material information of the virtual object; and

determining, when the collision speed is greater than the predetermined minimum collision speed corresponding to the material information, collision sound data corresponding to the predetermined material information of the virtual object, and invoking the determined collision sound data.

9. The computer readable storage medium according to claim 7 , wherein the predetermined minimum collision momentum corresponds to predetermined material information of the virtual object; and the invoking predetermined dragging sound data if the collision speed is not greater than a predetermined collision speed, and the collision momentum is greater than predetermined minimum collision momentum comprises:

invoking the predetermined collision speed, and the predetermined minimum collision momentum that corresponds to the predetermined material information of the virtual object; and

determining, when the collision speed is not greater than the predetermined collision speed and the collision momentum is greater than the predetermined minimum collision momentum corresponding to the material information, dragging sound data corresponding to the predetermined material information of the virtual object, and invoking the determined dragging sound data.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 9, 2017
From: YAN, YI; ZHANG, WEILIN; ZHAO, WENYONG
To: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Reel/Frame 041671/0611 →
Priority Claims (1)
CN 2014 1 0090561 · Mar 12, 2014 · national
Continuity (1)
Related Publication 20160354693A1 · Dec 8, 2016