WO2024077897A1 - Virtual scene display control method and apparatus, storage medium and electronic device - Google Patents
Virtual scene display control method and apparatus, storage medium and electronic device Download PDFInfo
- Publication number
- WO2024077897A1 WO2024077897A1 PCT/CN2023/086883 CN2023086883W WO2024077897A1 WO 2024077897 A1 WO2024077897 A1 WO 2024077897A1 CN 2023086883 W CN2023086883 W CN 2023086883W WO 2024077897 A1 WO2024077897 A1 WO 2024077897A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- virtual
- virtual scene
- user interface
- graphical user
- virtual camera
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 69
- 230000033001 locomotion Effects 0.000 claims abstract description 95
- 230000004044 response Effects 0.000 claims abstract description 65
- 238000006073 displacement reaction Methods 0.000 claims description 35
- 238000004590 computer program Methods 0.000 claims description 7
- 230000000694 effects Effects 0.000 abstract description 10
- 238000013507 mapping Methods 0.000 description 15
- 238000010586 diagram Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 6
- 230000001360 synchronised effect Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000003993 interaction Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000004088 simulation Methods 0.000 description 3
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 2
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 2
- 240000004050 Pentaglottis sempervirens Species 0.000 description 2
- 235000004522 Pentaglottis sempervirens Nutrition 0.000 description 2
- 230000009471 action Effects 0.000 description 2
- 230000002860 competitive effect Effects 0.000 description 2
- 230000007613 environmental effect Effects 0.000 description 2
- 241000196324 Embryophyta Species 0.000 description 1
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 244000035744 Hura crepitans Species 0.000 description 1
- 241001310793 Podium Species 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001149 cognitive effect Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000002045 lasting effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000000644 propagated effect Effects 0.000 description 1
- 239000011435 rock Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000001179 sorption measurement Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 208000015041 syndromic microphthalmia 10 Diseases 0.000 description 1
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/50—Controlling the output signals based on the game progress
- A63F13/52—Controlling the output signals based on the game progress involving aspects of the displayed game scene
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/50—Controlling the output signals based on the game progress
- A63F13/52—Controlling the output signals based on the game progress involving aspects of the displayed game scene
- A63F13/525—Changing parameters of virtual cameras
- A63F13/5258—Changing parameters of virtual cameras by dynamically adapting the position of the virtual camera to keep a game object or game character in its viewing frustum, e.g. for tracking a character or a ball
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/50—Controlling the output signals based on the game progress
- A63F13/53—Controlling 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/537—Controlling 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/5378—Controlling 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 displaying an additional top view, e.g. radar screens or maps
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features 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/30—Features 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/308—Details of the user interface
Definitions
- the present disclosure relates to the field of virtual interaction technology, and in particular to a display control method, device, storage medium and electronic device for a virtual scene.
- a method for controlling display of a virtual scene wherein a graphical user interface is provided through a terminal device, and content displayed by the graphical user interface includes a portion of the virtual scene, and the method comprises:
- the virtual camera In response to a first sliding operation on the graphical user interface, the virtual camera is controlled to move in the virtual scene, and a first virtual scene image obtained by shooting the virtual camera according to the movement is synchronously displayed in the graphical user interface;
- the target object in the virtual scene is displayed in a preset range area of the graphical user interface, the virtual camera is controlled to move to the target position, and a second virtual scene image at least partially including the target object is obtained by the virtual camera staying at the target position and photographing the target object;
- the second virtual scene screen is continuously displayed in the graphical user interface.
- a display control device for a virtual scene characterized in that a graphical user interface is provided through a terminal device, and the content displayed by the graphical user interface includes a part of the virtual scene, and the device includes:
- a first response module used to respond to a first sliding operation on the graphical user interface, control the virtual camera to move in the virtual scene, and synchronously display a first virtual scene image obtained by shooting according to the movement of the virtual camera in the graphical user interface;
- a second response module is used to respond to the movement of the virtual camera so that the target object in the virtual scene is displayed in a preset range area of the graphical user interface, control the virtual camera to move to the target position and obtain a second virtual scene picture at least partially including the target object obtained by the virtual camera staying at the target position and photographing the target object;
- the display module is used to continuously display the second virtual scene image in the graphical user interface.
- a computer-readable storage medium on which a computer program is stored, characterized in that when the program is executed by a processor, a display control method for a virtual scene as in the first aspect of the above-mentioned embodiment is implemented.
- an electronic device comprising: one or more processors; a storage device for storing one or more programs, which, when the one or more programs are executed by the one or more processors, enables the one or more processors to implement a display control method for a virtual scene as in the first aspect of the above-mentioned embodiment.
- a computer program product or a computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium.
- a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the above-mentioned various optional implementations.
- the display control method of the virtual scene controls the virtual camera to move in the virtual scene after responding to a first sliding operation acting on a graphical user interface, and synchronously displays a first virtual scene picture obtained by shooting according to the movement of the virtual camera in the graphical user interface, and after responding to the movement of the virtual camera so that the target object in the virtual scene is displayed in a preset range area of the graphical user interface, controls the virtual camera to move to the target position and obtains a second virtual scene picture at least partially including the target object obtained by the virtual camera staying at the target position to shoot the target object, and continuously displays the second virtual scene picture in the graphical user interface, thereby ensuring that when the target object is in the preset range area, the second virtual scene picture displayed in the graphical user interface remains fixed, so that the player can view the information of the target object more stably without frequently switching between the large map and the small map, thereby solving the current technical problem of poor convenience in exploring the target object and viewing the object information in the virtual scene.
- FIG1 schematically shows a schematic diagram of an exemplary terminal device to which a display control method for a virtual scene and a display control device for a virtual scene according to one embodiment of the present disclosure can be applied;
- FIG2 schematically shows a flow chart of a method for controlling display of a virtual scene according to one embodiment of the present disclosure
- FIG3 schematically shows a graphical user interface diagram in a method for controlling display of a virtual scene according to one embodiment of the present disclosure
- FIG4 schematically shows a flow chart of a method for controlling display of a virtual scene according to one embodiment of the present disclosure
- FIG5 schematically shows a graphical user interface diagram in a method for controlling display of a virtual scene according to one embodiment of the present disclosure
- FIG6 schematically shows a flow chart of a method for controlling display of a virtual scene according to one embodiment of the present disclosure
- FIG7 schematically shows a structural block diagram of a display control device for a virtual scene according to one embodiment of the present disclosure
- FIG8 schematically shows a schematic diagram of the structure of a computer system of a terminal device suitable for implementing one of the embodiments of the present disclosure.
- the second is to update the virtual scene screen in a large range by sliding the virtual controls on the screen (such as a small map or other preset controls), but this method has a high cognitive cost for players, requiring players to be familiar with the distribution of each object in the small map, and requiring players to have a clear judgment and thinking about the target object to be searched before operation.
- This process is accurate and non-instantaneous. In fact, the exploration of players in many virtual scenes is ambiguous. At the same time, players will think and judge some information in the virtual scene in real time according to the sliding operation. This process is real-time, so when exploring in the virtual scene, if a large sliding operation is performed, the virtual scene screen will be updated on a large scale, which makes it easy to miss the target object you want to search for.
- FIG1 shows a schematic diagram of an exemplary terminal device to which a display control method for a virtual scene and a display control device for a virtual scene according to the embodiments of the present disclosure can be applied.
- the terminal device may include one or more of terminal devices 101, 102, and 103.
- Terminal devices 101, 102, and 103 may be various electronic devices with display screens, including but not limited to desktop computers, portable computers, smart phones, and tablet computers.
- the display control method of the virtual scene in one embodiment of the present disclosure can be run on a local terminal device or a server.
- the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
- cloud games can be run under the cloud interaction system.
- cloud games refer to a game mode based on cloud computing.
- the operation mode of cloud games the operating body of the game program and the main body of the game screen presentation are separated.
- the storage and operation of the display control method of the virtual scene are completed on the cloud game server.
- the client device is used for receiving and sending data and presenting the game screen.
- the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is used for information processing.
- the player When playing the game, the player operates the client device to send an operation instruction to the cloud game server.
- the cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
- a local terminal device stores a game program and is used to present a game screen.
- the local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed and run through the conventional terminal device.
- the local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on the display screen of the terminal, or provided to the player through a holographic projection.
- the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the graphical user interface.
- the user interface is displayed on the display.
- the computer-readable storage medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two.
- a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code.
- the computer-readable storage medium may be included in the terminal device described in the above embodiments; or it may exist alone without being assembled into the terminal device.
- the above-mentioned computer-readable storage medium carries one or more programs, and when the above-mentioned one or more programs are executed by a terminal device, the terminal device implements the method in the following embodiments. For example, the terminal device can implement the various steps shown in Figure 2, etc.
- the virtual scene can be a digital scene outlined by a computer, mobile phone, tablet computer or other intelligent terminal device through digital communication technology.
- the digital scene can be on the display screen of the intelligent terminal device or projected onto other display devices.
- the virtual scene can include buildings or structures such as houses, buildings, gardens, bridges, pools, etc., and can also include natural landscapes such as mountains, rivers, lakes, and any virtual items such as weapons, tools, and creatures. This exemplary embodiment does not specifically limit this.
- the virtual character is a three-dimensional stereo model created based on animation skeleton technology. Each virtual character has its own shape and volume in the three-dimensional virtual environment and occupies a part of the space in the three-dimensional virtual environment.
- the virtual scene screen presented by the graphical user interface can be, for example, a game screen.
- the virtual camera set in the virtual scene takes the picture.
- the virtual camera can obtain the virtual scene picture based on the first perspective, the second perspective or other perspectives, for example, it can also be a bird's-eye view, which is a perspective of observing the virtual environment from an aerial perspective.
- a bird's-eye view is used, the virtual camera can be located above the virtual scene.
- the picture obtained may only be a part of the virtual scene, such as a multiplayer online tactical competitive game (Multiplayer Online Battle Arena, referred to as MOBA); when the height of the virtual camera is high, the picture obtained can be the whole picture of the virtual scene.
- MOBA multiplayer online tactical competitive game
- the virtual scene is a simulation environment of the real world, or a semi-simulation and semi-fictitious virtual environment, or a purely fictitious virtual environment.
- the virtual scene is any one of a two-dimensional virtual scene and a three-dimensional virtual scene.
- the virtual environment can be the sky, land, ocean, etc., wherein the land includes environmental elements such as deserts and cities.
- the virtual scene is a scene with complete game logic of virtual objects such as user control. For example, for sandbox 3D shooting games, the virtual scene is a 3D game world for players to control virtual objects to fight.
- Example virtual scenes may include: at least one element of mountains, plains, rivers, lakes, oceans, deserts, skies, plants, buildings, and vehicles; for example, for 2D card games, the virtual scene is a scene for displaying released cards or displaying virtual objects corresponding to cards.
- Example virtual scenes may include: an arena, a decisive battlefield, or other "field" elements or other elements that can display the status of card battles; for 2D or 3D multiplayer online tactical competitive games, the virtual scene is a 2D or 3D terrain scene for virtual objects to fight.
- Example virtual scenes may include: canyon-style mountains, lines, rivers, classrooms, tables and chairs, podiums and other elements.
- the image acquisition device of the virtual camera in the game world which is used to collect environmental information within the field of view of the subject object or in the virtual scene.
- the game screen collected in the virtual scene also changes, and the collected game screen is displayed on the graphical user interface.
- the game screen displayed in the graphical user interface is the environment where the subject object is in the virtual scene, that is, the "big map" in the embodiment of the present disclosure.
- This example embodiment provides a method for controlling the display of a virtual scene.
- a graphical user interface is provided by a terminal device.
- the content displayed by the graphical user interface includes a portion of the virtual scene.
- the method for controlling the display of the virtual scene includes the following steps 201 to 203:
- Step 201 In response to a first sliding operation on a graphical user interface, a virtual camera is controlled to move in a virtual scene, and a first virtual scene image obtained by shooting the virtual camera in movement is synchronously displayed in the graphical user interface.
- the first sliding operation is an operation for controlling the movement of the virtual camera in the virtual scene.
- the first sliding operation can be a sliding operation of continuously sliding from any first position of the graphical user interface to any second position, or a sliding operation of continuously sliding from a first position in a preset response area to any second position, or a combination of other specified operations and sliding operations, such as long press operation + sliding operation, double-click operation + sliding operation, etc.
- the present disclosure embodiment does not make specific limitations and can be specifically set according to actual conditions.
- the graphical user interface displays part of the game scene in the virtual scene, and the displayed scene content is continuously adjusted with the player's first sliding operation.
- the player controls the virtual camera to move in the virtual scene through the first sliding operation in the graphical user interface.
- the screen of a fixed area size displayed in the graphical user interface is the first virtual scene screen.
- Step 202 in response to the movement of the virtual camera, the target object in the virtual scene is displayed in a preset range area of the graphical user interface, the virtual camera is controlled to move to the target position and a second virtual scene image at least partially including the target object is obtained by the virtual camera staying at the target position and photographing the target object.
- the player continuously moves the position of the virtual camera through the first sliding operation, and the game screen in the field of view of the virtual camera is constantly changing until the target object determined by the player is displayed in the preset range area of the graphical user interface.
- the target object refers to one or more virtual objects that the player selects from the virtual objects in the virtual scene according to actual needs and wants to view information.
- the example of the virtual object has been explained in detail in the above application environment and will not be repeated here.
- the preset range area refers to a display hotspot set by the player in the graphical user interface.
- the size and position of the display hotspot can be specifically set according to actual conditions, and the embodiment of the present disclosure is not specifically limited.
- the target object in the embodiment of the present disclosure is displayed in the preset range area of the graphical user interface, which means that the target object and the preset range area have an intersection, that is, the target object is completely in the preset range area, or the target object is partially in the preset range area, and the embodiment of the present disclosure is not limited in any way.
- the virtual camera moves to the target position, which refers to the position where the virtual camera can capture the target object. It can be the current position of the virtual camera, or it can be the position of the virtual camera that is corrected based on the current position so that the target object is at the center point of the preset range area or the center point of the graphical user interface.
- the virtual camera stays at the target position to capture images of the target object and the virtual scene, and a second virtual scene image containing the target object can be obtained.
- Step 203 Continuously display the second virtual scene image in the graphical user interface.
- the virtual camera continues to display the second virtual scene image containing the target object in the captured virtual scene in the graphical user interface. That is, it can be understood that as long as the target object is within the preset range area, no matter how the player operates, the target object is locked and displayed in the graphical user interface.
- the display control method of the virtual scene controls the virtual camera to move in the virtual scene after responding to the first sliding operation acting on the graphical user interface, and synchronously displays the first virtual scene picture obtained by shooting according to the movement of the virtual camera in the graphical user interface; after responding to the movement of the virtual camera so that the target object in the virtual scene is displayed in the preset range area of the graphical user interface, controls the virtual camera to move to the target position and obtains the second virtual scene picture at least partially including the target object obtained by the virtual camera staying at the target position to shoot the target object, and continuously displays the second virtual scene picture in the graphical user interface, so as to ensure that when the target object is in the preset range area, the second virtual scene picture displayed in the graphical user interface remains unchanged, and the player operation is simple, and there is no need to frequently switch between the large map and the small map; at the same time, it is avoided that in the traditional way, when exploring the virtual scene, a large-scale sliding operation causes a large-scale update and adjustment of the virtual scene picture
- the display control method of the virtual scene further includes the following step A:
- Step A In response to a second sliding operation for controlling the virtual camera to resume movement in the virtual scene, a third virtual scene image obtained by shooting according to the movement of the virtual camera is synchronously displayed in the graphical user interface.
- the second sliding operation is a continuous operation with the first sliding operation.
- the second sliding operation is an operation of continuing the sliding operation based on the first sliding operation, and the virtual object in the virtual scene corresponding to the end position of the second sliding operation is outside the preset range area, that is, the third virtual scene screen does not contain the target object.
- a third virtual scene picture excluding the target object obtained by the movement of the virtual camera is synchronously displayed in the graphical user interface, that is, the lock between the virtual camera and the target object is released, so that the virtual camera continues to move with the second sliding operation, and the collected virtual scene content also keeps changing.
- the second virtual scene where the target object is located is no longer fixedly displayed in the graphical user interface, but the scene image excluding the target object and actually collected by the virtual camera is displayed, that is, the third virtual scene picture is synchronously displayed.
- the second virtual scene containing the target object can be locked and displayed in the graphical user interface to facilitate the player to view information, and the viewing effect and viewing stability are both high; when the virtual camera leaves the target position where the target object can be captured, the locking relationship between the virtual camera and the target object is released, so that the virtual camera moves with the player's third sliding operation, thereby achieving rapid movement in the virtual scene, and more efficient exploration of the target object in the virtual scene and viewing of the object information.
- the virtual camera has a projection position mapped to the ground plane of the virtual scene, and the projection position moves as the virtual camera moves in the virtual scene.
- the projection position can be the intersection of the extended optical axis of the virtual camera and the ground plane of the virtual scene, or the intersection of other virtual rays emitted along any fixed direction with the virtual camera as the source point and the ground of the virtual scene.
- the display control method of the virtual scene also includes the following step B:
- Step B referring to FIG. 3 , when the projection position of the virtual camera enters the target area 302 in the virtual scene through the first sliding operation, the target object 301 is displayed in the preset range area of the graphical user interface.
- the target area 302 is the adsorption determination area of the target object 301.
- the target object 301 can be determined, and the preset range area of the target object 301 displayed in the graphical user interface is determined.
- the target area 302 is a scene area determined according to the position of the target object 301, for example, it can be a rectangular area with a side length of L*L (4 ⁇ L ⁇ 10, the value is configurable) with the target object 301 as the center point, or a circle with a radius of L or other shapes, etc., which are not specifically limited in the embodiments of the present disclosure.
- the disclosed embodiment sets a target area 302.
- the projection position of the virtual camera enters the target area 302 in the virtual scene through a first sliding operation, it can be determined that the virtual object has entered the preset range area, and the target object 301 is displayed in the preset range area of the graphical user interface, which can reduce the player's operation accuracy requirements and thus improve the convenience of the player's operation.
- controlling the virtual camera to move to the target position in the above step 202 includes:
- Step C canceling the first control association between the first sliding operation and controlling the movement of the virtual camera, determining the target position according to the position of the target object in the virtual scene, and controlling the virtual camera to move to the target position.
- the first control association is used to control the virtual camera to move according to the first sliding operation. That is to say, when the target object is outside the preset range area, the first sliding operation is associated with the virtual camera, and the virtual camera moves with the movement of the first sliding operation; when the target object is in the preset range area, the virtual camera is disassociated from the target object and locks the target object for shooting.
- the virtual camera is always at the target position and continues to shoot the target object at this position, regardless of the first sliding operation.
- the determination of the target position can refer to the above step 202, which will not be repeated here.
- the disclosed embodiment releases the first control association between the first sliding operation and the control of the movement of the virtual camera when the target object is outside the preset range area, determines the target position according to the position of the target object in the virtual scene, and controls the virtual camera to move to the target position. This can achieve stable shooting of the target object at the target position, and obtain stable and continuous information about the target object, which is convenient for players to view. There is no need to frequently switch between the large map and the small map, and the information viewing of the target object is more convenient, and the information display is more stable and durable.
- the method further includes the following step D:
- Step D The first sliding operation establishes a second control association with the operation positioning position in the virtual scene.
- the operation positioning position refers to any position point in the target area in the virtual scene.
- the player continues to move through the first sliding operation, and the movement is mapped to the virtual scene, which corresponds to the operation positioning position. That is, after the terminal device releases the first control association between the first sliding operation and the control of the movement of the virtual camera, it first constructs the second control association between the first sliding operation and the operation positioning position in the virtual scene, and determines the mapping relationship of the first sliding operation in the target area through the second control association; the second control association is used to determine the operation positioning position corresponding to the first sliding operation.
- step A in response to the second sliding operation for controlling the virtual camera to resume movement in the virtual scene, synchronously displaying the third virtual scene image obtained by shooting according to the movement of the virtual camera in the graphical user interface, includes the following steps 401-402:
- Step 401 In response to a first sliding operation causing the operation positioning position to leave a target area in a virtual scene, a third control association between a second sliding operation and controlling the movement of a virtual camera is established.
- the third control association is used to control the movement of the virtual camera according to the second sliding operation.
- the terminal device establishes the third control association between the second sliding operation and the control of the movement of the virtual camera, and the association between the player's second sliding operation and the movement of the virtual camera or the second sliding operation and the position of the virtual camera is constructed through the third control association.
- Step 402 synchronously displaying a third virtual scene image obtained by moving the virtual camera in the graphical user interface.
- the terminal device can synchronously display the third virtual scene image obtained by moving the virtual camera in the graphical user interface in the same manner as in step A above, which will not be described in detail here.
- the disclosed embodiment establishes a second control association between the first sliding operation and the operation positioning position in the virtual scene after releasing the first control association between the first sliding operation and the control of the movement of the virtual camera, and establishes a third control association between the second sliding operation and the control of the movement of the virtual camera after responding to the first sliding operation so that the operation positioning position leaves the target area in the virtual scene, and constructs different associations between the first sliding operation and the second sliding operation when the target area in the virtual scene is selected at the projection position of the virtual camera, and leaves the target area, so as to perform targeted display control and improve the operation control accuracy.
- step 203 continuously displaying the second virtual scene image in the graphical user interface, includes the following step E:
- Step E responding to the first sliding operation so that the operation positioning position does not leave the target area in the virtual scene, and continuously displaying the second virtual scene image in the graphical user interface.
- the first sliding operation ensures that the operation positioning position does not leave the target area in the virtual scene, that is, the first sliding operation controls the movement of the virtual camera, and the projection position of the virtual camera in the virtual scene is still within the target area, that is, the current target object is still within the shooting range of the virtual camera. Therefore, the terminal device can continue to display the second virtual scene screen in the graphical user interface, and the screen display stability is higher, and the player's exploration of the target object in the virtual scene and viewing of object information are more effective.
- the embodiment of the present disclosure ensures that the operation positioning position does not leave the target area in the virtual scene, and continuously displays the second virtual scene image in the graphical user interface to ensure that the corresponding second control association is acquired to control the mapping of the virtual camera in the virtual scene, thereby improving the reliability of the virtual scene display, facilitating players to view the information of the target object, and having higher reliability.
- the graphical user interface provides a pair of game thumbnails of virtual scenes
- the response area of the game thumbnails is the first area 501
- the area other than the first area 501 in the graphical user interface 10 is the second area 502.
- the first area 501 and the second area 502 are independent of each other, and the relative size and position of the two can be specifically set according to actual conditions, and are not specifically limited in the embodiment of the present disclosure.
- the first sliding operation acting on the graphical user interface in the above step 201 includes: a sliding operation starting from the first area 501 and passing through the second area 502 .
- the start instruction of the first sliding operation configuration in this embodiment is to start sliding from the game thumbnail, that is, the first area 501 of the small map, and the sliding area is the entire graphical user interface 10, that is, covering the second area 502.
- the player only needs to start from the game thumbnail, and then move from the first position in the game thumbnail to the second position according to a certain mapping relationship.
- the operation is simple and fast, and there is no need to frequently switch between the large map and the small map, and the player's operation efficiency is higher.
- the sliding operation area is larger, and the player's operation is more convenient.
- the above step 201 in response to the first sliding operation on the graphical user interface, controls the virtual camera to move in the virtual scene, and synchronously displays the first virtual scene image obtained by shooting according to the movement of the virtual camera in the graphical user interface, includes the following step F:
- Step F in response to a first sliding operation on the graphical user interface, controlling the virtual camera to move at a first rate in the virtual scene, and synchronously displaying in the graphical user interface a first virtual scene image captured when the virtual camera moves at the first rate.
- Step G in response to the third sliding operation in the second area 502, control the virtual camera to move at a second rate in the virtual scene, and synchronously display in the graphical user interface a fourth virtual scene image captured when the virtual camera moves at the second rate.
- the first rate is greater than the second rate. That is, when the first sliding operation starts from the first area 501 of the game thumbnail and slides within the first area 501, or the first sliding operation starts from the first area 501 of the game thumbnail and slides to the second area 502 outside the game thumbnail, the virtual camera moves at a larger first rate to collect more scene information; when the third sliding operation starts from the second area 502 outside the game thumbnail, the virtual camera moves and shoots at a smaller second rate to provide corresponding scene information for the large map. In this way, corresponding scene information can be provided for different map models with higher reliability.
- the target object includes: a target virtual model and a target scene area adjacent to the target virtual model, and the second virtual scene picture at least includes the target virtual model.
- a virtual coordinate system is generally constructed, and each virtual model is located at a corresponding position in the coordinate system.
- the target virtual model in the embodiment of the present disclosure refers to an object with a certain characteristic form in the virtual scene, such as mountains, rocks, lakes, virtual characters, etc.;
- the target scene area refers to the scene position of the target virtual model in the virtual scene, that is, the specific position of the target virtual model in the virtual coordinate system, which can be represented by the position of the plot or the coordinates of the plot, for example.
- the preset range area includes a full screen area, an edge area, or a screen area generated with the graphical user interface as a center point of the graphical user interface.
- the embodiment of the present disclosure can set the specific position of the preset range area according to actual conditions, such as the full screen area, edge area, or screen area generated with the graphical user interface as the center point of the graphical user interface, which is more flexible.
- the target position is the position of the virtual camera when the virtual camera is translated to a position where the camera shooting angle is aimed at the target object, thereby ensuring that the target object can be completely photographed by the virtual camera.
- the virtual camera has a projection position mapped to the ground plane of the virtual scene
- the target The position is the position of the virtual camera when the virtual camera is translated to the projection position that coincides with the position of the target object in the virtual scene.
- the projection position is the position of the virtual camera optical axis
- the target position is the position of the virtual camera when the virtual camera optical axis intersects with the target object, thereby ensuring that the target object is completely in the center of the shooting field of view of the virtual camera, thereby ensuring the integrity and reliability of the target object information, making it easier for players to view information, and making information viewing more convenient.
- step 201 in response to the first sliding operation on the graphical user interface, controlling the virtual camera to move in the virtual scene, includes the following steps 601 to 605:
- Step 601 In response to a first sliding operation on a graphical user interface, a first movement vector of the first sliding operation is obtained.
- Step 602 Determine a first displacement vector based on a first motion vector and a first preset parameter.
- Step 603 Control the virtual camera to move in the virtual scene according to the first displacement vector.
- Step 604 Determine a second displacement vector based on the first movement vector and the second preset parameter.
- Step 605 Update the scene content displayed in the thumbnail according to the second displacement vector.
- the first movement vector refers to the displacement vector of the actual operation of the player in the graphical user interface
- the first displacement vector refers to the corresponding displacement vector of the first sliding operation mapped to the virtual scene.
- the first preset parameter is used to characterize the mapping relationship between the movement vector of the first sliding operation of the player in the touch screen of the terminal device or the graphical user interface and the moving distance in the thumbnail of the virtual scene.
- the second preset parameter is used to characterize the mapping relationship between the movement vector of the first sliding operation of the player in the touch screen of the terminal device or the graphical user interface and the moving distance of the large map in the virtual scene.
- the disclosed embodiment determines the first displacement vector of the corresponding mapping in the large map and the second displacement vector in the thumbnail based on the first movement vector of the first sliding operation in the graphical user interface, and then controls the virtual camera to move in the virtual scene according to the first displacement vector, and updates the scene content displayed in the thumbnail according to the second displacement vector, thereby realizing the synchronous movement of the player's first sliding operation in the graphical user interface and the virtual scene and the thumbnail, and then realizing the synchronization of display, thereby improving the player's gaming experience.
- the display control method of the virtual scene further includes the following step H:
- Step H Determine the size of the first preset parameter and the second preset parameter according to the proportional relationship between the virtual scene and the thumbnail.
- the size of the thumbnail is m1 length * n1 width
- the size of the virtual scene is m2 length * n2 width
- the sizes of the first preset parameter and the second preset parameter may also be adaptively adjusted and modified according to the resolution parameters of the terminal color environment, etc., which is not specifically limited in the embodiment of the present disclosure.
- FIG. 7 shows a schematic architecture diagram of the display control device 700 for a virtual scene, including: a first response module 710, a second response module 720 and a display module 750, wherein:
- the first response module 710 is used to respond to the first sliding operation on the graphical user interface, control the virtual camera to move in the virtual scene, and synchronously display the first virtual scene obtained by shooting according to the movement of the virtual camera in the graphical user interface. Simulated scene picture;
- the second response module 720 is used to respond to the movement of the virtual camera so that the target object in the virtual scene is displayed in a preset range area of the graphical user interface, control the virtual camera to move to the target position and obtain a second virtual scene image at least partially including the target object obtained by the virtual camera staying at the target position to shoot the target object;
- the display module 750 is used to continuously display the second virtual scene image in the graphical user interface.
- the display control device 700 of the virtual scene proposed in the embodiment of the present disclosure controls the virtual camera to move in the virtual scene after responding to the first sliding operation acting on the graphical user interface, and synchronously displays the first virtual scene picture obtained by shooting according to the movement of the virtual camera in the graphical user interface, and after responding to the movement of the virtual camera so that the target object in the virtual scene is displayed in the preset range area of the graphical user interface, controls the virtual camera to move to the target position and obtains the second virtual scene picture at least partially including the target object obtained by the virtual camera staying at the target position to shoot the target object, and continuously displays the second virtual scene picture in the graphical user interface, thereby ensuring that when the target object is in the preset range area, the second virtual scene picture displayed in the graphical user interface is fixed, so that the player can view the information of the target object more stably without frequently switching between the large map and the small map, thereby solving the current technical problem of poor convenience in exploring the target object and viewing the object information in the virtual scene.
- the display control device 700 of the virtual scene also includes a third response module 730, which is specifically used to respond to a second sliding operation used to control the virtual camera to resume movement in the virtual scene, and synchronously display a third virtual scene picture obtained by shooting according to the movement of the virtual camera in the graphical user interface, wherein the second sliding operation and the first sliding operation are continuous operations.
- a third response module 730 which is specifically used to respond to a second sliding operation used to control the virtual camera to resume movement in the virtual scene, and synchronously display a third virtual scene picture obtained by shooting according to the movement of the virtual camera in the graphical user interface, wherein the second sliding operation and the first sliding operation are continuous operations.
- the second virtual scene containing the target object can be locked and displayed in the graphical user interface to facilitate the player to view information, and the viewing effect and viewing stability are both high; when the virtual camera leaves the target position where the target object can be collected, the locking relationship between the virtual camera and the target object is released, so that the virtual camera moves with the third sliding operation of the player, thereby achieving rapid movement in the virtual scene, and the exploration of the target object in the virtual scene and the viewing of the object information are more efficient. There is no need to frequently switch operations during the exploration of the target object in the virtual scene and the viewing of the object information, which greatly improves the convenience of player operation while ensuring the display effect of the large and small maps.
- the virtual camera has a projection position mapped to the ground plane of the virtual scene, and the projection position moves as the virtual camera moves in the virtual scene; when the projection position of the virtual camera enters a target area in the virtual scene through a first sliding operation, the target object is displayed in a preset range area of the graphical user interface, wherein the target area is a scene area determined according to the position of the target object.
- the display control device of the above-mentioned virtual scene by setting a target area, when the projection position of the virtual camera enters the target area in the virtual scene through the first sliding operation, it can be judged that the virtual object has entered the preset range area, and the target object can be displayed in the preset range area of the graphical user interface, which can reduce the player's operation accuracy requirements and thus improve the convenience of the player's operation.
- the second response module 720 is specifically used to release the first control association between the first sliding operation and the control of the movement of the virtual camera, determine the target position according to the position of the target object in the virtual scene, and control the virtual camera to move to the target position, wherein the first control association is used to control the virtual camera to move according to the first sliding operation.
- the first control association between the first sliding operation and the control of the movement of the virtual camera can be released when the target object is outside the preset range area.
- the target position is determined according to the position of the target object in the virtual scene, and the virtual camera is controlled to move to the target position. This can achieve stable shooting of the target object at the target position, and obtain stable and continuous information of the target object, which is convenient for players to view. There is no need to frequently switch between the large map and the small map. The information viewing of the target object is more convenient, and the information display is more stable and lasting.
- the second response module 720 is also used to establish a second control association between the first sliding operation and the operation positioning position in the virtual scene, and the second control association is used to determine the operation positioning position corresponding to the first sliding operation; correspondingly, the third response module 730 is specifically used to respond to the first sliding operation so that the operation positioning position leaves the target area in the virtual scene, and establish a third control association between the second sliding operation and controlling the movement of the virtual camera, wherein the third control association is used to control the virtual camera to move according to the second sliding operation; the display module 750 is also used to synchronously display a third virtual scene image obtained by shooting according to the movement of the virtual camera in the graphical user interface.
- the embodiment of the present disclosure can establish a second control association between the first sliding operation and the operation positioning position in the virtual scene after releasing the first control association between the first sliding operation and the control of the movement of the virtual camera, and establish a third control association between the second sliding operation and the control of the movement of the virtual camera after responding to the first sliding operation so that the operation positioning position leaves the target area in the virtual scene, and construct different associations between the first sliding operation and the second sliding operation when the target area in the virtual scene is selected at the projection position of the virtual camera, and leave the target area, so as to perform targeted display control and improve the operation control accuracy.
- the second response module 720 is specifically configured to respond to the first sliding operation so that the operation positioning position does not leave the target area in the virtual scene, and continuously display the second virtual scene image in the graphical user interface.
- the disclosed embodiment uses the above-mentioned second response module to continuously display the second virtual scene image in the graphical user interface in response to the first sliding operation so that the operation positioning position does not leave the target area in the virtual scene, so as to ensure that the corresponding second control association is collected to control the mapping of the virtual camera in the virtual scene, thereby improving the reliability of the virtual scene display, facilitating players to view the information of the target object, and having higher reliability.
- the graphical user interface provides a pair of game thumbnails of virtual scenes, the response area of the game thumbnails is the first area, and the area other than the first area in the graphical user interface is the second area; the first sliding operation acting on the graphical user interface includes: a sliding operation starting from the first area and passing through the second area.
- thumbnails above make the player's operation simple and quick, without the need to frequently switch between the large map and the small map, and the player's operation efficiency is higher. At the same time, the sliding operation area is larger, and the player's operation is more convenient.
- the first response module 710 is specifically used to, in response to a first sliding operation on the graphical user interface, control the virtual camera to move at a first rate in the virtual scene, and synchronously display in the graphical user interface a first virtual scene image captured when the virtual camera moves at the first rate;
- the display control device 700 of the virtual scene also includes a fourth response module 740, which is used to respond to the third sliding operation in the second area, control the virtual camera to move at a second rate in the virtual scene, and synchronously display in the graphical user interface a fourth virtual scene picture captured when the virtual camera moves at the second rate, wherein the first rate is greater than the second rate.
- a fourth response module 740 which is used to respond to the third sliding operation in the second area, control the virtual camera to move at a second rate in the virtual scene, and synchronously display in the graphical user interface a fourth virtual scene picture captured when the virtual camera moves at the second rate, wherein the first rate is greater than the second rate.
- the virtual camera when sliding in the first area or sliding from the first area of the game thumbnail to the second area outside the game thumbnail, the virtual camera can move at a larger first rate to collect more scene information; when the sliding operation starts from the second area outside the game thumbnail, the virtual camera moves and shoots at a smaller second rate to provide corresponding scene information for the large map and for different map models, with higher reliability.
- the target object includes: a target virtual model and a target scene area adjacent to the target virtual model, and the second virtual scene image at least includes the target virtual model.
- the preset range area includes a full screen area, an edge area, or a screen area generated with the graphical user interface as a center point of the graphical user interface.
- the preset range area is the full screen area, edge area, or screen area generated with the graphical user interface as the center point of the graphical user interface, etc., which has higher flexibility.
- the target position is the position of the virtual camera when the virtual camera is translated to a position where the camera shooting angle is aimed at the target object.
- the target position is the position of the virtual camera when the virtual camera is translated to a position where the camera shooting angle is aimed at the target object, thereby ensuring that the target object can be completely photographed by the virtual camera.
- the virtual camera has a projection position mapped to the ground plane of the virtual scene, and the target position is the position of the virtual camera when the virtual camera is translated to coincide with the projection position and the position of the target object in the virtual scene.
- the target object is completely in the center of the shooting field of view of the virtual camera, thereby ensuring the integrity and reliability of the target object information, making it convenient for players to view information, and making information viewing more convenient.
- the first response module 710 is specifically used to respond to a first sliding operation on a graphical user interface, obtain a first movement vector of the first sliding operation; determine a first displacement vector based on the first movement vector and a first preset parameter; control the virtual camera to move in the virtual scene according to the first displacement vector; determine a second displacement vector based on the first movement vector and a second preset parameter; and update the scene content displayed in the thumbnail according to the second displacement vector.
- the disclosed embodiment uses the above-mentioned first response module to determine the first displacement vector of the corresponding mapping in the large map and the second displacement vector in the thumbnail based on the first movement vector of the first sliding operation in the graphical user interface, and then controls the virtual camera to move in the virtual scene according to the first displacement vector, and updates the scene content displayed in the thumbnail according to the second displacement vector, thereby realizing the synchronous movement of the player's first sliding operation in the graphical user interface and in the virtual scene and the thumbnail, and then realizing the synchronization of display, thereby improving the player's gaming experience.
- the first response module 710 is further used to determine the size of the first preset parameter and the second preset parameter according to the proportional relationship between the virtual scene and the thumbnail.
- the embodiment of the present disclosure can make the ratio of the first preset parameter to the second preset parameter the same as the ratio of the virtual scene to the thumbnail, thereby achieving synchronous mapping of the player's first sliding operation in the graphical user interface in the thumbnail and the virtual scene, as well as more accurate mapping and greater reliability.
- FIG8 shows a schematic diagram of the structure of a computer system of a terminal device suitable for implementing an embodiment of the present disclosure.
- the computer system includes a central processing unit (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) or the program loaded from the storage part to the random access memory (RAM).
- CPU central processing unit
- RAM random access memory
- various programs and data required for system operation are also stored.
- the (CPU), (ROM) and (RAM) are connected to each other through a bus.
- the input/output (I/O) interface is also connected to the bus.
- the following components are connected to the (I/O) interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a local area network card (LAN card), a modem, etc.
- the communication part performs communication processing via a network such as the Internet.
- a drive is also connected to the (I/O) interface as needed.
- Removable media such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.
- the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more microprocessors (DSP), or one or more field programmable gate arrays (FPGA).
- ASIC application specific integrated circuit
- DSP microprocessors
- FPGA field programmable gate arrays
- the processing element may be a general-purpose processor, such as a CPU or other processor that can call program code.
- these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
- SOC system-on-a-chip
- the disclosed devices and methods can be implemented in other ways.
- the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
- Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
- each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
- the above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium.
- the above-mentioned software functional unit is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method of each embodiment of the present disclosure.
- Step 201 In response to a first sliding operation on a graphical user interface, a virtual camera is controlled to move in a virtual scene, and a first virtual scene image obtained by shooting the virtual camera in a synchronous manner is displayed in the graphical user interface;
- Step 202 In response to the movement of the virtual camera, the target object in the virtual scene is displayed in a preset range area of the graphical user interface, the virtual camera is controlled to move to the target position, and a second virtual scene image at least partially including the target object is obtained by the virtual camera staying at the target position and photographing the target object;
- Step 203 Continuously display the second virtual scene image in the graphical user interface.
- the display control method of the virtual scene proposed in the embodiment of the present disclosure can control the virtual camera to move in the virtual scene after responding to the first sliding operation acting on the graphical user interface, and synchronously display the first virtual scene picture obtained by shooting according to the movement of the virtual camera in the graphical user interface, and after responding to the movement of the virtual camera so that the target object in the virtual scene is displayed in a preset range area of the graphical user interface, control the virtual camera to move to the target position and obtain a second virtual scene picture that at least partially includes the target object obtained by the virtual camera staying at the target position to shoot the target object, and continuously display the second virtual scene picture in the graphical user interface, thereby ensuring that when the target object is in the preset range area, the second virtual scene picture displayed in the graphical user interface is fixed, so that the player can view the information of the target object more stably without frequently switching between the large map and the small map, thereby solving the current technical problem of poor convenience in exploring the target object and viewing the object information in the virtual scene.
- the sliding operation in response to a second signal for controlling the virtual camera to resume movement in the virtual scene, synchronously displays the third virtual scene picture obtained by moving the virtual camera in the graphical user interface, wherein the second sliding operation and the first sliding operation are continuous operations.
- the second virtual scene containing the target object is locked and displayed in the graphical user interface to facilitate the player to view information, and the viewing effect and viewing stability are both high; when the virtual camera leaves the target position where the target object can be captured, the locking relationship between the virtual camera and the target object is released, so that the virtual camera moves with the player's third sliding operation, thereby achieving rapid movement in the virtual scene, and the exploration of the target object in the virtual scene and the viewing of the object information are more efficient. There is no need to frequently switch operations during the exploration of the target object in the virtual scene and the viewing of the object information, which greatly improves the convenience of player operation while ensuring the display effect of the large and small maps.
- the virtual camera has a projection position mapped to the ground plane of the virtual scene, and the projection position moves as the virtual camera moves in the virtual scene; when the projection position of the virtual camera enters a target area in the virtual scene through a first sliding operation, the target object is displayed in a preset range area of the graphical user interface, wherein the target area is a scene area determined according to the position of the target object.
- a first control association between a first sliding operation and controlling the movement of a virtual camera is released, a target position is determined according to a position of a target object in a virtual scene, and the virtual camera is controlled to move to the target position, wherein the first control association is used to control the movement of the virtual camera according to the first sliding operation.
- the first control association between the first sliding operation and the control of the movement of the virtual camera can be released when the target object is outside the preset range area.
- the target position is determined according to the position of the target object in the virtual scene, and the virtual camera is controlled to move to the target position. This can achieve stable shooting of the target object at the target position, and obtain stable and continuous information of the target object, which is convenient for players to view. There is no need to frequently switch between the large map and the small map.
- the information viewing of the target object is more convenient, and the information display is more stable and durable.
- a first sliding operation establishes a second control association with an operation positioning position in a virtual scene, and the second control association is used to determine the operation positioning position corresponding to the first sliding operation; correspondingly, in response to a second sliding operation used to control the virtual camera to resume movement in the virtual scene, a third virtual scene picture obtained by shooting according to the movement of the virtual camera is synchronously displayed in the graphical user interface, including: in response to the first sliding operation, the operation positioning position leaves the target area in the virtual scene, and a third control association is established between the second sliding operation and controlling the movement of the virtual camera, wherein the third control association is used to control the virtual camera to move according to the second sliding operation; and the third virtual scene picture obtained by shooting according to the movement of the virtual camera is synchronously displayed in the graphical user interface.
- a second control association between the first sliding operation and the operation positioning position in the virtual scene can be established, and after responding to the first sliding operation so that the operation positioning position leaves the target area in the virtual scene, a third control association between the second sliding operation and the control of the movement of the virtual camera is established, and the target area in the virtual scene is performed at the projection position of the virtual camera, and different associations between the first sliding operation and the second sliding operation are constructed when leaving the target area, so as to perform targeted display control and achieve higher operation control accuracy.
- the second virtual scene image in response to the first sliding operation so that the operation positioning position does not leave the target area in the virtual scene, is continuously displayed in the graphical user interface.
- the operation positioning position in response to the first sliding operation, does not leave the target in the virtual scene.
- Area continuously displaying the second virtual scene screen in the graphical user interface to ensure that the corresponding second control association controls the mapping of the virtual camera in the virtual scene, improves the reliability of the virtual scene display, and facilitates the player to view the information of the target object with higher reliability.
- a graphical user interface provides a pair of game thumbnails of virtual scenes, the response area of the game thumbnails is a first area, and the area other than the first area in the graphical user interface is a second area; the first sliding operation acting on the graphical user interface includes: a sliding operation starting from the first area and passing through the second area.
- thumbnails above make the player's operation simple and quick, without the need to frequently switch between the large map and the small map, and the player's operation efficiency is higher. At the same time, the sliding operation area is larger, and the player's operation is more convenient.
- the virtual camera in response to a first sliding operation applied to a graphical user interface, the virtual camera is controlled to move at a first rate in the virtual scene, and a first virtual scene image captured when the virtual camera moves at the first rate is synchronously displayed in the graphical user interface; in response to a third sliding operation in the second area, the virtual camera is controlled to move at a second rate in the virtual scene, and a fourth virtual scene image captured when the virtual camera moves at the second rate is synchronously displayed in the graphical user interface, wherein the first rate is greater than the second rate.
- the virtual camera when sliding in the first area or sliding from the first area of the game thumbnail to the second area outside the game thumbnail, the virtual camera can be moved at a larger first rate to collect more scene information; when the sliding operation starts from the second area outside the game thumbnail, the virtual camera moves and shoots at a smaller second rate to provide corresponding scene information for the large map and for different map models, with higher reliability.
- the target object includes: a target virtual model and a target scene area adjacent to the target virtual model, and the second virtual scene picture at least includes the target virtual model.
- the preset range area includes a full screen area, an edge area, or a screen area generated with the graphical user interface as a center point of the graphical user interface.
- the preset range area is the full screen area, edge area, or screen area generated with the graphical user interface as the center point of the graphical user interface, which has higher flexibility.
- the target position is the position of the virtual camera when the virtual camera is translated to a position where the camera shooting angle is aimed at the target object.
- the target position is the position of the virtual camera when the virtual camera is translated to a position where the camera shooting angle is aimed at the target object, thereby ensuring that the target object can be completely photographed by the virtual camera.
- the virtual camera has a projection position mapped to the ground plane of the virtual scene, and the target position is the position of the virtual camera when the virtual camera is translated to coincide with the projection position and the position of the target object in the virtual scene.
- the target object is completely in the center of the shooting field of view of the virtual camera, thereby ensuring the integrity and reliability of the target object information, making it convenient for players to view information, and making information viewing more convenient.
- a first movement vector of the first sliding operation is obtained; a first displacement vector is determined based on the first movement vector and a first preset parameter; a virtual camera is controlled to move in a virtual scene according to the first displacement vector; a second displacement vector is determined based on the first movement vector and the second preset parameter; and the scene content displayed in the thumbnail is updated according to the second displacement vector.
- the first displacement vector corresponding to the mapping in the large map and the second displacement vector in the thumbnail are respectively determined, and then the first displacement vector is used to determine the first displacement vector corresponding to the mapping in the large map and the second displacement vector in the thumbnail.
- the virtual camera is controlled to move in the virtual scene, and the scene content displayed in the thumbnail is updated according to the second displacement vector, so as to realize the player's first sliding operation in the graphical user interface and the synchronous movement in the virtual scene and the thumbnail, and then realize the synchronization of display, thereby improving the player's gaming experience.
- the sizes of the first preset parameter and the second preset parameter are determined according to a proportional relationship between the virtual scene and the thumbnail.
- the embodiment of the present disclosure can make the ratio of the first preset parameter to the second preset parameter the same as the ratio of the virtual scene to the thumbnail, thereby achieving synchronous mapping of the player's first sliding operation in the graphical user interface in the thumbnail and the virtual scene, as well as more accurate mapping and greater reliability.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Optics & Photonics (AREA)
- Human Computer Interaction (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Processing Or Creating Images (AREA)
Abstract
A virtual scene display control method, comprising: in response to a first sliding operation acting on a graphical user interface, controlling a virtual camera to move in a virtual scene, and synchronously displaying on the graphical user interface a first virtual scene picture shot on the basis of the movement of the virtual camera (201); in response to the movement of the virtual camera, causing a target object in the virtual scene to be displayed in a preset range area of the graphical user interface, controlling the virtual camera to move to a target position, and acquiring a second virtual scene picture at least partially containing the target object (202); and continuously displaying the second virtual scene picture on the graphical user interface (203). The present invention solves the technical problem in the prior art of the poor convenience for information viewing and for position moving operations in virtual scenes, and achieves the technical effect of improving the convenience for information viewing and for position moving operations in the virtual scenes.
Description
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本公开要求于2022年10月14日提交的申请号为202211261252.0、名称为“虚拟场景的显示控制方法、装置、存储介质及电子设备”的中国专利申请的优先权,该中国专利申请的全部内容通过引用全部并入全文。This disclosure claims priority to Chinese patent application number 202211261252.0, filed on October 14, 2022, and entitled “Display control method, device, storage medium and electronic device for virtual scenes”, the entire contents of which are incorporated herein by reference.
本公开涉及虚拟交互技术领域,具体而言,涉及一种虚拟场景的显示控制方法、装置、存储介质及电子设备。The present disclosure relates to the field of virtual interaction technology, and in particular to a display control method, device, storage medium and electronic device for a virtual scene.
目前在一些游戏(如Simulation Game,SLG游戏)中,通过虚拟场景向玩家提供基础地理位置信息、地形结构信息、当前视角位置信息、游戏中关键目标位置信息、我方关键目标位置信息以及周边势力信息等。Currently, in some games (such as Simulation Game and SLG game), virtual scenes are used to provide players with basic geographical location information, terrain structure information, current perspective location information, key target location information in the game, our key target location information, and surrounding force information.
玩家通过在屏幕中的滑动操作更新虚拟场景画面,以实现对虚拟场景的探索,且在探索的过程中寻找目标对象以并查看对象信息。然而,在虚拟场景中进行探索时,较大幅度的滑动操作会大范围的更新虚拟场景画面,导致容易错过想要搜索的目标对象,此时需要来回滑动进行调整才能找到虚拟场景中的目标对象,操作繁琐。Players update the virtual scene screen by sliding on the screen to explore the virtual scene, and find the target object and view the object information during the exploration. However, when exploring in the virtual scene, a large sliding operation will update the virtual scene screen over a large area, making it easy to miss the target object you want to search for. At this time, you need to slide back and forth to adjust to find the target object in the virtual scene, which is cumbersome.
因此,目前对于虚拟场景中目标对象的探索以及对象信息的查看的操作便捷性较差。Therefore, currently, the exploration of target objects in virtual scenes and the viewing of object information are relatively inconvenient.
发明内容Summary of the invention
根据本公开的一个方面,提供了一种虚拟场景的显示控制方法,通过终端设备提供图形用户界面,图形用户界面显示的内容包括部分虚拟场景,该方法包括:According to one aspect of the present disclosure, a method for controlling display of a virtual scene is provided, wherein a graphical user interface is provided through a terminal device, and content displayed by the graphical user interface includes a portion of the virtual scene, and the method comprises:
响应作用于图形用户界面的第一滑动操作,控制虚拟相机在虚拟场景中移动,并在图形用户界面中同步显示根据虚拟相机的移动拍摄得到的第一虚拟场景画面;In response to a first sliding operation on the graphical user interface, the virtual camera is controlled to move in the virtual scene, and a first virtual scene image obtained by shooting the virtual camera according to the movement is synchronously displayed in the graphical user interface;
响应虚拟相机的移动使得虚拟场景中的目标对象显示于图形用户界面的预设范围区域,控制虚拟相机移动至目标位置并获取虚拟相机停留在目标位置处拍摄目标对象得到的至少部分包含目标对象的第二虚拟场景画面;In response to the movement of the virtual camera, the target object in the virtual scene is displayed in a preset range area of the graphical user interface, the virtual camera is controlled to move to the target position, and a second virtual scene image at least partially including the target object is obtained by the virtual camera staying at the target position and photographing the target object;
在图形用户界面中持续显示第二虚拟场景画面。The second virtual scene screen is continuously displayed in the graphical user interface.
根据本公开的一个方面,提供了一种虚拟场景的显示控制装置,其特征在于,通过终端设备提供图形用户界面,图形用户界面显示的内容包括部分虚拟场景,该装置包括:According to one aspect of the present disclosure, a display control device for a virtual scene is provided, characterized in that a graphical user interface is provided through a terminal device, and the content displayed by the graphical user interface includes a part of the virtual scene, and the device includes:
第一响应模块,用于响应作用于图形用户界面的第一滑动操作,控制虚拟相机在虚拟场景中移动,并在图形用户界面中同步显示根据虚拟相机的移动拍摄得到的第一虚拟场景画面;A first response module, used to respond to a first sliding operation on the graphical user interface, control the virtual camera to move in the virtual scene, and synchronously display a first virtual scene image obtained by shooting according to the movement of the virtual camera in the graphical user interface;
第二响应模块,用于响应虚拟相机的移动使得虚拟场景中的目标对象显示于图形用户界面的预设范围区域,控制虚拟相机移动至目标位置并获取虚拟相机停留在目标位置处拍摄目标对象得到的至少部分包含目标对象的第二虚拟场景画面;A second response module is used to respond to the movement of the virtual camera so that the target object in the virtual scene is displayed in a preset range area of the graphical user interface, control the virtual camera to move to the target position and obtain a second virtual scene picture at least partially including the target object obtained by the virtual camera staying at the target position and photographing the target object;
显示模块,用于在图形用户界面中持续显示第二虚拟场景画面。The display module is used to continuously display the second virtual scene image in the graphical user interface.
根据本公开的一个方面,提供了一种计算机可读存储介质,其上存储有计算机程序,其特征在于,程序被处理器执行时实现如上述实施例中第一方面的虚拟场景的显示控制方法。According to one aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, characterized in that when the program is executed by a processor, a display control method for a virtual scene as in the first aspect of the above-mentioned embodiment is implemented.
根据本公开的一个方面,提供了一种电子设备,包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当一个或多个程序被一个或多个处理器执行时,使得一个或多个处理器实现如上述实施例中第一方面的虚拟场景的显示控制方法。
According to one aspect of the present disclosure, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, which, when the one or more programs are executed by the one or more processors, enables the one or more processors to implement a display control method for a virtual scene as in the first aspect of the above-mentioned embodiment.
根据本公开的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述的各种可选实现方式中提供的方法。According to one aspect of the present disclosure, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the above-mentioned various optional implementations.
本公开实施例提供的技术方案可以包括以下有益效果:The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
本公开实施例提供的虚拟场景的显示控制方法,在响应到作用于图形用户界面的第一滑动操作后控制虚拟相机在虚拟场景中移动,并在图形用户界面中同步显示根据虚拟相机的移动拍摄得到的第一虚拟场景画面,并在响应到虚拟相机的移动使得虚拟场景中的目标对象显示于图形用户界面的预设范围区域后,控制虚拟相机移动至目标位置并获取虚拟相机停留在目标位置处拍摄目标对象得到的至少部分包含目标对象的第二虚拟场景画面,并在图形用户界面中持续显示第二虚拟场景画面,从而保障目标对象处于预设范围区域时,图形用户界面中的显示的第二虚拟场景画面固定不变,以方便玩家可以较为稳定的查看目标对象的信息,无需进行大地图与小地图频繁的切换,从而解决了目前对于虚拟场景中探索目标对象以及查看对象信息的操作便捷性较差的技术问题。The display control method of the virtual scene provided by the embodiment of the present disclosure controls the virtual camera to move in the virtual scene after responding to a first sliding operation acting on a graphical user interface, and synchronously displays a first virtual scene picture obtained by shooting according to the movement of the virtual camera in the graphical user interface, and after responding to the movement of the virtual camera so that the target object in the virtual scene is displayed in a preset range area of the graphical user interface, controls the virtual camera to move to the target position and obtains a second virtual scene picture at least partially including the target object obtained by the virtual camera staying at the target position to shoot the target object, and continuously displays the second virtual scene picture in the graphical user interface, thereby ensuring that when the target object is in the preset range area, the second virtual scene picture displayed in the graphical user interface remains fixed, so that the player can view the information of the target object more stably without frequently switching between the large map and the small map, thereby solving the current technical problem of poor convenience in exploring the target object and viewing the object information in the virtual scene.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
图1示意性示出了可以应用本公开其中之一实施例的一种虚拟场景的显示控制方法及虚拟场景的显示控制装置的示例性终端设备的示意图;FIG1 schematically shows a schematic diagram of an exemplary terminal device to which a display control method for a virtual scene and a display control device for a virtual scene according to one embodiment of the present disclosure can be applied;
图2示意性示出了根据本公开的其中一个实施例的虚拟场景的显示控制方法流程图;FIG2 schematically shows a flow chart of a method for controlling display of a virtual scene according to one embodiment of the present disclosure;
图3示意性示出了根据本公开的其中一个实施例的虚拟场景的显示控制方法中的图形用户界面示意图;FIG3 schematically shows a graphical user interface diagram in a method for controlling display of a virtual scene according to one embodiment of the present disclosure;
图4示意性示出了根据本公开的其中一个实施例的虚拟场景的显示控制方法流程图;FIG4 schematically shows a flow chart of a method for controlling display of a virtual scene according to one embodiment of the present disclosure;
图5示意性示出了根据本公开的其中一个实施例的虚拟场景的显示控制方法中的图形用户界面示意图;FIG5 schematically shows a graphical user interface diagram in a method for controlling display of a virtual scene according to one embodiment of the present disclosure;
图6示意性示出了根据本公开的其中一个实施例的虚拟场景的显示控制方法流程图;FIG6 schematically shows a flow chart of a method for controlling display of a virtual scene according to one embodiment of the present disclosure;
图7示意性示出了根据本公开的其中一个实施例中虚拟场景的显示控制装置的结构框图;FIG7 schematically shows a structural block diagram of a display control device for a virtual scene according to one embodiment of the present disclosure;
图8示意性示出了适于用来实现本公开其中之一实施例的终端设备的计算机系统的结构示意图。FIG8 schematically shows a schematic diagram of the structure of a computer system of a terminal device suitable for implementing one of the embodiments of the present disclosure.
现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。在下面的描述中,提供许多具体细节从而给出对本公开的实施方式的充分理解。然而,本领域技术人员将意识到,可以实践本公开的技术方案而省略特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知技术方案以避免喧宾夺主而使得本公开的各方面变得模糊。Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure can be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.
此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处
理器装置和/或微控制器装置中实现这些功能实体。In addition, the drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and/or locations. These functional entities are implemented in a processor device and/or a microcontroller device.
目前在一些游戏(如策略类游戏(Simulation Game,SLG))中,通过虚拟场景向玩家提供基础地理位置信息、地形结构信息、当前视角位置信息、游戏中关键目标位置信息、我方关键目标位置信息以及周边势力信息等。玩家通过在屏幕中的滑动操作更新虚拟场景画面,以实现对虚拟场景进行探索,且在探索的过程中寻找目标对象以并查看对象信息。滑动的方式一般采用如下两种:第一种,通过对屏幕中显示的虚拟场景的滑动操作,可以小范围更新虚拟场景画面,然而,当玩家以这种滑动方式在虚拟场景进行探索时,如果想要寻找的目标对象距离当前的位置较远时,需要在屏幕上大范围高频率进行滑动才能定位至目标对象所在的位置,操作不便利。第二种,通过对屏幕中的虚拟控件(如小地图或其他预置控件)进行滑动操作,可以较大范围地更新虚拟场景画面,但是这种方式对于玩家来说认知成本较高,需要玩家熟悉各个对象在小地图中分布位置,需要玩家在操作前就对搜索的目标对象有明确的判断和思考,这个过程是精确且非即时性的。而实际上玩家在很多虚拟场景下的探索具有模糊性,同时玩家会根据滑动操作过程中对虚拟场景中的一些信息即时进行思考和判断,这个过程是即时性的,使得在虚拟场景中进行探索时,如果是以较大幅度的滑动操作会大范围的更新虚拟场景画面,导致容易错过想要搜索的目标对象,此时需要来回滑动进行调整才能找到虚拟场景中的目标对象,操作繁琐。综上原因,对虚拟场景的探索以及查看对象信息交互方式在很多场景下无法满足玩家快速搜寻和查看对象的游戏需求。At present, in some games (such as strategy games (SLG)), basic geographical location information, terrain structure information, current perspective location information, key target location information in the game, our key target location information, and surrounding forces information are provided to players through virtual scenes. Players update the virtual scene screen by sliding operations on the screen to explore the virtual scene, and find the target object and view the object information during the exploration process. There are generally two ways of sliding: the first is to update the virtual scene screen in a small range by sliding the virtual scene displayed on the screen. However, when the player explores the virtual scene in this way, if the target object to be found is far away from the current position, it is necessary to slide on the screen in a large range and at a high frequency to locate the location of the target object, which is inconvenient to operate. The second is to update the virtual scene screen in a large range by sliding the virtual controls on the screen (such as a small map or other preset controls), but this method has a high cognitive cost for players, requiring players to be familiar with the distribution of each object in the small map, and requiring players to have a clear judgment and thinking about the target object to be searched before operation. This process is accurate and non-instantaneous. In fact, the exploration of players in many virtual scenes is ambiguous. At the same time, players will think and judge some information in the virtual scene in real time according to the sliding operation. This process is real-time, so when exploring in the virtual scene, if a large sliding operation is performed, the virtual scene screen will be updated on a large scale, which makes it easy to miss the target object you want to search for. At this time, you need to slide back and forth to adjust to find the target object in the virtual scene, which is cumbersome. For the above reasons, the exploration of virtual scenes and the interactive method of viewing object information cannot meet the game needs of players to quickly search and view objects in many scenes.
因此,目前对于虚拟场景中目标对象的探索以及对象信息的查看的操作便捷性较差。Therefore, currently, the exploration of target objects in virtual scenes and the viewing of object information are relatively inconvenient.
针对上述技术问题,本公开实施例提供了一种虚拟场景的显示控制方法,以来提供对于虚拟场景中目标对象的探索以及对象信息的查看的操作的便捷性。图1示出了可以应用本公开实施例的一种虚拟场景的显示控制方法及虚拟场景的显示控制装置的示例性终端设备的示意图。In view of the above technical problems, the embodiments of the present disclosure provide a display control method for a virtual scene, so as to provide convenience for exploring target objects in a virtual scene and viewing object information. FIG1 shows a schematic diagram of an exemplary terminal device to which a display control method for a virtual scene and a display control device for a virtual scene according to the embodiments of the present disclosure can be applied.
如图1所示,终端设备可以包括终端设备101、102、103中的一个或多个。终端设备101、102、103可以是具有显示屏的各种电子设备,包括但不限于台式计算机、便携式计算机、智能手机和平板电脑等等。As shown in Fig. 1, the terminal device may include one or more of terminal devices 101, 102, and 103. Terminal devices 101, 102, and 103 may be various electronic devices with display screens, including but not limited to desktop computers, portable computers, smart phones, and tablet computers.
在本公开其中一种实施例中的虚拟场景的显示控制方法可以运行于本地终端设备或者是服务器。当虚拟场景的显示控制方法运行于服务器时,该方法则可以基于云交互系统来实现与执行,其中,云交互系统包括服务器和客户端设备。The display control method of the virtual scene in one embodiment of the present disclosure can be run on a local terminal device or a server. When the display control method of the virtual scene is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
在本公开一个可选的实施方式中,云交互系统下可以运行各种云应用,例如:云游戏。以云游戏为例,云游戏是指以云计算为基础的游戏方式。在云游戏的运行模式下,游戏程序的运行主体和游戏画面呈现主体是分离的,虚拟场景的显示控制方法的储存与运行是在云游戏服务器上完成的,客户端设备用于数据的接收、发送以及游戏画面的呈现,举例而言,客户端设备可以是靠近用户侧的具有数据传输功能的显示设备,如,移动终端、电视机、计算机、掌上电脑等;但是进行信息处理的为云端的云游戏服务器。在进行游戏时,玩家操作客户端设备向云游戏服务器发送操作指令,云游戏服务器根据操作指令运行游戏,将游戏画面等数据进行编码压缩,通过网络返回客户端设备,最后,通过客户端设备进行解码并输出游戏画面。In an optional embodiment of the present disclosure, various cloud applications, such as cloud games, can be run under the cloud interaction system. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the display control method of the virtual scene are completed on the cloud game server. The client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is used for information processing. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
在本公开一个可选的实施方式中,以游戏为例,本地终端设备存储有游戏程序并用于呈现游戏画面。本地终端设备用于通过图形用户界面与玩家进行交互,即,常规的通过终端设备下载安装游戏程序并运行。该本地终端设备将图形用户界面提供给玩家的方式可以包括多种,例如,可以渲染显示在终端的显示屏上,或者,通过全息投影提供给玩家。举例而言,本地终端设备可以包括显示屏和处理器,该显示屏用于呈现图形用户界面,该图形用户界面包括游戏画面,该处理器用于运行该游戏、生成图形用户界面以及控制图形用
户界面在显示屏上的显示。In an optional embodiment of the present disclosure, taking a game as an example, a local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed and run through the conventional terminal device. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on the display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the graphical user interface. The user interface is displayed on the display.
需要说明的是,本公开所示的计算机可读存储介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。而在本公开中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。该计算机可读存储介质可以是上述实施例中描述的终端设备中所包含的;也可以是单独存在,而未装配入该终端设备中。上述计算机可读存储介质承载有一个或者多个程序,当上述一个或者多个程序被一个该终端设备执行时,使得该终端设备实现如下述实施例中的方法。例如,的终端设备可以实现如图2所示的各个步骤等。It should be noted that the computer-readable storage medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. The computer-readable storage medium may be included in the terminal device described in the above embodiments; or it may exist alone without being assembled into the terminal device. The above-mentioned computer-readable storage medium carries one or more programs, and when the above-mentioned one or more programs are executed by a terminal device, the terminal device implements the method in the following embodiments. For example, the terminal device can implement the various steps shown in Figure 2, etc.
本公开的示例性实施例中虚拟场景可以是计算机、手机、平板电脑等智能终端设备通过数字化通讯技术勾勒出的数字化场景,数字化场景可以是在智能终端设备的显示屏上,也可以是投射到其它显示设备上。该虚拟场景可以包括房屋、楼宇、园林、桥梁、水池等建筑物或构筑物,还可以包括山地、河流、湖泊等自然景观以及武器、工具、生物等任意的虚拟物品,本示例性实施例对此不做特殊限定。虚拟角色是基于动画骨骼技术创建的三维立体模型。每个虚拟角色在三维虚拟环境中具有自身的形状和体积,占据三维虚拟环境中的一部分空间。In the exemplary embodiments of the present disclosure, the virtual scene can be a digital scene outlined by a computer, mobile phone, tablet computer or other intelligent terminal device through digital communication technology. The digital scene can be on the display screen of the intelligent terminal device or projected onto other display devices. The virtual scene can include buildings or structures such as houses, buildings, gardens, bridges, pools, etc., and can also include natural landscapes such as mountains, rivers, lakes, and any virtual items such as weapons, tools, and creatures. This exemplary embodiment does not specifically limit this. The virtual character is a three-dimensional stereo model created based on animation skeleton technology. Each virtual character has its own shape and volume in the three-dimensional virtual environment and occupies a part of the space in the three-dimensional virtual environment.
图形用户界面所呈现的虚拟场景画面例如可以是游戏画面,是通过The virtual scene screen presented by the graphical user interface can be, for example, a game screen.
设置在虚拟场景中的虚拟相机所拍摄的。虚拟相机可以基于第一视角、第二视角或是其他视角来获取虚拟场景画面,例如还可以是俯视视角,俯视视角是以从空中俯视的角度进行观察虚拟环境的视角。当采用俯视视角时,该虚拟相机可以位于虚拟场景的上空。根据虚拟相机的高度不同,当虚拟相机的高度较低时,获取的画面可以只是虚拟场景的局部,例如多人在线战术竞技游戏(Multiplayer Online Battle Arena,简称MOBA);当虚拟相机的高度较高时,获取的画面可以是虚拟场景的全貌。The virtual camera set in the virtual scene takes the picture. The virtual camera can obtain the virtual scene picture based on the first perspective, the second perspective or other perspectives, for example, it can also be a bird's-eye view, which is a perspective of observing the virtual environment from an aerial perspective. When a bird's-eye view is used, the virtual camera can be located above the virtual scene. Depending on the height of the virtual camera, when the height of the virtual camera is low, the picture obtained may only be a part of the virtual scene, such as a multiplayer online tactical competitive game (Multiplayer Online Battle Arena, referred to as MOBA); when the height of the virtual camera is high, the picture obtained can be the whole picture of the virtual scene.
首先,在对本公开实施例进行描述的过程中出现的部分名词或术语进行说明:First, some nouns or terms that appear in the process of describing the embodiments of the present disclosure are explained:
虚拟场景Virtual Scene
是应用程序在终端或服务器上运行时显示(或提供)的虚拟场景。可选地,该虚拟场景是对真实世界的仿真环境,或者是半仿真半虚构的虚拟环境,或者是纯虚构的虚拟环境。虚拟场景是二维虚拟场景和三维虚拟场景中的任意一种,虚拟环境可以为天空、陆地、海洋等,其中,该陆地包括沙漠、城市等环境元素。其中,虚拟场景为用户控制等虚拟对象完整游戏逻辑的场景,例如,对于沙盒类3D射击游戏中,虚拟场景为用于供玩家控制虚拟对象进行对战的3D游戏世界,实例性的虚拟场景可以包括:山川、平地、河流、湖泊、海洋、沙漠、天空、植物、建筑、车辆中的至少一种元素;例如,对于2D卡牌类游戏中,虚拟场景为供展示释放卡牌或是展示卡牌对应的虚拟对象的场景,实例性的虚拟场景可以包括:擂台场、决战场、或是其他可以显示卡牌对战状态的“场”元素或是其他元素;对于2D或是3D的多人在线战术竞技游戏,虚拟场景为供虚拟对象进行对战的2D或3D地形场景,实例性的虚拟场景可以包括:峡谷风格的山脉、线路、河流、教室、桌椅、讲台等元素。It is a virtual scene displayed (or provided) when the application is running on a terminal or server. Optionally, the virtual scene is a simulation environment of the real world, or a semi-simulation and semi-fictitious virtual environment, or a purely fictitious virtual environment. The virtual scene is any one of a two-dimensional virtual scene and a three-dimensional virtual scene. The virtual environment can be the sky, land, ocean, etc., wherein the land includes environmental elements such as deserts and cities. Among them, the virtual scene is a scene with complete game logic of virtual objects such as user control. For example, for sandbox 3D shooting games, the virtual scene is a 3D game world for players to control virtual objects to fight. Example virtual scenes may include: at least one element of mountains, plains, rivers, lakes, oceans, deserts, skies, plants, buildings, and vehicles; for example, for 2D card games, the virtual scene is a scene for displaying released cards or displaying virtual objects corresponding to cards. Example virtual scenes may include: an arena, a decisive battlefield, or other "field" elements or other elements that can display the status of card battles; for 2D or 3D multiplayer online tactical competitive games, the virtual scene is a 2D or 3D terrain scene for virtual objects to fight. Example virtual scenes may include: canyon-style mountains, lines, rivers, classrooms, tables and chairs, podiums and other elements.
虚拟相机Virtual Camera
是指游戏世界中虚拟相机的图像采集设备,用于采集主体对象视野范围内或者所处虚拟场景中的环境信息。随着虚拟相机的移动,采集到虚拟场景中的游戏画面也随之改变,并将采集到的游戏画面显示于图形用户界面。换句话说,图形用户界面中的显示的游戏画面即为主体对象在虚拟场景中所处的环境,即本公开实施例中的“大地图”。Refers to the image acquisition device of the virtual camera in the game world, which is used to collect environmental information within the field of view of the subject object or in the virtual scene. As the virtual camera moves, the game screen collected in the virtual scene also changes, and the collected game screen is displayed on the graphical user interface. In other words, the game screen displayed in the graphical user interface is the environment where the subject object is in the virtual scene, that is, the "big map" in the embodiment of the present disclosure.
本示例实施方式提供了一种虚拟场景的显示控制方法,参考图2所示,通过终端设备提供图形用户界面,该图形用户界面显示的内容包括部分虚拟场景,该虚拟场景的显示控制方法包括如下步骤201-步骤203:
This example embodiment provides a method for controlling the display of a virtual scene. Referring to FIG. 2 , a graphical user interface is provided by a terminal device. The content displayed by the graphical user interface includes a portion of the virtual scene. The method for controlling the display of the virtual scene includes the following steps 201 to 203:
步骤201、响应作用于图形用户界面的第一滑动操作,控制虚拟相机在虚拟场景中移动,并在图形用户界面中同步显示根据虚拟相机的移动拍摄得到的第一虚拟场景画面。Step 201: In response to a first sliding operation on a graphical user interface, a virtual camera is controlled to move in a virtual scene, and a first virtual scene image obtained by shooting the virtual camera in movement is synchronously displayed in the graphical user interface.
该第一滑动操作为控制虚拟相机在虚拟场景中进行移动的操作,该第一滑动操作可以为在图形用户界面的任意第一位置连续滑动至任意第二位置的滑动操作,也可以为从预设响应区域中的第一位置连续滑动至任意第二位置的滑动操作,或者为其他指定操作与滑动操作相结合,例如长按操作+滑动操作,双击操作+滑动操作等,本公开实施例不作具体限定,可根据实际情况具体设定。The first sliding operation is an operation for controlling the movement of the virtual camera in the virtual scene. The first sliding operation can be a sliding operation of continuously sliding from any first position of the graphical user interface to any second position, or a sliding operation of continuously sliding from a first position in a preset response area to any second position, or a combination of other specified operations and sliding operations, such as long press operation + sliding operation, double-click operation + sliding operation, etc. The present disclosure embodiment does not make specific limitations and can be specifically set according to actual conditions.
图形用户界面显示虚拟场景中的部分游戏场景,且显示的场景内容随着玩家的第一滑动操作而不断调整,玩家在图形用户界面中通过该第一滑动操作控制虚拟相机在虚拟场景中移动,在移动过程中图形用户界面中所显示的固定区域大小的画面即为该第一虚拟场景画面。The graphical user interface displays part of the game scene in the virtual scene, and the displayed scene content is continuously adjusted with the player's first sliding operation. The player controls the virtual camera to move in the virtual scene through the first sliding operation in the graphical user interface. During the movement, the screen of a fixed area size displayed in the graphical user interface is the first virtual scene screen.
步骤202、响应虚拟相机的移动使得虚拟场景中的目标对象显示于图形用户界面的预设范围区域,控制虚拟相机移动至目标位置并获取虚拟相机停留在目标位置处拍摄目标对象得到的至少部分包含目标对象的第二虚拟场景画面。Step 202, in response to the movement of the virtual camera, the target object in the virtual scene is displayed in a preset range area of the graphical user interface, the virtual camera is controlled to move to the target position and a second virtual scene image at least partially including the target object is obtained by the virtual camera staying at the target position and photographing the target object.
玩家通过第一滑动操作不断移动虚拟相机的位置,虚拟相机采集视野中的游戏画面也不断发生变化,直至玩家确定的目标对象显示于图形用户界面的预设范围区域。其中,目标对象是指玩家从虚拟场景中的虚拟对象中根据实际需要选择的一个或多个想要进行信息查看的一个虚拟对象,该虚拟对象的示例在上述应用环境中已详细阐述,在此不再赘述。预设范围区域是指玩家在图形用户界面中设定的一个显示热区,该显示热区的大小与位置等均可以根据实际情况具体设定,本公开实施例不作具体限定。需要解释的是,本公开实施例中的目标对象显示于图形用户界面的预设范围区域是指,目标对象与该预设范围区域具有交集,即目标对象完全处于该预设范围区域,或者目标对象部分处于该预设范围区域均可,本公开实施例不作任何限定。The player continuously moves the position of the virtual camera through the first sliding operation, and the game screen in the field of view of the virtual camera is constantly changing until the target object determined by the player is displayed in the preset range area of the graphical user interface. Among them, the target object refers to one or more virtual objects that the player selects from the virtual objects in the virtual scene according to actual needs and wants to view information. The example of the virtual object has been explained in detail in the above application environment and will not be repeated here. The preset range area refers to a display hotspot set by the player in the graphical user interface. The size and position of the display hotspot can be specifically set according to actual conditions, and the embodiment of the present disclosure is not specifically limited. It should be explained that the target object in the embodiment of the present disclosure is displayed in the preset range area of the graphical user interface, which means that the target object and the preset range area have an intersection, that is, the target object is completely in the preset range area, or the target object is partially in the preset range area, and the embodiment of the present disclosure is not limited in any way.
当目标对象显示于图形用户界面的预设范围区域时,虚拟相机移动至目标位置,该目标位置是指虚拟相机可以采集到目标对象时所在的位置,可以为虚拟相机当前的位置,也可以为在当前位置的基础上进行位置修正,使得目标对象处于预设范围区域中心点位置时或者图形用户界面中心点位置时该虚拟相机所处的位置。虚拟相机停留在该目标位置处对目标对象对虚拟场景进行图像采集,即可得到的包含目标对象的第二虚拟场景画面。When the target object is displayed in the preset range area of the graphical user interface, the virtual camera moves to the target position, which refers to the position where the virtual camera can capture the target object. It can be the current position of the virtual camera, or it can be the position of the virtual camera that is corrected based on the current position so that the target object is at the center point of the preset range area or the center point of the graphical user interface. The virtual camera stays at the target position to capture images of the target object and the virtual scene, and a second virtual scene image containing the target object can be obtained.
步骤203、在图形用户界面中持续显示第二虚拟场景画面。Step 203: Continuously display the second virtual scene image in the graphical user interface.
如上步骤202,只要目标对象完全处于该预设范围区域中,虚拟相机持续将采集到的虚拟场景中包含有目标对象的第二虚拟场景画面持续显示于图形用户界面中,即可以理解为只要该目标对象处于该预设范围区域内,无论玩家如何进行操作,图形用户界面中锁定显示该目标对象。As shown in step 202 above, as long as the target object is completely within the preset range area, the virtual camera continues to display the second virtual scene image containing the target object in the captured virtual scene in the graphical user interface. That is, it can be understood that as long as the target object is within the preset range area, no matter how the player operates, the target object is locked and displayed in the graphical user interface.
本公开实施例提供的虚拟场景的显示控制方法,在响应到作用于图形用户界面的第一滑动操作后控制虚拟相机在虚拟场景中移动,并在图形用户界面中同步显示根据虚拟相机的移动拍摄得到的第一虚拟场景画面,在响应到虚拟相机的移动使得虚拟场景中的目标对象显示于图形用户界面的预设范围区域后,控制虚拟相机移动至目标位置并获取虚拟相机停留在目标位置处拍摄目标对象得到的至少部分包含目标对象的第二虚拟场景画面,并在图形用户界面中持续显示第二虚拟场景画面,从而保障目标对象处于预设范围区域时,图形用户界面中的显示的第二虚拟场景画面固定不变,玩家操作简单,无需进行大地图与小地图频繁的切换;同时避免传统方式中在对虚拟场景中进行探索时,大幅度的滑动操作引起虚拟场景画面的大范围更新与调整而错过想要搜索的目标对象,可以方便玩家较为稳定的查看目标对象的信息,从而解决了目前对于虚拟场景中目标对象的探索以及对象信息的查看的操作便捷性较差,达到了提高虚拟场景中目标对象的探索以及对象信息的查看操作便捷性与查看效果的技术效果。
The display control method of the virtual scene provided by the embodiment of the present disclosure controls the virtual camera to move in the virtual scene after responding to the first sliding operation acting on the graphical user interface, and synchronously displays the first virtual scene picture obtained by shooting according to the movement of the virtual camera in the graphical user interface; after responding to the movement of the virtual camera so that the target object in the virtual scene is displayed in the preset range area of the graphical user interface, controls the virtual camera to move to the target position and obtains the second virtual scene picture at least partially including the target object obtained by the virtual camera staying at the target position to shoot the target object, and continuously displays the second virtual scene picture in the graphical user interface, so as to ensure that when the target object is in the preset range area, the second virtual scene picture displayed in the graphical user interface remains unchanged, and the player operation is simple, and there is no need to frequently switch between the large map and the small map; at the same time, it is avoided that in the traditional way, when exploring the virtual scene, a large-scale sliding operation causes a large-scale update and adjustment of the virtual scene picture and misses the target object to be searched, which can facilitate the player to view the information of the target object more stably, thereby solving the current problem of poor convenience in the operation of exploring the target object in the virtual scene and viewing the object information, and achieving the technical effect of improving the convenience and viewing effect of the operation of exploring the target object in the virtual scene and viewing the object information.
在本公开一个可选实施例中,在上述步骤203、图形用户界面中持续显示第二虚拟场景画面之后,该虚拟场景的显示控制方法还包括如下步骤A:In an optional embodiment of the present disclosure, after the second virtual scene image is continuously displayed in the graphical user interface in the above step 203, the display control method of the virtual scene further includes the following step A:
步骤A、响应用于控制虚拟相机在虚拟场景中恢复移动的第二滑动操作,在图形用户界面中同步显示根据虚拟相机的移动拍摄得到的第三虚拟场景画面。Step A: In response to a second sliding operation for controlling the virtual camera to resume movement in the virtual scene, a third virtual scene image obtained by shooting according to the movement of the virtual camera is synchronously displayed in the graphical user interface.
其中,第二滑动操作与第一滑动操作是连续的操作。第二滑动操作是指在第一滑动操作的基础上继续滑动的操作,第二滑动操作的结束位置对应的虚拟场景中虚拟对象处于预设范围区域之外,也就是第三虚拟场景画面中不包含目标对象。The second sliding operation is a continuous operation with the first sliding operation. The second sliding operation is an operation of continuing the sliding operation based on the first sliding operation, and the virtual object in the virtual scene corresponding to the end position of the second sliding operation is outside the preset range area, that is, the third virtual scene screen does not contain the target object.
本公开实施例在响应到用于控制虚拟相机在虚拟场景中恢复移动的第二滑动操作后,在图形用户界面中同步显示根据虚拟相机的移动拍摄得到的不包含目标对象的第三虚拟场景画面,也就是解除虚拟相机与目标对象之间的锁定,使得虚拟相机随着第二滑动操作而不断移动,采集到的虚拟场景内容也不断发生变化,对应的在图形用户界面中不再固定显示目标对象所在的第二虚拟场景,而是显示不包含目标对象的,且为虚拟相机实际采集到的场景图像,即同步显示该第三虚拟场景画面。In the embodiment of the present disclosure, after responding to the second sliding operation for controlling the virtual camera to resume movement in the virtual scene, a third virtual scene picture excluding the target object obtained by the movement of the virtual camera is synchronously displayed in the graphical user interface, that is, the lock between the virtual camera and the target object is released, so that the virtual camera continues to move with the second sliding operation, and the collected virtual scene content also keeps changing. Correspondingly, the second virtual scene where the target object is located is no longer fixedly displayed in the graphical user interface, but the scene image excluding the target object and actually collected by the virtual camera is displayed, that is, the third virtual scene picture is synchronously displayed.
通过这种方式可以使得虚拟相机采集到包含有目标对象的第二虚拟场景时在图形用户界面锁定显示该包含有目标对象的第二虚拟场景,以方便玩家进行信息查看,查看效果与查看稳定性均较高;在虚拟相机离开可以采集到目标对象的目标位置时,解除虚拟相机与目标对象之间的锁定关系,使得虚拟相机随着玩家的第三滑动操作而移动,从而实现在虚拟场景中的快速移动,对于虚拟场景中目标对象的探索以及对象信息的查看的效率更高。在对虚拟场景中目标对象的探索以及对象信息的查看过程中无需频繁切换操作,在保证大小地图显示效果的前提下大大提高了玩家操作便捷性。In this way, when the virtual camera captures the second virtual scene containing the target object, the second virtual scene containing the target object can be locked and displayed in the graphical user interface to facilitate the player to view information, and the viewing effect and viewing stability are both high; when the virtual camera leaves the target position where the target object can be captured, the locking relationship between the virtual camera and the target object is released, so that the virtual camera moves with the player's third sliding operation, thereby achieving rapid movement in the virtual scene, and more efficient exploration of the target object in the virtual scene and viewing of the object information. There is no need to frequently switch operations during the exploration of the target object in the virtual scene and the viewing of the object information, which greatly improves the convenience of player operation while ensuring the display effect of the large and small maps.
在本公开一个可选实施例中,虚拟相机具有映射至虚拟场景地平面的投影位置,投影位置跟随虚拟相机在虚拟场景中移动而进行移动。该投影位置可以为虚拟相机的光轴延长线与虚拟场景地平面的交点,或者其他以虚拟相机为源点,沿任意固定方向发射的虚拟射线与虚拟场景地面的交点。该虚拟场景的显示控制方法还包括如下步骤B:In an optional embodiment of the present disclosure, the virtual camera has a projection position mapped to the ground plane of the virtual scene, and the projection position moves as the virtual camera moves in the virtual scene. The projection position can be the intersection of the extended optical axis of the virtual camera and the ground plane of the virtual scene, or the intersection of other virtual rays emitted along any fixed direction with the virtual camera as the source point and the ground of the virtual scene. The display control method of the virtual scene also includes the following step B:
步骤B、请参见图3,在通过第一滑动操作使得虚拟相机的投影位置进入虚拟场景中的目标区域302时,目标对象301显示于图形用户界面的预设范围区域。Step B, referring to FIG. 3 , when the projection position of the virtual camera enters the target area 302 in the virtual scene through the first sliding operation, the target object 301 is displayed in the preset range area of the graphical user interface.
目标区域302为目标对象301的吸附判定区,虚拟相机的投影位置进入该目标区域302即可确定目标对象301,也就确定目标对象301显示于图形用户界面的预设范围区域。该目标区域302为根据目标对象301的位置确定的场景区域,例如可以为以目标对象301为中心点,边长为L*L(4<L<10,数值可配置)矩形区域,或者半径为L的圆形或者其他形状等均可,本公开实施例不作具体限定。The target area 302 is the adsorption determination area of the target object 301. When the projection position of the virtual camera enters the target area 302, the target object 301 can be determined, and the preset range area of the target object 301 displayed in the graphical user interface is determined. The target area 302 is a scene area determined according to the position of the target object 301, for example, it can be a rectangular area with a side length of L*L (4<L<10, the value is configurable) with the target object 301 as the center point, or a circle with a radius of L or other shapes, etc., which are not specifically limited in the embodiments of the present disclosure.
本公开实施例通过设定一目标区域302,在通过第一滑动操作使得虚拟相机的投影位置进入虚拟场景中的目标区域302时,即可判断虚拟对象进入了预设范围区域,并将目标对象301显示于图形用户界面的预设范围区域,可以降低玩家的操作精度要求,从而提高玩家操作的便捷性。The disclosed embodiment sets a target area 302. When the projection position of the virtual camera enters the target area 302 in the virtual scene through a first sliding operation, it can be determined that the virtual object has entered the preset range area, and the target object 301 is displayed in the preset range area of the graphical user interface, which can reduce the player's operation accuracy requirements and thus improve the convenience of the player's operation.
在本公开一个可选实施例中,上述步骤202中的控制虚拟相机移动至目标位置,包括:In an optional embodiment of the present disclosure, controlling the virtual camera to move to the target position in the above step 202 includes:
步骤C、解除第一滑动操作与控制虚拟相机移动之间的第一控制关联性,根据目标对象在虚拟场景中的位置确定目标位置,并控制虚拟相机移动至目标位置。Step C: canceling the first control association between the first sliding operation and controlling the movement of the virtual camera, determining the target position according to the position of the target object in the virtual scene, and controlling the virtual camera to move to the target position.
其中,第一控制关联性用于控制虚拟相机根据第一滑动操作进行移动。也就是说,当目标对象处于预设范围区域之外,第一滑动操作与虚拟相机相互关联,虚拟相机随着第一滑动操作的移动而移动;当目标对象处于预设范围区域时,虚拟相机与目标对象解除关联,并对目标对象进行锁定拍摄,在这种情况下,无论第一滑动操作在图形用户界面中如何移动,虚拟相机始终处于目标位置,并在该位置对目标对象进行持续拍摄,与第一滑动操作无关。该目标位置的确定可以参见上述步骤202,在此不作赘述。
Among them, the first control association is used to control the virtual camera to move according to the first sliding operation. That is to say, when the target object is outside the preset range area, the first sliding operation is associated with the virtual camera, and the virtual camera moves with the movement of the first sliding operation; when the target object is in the preset range area, the virtual camera is disassociated from the target object and locks the target object for shooting. In this case, no matter how the first sliding operation moves in the graphical user interface, the virtual camera is always at the target position and continues to shoot the target object at this position, regardless of the first sliding operation. The determination of the target position can refer to the above step 202, which will not be repeated here.
本公开实施例在目标对象处于预设范围区域之外的情况下解除第一滑动操作与控制虚拟相机移动之间的第一控制关联性,根据目标对象在虚拟场景中的位置确定目标位置,并控制虚拟相机移动至目标位置,可以实现对目标对象在目标位置的稳定拍摄,获取目标对象稳定且持续的信息,方便玩家进行查看,无需频繁的进行大地图与小地图的切换,目标对象的信息查看更为便捷,且信息显示更加稳定持久。The disclosed embodiment releases the first control association between the first sliding operation and the control of the movement of the virtual camera when the target object is outside the preset range area, determines the target position according to the position of the target object in the virtual scene, and controls the virtual camera to move to the target position. This can achieve stable shooting of the target object at the target position, and obtain stable and continuous information about the target object, which is convenient for players to view. There is no need to frequently switch between the large map and the small map, and the information viewing of the target object is more convenient, and the information display is more stable and durable.
在本公开一个可选实施例中,在上述步骤C、解除第一滑动操作与控制虚拟相机移动之间的第一控制关联性后,该方法还包括如下步骤D:In an optional embodiment of the present disclosure, after the above step C, releasing the first control association between the first sliding operation and controlling the movement of the virtual camera, the method further includes the following step D:
步骤D、第一滑动操作建立与虚拟场景中的操作定位位置之间的第二控制关联性。Step D: The first sliding operation establishes a second control association with the operation positioning position in the virtual scene.
其中,该操作定位位置是指在虚拟场景中目标区域的任意一个位置点,在该目标区域内玩家通过第一滑动操作继续移动,该移动映射至虚拟场景中即对应该操作定位位置。即终端设备在解除第一滑动操作与控制虚拟相机移动之间的第一控制关联性后,先构建第一滑动操作与虚拟场景中的操作定位位置之间的第二控制关联性,通过该第二控制关联性确定第一滑动操作在目标区域内的映射关系;该第二控制关联性即用于确定与第一滑动操作对应的操作定位位置。The operation positioning position refers to any position point in the target area in the virtual scene. In the target area, the player continues to move through the first sliding operation, and the movement is mapped to the virtual scene, which corresponds to the operation positioning position. That is, after the terminal device releases the first control association between the first sliding operation and the control of the movement of the virtual camera, it first constructs the second control association between the first sliding operation and the operation positioning position in the virtual scene, and determines the mapping relationship of the first sliding operation in the target area through the second control association; the second control association is used to determine the operation positioning position corresponding to the first sliding operation.
对应地,请参见图4,上述步骤A、响应用于控制虚拟相机在虚拟场景中恢复移动的第二滑动操作,在图形用户界面中同步显示根据虚拟相机的移动拍摄得到的第三虚拟场景画面,包括如下步骤401-步骤402:Correspondingly, referring to FIG. 4 , the above step A, in response to the second sliding operation for controlling the virtual camera to resume movement in the virtual scene, synchronously displaying the third virtual scene image obtained by shooting according to the movement of the virtual camera in the graphical user interface, includes the following steps 401-402:
步骤401、响应第一滑动操作使得操作定位位置离开虚拟场景中的目标区域,建立第二滑动操作与控制虚拟相机移动之间的第三控制关联性。Step 401: In response to a first sliding operation causing the operation positioning position to leave a target area in a virtual scene, a third control association between a second sliding operation and controlling the movement of a virtual camera is established.
其中,第三控制关联性用于控制虚拟相机根据第二滑动操作进行移动。对应的,当玩家通过第一滑动操作离开目标区域后,解除了虚拟相机对目标对象的锁定拍摄,虚拟相机随着玩家的第一滑动操作而移动拍摄,在这种情况下,终端设备建立第二滑动操作与控制虚拟相机移动之间的第三控制关联性,通过该第三控制关联性构建玩家的第二滑动操作与虚拟相机移动或者说第二滑动操作与虚拟相机位置的关联性。The third control association is used to control the movement of the virtual camera according to the second sliding operation. Correspondingly, when the player leaves the target area through the first sliding operation, the virtual camera is released from locking the target object, and the virtual camera moves and shoots according to the player's first sliding operation. In this case, the terminal device establishes the third control association between the second sliding operation and the control of the movement of the virtual camera, and the association between the player's second sliding operation and the movement of the virtual camera or the second sliding operation and the position of the virtual camera is constructed through the third control association.
步骤402、在图形用户界面中同步显示根据虚拟相机的移动拍摄得到的第三虚拟场景画面。Step 402: synchronously displaying a third virtual scene image obtained by moving the virtual camera in the graphical user interface.
终端设备可以基于如上步骤A中同样的方式在图形用户界面中同步显示根据虚拟相机的移动拍摄得到的第三虚拟场景画面,在此不作赘述。The terminal device can synchronously display the third virtual scene image obtained by moving the virtual camera in the graphical user interface in the same manner as in step A above, which will not be described in detail here.
本公开实施例在解除第一滑动操作与控制虚拟相机移动之间的第一控制关联性后建立第一滑动操作与虚拟场景中的操作定位位置之间的第二控制关联性,并在响应第一滑动操作使得操作定位位置离开虚拟场景中的目标区域后,建立第二滑动操作与控制虚拟相机移动之间的第三控制关联性,在虚拟相机的投影位置进行虚拟场景中的目标区域,以及离开该目标区域时构建第一滑动操作与第二滑动操作之间不同的关联性,进行针对性的显示控制,操作控制精准性更高。The disclosed embodiment establishes a second control association between the first sliding operation and the operation positioning position in the virtual scene after releasing the first control association between the first sliding operation and the control of the movement of the virtual camera, and establishes a third control association between the second sliding operation and the control of the movement of the virtual camera after responding to the first sliding operation so that the operation positioning position leaves the target area in the virtual scene, and constructs different associations between the first sliding operation and the second sliding operation when the target area in the virtual scene is selected at the projection position of the virtual camera, and leaves the target area, so as to perform targeted display control and improve the operation control accuracy.
在本公开一个可选实施例中,上述步骤203、在图形用户界面中持续显示第二虚拟场景画面,包括如下步骤E:In an optional embodiment of the present disclosure, the above step 203, continuously displaying the second virtual scene image in the graphical user interface, includes the following step E:
步骤E、响应第一滑动操作使得操作定位位置未离开虚拟场景中的目标区域,在图形用户界面中持续显示第二虚拟场景画面。Step E: responding to the first sliding operation so that the operation positioning position does not leave the target area in the virtual scene, and continuously displaying the second virtual scene image in the graphical user interface.
第一滑动操作使得操作定位位置未离开虚拟场景中的目标区域,也就是第一滑动操作控制虚拟相机移动,虚拟相机在虚拟场景中的投影位置仍处于目标区域内,即当前目标对象还处于虚拟相机的拍摄范围内,因此终端设备可以继续在图形用户界面中持续显示第二虚拟场景画面,画面显示稳定性更高,玩家对虚拟场景中目标对象的探索以及对象信息的查看效果更高。
The first sliding operation ensures that the operation positioning position does not leave the target area in the virtual scene, that is, the first sliding operation controls the movement of the virtual camera, and the projection position of the virtual camera in the virtual scene is still within the target area, that is, the current target object is still within the shooting range of the virtual camera. Therefore, the terminal device can continue to display the second virtual scene screen in the graphical user interface, and the screen display stability is higher, and the player's exploration of the target object in the virtual scene and viewing of object information are more effective.
本公开实施例在响应到第一滑动操作使得操作定位位置未离开虚拟场景中的目标区域,在图形用户界面中持续显示第二虚拟场景画面,以确保采集对应的第二控制关联性控制虚拟相机在虚拟场景中的映射,提高虚拟场景显示的可靠性,方便玩家对目标对象的信息进行查看,可靠性更高。In response to the first sliding operation, the embodiment of the present disclosure ensures that the operation positioning position does not leave the target area in the virtual scene, and continuously displays the second virtual scene image in the graphical user interface to ensure that the corresponding second control association is acquired to control the mapping of the virtual camera in the virtual scene, thereby improving the reliability of the virtual scene display, facilitating players to view the information of the target object, and having higher reliability.
请参见图5,在本公开一个可选实施例中,图形用户界面提供一对虚拟场景的游戏缩略图,游戏缩略图的响应区域为第一区域501,图形用户界面10中除第一区域501以外的区域为第二区域502。该第一区域501与第二区域502相互独立,两者相对大小和位置可以根据实际情况具体设定,本公开实施例不作具体限定。Please refer to FIG5 . In an optional embodiment of the present disclosure, the graphical user interface provides a pair of game thumbnails of virtual scenes, the response area of the game thumbnails is the first area 501, and the area other than the first area 501 in the graphical user interface 10 is the second area 502. The first area 501 and the second area 502 are independent of each other, and the relative size and position of the two can be specifically set according to actual conditions, and are not specifically limited in the embodiment of the present disclosure.
对应地,上述步骤201、中的作用于图形用户界面的第一滑动操作包括:起始于第一区域501,且经过第二区域502的滑动操作。Correspondingly, the first sliding operation acting on the graphical user interface in the above step 201 includes: a sliding operation starting from the first area 501 and passing through the second area 502 .
也就是说,本实施例对第一滑动操作配置的启动指令,即从游戏缩略图,也就是小地图的第一区域501开始进行滑动,滑动区域为整个图形用户界面10,即覆盖了第二区域502。通过这种方式,玩家只需要从游戏缩略图开始,然后在游戏缩略图中第一位置按照一定的映射关系移动至第二位置,操作简单快捷,无需进行大地图与小地图的频繁切换,玩家操作效率更高。同时,滑动操作的区域更大,玩家操作更为便捷。That is, the start instruction of the first sliding operation configuration in this embodiment is to start sliding from the game thumbnail, that is, the first area 501 of the small map, and the sliding area is the entire graphical user interface 10, that is, covering the second area 502. In this way, the player only needs to start from the game thumbnail, and then move from the first position in the game thumbnail to the second position according to a certain mapping relationship. The operation is simple and fast, and there is no need to frequently switch between the large map and the small map, and the player's operation efficiency is higher. At the same time, the sliding operation area is larger, and the player's operation is more convenient.
在本公开一个可选实施例中,上述步骤201、响应作用于图形用户界面的第一滑动操作,控制虚拟相机在虚拟场景中移动,并在图形用户界面中同步显示根据虚拟相机的移动拍摄得到的第一虚拟场景画面,包括如下步骤F:In an optional embodiment of the present disclosure, the above step 201, in response to the first sliding operation on the graphical user interface, controls the virtual camera to move in the virtual scene, and synchronously displays the first virtual scene image obtained by shooting according to the movement of the virtual camera in the graphical user interface, includes the following step F:
步骤F、响应作用于图形用户界面的第一滑动操作,控制虚拟相机在虚拟场景中以第一速率进行移动,并在图形用户界面中同步显示根据虚拟相机以第一速率进行移动时拍摄得到的第一虚拟场景画面。Step F, in response to a first sliding operation on the graphical user interface, controlling the virtual camera to move at a first rate in the virtual scene, and synchronously displaying in the graphical user interface a first virtual scene image captured when the virtual camera moves at the first rate.
步骤G、响应在第二区域502中的第三滑动操作,控制虚拟相机在虚拟场景中以第二速率进行移动,并在图形用户界面中同步显示根据虚拟相机以第二速率进行移动时拍摄得到的第四虚拟场景画面。Step G, in response to the third sliding operation in the second area 502, control the virtual camera to move at a second rate in the virtual scene, and synchronously display in the graphical user interface a fourth virtual scene image captured when the virtual camera moves at the second rate.
其中,第一速率大于第二速率。也就是说,当第一滑动操作起始于游戏缩略图的第一区域501并在第一区域501内滑动,或第一滑动操作起始于游戏缩略图的第一区域501并滑动至游戏缩略图之外的第二区域502时,虚拟相机以较大的第一速率进行移动,以采集更多的场景信息;当第三滑动操作起始于游戏缩略图之外的第二区域502时,虚拟相机以一个较小的第二速率进行移动拍摄,以为大地图提供对应的场景信息。通过这种方式,可以为不同地图模型提供对应的场景信息,可靠性更高。Among them, the first rate is greater than the second rate. That is, when the first sliding operation starts from the first area 501 of the game thumbnail and slides within the first area 501, or the first sliding operation starts from the first area 501 of the game thumbnail and slides to the second area 502 outside the game thumbnail, the virtual camera moves at a larger first rate to collect more scene information; when the third sliding operation starts from the second area 502 outside the game thumbnail, the virtual camera moves and shoots at a smaller second rate to provide corresponding scene information for the large map. In this way, corresponding scene information can be provided for different map models with higher reliability.
在本公开一个可选实施例中,上述目标对象包括:目标虚拟模型及与目标虚拟模型邻接的目标场景区域,第二虚拟场景画面至少包含目标虚拟模型。In an optional embodiment of the present disclosure, the target object includes: a target virtual model and a target scene area adjacent to the target virtual model, and the second virtual scene picture at least includes the target virtual model.
在虚拟场景中,一般会构建一虚拟坐标体系,各虚拟模型处于该坐标体系中对应的位置,对应的,本公开实施例中的目标虚拟模型是指虚拟场景中具有一定特征形态的对象,例如山、岩石、湖泊、虚拟角色等;目标场景区域是指该目标虚拟模型在虚拟场景中所处的场景位置,也就是该目标虚拟模型在该虚拟坐标体系中的具体位置,例如可以通过所处地块的位置或者地块所处的坐标进行表征。In a virtual scene, a virtual coordinate system is generally constructed, and each virtual model is located at a corresponding position in the coordinate system. Correspondingly, the target virtual model in the embodiment of the present disclosure refers to an object with a certain characteristic form in the virtual scene, such as mountains, rocks, lakes, virtual characters, etc.; the target scene area refers to the scene position of the target virtual model in the virtual scene, that is, the specific position of the target virtual model in the virtual coordinate system, which can be represented by the position of the plot or the coordinates of the plot, for example.
在本公开一个可选实施例中,预设范围区域包括图形用户界面的全屏区域、边缘区域、或以图形用户界面为中心点生成的屏幕区域。In an optional embodiment of the present disclosure, the preset range area includes a full screen area, an edge area, or a screen area generated with the graphical user interface as a center point of the graphical user interface.
也就是说,本公开实施例可以根据实际情况具体设定该预设范围区域的具体位置,例如为图形用户界面的全屏区域、边缘区域、或以图形用户界面为中心点生成的屏幕区域等,灵活性更高。That is to say, the embodiment of the present disclosure can set the specific position of the preset range area according to actual conditions, such as the full screen area, edge area, or screen area generated with the graphical user interface as the center point of the graphical user interface, which is more flexible.
在本公开一个可选实施例中,目标位置为将虚拟相机平移至相机拍摄视角对准目标对象时虚拟相机所处位置,从而确保目标对象可以被虚拟相机完全拍摄到。In an optional embodiment of the present disclosure, the target position is the position of the virtual camera when the virtual camera is translated to a position where the camera shooting angle is aimed at the target object, thereby ensuring that the target object can be completely photographed by the virtual camera.
在本公开一个可选实施例中,虚拟相机具有映射至虚拟场景地平面的投影位置,目标
位置为将虚拟相机平移至投影位置与目标对象在虚拟场景中的位置相重合时虚拟相机所处位置。例如该投影位置为虚拟相机光轴所在位置,对应的,该目标位置即为虚拟相机光轴与目标对象相交时虚拟相机所处的位置,从而确保目标对象完全处于虚拟相机的拍摄视野的中心位置,进而确保目标对象信息的完整性与可靠性,方便玩家进行信息查看,信息查看便捷性更高。In an optional embodiment of the present disclosure, the virtual camera has a projection position mapped to the ground plane of the virtual scene, and the target The position is the position of the virtual camera when the virtual camera is translated to the projection position that coincides with the position of the target object in the virtual scene. For example, the projection position is the position of the virtual camera optical axis, and correspondingly, the target position is the position of the virtual camera when the virtual camera optical axis intersects with the target object, thereby ensuring that the target object is completely in the center of the shooting field of view of the virtual camera, thereby ensuring the integrity and reliability of the target object information, making it easier for players to view information, and making information viewing more convenient.
请参见图6,在本公开一个可选实施例中,上述步骤201、响应作用于图形用户界面的第一滑动操作,控制虚拟相机在虚拟场景中移动,包括如下步骤601-步骤605:Please refer to FIG. 6 . In an optional embodiment of the present disclosure, the above step 201, in response to the first sliding operation on the graphical user interface, controlling the virtual camera to move in the virtual scene, includes the following steps 601 to 605:
步骤601、响应作用于图形用户界面的第一滑动操作,获取第一滑动操作的第一移动向量。Step 601: In response to a first sliding operation on a graphical user interface, a first movement vector of the first sliding operation is obtained.
步骤602、基于第一移动向量和第一预设参数来确定第一位移向量。Step 602: Determine a first displacement vector based on a first motion vector and a first preset parameter.
步骤603、根据第一位移向量控制虚拟相机在虚拟场景中进行移动。Step 603: Control the virtual camera to move in the virtual scene according to the first displacement vector.
步骤604、基于第一移动向量和第二预设参数来确定第二位移向量。Step 604: Determine a second displacement vector based on the first movement vector and the second preset parameter.
步骤605、根据第二位移向量更新缩略图显示的场景内容。Step 605: Update the scene content displayed in the thumbnail according to the second displacement vector.
其中,第一移动向量是指玩家在图形用户界面中实际操作时的位移向量,第一位移向量是指第一滑动操作映射至虚拟场景中对应的位移向量,该第一预设参数用于表征玩家的第一滑动操作在终端设备的触控屏幕中或者图形用户界面中的移动向量与在虚拟场景中缩略图中移动距离之间的映射关系。第二预设参数用于表征玩家的第一滑动操作在终端设备的触控屏幕中或者图形用户界面中的移动向量与在虚拟场景中大地图移动距离之间的映射关系。The first movement vector refers to the displacement vector of the actual operation of the player in the graphical user interface, and the first displacement vector refers to the corresponding displacement vector of the first sliding operation mapped to the virtual scene. The first preset parameter is used to characterize the mapping relationship between the movement vector of the first sliding operation of the player in the touch screen of the terminal device or the graphical user interface and the moving distance in the thumbnail of the virtual scene. The second preset parameter is used to characterize the mapping relationship between the movement vector of the first sliding operation of the player in the touch screen of the terminal device or the graphical user interface and the moving distance of the large map in the virtual scene.
例如在显示屏幕,或者说在图形用户界面中,玩家从缩略图对应的响应区中的点A开始执行第一滑动操作,对应的第一移动向量为a;同步的,在图形用户界面内的缩略图的第一区域以当前定位点B1为起始点进行移动,第一位移向量记为b;同步的,在大地图上,以当前定位点B2为起始点进行移动,第二位移向量记为c;对应的,b=λa,c=μa,其中,λ为第一预设参数,0<λ<1,μ为第二预设参数,μ为非零整数,λ与μ的数值大小可根据实际情况具体设定。For example, on the display screen, or in the graphical user interface, the player starts to perform the first sliding operation from point A in the response area corresponding to the thumbnail, and the corresponding first movement vector is a; synchronously, the first area of the thumbnail in the graphical user interface moves with the current positioning point B1 as the starting point, and the first displacement vector is recorded as b; synchronously, on the large map, the movement takes the current positioning point B2 as the starting point, and the second displacement vector is recorded as c; correspondingly, b=λa, c=μa, wherein λ is the first preset parameter, 0<λ<1, μ is the second preset parameter, μ is a non-zero integer, and the numerical values of λ and μ can be set according to actual conditions.
本公开实施例基于在图形用户界面中第一滑动操作的第一移动向量分别确定在大地图中对应映射的第一位移向量,以及在缩略图中的第二位移向量,然后根据第一位移向量控制虚拟相机在虚拟场景中进行移动,根据第二位移向量更新缩略图显示的场景内容,从而实现玩家在图形用户界面中的第一滑动操作与在虚拟场景和缩略图中的同步移动,进而实现显示的同步,提高玩家的游戏体验度。The disclosed embodiment determines the first displacement vector of the corresponding mapping in the large map and the second displacement vector in the thumbnail based on the first movement vector of the first sliding operation in the graphical user interface, and then controls the virtual camera to move in the virtual scene according to the first displacement vector, and updates the scene content displayed in the thumbnail according to the second displacement vector, thereby realizing the synchronous movement of the player's first sliding operation in the graphical user interface and the virtual scene and the thumbnail, and then realizing the synchronization of display, thereby improving the player's gaming experience.
在本公开一个可选实施例中,上述虚拟场景的显示控制方法还包括如下步骤H:In an optional embodiment of the present disclosure, the display control method of the virtual scene further includes the following step H:
步骤H、根据虚拟场景和缩略图的比例关系,确定第一预设参数和第二预设参数的大小。Step H: Determine the size of the first preset parameter and the second preset parameter according to the proportional relationship between the virtual scene and the thumbnail.
例如缩略图的尺寸为m1长*n1宽,虚拟场景的尺寸为m2长*n2宽,则第一预设参数λ/第二预设参数μ=m1/m2,也就是说,第一预设参数与第二预设参数的比例需要与虚拟场景和缩略图的比例相同,从而实现玩家在图形用户界面中的第一滑动操作在缩略图与虚拟场景中的同步映射,以及更为精准的映射,可靠性更强。For example, the size of the thumbnail is m1 length * n1 width, and the size of the virtual scene is m2 length * n2 width, then the first preset parameter λ/the second preset parameter μ=m1/m2, that is, the ratio of the first preset parameter to the second preset parameter needs to be the same as the ratio of the virtual scene and the thumbnail, so as to achieve synchronous mapping of the player's first sliding operation in the graphical user interface in the thumbnail and the virtual scene, as well as more accurate mapping and greater reliability.
当然,该第一预设参数和第二预设参数的大小还可以根据终端色环保的分辨率参数等的不同进行适应性调整和修正,本公开实施例不作具体限定。Of course, the sizes of the first preset parameter and the second preset parameter may also be adaptively adjusted and modified according to the resolution parameters of the terminal color environment, etc., which is not specifically limited in the embodiment of the present disclosure.
请参见图7,为了实现上述虚拟场景的显示控制方法,本公开的一个实施例中提供一种虚拟场景的显示控制装置700。图7示出了虚拟场景的显示控制装置700的示意性架构图,包括:第一响应模块710、第二响应模块720与显示模块750,其中,Please refer to FIG. 7 . In order to implement the above-mentioned display control method of a virtual scene, an embodiment of the present disclosure provides a display control device 700 for a virtual scene. FIG. 7 shows a schematic architecture diagram of the display control device 700 for a virtual scene, including: a first response module 710, a second response module 720 and a display module 750, wherein:
该第一响应模块710,用于响应作用于图形用户界面的第一滑动操作,控制虚拟相机在虚拟场景中移动,并在图形用户界面中同步显示根据虚拟相机的移动拍摄得到的第一虚
拟场景画面;The first response module 710 is used to respond to the first sliding operation on the graphical user interface, control the virtual camera to move in the virtual scene, and synchronously display the first virtual scene obtained by shooting according to the movement of the virtual camera in the graphical user interface. Simulated scene picture;
该第二响应模块720,用于响应虚拟相机的移动使得虚拟场景中的目标对象显示于图形用户界面的预设范围区域,控制虚拟相机移动至目标位置并获取虚拟相机停留在目标位置处拍摄目标对象得到的至少部分包含目标对象的第二虚拟场景画面;The second response module 720 is used to respond to the movement of the virtual camera so that the target object in the virtual scene is displayed in a preset range area of the graphical user interface, control the virtual camera to move to the target position and obtain a second virtual scene image at least partially including the target object obtained by the virtual camera staying at the target position to shoot the target object;
该显示模块750,用于在图形用户界面中持续显示第二虚拟场景画面。The display module 750 is used to continuously display the second virtual scene image in the graphical user interface.
本公开实施例所提出的虚拟场景的显示控制装置700,在响应到作用于图形用户界面的第一滑动操作后控制虚拟相机在虚拟场景中移动,并在图形用户界面中同步显示根据虚拟相机的移动拍摄得到的第一虚拟场景画面,并在响应到虚拟相机的移动使得虚拟场景中的目标对象显示于图形用户界面的预设范围区域后,控制虚拟相机移动至目标位置并获取虚拟相机停留在目标位置处拍摄目标对象得到的至少部分包含目标对象的第二虚拟场景画面,并在图形用户界面中持续显示第二虚拟场景画面,从而保障目标对象处于预设范围区域时,图形用户界面中的显示的第二虚拟场景画面固定不变,以方便玩家可以较为稳定的查看目标对象的信息,无需进行大地图与小地图频繁的切换,从而解决了目前对于虚拟场景中探索目标对象以及查看对象信息的操作便捷性较差的技术问题。The display control device 700 of the virtual scene proposed in the embodiment of the present disclosure controls the virtual camera to move in the virtual scene after responding to the first sliding operation acting on the graphical user interface, and synchronously displays the first virtual scene picture obtained by shooting according to the movement of the virtual camera in the graphical user interface, and after responding to the movement of the virtual camera so that the target object in the virtual scene is displayed in the preset range area of the graphical user interface, controls the virtual camera to move to the target position and obtains the second virtual scene picture at least partially including the target object obtained by the virtual camera staying at the target position to shoot the target object, and continuously displays the second virtual scene picture in the graphical user interface, thereby ensuring that when the target object is in the preset range area, the second virtual scene picture displayed in the graphical user interface is fixed, so that the player can view the information of the target object more stably without frequently switching between the large map and the small map, thereby solving the current technical problem of poor convenience in exploring the target object and viewing the object information in the virtual scene.
在一个可选的实施例中,虚拟场景的显示控制装置700还包括第三响应模块730,该第三响应模块730具体用于,响应用于控制虚拟相机在虚拟场景中恢复移动的第二滑动操作,在图形用户界面中同步显示根据虚拟相机的移动拍摄得到的第三虚拟场景画面,其中,第二滑动操作与第一滑动操作是连续的操作。In an optional embodiment, the display control device 700 of the virtual scene also includes a third response module 730, which is specifically used to respond to a second sliding operation used to control the virtual camera to resume movement in the virtual scene, and synchronously display a third virtual scene picture obtained by shooting according to the movement of the virtual camera in the graphical user interface, wherein the second sliding operation and the first sliding operation are continuous operations.
通过上述虚拟场景的显示控制装置的第三响应模块,可以使得虚拟相机采集到包含有目标对象的第二虚拟场景时在图形用户界面锁定显示该包含有目标对象的第二虚拟场景,以方便玩家进行信息查看,查看效果与查看稳定性均较高;在虚拟相机离开可以采集到目标对象的目标位置时,解除虚拟相机与目标对象之间的锁定关系,使得虚拟相机随着玩家的第三滑动操作而移动,从而实现在虚拟场景中的快速移动,对于虚拟场景中目标对象的探索以及对象信息的查看的效率更高。在对虚拟场景中目标对象的探索以及对象信息的查看过程中无需频繁切换操作,在保证大小地图显示效果的前提下大大提高了玩家操作便捷性。Through the third response module of the display control device of the above virtual scene, when the virtual camera collects the second virtual scene containing the target object, the second virtual scene containing the target object can be locked and displayed in the graphical user interface to facilitate the player to view information, and the viewing effect and viewing stability are both high; when the virtual camera leaves the target position where the target object can be collected, the locking relationship between the virtual camera and the target object is released, so that the virtual camera moves with the third sliding operation of the player, thereby achieving rapid movement in the virtual scene, and the exploration of the target object in the virtual scene and the viewing of the object information are more efficient. There is no need to frequently switch operations during the exploration of the target object in the virtual scene and the viewing of the object information, which greatly improves the convenience of player operation while ensuring the display effect of the large and small maps.
在一个可选的实施例中,虚拟相机具有映射至虚拟场景地平面的投影位置,投影位置跟随虚拟相机在虚拟场景中移动而进行移动;在通过第一滑动操作使得虚拟相机的投影位置进入虚拟场景中的目标区域时,目标对象显示于图形用户界面的预设范围区域,其中,目标区域为根据目标对象的位置确定的场景区域。In an optional embodiment, the virtual camera has a projection position mapped to the ground plane of the virtual scene, and the projection position moves as the virtual camera moves in the virtual scene; when the projection position of the virtual camera enters a target area in the virtual scene through a first sliding operation, the target object is displayed in a preset range area of the graphical user interface, wherein the target area is a scene area determined according to the position of the target object.
在上述虚拟场景的显示控制装置中,通过设定一目标区域,在通过第一滑动操作使得虚拟相机的投影位置进入虚拟场景中的目标区域时,即可判断虚拟对象进入了预设范围区域,并将目标对象显示于图形用户界面的预设范围区域,可以降低玩家的操作精度要求,从而提高玩家操作的便捷性。In the display control device of the above-mentioned virtual scene, by setting a target area, when the projection position of the virtual camera enters the target area in the virtual scene through the first sliding operation, it can be judged that the virtual object has entered the preset range area, and the target object can be displayed in the preset range area of the graphical user interface, which can reduce the player's operation accuracy requirements and thus improve the convenience of the player's operation.
在一个可选的实施例中,该第二响应模块720具体用于,解除第一滑动操作与控制虚拟相机移动之间的第一控制关联性,根据目标对象在虚拟场景中的位置确定目标位置,并控制虚拟相机移动至目标位置,其中,第一控制关联性用于控制虚拟相机根据第一滑动操作进行移动。In an optional embodiment, the second response module 720 is specifically used to release the first control association between the first sliding operation and the control of the movement of the virtual camera, determine the target position according to the position of the target object in the virtual scene, and control the virtual camera to move to the target position, wherein the first control association is used to control the virtual camera to move according to the first sliding operation.
通过上述第二响应模块,可以在目标对象处于预设范围区域之外的情况下解除第一滑动操作与控制虚拟相机移动之间的第一控制关联性,根据目标对象在虚拟场景中的位置确定目标位置,并控制虚拟相机移动至目标位置,可以实现对目标对象在目标位置的稳定拍摄,获取目标对象稳定且持续的信息,方便玩家进行查看,无需频繁的进行大地图与小地图的切换,目标对象的信息查看更为便捷,且信息显示更加稳定持久。
Through the above-mentioned second response module, the first control association between the first sliding operation and the control of the movement of the virtual camera can be released when the target object is outside the preset range area. The target position is determined according to the position of the target object in the virtual scene, and the virtual camera is controlled to move to the target position. This can achieve stable shooting of the target object at the target position, and obtain stable and continuous information of the target object, which is convenient for players to view. There is no need to frequently switch between the large map and the small map. The information viewing of the target object is more convenient, and the information display is more stable and lasting.
在一个可选的实施例中,该第二响应模块720还用于,第一滑动操作建立与虚拟场景中的操作定位位置之间的第二控制关联性,第二控制关联性用于确定与第一滑动操作对应的操作定位位置;对应的,该第三响应模块730具体用于,响应第一滑动操作使得操作定位位置离开虚拟场景中的目标区域,建立第二滑动操作与控制虚拟相机移动之间的第三控制关联性,其中,第三控制关联性用于控制虚拟相机根据第二滑动操作进行移动;该显示模块750还用于,在图形用户界面中同步显示根据虚拟相机的移动拍摄得到的第三虚拟场景画面。In an optional embodiment, the second response module 720 is also used to establish a second control association between the first sliding operation and the operation positioning position in the virtual scene, and the second control association is used to determine the operation positioning position corresponding to the first sliding operation; correspondingly, the third response module 730 is specifically used to respond to the first sliding operation so that the operation positioning position leaves the target area in the virtual scene, and establish a third control association between the second sliding operation and controlling the movement of the virtual camera, wherein the third control association is used to control the virtual camera to move according to the second sliding operation; the display module 750 is also used to synchronously display a third virtual scene image obtained by shooting according to the movement of the virtual camera in the graphical user interface.
本公开实施例通过上述模块,可以在解除第一滑动操作与控制虚拟相机移动之间的第一控制关联性后建立第一滑动操作与虚拟场景中的操作定位位置之间的第二控制关联性,并在响应第一滑动操作使得操作定位位置离开虚拟场景中的目标区域后,建立第二滑动操作与控制虚拟相机移动之间的第三控制关联性,在虚拟相机的投影位置进行虚拟场景中的目标区域,以及离开该目标区域时构建第一滑动操作与第二滑动操作之间不同的关联性,进行针对性的显示控制,操作控制精准性更高。Through the above-mentioned module, the embodiment of the present disclosure can establish a second control association between the first sliding operation and the operation positioning position in the virtual scene after releasing the first control association between the first sliding operation and the control of the movement of the virtual camera, and establish a third control association between the second sliding operation and the control of the movement of the virtual camera after responding to the first sliding operation so that the operation positioning position leaves the target area in the virtual scene, and construct different associations between the first sliding operation and the second sliding operation when the target area in the virtual scene is selected at the projection position of the virtual camera, and leave the target area, so as to perform targeted display control and improve the operation control accuracy.
在一个可选的实施例中,该第二响应模块720具体用于,响应第一滑动操作使得操作定位位置未离开虚拟场景中的目标区域,在图形用户界面中持续显示第二虚拟场景画面。In an optional embodiment, the second response module 720 is specifically configured to respond to the first sliding operation so that the operation positioning position does not leave the target area in the virtual scene, and continuously display the second virtual scene image in the graphical user interface.
本公开实施例通过上述第二响应模块,在响应到第一滑动操作使得操作定位位置未离开虚拟场景中的目标区域,在图形用户界面中持续显示第二虚拟场景画面,以确保采集对应的第二控制关联性控制虚拟相机在虚拟场景中的映射,提高虚拟场景显示的可靠性,方便玩家对目标对象的信息进行查看,可靠性更高。The disclosed embodiment uses the above-mentioned second response module to continuously display the second virtual scene image in the graphical user interface in response to the first sliding operation so that the operation positioning position does not leave the target area in the virtual scene, so as to ensure that the corresponding second control association is collected to control the mapping of the virtual camera in the virtual scene, thereby improving the reliability of the virtual scene display, facilitating players to view the information of the target object, and having higher reliability.
在一个可选的实施例中,图形用户界面提供一对虚拟场景的游戏缩略图,游戏缩略图的响应区域为第一区域,图形用户界面中除第一区域以外的区域为第二区域;作用于图形用户界面的第一滑动操作包括:起始于第一区域,且经过第二区域的滑动操作。In an optional embodiment, the graphical user interface provides a pair of game thumbnails of virtual scenes, the response area of the game thumbnails is the first area, and the area other than the first area in the graphical user interface is the second area; the first sliding operation acting on the graphical user interface includes: a sliding operation starting from the first area and passing through the second area.
通过上述缩略图,使得玩家操作简单快捷,无需进行大地图与小地图的频繁切换,玩家操作效率更高。同时,滑动操作的区域更大,玩家操作更为便捷。The thumbnails above make the player's operation simple and quick, without the need to frequently switch between the large map and the small map, and the player's operation efficiency is higher. At the same time, the sliding operation area is larger, and the player's operation is more convenient.
在一个可选的实施例中,该第一响应模块710具体用于,响应作用于图形用户界面的第一滑动操作,控制虚拟相机在虚拟场景中以第一速率进行移动,并在图形用户界面中同步显示根据虚拟相机以第一速率进行移动时拍摄得到的第一虚拟场景画面;In an optional embodiment, the first response module 710 is specifically used to, in response to a first sliding operation on the graphical user interface, control the virtual camera to move at a first rate in the virtual scene, and synchronously display in the graphical user interface a first virtual scene image captured when the virtual camera moves at the first rate;
该虚拟场景的显示控制装置700还包括第四响应模块740,该第四响应模块740具有用于,响应在第二区域中的第三滑动操作,控制虚拟相机在虚拟场景中以第二速率进行移动,并在图形用户界面中同步显示根据虚拟相机以第二速率进行移动时拍摄得到的第四虚拟场景画面,其中,第一速率大于第二速率。The display control device 700 of the virtual scene also includes a fourth response module 740, which is used to respond to the third sliding operation in the second area, control the virtual camera to move at a second rate in the virtual scene, and synchronously display in the graphical user interface a fourth virtual scene picture captured when the virtual camera moves at the second rate, wherein the first rate is greater than the second rate.
通过上述模块,可以在第一区域内滑动或由游戏缩略图的第一区域并滑动至游戏缩略图之外的第二区域时,使虚拟相机以较大的第一速率进行移动,以采集更多的场景信息;当起始于游戏缩略图之外的第二区域进行滑动操作时,虚拟相机以一个较小的第二速率进行移动拍摄,以为大地图提供对应的场景信息为不同地图模型提供对应的场景信息,可靠性更高。Through the above module, when sliding in the first area or sliding from the first area of the game thumbnail to the second area outside the game thumbnail, the virtual camera can move at a larger first rate to collect more scene information; when the sliding operation starts from the second area outside the game thumbnail, the virtual camera moves and shoots at a smaller second rate to provide corresponding scene information for the large map and for different map models, with higher reliability.
在一个可选的实施例中,目标对象包括:目标虚拟模型及与目标虚拟模型邻接的目标场景区域,第二虚拟场景画面至少包含目标虚拟模型。In an optional embodiment, the target object includes: a target virtual model and a target scene area adjacent to the target virtual model, and the second virtual scene image at least includes the target virtual model.
在一个可选的实施例中,预设范围区域包括图形用户界面的全屏区域、边缘区域、或以图形用户界面为中心点生成的屏幕区域。
In an optional embodiment, the preset range area includes a full screen area, an edge area, or a screen area generated with the graphical user interface as a center point of the graphical user interface.
预设范围区域为图形用户界面的全屏区域、边缘区域、或以图形用户界面为中心点生成的屏幕区域等,灵活性更高。The preset range area is the full screen area, edge area, or screen area generated with the graphical user interface as the center point of the graphical user interface, etc., which has higher flexibility.
在一个可选的实施例中,目标位置为将虚拟相机平移至相机拍摄视角对准目标对象时虚拟相机所处位置。In an optional embodiment, the target position is the position of the virtual camera when the virtual camera is translated to a position where the camera shooting angle is aimed at the target object.
在上述实施例中,目标位置为将虚拟相机平移至相机拍摄视角对准目标对象时虚拟相机所处位置,从而确保目标对象可以被虚拟相机完全拍摄到。In the above embodiment, the target position is the position of the virtual camera when the virtual camera is translated to a position where the camera shooting angle is aimed at the target object, thereby ensuring that the target object can be completely photographed by the virtual camera.
在一个可选的实施例中,虚拟相机具有映射至虚拟场景地平面的投影位置,目标位置为将虚拟相机平移至投影位置与目标对象在虚拟场景中的位置相重合时虚拟相机所处位置。In an optional embodiment, the virtual camera has a projection position mapped to the ground plane of the virtual scene, and the target position is the position of the virtual camera when the virtual camera is translated to coincide with the projection position and the position of the target object in the virtual scene.
在上述实施例中,可以确保目标对象完全处于虚拟相机的拍摄视野的中心位置,进而确保目标对象信息的完整性与可靠性,方便玩家进行信息查看,信息查看便捷性更高。In the above embodiment, it can be ensured that the target object is completely in the center of the shooting field of view of the virtual camera, thereby ensuring the integrity and reliability of the target object information, making it convenient for players to view information, and making information viewing more convenient.
在一个可选的实施例中,该第一响应模块710具体用于,响应作用于图形用户界面的第一滑动操作,获取第一滑动操作的第一移动向量;基于第一移动向量和第一预设参数来确定第一位移向量;根据第一位移向量控制虚拟相机在虚拟场景中进行移动;基于第一移动向量和第二预设参数来确定第二位移向量;根据第二位移向量更新缩略图显示的场景内容。In an optional embodiment, the first response module 710 is specifically used to respond to a first sliding operation on a graphical user interface, obtain a first movement vector of the first sliding operation; determine a first displacement vector based on the first movement vector and a first preset parameter; control the virtual camera to move in the virtual scene according to the first displacement vector; determine a second displacement vector based on the first movement vector and a second preset parameter; and update the scene content displayed in the thumbnail according to the second displacement vector.
本公开实施例通过上述第一响应模块,基于在图形用户界面中第一滑动操作的第一移动向量分别确定在大地图中对应映射的第一位移向量,以及在缩略图中的第二位移向量,然后根据第一位移向量控制虚拟相机在虚拟场景中进行移动,根据第二位移向量更新缩略图显示的场景内容,从而实现玩家在图形用户界面中的第一滑动操作与在虚拟场景和缩略图中的同步移动,进而实现显示的同步,提高玩家的游戏体验度。The disclosed embodiment uses the above-mentioned first response module to determine the first displacement vector of the corresponding mapping in the large map and the second displacement vector in the thumbnail based on the first movement vector of the first sliding operation in the graphical user interface, and then controls the virtual camera to move in the virtual scene according to the first displacement vector, and updates the scene content displayed in the thumbnail according to the second displacement vector, thereby realizing the synchronous movement of the player's first sliding operation in the graphical user interface and in the virtual scene and the thumbnail, and then realizing the synchronization of display, thereby improving the player's gaming experience.
在一个可选的实施例中,该第一响应模块710还用于,根据虚拟场景和缩略图的比例关系,确定第一预设参数和第二预设参数的大小。In an optional embodiment, the first response module 710 is further used to determine the size of the first preset parameter and the second preset parameter according to the proportional relationship between the virtual scene and the thumbnail.
本公开实施例通过上述第一响应模块,可以使第一预设参数与第二预设参数的比例与虚拟场景和缩略图的比例相同,从而实现玩家在图形用户界面中的第一滑动操作在缩略图与虚拟场景中的同步映射,以及更为精准的映射,可靠性更强。Through the above-mentioned first response module, the embodiment of the present disclosure can make the ratio of the first preset parameter to the second preset parameter the same as the ratio of the virtual scene to the thumbnail, thereby achieving synchronous mapping of the player's first sliding operation in the graphical user interface in the thumbnail and the virtual scene, as well as more accurate mapping and greater reliability.
图8示出了适于用来实现本公开实施例的终端设备的计算机系统的结构示意图。FIG8 shows a schematic diagram of the structure of a computer system of a terminal device suitable for implementing an embodiment of the present disclosure.
需要说明的是,图8示出的终端设备的计算机系统仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。It should be noted that the computer system of the terminal device shown in FIG8 is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
如图8所示,计算机系统包括中央处理单元(Central Processing Unit,简称CPU),其可以根据存储在只读存储器(Read-Only Memory,简称ROM)中的程序或者从存储部分加载到随机访问存储器(Random Access Memory,简称RAM)中的程序而执行各种适当的动作和处理。在(RAM)中,还存储有系统操作所需的各种程序和数据。(CPU)、(ROM)以及(RAM)通过总线彼此相连。输入/输出(I/O)接口也连接至总线。As shown in FIG8 , the computer system includes a central processing unit (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) or the program loaded from the storage part to the random access memory (RAM). In the (RAM), various programs and data required for system operation are also stored. The (CPU), (ROM) and (RAM) are connected to each other through a bus. The input/output (I/O) interface is also connected to the bus.
以下部件连接至(I/O)接口:包括键盘、鼠标等的输入部分;包括诸如阴极射线管(Cathode Ray Tube,简称CRT)、液晶显示器(Liquid Crystal Display,简称LCD)等以及扬声器等的输出部分;包括硬盘等的存储部分;以及包括诸如局域网络卡(Local Area Network card,LAN卡)、调制解调器等的网络接口卡的通信部分。通信部分经由诸如因特网的网络执行通信处理。驱动器也根据需要连接至(I/O)接口。可拆卸介质,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器上,以便于从其上读出的计算机程序根据需要被安装入存储部分。
The following components are connected to the (I/O) interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a local area network card (LAN card), a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the (I/O) interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
由于本公开的示例实施例的虚拟场景查看装置的各个功能模块与上述虚拟场景的显示控制方法的示例实施例的步骤对应,因此对于本公开装置实施例中未披露的细节和效果,请参照本公开上述的虚拟场景的显示控制方法的实施例。Since the various functional modules of the virtual scene viewing device of the example embodiment of the present disclosure correspond to the steps of the example embodiment of the display control method of the virtual scene described above, for details and effects not disclosed in the embodiment of the device of the present disclosure, please refer to the embodiment of the display control method of the virtual scene described above in the present disclosure.
以上这些模块可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(Application Specific Integrated Circuit,简称ASIC),或,一个或多个微处理器(Digital Signal Processor,简称DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array,简称FPGA)等。再如,当以上某个模块通过处理元件调度程序代码的形式实现时,该处理元件可以是通用处理器,例如CPU或其它可以调用程序代码的处理器。再如,这些模块可以集成在一起,以片上系统(System-on-a-chip,简称SOC)的形式实现。The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more microprocessors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a CPU or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
在本公开所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in the present disclosure, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(英文:processor)执行本公开各个实施例该方法的部分步骤。The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method of each embodiment of the present disclosure.
例如,上述若干指令用以使得一台计算机设备或处理器执行以下各实施例的步骤:For example, the above instructions are used to enable a computer device or processor to execute the steps of the following embodiments:
步骤201、响应作用于图形用户界面的第一滑动操作,控制虚拟相机在虚拟场景中移动,并在图形用户界面中同步显示根据虚拟相机的移动拍摄得到的第一虚拟场景画面;Step 201: In response to a first sliding operation on a graphical user interface, a virtual camera is controlled to move in a virtual scene, and a first virtual scene image obtained by shooting the virtual camera in a synchronous manner is displayed in the graphical user interface;
步骤202、响应虚拟相机的移动使得虚拟场景中的目标对象显示于图形用户界面的预设范围区域,控制虚拟相机移动至目标位置并获取虚拟相机停留在目标位置处拍摄目标对象得到的至少部分包含目标对象的第二虚拟场景画面;Step 202: In response to the movement of the virtual camera, the target object in the virtual scene is displayed in a preset range area of the graphical user interface, the virtual camera is controlled to move to the target position, and a second virtual scene image at least partially including the target object is obtained by the virtual camera staying at the target position and photographing the target object;
步骤203、在图形用户界面中持续显示第二虚拟场景画面。Step 203: Continuously display the second virtual scene image in the graphical user interface.
本公开实施例所提出的虚拟场景的显示控制方法,可以在响应到作用于图形用户界面的第一滑动操作后控制虚拟相机在虚拟场景中移动,并在图形用户界面中同步显示根据虚拟相机的移动拍摄得到的第一虚拟场景画面,并在响应到虚拟相机的移动使得虚拟场景中的目标对象显示于图形用户界面的预设范围区域后,控制虚拟相机移动至目标位置并获取虚拟相机停留在目标位置处拍摄目标对象得到的至少部分包含目标对象的第二虚拟场景画面,并在图形用户界面中持续显示第二虚拟场景画面,从而保障目标对象处于预设范围区域时,图形用户界面中的显示的第二虚拟场景画面固定不变,以方便玩家可以较为稳定的查看目标对象的信息,无需进行大地图与小地图频繁的切换,从而解决了目前对于虚拟场景中探索目标对象以及查看对象信息的操作便捷性较差的技术问题。The display control method of the virtual scene proposed in the embodiment of the present disclosure can control the virtual camera to move in the virtual scene after responding to the first sliding operation acting on the graphical user interface, and synchronously display the first virtual scene picture obtained by shooting according to the movement of the virtual camera in the graphical user interface, and after responding to the movement of the virtual camera so that the target object in the virtual scene is displayed in a preset range area of the graphical user interface, control the virtual camera to move to the target position and obtain a second virtual scene picture that at least partially includes the target object obtained by the virtual camera staying at the target position to shoot the target object, and continuously display the second virtual scene picture in the graphical user interface, thereby ensuring that when the target object is in the preset range area, the second virtual scene picture displayed in the graphical user interface is fixed, so that the player can view the information of the target object more stably without frequently switching between the large map and the small map, thereby solving the current technical problem of poor convenience in exploring the target object and viewing the object information in the virtual scene.
在本公开一个可选的实施例中,响应用于控制虚拟相机在虚拟场景中恢复移动的第二
滑动操作,在图形用户界面中同步显示根据虚拟相机的移动拍摄得到的第三虚拟场景画面,其中,第二滑动操作与第一滑动操作是连续的操作。In an optional embodiment of the present disclosure, in response to a second signal for controlling the virtual camera to resume movement in the virtual scene, The sliding operation synchronously displays the third virtual scene picture obtained by moving the virtual camera in the graphical user interface, wherein the second sliding operation and the first sliding operation are continuous operations.
通过上述实施例,使得虚拟相机采集到包含有目标对象的第二虚拟场景时在图形用户界面锁定显示该包含有目标对象的第二虚拟场景,以方便玩家进行信息查看,查看效果与查看稳定性均较高;在虚拟相机离开可以采集到目标对象的目标位置时,解除虚拟相机与目标对象之间的锁定关系,使得虚拟相机随着玩家的第三滑动操作而移动,从而实现在虚拟场景中的快速移动,对于虚拟场景中目标对象的探索以及对象信息的查看的效率更高。在对虚拟场景中目标对象的探索以及对象信息的查看过程中无需频繁切换操作,在保证大小地图显示效果的前提下大大提高了玩家操作便捷性。Through the above embodiment, when the virtual camera captures the second virtual scene containing the target object, the second virtual scene containing the target object is locked and displayed in the graphical user interface to facilitate the player to view information, and the viewing effect and viewing stability are both high; when the virtual camera leaves the target position where the target object can be captured, the locking relationship between the virtual camera and the target object is released, so that the virtual camera moves with the player's third sliding operation, thereby achieving rapid movement in the virtual scene, and the exploration of the target object in the virtual scene and the viewing of the object information are more efficient. There is no need to frequently switch operations during the exploration of the target object in the virtual scene and the viewing of the object information, which greatly improves the convenience of player operation while ensuring the display effect of the large and small maps.
在本公开一个可选的实施例中,虚拟相机具有映射至虚拟场景地平面的投影位置,投影位置跟随虚拟相机在虚拟场景中移动而进行移动;在通过第一滑动操作使得虚拟相机的投影位置进入虚拟场景中的目标区域时,目标对象显示于图形用户界面的预设范围区域,其中,目标区域为根据目标对象的位置确定的场景区域。In an optional embodiment of the present disclosure, the virtual camera has a projection position mapped to the ground plane of the virtual scene, and the projection position moves as the virtual camera moves in the virtual scene; when the projection position of the virtual camera enters a target area in the virtual scene through a first sliding operation, the target object is displayed in a preset range area of the graphical user interface, wherein the target area is a scene area determined according to the position of the target object.
在上述实施例中,通过设定一目标区域,在通过第一滑动操作使得虚拟相机的投影位置进入虚拟场景中的目标区域时,即可判断虚拟对象进入了预设范围区域,并将目标对象显示于图形用户界面的预设范围区域,可以降低玩家的操作精度要求,从而提高玩家操作的便捷性。In the above embodiment, by setting a target area, when the projection position of the virtual camera enters the target area in the virtual scene through the first sliding operation, it can be judged that the virtual object has entered the preset range area, and the target object can be displayed in the preset range area of the graphical user interface, which can reduce the player's operation accuracy requirements and improve the convenience of the player's operation.
在本公开一个可选的实施例中,解除第一滑动操作与控制虚拟相机移动之间的第一控制关联性,根据目标对象在虚拟场景中的位置确定目标位置,并控制虚拟相机移动至目标位置,其中,第一控制关联性用于控制虚拟相机根据第一滑动操作进行移动。In an optional embodiment of the present disclosure, a first control association between a first sliding operation and controlling the movement of a virtual camera is released, a target position is determined according to a position of a target object in a virtual scene, and the virtual camera is controlled to move to the target position, wherein the first control association is used to control the movement of the virtual camera according to the first sliding operation.
通过上述实施例,可以在目标对象处于预设范围区域之外的情况下解除第一滑动操作与控制虚拟相机移动之间的第一控制关联性,根据目标对象在虚拟场景中的位置确定目标位置,并控制虚拟相机移动至目标位置,可以实现对目标对象在目标位置的稳定拍摄,获取目标对象稳定且持续的信息,方便玩家进行查看,无需频繁的进行大地图与小地图的切换,目标对象的信息查看更为便捷,且信息显示更加稳定持久。Through the above embodiment, the first control association between the first sliding operation and the control of the movement of the virtual camera can be released when the target object is outside the preset range area. The target position is determined according to the position of the target object in the virtual scene, and the virtual camera is controlled to move to the target position. This can achieve stable shooting of the target object at the target position, and obtain stable and continuous information of the target object, which is convenient for players to view. There is no need to frequently switch between the large map and the small map. The information viewing of the target object is more convenient, and the information display is more stable and durable.
在本公开一个可选的实施例中,第一滑动操作建立与虚拟场景中的操作定位位置之间的第二控制关联性,第二控制关联性用于确定与第一滑动操作对应的操作定位位置;对应的,响应用于控制虚拟相机在虚拟场景中恢复移动的第二滑动操作,在图形用户界面中同步显示根据虚拟相机的移动拍摄得到的第三虚拟场景画面,包括:响应第一滑动操作使得操作定位位置离开虚拟场景中的目标区域,建立第二滑动操作与控制虚拟相机移动之间的第三控制关联性,其中,第三控制关联性用于控制虚拟相机根据第二滑动操作进行移动;在图形用户界面中同步显示根据虚拟相机的移动拍摄得到的第三虚拟场景画面。In an optional embodiment of the present disclosure, a first sliding operation establishes a second control association with an operation positioning position in a virtual scene, and the second control association is used to determine the operation positioning position corresponding to the first sliding operation; correspondingly, in response to a second sliding operation used to control the virtual camera to resume movement in the virtual scene, a third virtual scene picture obtained by shooting according to the movement of the virtual camera is synchronously displayed in the graphical user interface, including: in response to the first sliding operation, the operation positioning position leaves the target area in the virtual scene, and a third control association is established between the second sliding operation and controlling the movement of the virtual camera, wherein the third control association is used to control the virtual camera to move according to the second sliding operation; and the third virtual scene picture obtained by shooting according to the movement of the virtual camera is synchronously displayed in the graphical user interface.
通过上述实施例,可以在解除第一滑动操作与控制虚拟相机移动之间的第一控制关联性后建立第一滑动操作与虚拟场景中的操作定位位置之间的第二控制关联性,并在响应第一滑动操作使得操作定位位置离开虚拟场景中的目标区域后,建立第二滑动操作与控制虚拟相机移动之间的第三控制关联性,在虚拟相机的投影位置进行虚拟场景中的目标区域,以及离开该目标区域时构建第一滑动操作与第二滑动操作之间不同的关联性,进行针对性的显示控制,操作控制精准性更高。Through the above embodiments, after the first control association between the first sliding operation and the control of the movement of the virtual camera is released, a second control association between the first sliding operation and the operation positioning position in the virtual scene can be established, and after responding to the first sliding operation so that the operation positioning position leaves the target area in the virtual scene, a third control association between the second sliding operation and the control of the movement of the virtual camera is established, and the target area in the virtual scene is performed at the projection position of the virtual camera, and different associations between the first sliding operation and the second sliding operation are constructed when leaving the target area, so as to perform targeted display control and achieve higher operation control accuracy.
在本公开一个可选的实施例中,响应第一滑动操作使得操作定位位置未离开虚拟场景中的目标区域,在图形用户界面中持续显示第二虚拟场景画面。In an optional embodiment of the present disclosure, in response to the first sliding operation so that the operation positioning position does not leave the target area in the virtual scene, the second virtual scene image is continuously displayed in the graphical user interface.
通过上述实施例,在响应到第一滑动操作使得操作定位位置未离开虚拟场景中的目标
区域,在图形用户界面中持续显示第二虚拟场景画面,以确保采集对应的第二控制关联性控制虚拟相机在虚拟场景中的映射,提高虚拟场景显示的可靠性,方便玩家对目标对象的信息进行查看,可靠性更高。According to the above embodiment, in response to the first sliding operation, the operation positioning position does not leave the target in the virtual scene. Area, continuously displaying the second virtual scene screen in the graphical user interface to ensure that the corresponding second control association controls the mapping of the virtual camera in the virtual scene, improves the reliability of the virtual scene display, and facilitates the player to view the information of the target object with higher reliability.
在本公开一个可选的实施例中,图形用户界面提供一对虚拟场景的游戏缩略图,游戏缩略图的响应区域为第一区域,图形用户界面中除第一区域以外的区域为第二区域;作用于图形用户界面的第一滑动操作包括:起始于第一区域,且经过第二区域的滑动操作。In an optional embodiment of the present disclosure, a graphical user interface provides a pair of game thumbnails of virtual scenes, the response area of the game thumbnails is a first area, and the area other than the first area in the graphical user interface is a second area; the first sliding operation acting on the graphical user interface includes: a sliding operation starting from the first area and passing through the second area.
通过上述缩略图,使得玩家操作简单快捷,无需进行大地图与小地图的频繁切换,玩家操作效率更高。同时,滑动操作的区域更大,玩家操作更为便捷。The thumbnails above make the player's operation simple and quick, without the need to frequently switch between the large map and the small map, and the player's operation efficiency is higher. At the same time, the sliding operation area is larger, and the player's operation is more convenient.
在本公开一个可选的实施例中,响应作用于图形用户界面的第一滑动操作,控制虚拟相机在虚拟场景中以第一速率进行移动,并在图形用户界面中同步显示根据虚拟相机以第一速率进行移动时拍摄得到的第一虚拟场景画面;响应在第二区域中的第三滑动操作,控制虚拟相机在虚拟场景中以第二速率进行移动,并在图形用户界面中同步显示根据虚拟相机以第二速率进行移动时拍摄得到的第四虚拟场景画面,其中,第一速率大于第二速率。In an optional embodiment of the present disclosure, in response to a first sliding operation applied to a graphical user interface, the virtual camera is controlled to move at a first rate in the virtual scene, and a first virtual scene image captured when the virtual camera moves at the first rate is synchronously displayed in the graphical user interface; in response to a third sliding operation in the second area, the virtual camera is controlled to move at a second rate in the virtual scene, and a fourth virtual scene image captured when the virtual camera moves at the second rate is synchronously displayed in the graphical user interface, wherein the first rate is greater than the second rate.
通过上述实施例,可以在第一区域内滑动或由游戏缩略图的第一区域并滑动至游戏缩略图之外的第二区域时,使虚拟相机以较大的第一速率进行移动,以采集更多的场景信息;当起始于游戏缩略图之外的第二区域进行滑动操作时,虚拟相机以一个较小的第二速率进行移动拍摄,以为大地图提供对应的场景信息为不同地图模型提供对应的场景信息,可靠性更高。Through the above-mentioned embodiments, when sliding in the first area or sliding from the first area of the game thumbnail to the second area outside the game thumbnail, the virtual camera can be moved at a larger first rate to collect more scene information; when the sliding operation starts from the second area outside the game thumbnail, the virtual camera moves and shoots at a smaller second rate to provide corresponding scene information for the large map and for different map models, with higher reliability.
在本公开一个可选的实施例中,目标对象包括:目标虚拟模型及与目标虚拟模型邻接的目标场景区域,第二虚拟场景画面至少包含目标虚拟模型。In an optional embodiment of the present disclosure, the target object includes: a target virtual model and a target scene area adjacent to the target virtual model, and the second virtual scene picture at least includes the target virtual model.
在本公开一个可选的实施例中,预设范围区域包括图形用户界面的全屏区域、边缘区域、或以图形用户界面为中心点生成的屏幕区域。In an optional embodiment of the present disclosure, the preset range area includes a full screen area, an edge area, or a screen area generated with the graphical user interface as a center point of the graphical user interface.
在上述实施例中,预设范围区域为图形用户界面的全屏区域、边缘区域、或以图形用户界面为中心点生成的屏幕区域等,灵活性更高。In the above embodiment, the preset range area is the full screen area, edge area, or screen area generated with the graphical user interface as the center point of the graphical user interface, which has higher flexibility.
在本公开一个可选的实施例中,目标位置为将虚拟相机平移至相机拍摄视角对准目标对象时虚拟相机所处位置。In an optional embodiment of the present disclosure, the target position is the position of the virtual camera when the virtual camera is translated to a position where the camera shooting angle is aimed at the target object.
在上述实施例中,目标位置为将虚拟相机平移至相机拍摄视角对准目标对象时虚拟相机所处位置,从而确保目标对象可以被虚拟相机完全拍摄到。In the above embodiment, the target position is the position of the virtual camera when the virtual camera is translated to a position where the camera shooting angle is aimed at the target object, thereby ensuring that the target object can be completely photographed by the virtual camera.
在本公开一个可选的实施例中,虚拟相机具有映射至虚拟场景地平面的投影位置,目标位置为将虚拟相机平移至投影位置与目标对象在虚拟场景中的位置相重合时虚拟相机所处位置。In an optional embodiment of the present disclosure, the virtual camera has a projection position mapped to the ground plane of the virtual scene, and the target position is the position of the virtual camera when the virtual camera is translated to coincide with the projection position and the position of the target object in the virtual scene.
在上述实施例中,可以确保目标对象完全处于虚拟相机的拍摄视野的中心位置,进而确保目标对象信息的完整性与可靠性,方便玩家进行信息查看,信息查看便捷性更高。In the above embodiment, it can be ensured that the target object is completely in the center of the shooting field of view of the virtual camera, thereby ensuring the integrity and reliability of the target object information, making it convenient for players to view information, and making information viewing more convenient.
在本公开一个可选的实施例中,响应作用于图形用户界面的第一滑动操作,获取第一滑动操作的第一移动向量;基于第一移动向量和第一预设参数来确定第一位移向量;根据第一位移向量控制虚拟相机在虚拟场景中进行移动;基于第一移动向量和第二预设参数来确定第二位移向量;根据第二位移向量更新缩略图显示的场景内容。In an optional embodiment of the present disclosure, in response to a first sliding operation applied to a graphical user interface, a first movement vector of the first sliding operation is obtained; a first displacement vector is determined based on the first movement vector and a first preset parameter; a virtual camera is controlled to move in a virtual scene according to the first displacement vector; a second displacement vector is determined based on the first movement vector and the second preset parameter; and the scene content displayed in the thumbnail is updated according to the second displacement vector.
在上述实施例中,基于在图形用户界面中第一滑动操作的第一移动向量分别确定在大地图中对应映射的第一位移向量,以及在缩略图中的第二位移向量,然后根据第一位移向
量控制虚拟相机在虚拟场景中进行移动,根据第二位移向量更新缩略图显示的场景内容,从而实现玩家在图形用户界面中的第一滑动操作与在虚拟场景和缩略图中的同步移动,进而实现显示的同步,提高玩家的游戏体验度。In the above embodiment, based on the first movement vector of the first sliding operation in the graphical user interface, the first displacement vector corresponding to the mapping in the large map and the second displacement vector in the thumbnail are respectively determined, and then the first displacement vector is used to determine the first displacement vector corresponding to the mapping in the large map and the second displacement vector in the thumbnail. The virtual camera is controlled to move in the virtual scene, and the scene content displayed in the thumbnail is updated according to the second displacement vector, so as to realize the player's first sliding operation in the graphical user interface and the synchronous movement in the virtual scene and the thumbnail, and then realize the synchronization of display, thereby improving the player's gaming experience.
在本公开一个可选的实施例中,根据虚拟场景和缩略图的比例关系,确定第一预设参数和第二预设参数的大小。In an optional embodiment of the present disclosure, the sizes of the first preset parameter and the second preset parameter are determined according to a proportional relationship between the virtual scene and the thumbnail.
本公开实施例通过上述第一响应模块,可以使第一预设参数与第二预设参数的比例与虚拟场景和缩略图的比例相同,从而实现玩家在图形用户界面中的第一滑动操作在缩略图与虚拟场景中的同步映射,以及更为精准的映射,可靠性更强。Through the above-mentioned first response module, the embodiment of the present disclosure can make the ratio of the first preset parameter to the second preset parameter the same as the ratio of the virtual scene to the thumbnail, thereby achieving synchronous mapping of the player's first sliding operation in the graphical user interface in the thumbnail and the virtual scene, as well as more accurate mapping and greater reliability.
上仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以权利要求的保护范围为准。
The above are only specific embodiments of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims (17)
- 一种虚拟场景的显示控制方法,通过终端设备提供图形用户界面,所述图形用户界面显示的内容包括部分虚拟场景,所述方法包括:A display control method for a virtual scene, providing a graphical user interface through a terminal device, wherein the content displayed by the graphical user interface includes a part of the virtual scene, and the method comprises:响应作用于所述图形用户界面的第一滑动操作,控制虚拟相机在所述虚拟场景中移动,并在所述图形用户界面中同步显示根据所述虚拟相机的移动拍摄得到的第一虚拟场景画面;In response to a first sliding operation on the graphical user interface, controlling the virtual camera to move in the virtual scene, and synchronously displaying in the graphical user interface a first virtual scene image obtained by shooting according to the movement of the virtual camera;响应所述虚拟相机的移动使得所述虚拟场景中的目标对象显示于所述图形用户界面的预设范围区域,控制所述虚拟相机移动至目标位置并获取所述虚拟相机停留在目标位置处拍摄目标对象得到的至少部分包含所述目标对象的第二虚拟场景画面;In response to the movement of the virtual camera, the target object in the virtual scene is displayed in a preset range area of the graphical user interface, the virtual camera is controlled to move to a target position and a second virtual scene image at least partially including the target object is obtained by the virtual camera staying at the target position and photographing the target object;在所述图形用户界面中持续显示所述第二虚拟场景画面。The second virtual scene image is continuously displayed in the graphical user interface.
- 根据权利要求1所述的虚拟场景的显示控制方法,其中,在所述图形用户界面中持续显示所述第二虚拟场景画面之后,所述方法包括:The display control method of a virtual scene according to claim 1, wherein after the second virtual scene picture is continuously displayed in the graphical user interface, the method comprises:响应用于控制所述虚拟相机在所述虚拟场景中恢复移动的第二滑动操作,在所述图形用户界面中同步显示根据所述虚拟相机的移动拍摄得到的第三虚拟场景画面,其中,所述第二滑动操作与所述第一滑动操作是连续的操作。In response to a second sliding operation for controlling the virtual camera to resume movement in the virtual scene, a third virtual scene image obtained by shooting according to the movement of the virtual camera is synchronously displayed in the graphical user interface, wherein the second sliding operation and the first sliding operation are continuous operations.
- 根据权利要求1所述的虚拟场景的显示控制方法,其中,所述虚拟相机具有映射至虚拟场景地平面的投影位置,所述投影位置跟随虚拟相机在所述虚拟场景中移动而进行移动;The display control method of a virtual scene according to claim 1, wherein the virtual camera has a projection position mapped to a ground plane of the virtual scene, and the projection position moves as the virtual camera moves in the virtual scene;在通过所述第一滑动操作使得所述虚拟相机的投影位置进入虚拟场景中的目标区域时,所述目标对象显示于所述图形用户界面的预设范围区域,其中,所述目标区域为根据所述目标对象的位置确定的场景区域。When the projection position of the virtual camera enters the target area in the virtual scene through the first sliding operation, the target object is displayed in a preset range area of the graphical user interface, wherein the target area is a scene area determined according to the position of the target object.
- 根据权利要求1或2所述的虚拟场景的显示控制方法,其中,所述控制所述虚拟相机移动至目标位置,包括:The display control method of a virtual scene according to claim 1 or 2, wherein the controlling the virtual camera to move to a target position comprises:解除所述第一滑动操作与控制所述虚拟相机移动之间的第一控制关联性,根据所述目标对象在所述虚拟场景中的位置确定所述目标位置,并控制所述虚拟相机移动至目标位置,其中,所述第一控制关联性用于控制所述虚拟相机根据所述第一滑动操作进行移动。Release the first control association between the first sliding operation and the control of the movement of the virtual camera, determine the target position according to the position of the target object in the virtual scene, and control the virtual camera to move to the target position, wherein the first control association is used to control the virtual camera to move according to the first sliding operation.
- 根据权利要求4所述的虚拟场景的显示控制方法,其中,所述解除所述第一滑动操作与控制所述虚拟相机移动之间的第一控制关联性后,所述方法还包括:The display control method of a virtual scene according to claim 4, wherein after releasing the first control association between the first sliding operation and controlling the movement of the virtual camera, the method further comprises:所述第一滑动操作建立与所述虚拟场景中的操作定位位置之间的第二控制关联性,所述第二控制关联性用于确定与所述第一滑动操作对应的操作定位位置;The first sliding operation establishes a second control association with the operation positioning position in the virtual scene, and the second control association is used to determine the operation positioning position corresponding to the first sliding operation;所述响应用于控制所述虚拟相机在所述虚拟场景中恢复移动的第二滑动操作,在所述图形用户界面中同步显示根据所述虚拟相机的移动拍摄得到的第三虚拟场景画面,包括:The response is used to control the second sliding operation of the virtual camera to resume movement in the virtual scene, and synchronously display a third virtual scene picture obtained by shooting according to the movement of the virtual camera in the graphical user interface, including:响应所述第一滑动操作使得所述操作定位位置离开虚拟场景中的目标区域,建立所述第二滑动操作与控制所述虚拟相机移动之间的第三控制关联性,其中,所述第三控制关联性用于控制所述虚拟相机根据所述第二滑动操作进行移动;In response to the first sliding operation causing the operation positioning position to leave the target area in the virtual scene, a third control association between the second sliding operation and controlling the movement of the virtual camera is established, wherein the third control association is used to control the virtual camera to move according to the second sliding operation;在所述图形用户界面中同步显示根据所述虚拟相机的移动拍摄得到的第三虚拟场景画面。A third virtual scene image obtained by moving and shooting the virtual camera is synchronously displayed in the graphical user interface.
- 根据权利要求5所述的虚拟场景的显示控制方法,其中,所述在所述图形用户界面中持续显示所述第二虚拟场景画面,包括:The display control method of a virtual scene according to claim 5, wherein the continuously displaying the second virtual scene picture in the graphical user interface comprises:响应所述第一滑动操作使得所述操作定位位置未离开虚拟场景中的目标区域,在所述图形用户界面中持续显示所述第二虚拟场景画面。In response to the first sliding operation, the operation positioning position does not leave the target area in the virtual scene, and the second virtual scene image is continuously displayed in the graphical user interface.
- 根据权利要求1所述的虚拟场景的显示控制方法,其中,所述图形用户界面提供一对所述虚拟场景的游戏缩略图,所述游戏缩略图的响应区域为第一区域,所述图形用户界面中除所述第一区域以外的区域为第二区域; The display control method of a virtual scene according to claim 1, wherein the graphical user interface provides a pair of game thumbnails of the virtual scene, the response area of the game thumbnails is the first area, and the area of the graphical user interface other than the first area is the second area;所述作用于所述图形用户界面的第一滑动操作包括:起始于所述第一区域,且经过所述第二区域的滑动操作。The first sliding operation acting on the graphical user interface includes: a sliding operation starting from the first area and passing through the second area.
- 根据权利要求7所述虚拟场景的显示控制方法,其中,所述响应作用于所述图形用户界面的第一滑动操作,控制虚拟相机在所述虚拟场景中移动,并在所述图形用户界面中同步显示根据所述虚拟相机的移动拍摄得到的第一虚拟场景画面,包括:According to the display control method of the virtual scene of claim 7, wherein the response to the first sliding operation on the graphical user interface controls the virtual camera to move in the virtual scene, and synchronously displays the first virtual scene picture obtained by shooting according to the movement of the virtual camera in the graphical user interface, comprising:响应作用于所述图形用户界面的第一滑动操作,控制虚拟相机在所述虚拟场景中以第一速率进行移动,并在所述图形用户界面中同步显示根据所述虚拟相机以所述第一速率进行移动时拍摄得到的第一虚拟场景画面;In response to a first sliding operation on the graphical user interface, controlling the virtual camera to move at a first rate in the virtual scene, and synchronously displaying in the graphical user interface a first virtual scene image captured by the virtual camera when moving at the first rate;所述方法还包括:The method further comprises:响应在所述第二区域中的第三滑动操作,控制虚拟相机在所述虚拟场景中以第二速率进行移动,并在所述图形用户界面中同步显示根据所述虚拟相机以第二速率进行移动时拍摄得到的第四虚拟场景画面,其中,所述第一速率大于第二速率。In response to a third sliding operation in the second area, the virtual camera is controlled to move at a second rate in the virtual scene, and a fourth virtual scene image captured when the virtual camera moves at the second rate is synchronously displayed in the graphical user interface, wherein the first rate is greater than the second rate.
- 根据权利要求1所述虚拟场景的显示控制方法,其中,所述目标对象包括:目标虚拟模型及与所述目标虚拟模型邻接的目标场景区域,所述第二虚拟场景画面至少包含所述目标虚拟模型。According to the display control method of the virtual scene according to claim 1, wherein the target object includes: a target virtual model and a target scene area adjacent to the target virtual model, and the second virtual scene screen at least includes the target virtual model.
- 根据权利要求1所述的虚拟场景的显示控制方法,其中,所述预设范围区域包括所述图形用户界面的全屏区域、边缘区域、或以所述图形用户界面为中心点生成的屏幕区域。According to the display control method of the virtual scene according to claim 1, wherein the preset range area includes a full screen area, an edge area, or a screen area generated with the graphical user interface as a center point of the graphical user interface.
- 根据权利要求1所述的虚拟场景的显示控制方法,其中,所述目标位置为将所述虚拟相机平移至相机拍摄视角对准所述目标对象时虚拟相机所处位置。According to the display control method of the virtual scene according to claim 1, wherein the target position is the position of the virtual camera when the virtual camera is translated to the point where the camera shooting angle is aimed at the target object.
- 根据权利要求1所述的虚拟场景的显示控制方法,其中,所述虚拟相机具有映射至虚拟场景地平面的投影位置,所述目标位置为将所述虚拟相机平移至所述投影位置与所述目标对象在所述虚拟场景中的位置相重合时虚拟相机所处位置。According to the display control method of the virtual scene according to claim 1, wherein the virtual camera has a projection position mapped to the ground plane of the virtual scene, and the target position is the position of the virtual camera when the virtual camera is translated to coincide with the position of the target object in the virtual scene.
- 根据权利要求1所述的虚拟场景的显示控制方法,其中,所述响应作用于所述图形用户界面的第一滑动操作,控制虚拟相机在所述虚拟场景中移动,包括:The display control method of a virtual scene according to claim 1, wherein, in response to a first sliding operation on the graphical user interface, controlling the virtual camera to move in the virtual scene comprises:响应作用于所述图形用户界面的第一滑动操作,获取所述第一滑动操作的第一移动向量;In response to a first sliding operation on the graphical user interface, obtaining a first movement vector of the first sliding operation;基于所述第一移动向量和第一预设参数来确定第一位移向量;determining a first displacement vector based on the first movement vector and a first preset parameter;根据第一位移向量控制所述虚拟相机在所述虚拟场景中进行移动;Controlling the virtual camera to move in the virtual scene according to the first displacement vector;基于所述第一移动向量和第二预设参数来确定第二位移向量;determining a second displacement vector based on the first movement vector and a second preset parameter;根据所述第二位移向量更新所述缩略图显示的场景内容。The scene content displayed by the thumbnail is updated according to the second displacement vector.
- 根据权利要求13所述的虚拟场景的显示控制方法,其中,所述方法还包括:The display control method of a virtual scene according to claim 13, wherein the method further comprises:根据所述虚拟场景和所述缩略图的比例关系,确定所述第一预设参数和所述第二预设参数的大小。The sizes of the first preset parameter and the second preset parameter are determined according to the proportional relationship between the virtual scene and the thumbnail.
- 一种虚拟场景的显示控制方法装置,通过终端设备提供图形用户界面,所述图形用户界面显示的内容包括部分虚拟场景,所述装置包括:A display control method and device for a virtual scene, providing a graphical user interface through a terminal device, wherein the content displayed by the graphical user interface includes a part of the virtual scene, and the device comprises:第一响应模块,用于响应作用于所述图形用户界面的第一滑动操作,控制虚拟相机在所述虚拟场景中移动,并在所述图形用户界面中同步显示根据所述虚拟相机的移动拍摄得到的第一虚拟场景画面;A first response module, configured to respond to a first sliding operation on the graphical user interface, control the virtual camera to move in the virtual scene, and synchronously display in the graphical user interface a first virtual scene image obtained by shooting according to the movement of the virtual camera;第二响应模块,用于响应所述虚拟相机的移动使得所述虚拟场景中的目标对象显示于所述图形用户界面的预设范围区域,控制所述虚拟相机移动至目标位置并获取所述虚拟相机停留在目标位置处拍摄目标对象得到的至少部分包含所述目标对象的第二虚拟场景画面;A second response module is used to respond to the movement of the virtual camera so that the target object in the virtual scene is displayed in a preset range area of the graphical user interface, control the virtual camera to move to a target position and obtain a second virtual scene picture at least partially including the target object obtained by the virtual camera staying at the target position to photograph the target object;显示模块,用于在所述图形用户界面中持续显示所述第二虚拟场景画面。The display module is used to continuously display the second virtual scene image in the graphical user interface.
- 一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时实 现如权利要求1~14中任一项所述的虚拟场景的显示控制方法。A computer-readable storage medium having a computer program stored thereon, which when executed by a processor A display control method for a virtual scene as described in any one of claims 1 to 14 is provided.
- 一种电子设备,包括:An electronic device, comprising:一个或多个处理器;one or more processors;存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如权利要求1~14中任一项所述的虚拟场景的显示控制方法。 A storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the display control method of the virtual scene as described in any one of claims 1 to 14.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211261252.0A CN115591234A (en) | 2022-10-14 | 2022-10-14 | Display control method and device for virtual scene, storage medium and electronic equipment |
CN202211261252.0 | 2022-10-14 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024077897A1 true WO2024077897A1 (en) | 2024-04-18 |
Family
ID=84847831
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2023/086883 WO2024077897A1 (en) | 2022-10-14 | 2023-04-07 | Virtual scene display control method and apparatus, storage medium and electronic device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115591234A (en) |
WO (1) | WO2024077897A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115591234A (en) * | 2022-10-14 | 2023-01-13 | 网易(杭州)网络有限公司(Cn) | Display control method and device for virtual scene, storage medium and electronic equipment |
CN116260956B (en) * | 2023-05-15 | 2023-07-18 | 四川中绳矩阵技术发展有限公司 | Virtual reality shooting method and system |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108355354A (en) * | 2018-02-11 | 2018-08-03 | 网易(杭州)网络有限公司 | Information processing method, device, terminal and storage medium |
CN110141855A (en) * | 2019-05-24 | 2019-08-20 | 网易(杭州)网络有限公司 | Method of controlling viewing angle, device, storage medium and electronic equipment |
US20190299091A1 (en) * | 2017-03-27 | 2019-10-03 | Netease (Hangzhou) Network Co.,Ltd. | Display control method and apparatus for game screen, storage medium, and electronic device |
CN110694271A (en) * | 2019-10-21 | 2020-01-17 | 网易(杭州)网络有限公司 | Camera attitude control method and device in game scene and electronic equipment |
CN111672106A (en) * | 2020-06-05 | 2020-09-18 | 腾讯科技(深圳)有限公司 | Virtual scene display method and device, computer equipment and storage medium |
CN113559501A (en) * | 2021-07-29 | 2021-10-29 | 网易(杭州)网络有限公司 | Method and device for selecting virtual units in game, storage medium and electronic equipment |
US20210402298A1 (en) * | 2018-12-19 | 2021-12-30 | Netease (Hangzhou) Network Co.,Ltd. | Method and Apparatus for Controlling Virtual Camera in Game |
CN114159787A (en) * | 2021-12-13 | 2022-03-11 | 网易(杭州)网络有限公司 | Control method and device of virtual object, electronic equipment and readable medium |
CN115591234A (en) * | 2022-10-14 | 2023-01-13 | 网易(杭州)网络有限公司(Cn) | Display control method and device for virtual scene, storage medium and electronic equipment |
-
2022
- 2022-10-14 CN CN202211261252.0A patent/CN115591234A/en active Pending
-
2023
- 2023-04-07 WO PCT/CN2023/086883 patent/WO2024077897A1/en unknown
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190299091A1 (en) * | 2017-03-27 | 2019-10-03 | Netease (Hangzhou) Network Co.,Ltd. | Display control method and apparatus for game screen, storage medium, and electronic device |
CN108355354A (en) * | 2018-02-11 | 2018-08-03 | 网易(杭州)网络有限公司 | Information processing method, device, terminal and storage medium |
US20210402298A1 (en) * | 2018-12-19 | 2021-12-30 | Netease (Hangzhou) Network Co.,Ltd. | Method and Apparatus for Controlling Virtual Camera in Game |
CN110141855A (en) * | 2019-05-24 | 2019-08-20 | 网易(杭州)网络有限公司 | Method of controlling viewing angle, device, storage medium and electronic equipment |
CN110694271A (en) * | 2019-10-21 | 2020-01-17 | 网易(杭州)网络有限公司 | Camera attitude control method and device in game scene and electronic equipment |
CN111672106A (en) * | 2020-06-05 | 2020-09-18 | 腾讯科技(深圳)有限公司 | Virtual scene display method and device, computer equipment and storage medium |
CN113559501A (en) * | 2021-07-29 | 2021-10-29 | 网易(杭州)网络有限公司 | Method and device for selecting virtual units in game, storage medium and electronic equipment |
CN114159787A (en) * | 2021-12-13 | 2022-03-11 | 网易(杭州)网络有限公司 | Control method and device of virtual object, electronic equipment and readable medium |
CN115591234A (en) * | 2022-10-14 | 2023-01-13 | 网易(杭州)网络有限公司(Cn) | Display control method and device for virtual scene, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN115591234A (en) | 2023-01-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108257219B (en) | Method for realizing panoramic multipoint roaming | |
WO2024077897A1 (en) | Virtual scene display control method and apparatus, storage medium and electronic device | |
US20240096039A1 (en) | Display control apparatus, display control method, and program | |
CN112263837B (en) | Weather rendering method, device, equipment and storage medium in virtual environment | |
US20180225880A1 (en) | Method and Apparatus for Providing Hybrid Reality Environment | |
CN105339987B (en) | For land, aerial and/or the visual manifold of crowdsourcing image zooming-out and based on the rendering of image | |
CN108579083B (en) | Virtual scene display method and device, electronic device and storage medium | |
US8933965B2 (en) | Method for calculating light source information and generating images combining real and virtual images | |
US20180276882A1 (en) | Systems and methods for augmented reality art creation | |
WO2018077071A1 (en) | Panoramic image generating method and apparatus | |
CN101489150B (en) | Virtual and reality mixed remote collaboration working method | |
WO2023280038A1 (en) | Method for constructing three-dimensional real-scene model, and related apparatus | |
CN114125310B (en) | Photographing method, terminal device and cloud server | |
CN106780707B (en) | The method and apparatus of global illumination in simulated scenario | |
US20100066732A1 (en) | Image View Synthesis Using a Three-Dimensional Reference Model | |
CN111467803B (en) | Display control method and device in game, storage medium and electronic equipment | |
CN116057577A (en) | Map for augmented reality | |
US20230347240A1 (en) | Display method and apparatus of scene picture, terminal, and storage medium | |
CN112562051B (en) | Virtual object display method, device, equipment and storage medium | |
CN115082607B (en) | Virtual character hair rendering method, device, electronic equipment and storage medium | |
CN108205820B (en) | Plane reconstruction method, fusion method, device, equipment and storage medium | |
CN116708862A (en) | Virtual background generation method for live broadcasting room, computer equipment and storage medium | |
CN116485969A (en) | Voxel object generation method, voxel object generation device and computer-readable storage medium | |
CN115382208A (en) | Three-dimensional guide map generation method, device, storage medium and electronic device | |
Piekarski et al. | Tinmith-mobile outdoor augmented reality modelling demonstration |
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: 23876109 Country of ref document: EP Kind code of ref document: A1 |