Resetting method and device for cover image of virtual object, equipment, medium and program

By setting a virtual camera for the virtual object and adjusting its position and posture, the problem in the existing technology that the cover image of the virtual object cannot be adjusted in a personalized manner is solved, and the real-time update of the cover image of the virtual object is achieved and the satisfaction of user needs is achieved.

CN118642631APending Publication Date: 2024-09-13BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310260970.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-13
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

The cover images of existing virtual objects cannot meet the personalized needs of users and cannot be updated in real time according to user adjustments.

Method used

By setting a virtual camera for the virtual object and adjusting the position and posture of the virtual camera according to the user's adjustment instructions, the cover image of the virtual object is updated in real time.

Benefits of technology

The personalized adjustment of the virtual object cover image is realized to meet the needs of users and improve the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118642631A
    Figure CN118642631A
Patent Text Reader

Abstract

The embodiment of the invention provides a method, a device, equipment, a medium and a program for resetting a cover picture of a virtual object, and is characterized in that in response to a resetting instruction for the cover picture of the virtual object, a virtual camera is set, and the virtual camera is used for shooting the virtual object; displaying an image of the virtual object shot by the virtual camera in a cover editing area of the cover resetting page; in response to an adjustment instruction of a user, adjusting the position and / or posture of the virtual camera; and updating the adjusted image of the virtual object in the cover editing area to the cover image of the virtual object. By adjusting the position and / or posture of the virtual camera, the picture of the virtual object shot by the virtual camera is correspondingly changed, so that the cover picture of the virtual object shot by the virtual camera meets user requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of artificial intelligence, and in particular, to a method, device, equipment, medium and program for resetting a cover image of a virtual object. Background Art

[0002] Extended Reality (XR) refers to the combination of reality and virtuality through computers to create a virtual environment for human-computer interaction. XR is also a general term for multiple technologies such as Virtual Reality (VR), Augmented Reality (AR) and Mixed Reality (MR). By integrating the visual interaction technologies of the three, it brings the experiencer an "immersive feeling" of seamless transition between the virtual world and the real world.

[0003] In XR scenarios, in order to meet the personalized needs of users, the User Generated Content (UGC) function has been added, that is, users can customize a virtual object using materials and other elements in the provided editor according to their own needs. When a user-defined virtual object is published, a corresponding cover will be generated.

[0004] In existing solutions, the cover of the virtual object cannot meet the personalized needs of users. Summary of the invention

[0005] The embodiments of the present application provide a method, apparatus, device, medium and program for resetting the cover image of a virtual object. By setting a virtual camera for the virtual object and adjusting the position and / or posture of the virtual camera, the picture of the virtual object captured by the virtual camera changes accordingly, so that the cover image of the virtual object captured by the virtual camera meets user needs.

[0006] In a first aspect, an embodiment of the present application provides a method for resetting a cover image of a virtual object, the method comprising:

[0007] In response to an instruction to reset the cover image of the virtual object, setting a virtual camera, the virtual camera being used to shoot the virtual object;

[0008] Displaying the image of the virtual object captured by the virtual camera in the cover editing area of ​​the cover reset page;

[0009] In response to an adjustment instruction from a user, adjusting the position and / or posture of the virtual camera;

[0010] The image of the virtual object adjusted in the cover editing area is updated to the cover image of the virtual object.

[0011] In some embodiments, adjusting the position and / or posture of the virtual camera in response to an adjustment instruction from a user includes:

[0012] In response to a movement operation within the cover editing area, the position and / or posture of the virtual camera is adjusted.

[0013] In some embodiments, in response to the movement operation in the cover editing area, adjusting the position and / or posture of the virtual camera includes:

[0014] In response to a moving operation in the cover editing area, the posture of the virtual camera is adjusted according to a moving direction and / or a moving distance corresponding to the moving operation.

[0015] In some embodiments, adjusting the posture of the virtual camera according to the moving direction and / or moving distance corresponding to the moving operation includes:

[0016] Determining a rotation direction of the virtual camera according to a moving direction corresponding to the moving operation;

[0017] Control the virtual camera to rotate according to the rotation direction.

[0018] In some embodiments, determining the rotation direction of the virtual camera according to the moving direction corresponding to the moving operation includes:

[0019] When the moving direction corresponding to the moving operation is up, down, left, or right, the rotation direction of the virtual camera is determined to be the X-axis, the negative direction of the X-axis, the Y-axis, and the negative direction of the Y-axis, respectively.

[0020] In some embodiments, adjusting the posture of the virtual camera according to the moving direction and / or moving distance corresponding to the moving operation includes:

[0021] Determining a rotation angle of the virtual camera according to a moving distance corresponding to the moving operation;

[0022] Control the virtual camera to rotate according to the rotation angle.

[0023] In some embodiments, the moving distance corresponding to the moving operation is the number of pixels moved, and determining the rotation angle of the virtual camera according to the moving distance corresponding to the moving operation includes:

[0024] When the moving pixel corresponding to the moving operation is M, the rotation angle of the virtual camera is determined to be M*N, where N is an integer greater than or equal to 1.

[0025] In some embodiments, adjusting the position and / or posture of the virtual camera in response to an adjustment instruction from a user includes:

[0026] In response to a first operation of a direction control by a user, the position and / or posture of the virtual camera is adjusted.

[0027] In some embodiments, the directional control is a virtual directional control displayed on the cover reset page or a physical directional control on a controller of an extended reality device.

[0028] In some embodiments, in response to a first operation of a direction control by a user, adjusting the position and / or posture of the virtual camera includes:

[0029] In response to a first operation of the user on the direction control, determining a target moving direction of the virtual camera according to a direction corresponding to the first operation;

[0030] Control the virtual camera to move toward the target moving direction.

[0031] In some embodiments, determining the target moving direction of the virtual camera according to the direction corresponding to the first operation includes:

[0032] When the direction corresponding to the first operation is forward, backward, left, or right, the target moving direction of the virtual camera is determined to be Z axis, negative direction of Z axis, X axis, and negative direction of X axis in sequence.

[0033] In some embodiments, controlling the virtual camera to move toward the target moving direction includes:

[0034] The virtual camera is controlled to move toward the target moving direction at a preset moving speed or a preset moving distance.

[0035] In some embodiments, adjusting the position and / or posture of the virtual camera in response to an adjustment instruction from a user includes:

[0036] In response to a movement operation in the cover editing area, adjusting the posture of the virtual camera;

[0037] In response to a first operation of a directional control on the controller by the user, the position of the virtual camera is adjusted.

[0038] In some embodiments, in response to an instruction to reset a cover image of a virtual object, setting a virtual camera in the virtual object includes:

[0039] In response to a reset instruction for a cover image of a virtual object, it is determined that the virtual object is not rendered, and then a byte sequence corresponding to the virtual object is obtained;

[0040] The byte sequence corresponding to the virtual object is deserialized to form the virtual object, and a virtual camera is set for the virtual object.

[0041] In some embodiments, prompt information is displayed on the cover reset page, and the prompt information is used to prompt to reset the cover image of the virtual object.

[0042] In some embodiments, the method further comprises:

[0043] In response to a cancel instruction, hiding the prompt information on the cover reset page.

[0044] In some embodiments, a reset control is further displayed on the cover reset page, and in response to the user's adjustment instruction, the position and / or posture of the virtual camera is adjusted, including:

[0045] In response to a second operation of the user on the reset control, the position of the virtual camera is adjusted to an initial position.

[0046] In some embodiments, before setting the virtual camera, the method further includes:

[0047] Determine the position and posture of the virtual camera used for resetting the cover image this time;

[0048] The step of setting a virtual camera comprises:

[0049] The virtual camera is set according to the position and posture of the virtual camera used for this cover image reset.

[0050] In some embodiments, determining the position and posture of the virtual camera for resetting the cover image includes:

[0051] If the cover image of the virtual object has been reset before, it is determined that the position and posture of the virtual camera when the cover image of the virtual object was most recently reset are the position and posture used for this cover image reset.

[0052] In some embodiments, determining the position of the virtual camera for resetting the cover image includes:

[0053] If the cover image of the virtual object has not been reset before, the initial position and initial posture of the virtual camera are determined as the position and posture used for resetting the cover image this time.

[0054] In some embodiments, the method further comprises:

[0055] When the virtual object takes a cover picture for the first time, setting the virtual camera according to the initial position and initial posture of the virtual camera;

[0056] Shooting the virtual object according to the initial position and initial posture of the virtual camera;

[0057] A cover image corresponding to the virtual object is generated according to the image of the virtual object captured by the virtual camera.

[0058] In some embodiments, the background of the image captured by the virtual camera is transparent.

[0059] In some embodiments, when the virtual camera shoots the virtual object, it renders some virtual elements of the virtual object that need to be shot, and does not render other virtual elements.

[0060] In some embodiments, the virtual object is a virtual scene, and the step of setting the virtual camera in response to the instruction to reset the cover image of the virtual object includes:

[0061] In response to an instruction to reset the cover image of the virtual object, the virtual camera is set within the virtual scene.

[0062] On the other hand, an embodiment of the present application provides a device for resetting a cover image of a virtual object, the device comprising:

[0063] A setting module, configured to set a virtual camera in response to a reset instruction for a cover image of a virtual object, wherein the virtual camera is configured to shoot the virtual object;

[0064] A display module, used for displaying the image of the virtual object captured by the virtual camera in the cover editing area of ​​the cover reset page;

[0065] An adjustment module, used for adjusting the position and / or posture of the virtual camera in response to an adjustment instruction of a user;

[0066] An updating module is used to update the image of the virtual object adjusted in the cover editing area to the cover image of the virtual object.

[0067] On the other hand, an embodiment of the present application provides an XR device, comprising: a processor and a memory, the memory being used to store a computer program, and the processor being used to call and run the computer program stored in the memory to execute any of the methods described above.

[0068] On the other hand, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program enables a computer to execute any of the methods described above.

[0069] On the other hand, an embodiment of the present application provides a computer program product, including a computer program, which implements any of the methods described above when executed by a processor.

[0070] The method, device, equipment, medium and program for resetting the cover image of a virtual object provided in the embodiments of the present application respond to the reset instruction of the cover image of the virtual object, set a virtual camera, and the virtual camera is used to shoot the virtual object; display the image of the virtual object shot by the virtual camera in the cover editing area of ​​the cover reset page; respond to the user's adjustment instruction, adjust the position and / or posture of the virtual camera; update the image of the virtual object adjusted in the cover editing area to the cover image of the virtual object. By adjusting the position and / or posture of the virtual camera, the picture of the virtual object shot by the virtual camera changes accordingly, so that the cover image of the virtual object shot by the virtual camera meets the user's needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0072] Figure 1 is a flowchart of a method for resetting a cover image of a virtual object provided in Embodiment 1 of the present application;

[0073] Figure 2 A schematic diagram of a publishing page for a virtual scene;

[0074] Figure 3 A flowchart of a method for resetting a cover image of a virtual object provided in Embodiment 2 of the present application;

[0075] Figure 4 A flowchart of a method for resetting a cover image of a virtual object provided in Embodiment 3 of the present application;

[0076] Figure 5 Another schematic diagram of a publishing page for a virtual scene;

[0077] Figure 6 A schematic diagram of the structure of a device for resetting a cover image of a virtual object provided in Embodiment 4 of the present application;

[0078] Figure 7 A schematic diagram of the structure of the XR device provided in Example 5 of the present application. DETAILED DESCRIPTION

[0079] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0080] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.

[0081] In order to facilitate understanding of the embodiments of the present application, before describing each embodiment of the present application, some concepts involved in all embodiments of the present application are first appropriately explained, as follows:

[0082] XR is a general term for VR, AR and AR technology. XR devices include but are not limited to VR devices, AR devices and MR devices. XR devices follow the openXR standard.

[0083] VR: Technology for creating and experiencing a virtual world. It generates a virtual environment by computation. It is a multi-source information (the virtual reality mentioned in this article includes at least visual perception, and can also include auditory perception, tactile perception, motion perception, and even taste perception, olfactory perception, etc.). It realizes the simulation of the fusion and interactive three-dimensional dynamic vision and entity behavior of the virtual environment, immersing users in a simulated virtual reality environment, and realizing applications in various virtual environments such as maps, games, videos, education, medical care, simulation, collaborative training, sales, assisted manufacturing, maintenance and repair.

[0084] VR device refers to a terminal that realizes virtual reality effects, which can usually be provided in the form of glasses, helmet-mounted displays (Head Mount Display, HMD), and contact lenses to realize visual perception and other forms of perception. Of course, the form of virtual reality devices is not limited to this, and can be further miniaturized or enlarged as needed.

[0085] AR: AR scenery refers to a simulated scenery in which at least one virtual object is superimposed on a physical scenery or a representation thereof. For example, an electronic system may have an opaque display and at least one imaging sensor for capturing images or videos of a physical scenery, which are representations of the physical scenery. The system combines the image or video with the virtual object and displays the combination on the opaque display. An individual uses the system to indirectly view the physical scenery via an image or video of the physical scenery and observes the virtual object superimposed on the physical scenery. When the system uses one or more image sensors to capture images of the physical scenery and uses those images to present the AR scenery on an opaque display, the displayed image is referred to as video transmission. Alternatively, an electronic system for displaying an AR scenery may have a transparent or translucent display through which an individual can directly view the physical scenery. The system may display virtual objects on a transparent or translucent display so that an individual uses the system to observe virtual objects superimposed on the physical scenery. As another example, the system may include a projection system that projects virtual objects into a physical scenery. Virtual objects can be projected, for example, on a physical surface or as a hologram, so that individuals using the system observe virtual objects superimposed on a physical setting. Specifically, a technology that calculates the camera's posture parameters in the real world (or three-dimensional world, real world) in real time during the process of the camera capturing images, and adds virtual elements to the images captured by the camera based on the camera posture parameters. Virtual elements include, but are not limited to: images, videos, and three-dimensional models. The goal of AR technology is to integrate the virtual world into the real world on the screen for interaction.

[0086] MR: By presenting virtual object information in real scenes, an interactive feedback information loop is established between the real world, the virtual world, and the user to enhance the realism of the user experience. For example, computer-created sensory input (e.g., virtual objects) is integrated with sensory input from a physical scene or its representation in a simulated scene. In some MR scenes, computer-created sensory input can adapt to changes in sensory input from the physical scene. In addition, some electronic systems used to present MR scenes can monitor the orientation and / or position relative to the physical scene so that virtual objects can interact with real objects (i.e., physical elements from the physical scene or their representations). For example, the system can monitor movement so that virtual plants appear stationary relative to physical buildings.

[0087] Virtual reality devices (VR devices), terminals for realizing virtual reality effects, can usually be provided in the form of glasses, head mount displays (Head Mount Display, referred to as HMD), contact lenses, for realizing visual perception and other forms of perception. Of course, the form of virtual reality devices is not limited to this, and can be further miniaturized or enlarged according to actual needs.

[0088] Optionally, the virtual reality device (ie, XR device) described in the embodiments of the present application may include but is not limited to the following types:

[0089] 1) Mobile virtual reality devices support the configuration of mobile terminals (such as smart phones) in various ways (such as head-mounted displays with dedicated card slots). Through wired or wireless connection with the mobile terminal, the mobile terminal performs relevant calculations of virtual reality functions and outputs data to the mobile virtual reality device, such as watching virtual reality videos through the mobile terminal's APP.

[0090] 2) All-in-one virtual reality devices have a processor for performing relevant calculations of virtual functions, and thus have independent virtual reality input and output functions. They do not need to be connected to a PC or mobile terminal and have a high degree of freedom in use.

[0091] 3) Computer-based virtual reality (PCVR) devices use the PC to perform relevant calculations and data output for virtual reality functions. External computer-based virtual reality devices use the data output by the PC to achieve virtual reality effects.

[0092] Figure 1 1 is a flowchart of a method for resetting a cover image of a virtual object provided in the first embodiment of the present application, and the method is applied in an XR device. Figure 1 As shown, the method provided in this embodiment includes the following steps.

[0093] S101. In response to an instruction to reset a cover image of a virtual object, a virtual camera is set, where the virtual camera is used to shoot the virtual object.

[0094] The virtual object may be a virtual scene, a prop or material in the virtual object, or other virtual elements. The virtual scene includes many virtual elements, including but not limited to virtual props, materials, controls, and the like.

[0095] The virtual scene can be a 3D extended reality scene provided by an XR device, or a 2D virtual scene provided by a mobile phone, computer, etc. Materials and props are virtual objects formed by building and assembling at least one geometric body in a certain relative position and posture. Optionally, the composition of materials and props also includes elements such as controls, materials, logic, sound effects, and special effects.

[0096] Materials are usually used to construct virtual objects. For example, plants, animals, houses, etc. in virtual objects are materials. Materials are usually static virtual objects.

[0097] Props can exist independently of virtual objects and are usually used for interaction or task execution between virtual characters (avatars, also known as game characters) in virtual objects. Props are usually movable virtual objects. Avatars can collect props in the user's backpack. The avatars can then hold the props to play or perform tasks, and can also give the props to other users. In the game scene, props can be attack equipment, helmets, armor, letters, intelligence books, etc.

[0098] The virtual object can be an object provided by the client itself or an object defined by the user. Taking XR devices as an example, in order to meet the personalized needs of users, the UGC function is added, that is, users can customize a virtual object in the editor provided by the game according to their own needs. The user-defined virtual object is also called the user's own world, and other users can enter the user's customized scene to play.

[0099] The editor can provide some editing elements such as polyhedrons, controls, materials, physics, logic, music, sound effects, special effects and materials for users to use. Users can customize virtual objects, materials and props in the editor. User-defined virtual objects can be called UGC worlds or UGC scenes, user-defined props can be called UGC props, and user-defined materials are called UGC materials. The customization in the embodiments of the present application can be understood as a virtual object that is independently built by the user in the editor using the editing elements provided by the editor.

[0100] After creating a virtual object, the user can publish the virtual object he created. Publishing a virtual object means publishing the virtual object to the network. Only virtual objects that are successfully published can be queried by other users. If the user-defined virtual object is not published, only the user himself can view it.

[0101] Before a virtual object is released, a cover image is usually taken for the virtual object. The cover image can intuitively represent the content, appearance and other characteristics of the virtual object, making it easier for other users to understand the virtual object through the cover image. Therefore, it is very necessary to take a good cover image.

[0102] Currently, the cover image of a virtual object can be drawn by the user according to the content of the virtual object. The cover image of the virtual object is fixed and cannot meet the needs of users. Based on this, an embodiment of the present application provides a method for resetting the cover image of a virtual object, which can reset the cover image of the virtual object.

[0103] The user opens the cover reset page, which displays a cover editing area and reset controls. The cover editing area displays a cover image of a virtual object. The cover image displayed in the cover editing area is taken by a virtual camera set in a virtual shooting space. The virtual camera is used to shoot virtual objects.

[0104] When shooting a cover image for a virtual object for the first time, the virtual camera is set according to the initial position and initial posture of the virtual camera, which may be a fixed position and posture pre-set by a user, or a position and posture set according to the size of the virtual object. The virtual object is shot according to the initial position and initial posture of the virtual camera, and a cover image corresponding to the virtual object is generated according to the image of the virtual object shot by the virtual camera.

[0105] In this embodiment, the cover image displayed in the cover editing area may be the cover image initially taken, or may be the cover image after reset.

[0106] If the cover image in the cover editing area does not meet user needs, the user can trigger a reset of the cover image. For example, the user enters a reset instruction through the reset control on the cover reset page. The reset instruction is used to reset the cover image of the virtual object. The user enters the reset instruction by clicking, double-clicking, long pressing, or hovering the reset control.

[0107] For example, the user may trigger the reset instruction of the cover image in the following scenarios:

[0108] Scenario 1: After the virtual object is created, when or after the virtual object is saved, the cover image of the virtual object is reset.

[0109] In this scenario, the cover reset page is a save page for the virtual object. A reset control is provided on the save page for the virtual object, and the user inputs a reset instruction through the reset control.

[0110] Scenario 2: When publishing a virtual object, reset the cover of the virtual object.

[0111] In this scenario, the cover is reset to the publishing page of the virtual object. Figure 2 A schematic diagram of a publishing page for a virtual scene, such as Figure 2 As shown, the publishing page of the virtual scene displays a cover image of the virtual scene and a publishing control. Optionally, the publishing page also includes a reset control, and the user inputs a reset instruction through the reset control.

[0112] Scenario three: after the virtual object fails to be published, the cover image of the virtual object is reset. After the virtual object fails to be published, it can be published again or abandoned.

[0113] If the virtual object fails to be published, a prompt message indicating the failure will be displayed on the publishing page, and the user can reset the cover image of the virtual object on the publishing page.

[0114] Scenario 4: When a user views a virtual object through his or her homepage or other portals, the cover of the virtual object is reset.

[0115] After a virtual object is published, the user can also view the virtual object through his or her homepage. The virtual object's cover image and reset controls are displayed on the virtual object's introduction interface. The virtual object's introduction interface in this scenario is a cover reset page.

[0116] Users can also view virtual objects through other entrances. For example, when users view virtual objects through the application market, the cover image and reset controls of the virtual object are displayed on the introduction interface of the virtual object.

[0117] In this embodiment, when receiving the reset instruction, the XR device may have rendered the virtual object or may not have rendered the virtual object. If it is determined that the virtual object is not rendered, the byte sequence corresponding to the virtual object is obtained, the byte sequence corresponding to the virtual object is deserialized to form a virtual object, and a virtual camera is set for the virtual object. The virtual object formed by deserialization is a 3D virtual object, that is, a rendered virtual object.

[0118] When the reset instruction is received, if it is determined that the virtual object has been rendered, a virtual camera is set for the virtual object.

[0119] Serialization refers to the process of converting an object into data in a transferable and storable format. Deserialization is the opposite process of serialization, which converts data in a transferable and storable format into an object. The data in a transferable and storable format corresponding to an object is called the byte sequence of the object.

[0120] Obtaining the byte sequence corresponding to the virtual object includes the following methods: if the byte sequence corresponding to the virtual object is stored locally, reading the byte sequence corresponding to the virtual object from the local memory; if the byte sequence corresponding to the virtual object is not stored locally, downloading the byte sequence corresponding to the virtual object from the server.

[0121] S102: Display the image of the virtual object captured by the virtual camera in the cover editing area of ​​the cover reset page.

[0122] After setting a virtual camera for a virtual object, the virtual camera can automatically shoot the virtual object and display the shot image in real time in the cover editing area, wherein the virtual camera and the virtual object may be invisible to the user, that is, the user cannot see the virtual camera and the virtual object, and what the user sees is the image of the virtual object.

[0123] S103. In response to an adjustment instruction from the user, adjust the position and / or posture of the virtual camera.

[0124] In this embodiment, the position and / or posture of the virtual camera can be adjusted. By adjusting the posture and / or position of the virtual camera, the angle and / or content of the virtual object captured by the virtual camera changes until an image that satisfies the user is captured. When the virtual camera is set outside the virtual object, the angle of the virtual object captured by the virtual camera changes by adjusting the position and / or posture of the virtual camera. When the virtual camera is set inside the virtual object, the content and / or angle of the virtual object captured by the virtual camera is different by adjusting the position and / or posture of the virtual camera. For example, when the virtual object is a virtual scene, by adjusting the position and / or posture of the virtual camera, the virtual elements in the virtual scene captured by the virtual camera may be different, that is, the content of the captured virtual object is different.

[0125] When the virtual object is a virtual scene, the virtual camera can be set in the bounding box of the virtual scene. Adjusting the position and / or posture of the virtual camera adjusts the position and / or posture of the virtual camera in the bounding box of the virtual scene, and does not affect the posture of the virtual scene itself. It should be noted that when adjusting the position and / or posture of the virtual camera in the virtual scene, what is changed is the position and angle of the camera's own coordinate system, rather than the position and angle of the virtual scene's coordinate system. The virtual camera's own coordinate system is different from the virtual scene's coordinate system. For example, adjusting the coordinates of the virtual camera on the Z axis is equivalent to adjusting the distance of the virtual camera. Another example is adjusting the rotation angle of the virtual camera on the X axis. Before the adjustment, the virtual camera is located on the X axis, and after the adjustment, the virtual camera has a certain angle with the X axis.

[0126] When the virtual object is a prop or a material, the virtual camera can be set outside the bounding box of the virtual object. The prop, the material and the virtual camera usually use the same coordinate system, or it can be understood that the prop, the material and the virtual camera are set in the same virtual shooting space.

[0127] The bounding box is also called a bounding volume, and the bounding box can be considered as a transparent object that covers or surrounds all or part of the virtual object. The bounding box may be invisible to the user.

[0128] The adjustment instruction may be a sliding operation of the user on the cover editing area, or may be a first operation of the user on the direction control. The user adjusts the position and posture of the virtual camera through different operations, and the specific operation is not limited in this embodiment.

[0129] In one implementation, the position and / or posture of the virtual camera is adjusted in response to a movement operation in the cover editing area.

[0130] The moving operation may be a moving operation of a cursor, a sliding control, or an interactive ray displayed in the cover editing area, or a touch sliding operation of a user's finger, or a touch sliding operation of a touch device such as a touch pen.

[0131] In the XR device, the user interacts with the extended real space through the interactive ray. The user can control the interactive ray to move up, down, left, and right in the cover editing area through the controller of the XR device, and cooperate with other operations such as the controller buttons to realize the movement operation. The user can also control the interactive ray to move up, down, left, and right through the sliding control in the cover editing area through the controller of the XR device.

[0132] In another implementation, in response to a first operation of the user on the direction control, the position and / or posture of the virtual camera is adjusted.

[0133] The direction control is used to control the movement direction and / or rotation direction of the virtual camera, so as to control the position and / or posture of the virtual camera. The direction control can be a virtual direction control displayed on the cover reset page or a physical direction control on the controller of the XR device.

[0134] The controller may be a physical controller such as a handle or a glove of an XR device. In this embodiment, the direction control may be a physical joystick on the controller, which may move forward, backward, left, right, or in any direction. The direction control may also be a touchpad on the controller, on which the user slides forward, backward, left, right, or in any direction to control the direction of movement of the virtual camera. The direction control may also be four direction controls on the controller, which are used to control the four directions of forward, backward, left, and right.

[0135] The virtual direction control is similar to the physical direction control and is located on the cover reset page. Users can control the virtual direction control through interactive ray control.

[0136] In still another implementation, the posture of the virtual camera is adjusted in response to a movement operation within the cover editing area, and the position of the virtual camera is adjusted in response to a first operation of a direction control on a controller by the user.

[0137] This implementation method is a combination of the first two implementation methods, that is, adjusting the posture of the virtual camera through movement operations in the cover editing area, and adjusting the position of the virtual camera through the direction control on the handle, making the posture and position adjustment of the virtual camera more convenient.

[0138] S104: Update the adjusted image of the virtual object in the cover editing area to the cover image of the virtual object.

[0139] By adjusting the position and / or posture of the virtual camera, the image of the virtual object captured by the virtual camera changes accordingly, and the cover image captured by the virtual camera meets the needs of the user through adjustment.

[0140] In addition, when the user adjusts the position and / or posture of the virtual camera, the image captured by the adjusted virtual camera can be displayed in real time in the cover editing area, so that the user can intuitively see the adjustment effect and make targeted adjustments based on the adjustment effect, thereby improving the adjustment efficiency and bringing a better user experience.

[0141] Optionally, a reset confirmation control is displayed in the cover editing area. After the user clicks, double-clicks, or long presses the reset confirmation control, the reset cover image takes effect, that is, the image of the virtual object adjusted in the cover editing area is determined as the cover image of the virtual object.

[0142] Alternatively, when the user closes the cover reset page, the image of the virtual object adjusted in the cover editing area is saved as the cover image of the virtual object. Alternatively, when the user clicks the publish control of the virtual object or the save control, the image of the virtual object adjusted in the cover editing area is saved as the cover image of the virtual object.

[0143] Optionally, the background of the image captured by the virtual camera is transparent, and accordingly, the background of the cover image corresponding to the virtual object is also transparent.

[0144] Optionally, when shooting a virtual object, the virtual camera renders some virtual elements in the virtual object that need to be shot, and does not render other virtual elements, so that the content shot by the virtual camera only includes the rendered virtual elements, and does not include other virtual elements. That is, some virtual elements in the virtual object are removed, so that the shot content is more beautiful and meets the user's expectations.

[0145] Taking a virtual scene as an example, the background in the virtual scene can be eliminated and only the foreground object in the virtual scene can be photographed. The background can be a skybox. The skybox is a common technology used to enhance the expressiveness of the scene. It is generally achieved by wrapping a texture around the camera. This texture is usually some sky, mountains or skyscrapers, etc.

[0146] Virtual scenes are divided into creative mode and preview mode. Preview mode can be understood as the final product performance of the virtual scene, that is, the picture presented to the user, while creative mode is the picture that the creator sees when creating the virtual scene. There will be a lot of visual controls in creative mode, which can be the music, birth point and code block of the virtual scene. These visual controls will not be displayed in preview mode. The visual controls in creative mode can be removed when shooting the cover picture.

[0147] Virtual elements that are not to be photographed in the virtual scene may be marked, and the marked virtual elements are not rendered during the photographing process.

[0148] In this embodiment, in response to a reset instruction for the cover image of a virtual object, a virtual camera is set, and the virtual camera is used to shoot the virtual object; the image of the virtual object shot by the virtual camera is displayed in the cover editing area of ​​the cover reset page; in response to the user's adjustment instruction, the position and / or posture of the virtual camera is adjusted; the image of the virtual object adjusted in the cover editing area is updated to the cover image of the virtual object. By adjusting the position and / or posture of the virtual camera, the image of the virtual object shot by the virtual camera changes accordingly, so that the cover image of the virtual object shot by the virtual camera meets the user's needs.

[0149] Based on the first embodiment, the second embodiment of the present application provides a method for resetting the cover image of a virtual object, which is used to illustrate a specific adjustment method of step S103 in the first embodiment, that is, to illustrate a specific adjustment method of the position and / or posture of the virtual camera. The same content refers to the description of the first embodiment and will not be repeated in this embodiment. Figure 3 This is a flowchart of a method for resetting a cover image of a virtual object provided in Embodiment 2 of the present application, such as Figure 3 As shown, the method provided in this embodiment includes the following steps.

[0150] S201. In response to an instruction to reset a cover image of a virtual object, a virtual camera is set, where the virtual camera is used to shoot the virtual object.

[0151] S202: Display the image of the virtual object captured by the virtual camera in the cover editing area of ​​the cover reset page.

[0152] S203. In response to a moving operation in the cover editing area, adjust the posture of the virtual camera according to a moving direction and / or a moving distance corresponding to the moving operation.

[0153] The moving operation may be a moving operation of a cursor, a sliding control, or an interactive ray displayed in the cover editing area, or a touch sliding operation of a user's finger, or a touch sliding operation of a touch device such as a touch pen.

[0154] After detecting the moving operation, the moving direction and / or moving distance corresponding to the moving operation is determined, and the rotation direction and / or rotation angle of the virtual camera is adjusted according to the moving direction and / or moving distance corresponding to the moving operation, thereby adjusting the posture of the virtual camera.

[0155] In one implementation, the rotation direction of the virtual camera is determined according to the moving direction corresponding to the moving operation, and the virtual camera is controlled to rotate according to the rotation direction.

[0156] In this implementation, the rotation angle of the virtual camera can be a preset angle, for example, the rotation angle is 5 degrees or 10 degrees. Each time a movement operation is detected, the virtual camera is controlled to rotate 5 degrees or 10 degrees in the rotation direction.

[0157] Exemplarily, when the moving direction corresponding to the moving operation is up, down, left, or right, the rotation direction of the virtual camera is determined to be the X-axis, the negative direction of the X-axis, the Y-axis, and the negative direction of the Y-axis. That is, when the moving direction is up, the rotation direction of the virtual camera is the X-axis, when the moving direction is down, the rotation direction of the virtual camera is the -X-axis, when the moving direction is left, the rotation direction of the virtual camera is the Y-axis, and when the moving direction is right, the rotation direction of the virtual camera is the -Y-axis.

[0158] Optionally, when the virtual camera rotates in the positive and negative directions of the X-axis, the rotation angle has an upper limit and a lower limit. For example, the angles of the upper and lower limits are 90 degrees, that is, the maximum rotation angle in the positive and negative directions of the X-axis is 90 degrees. This is because the rotation angle of the X-axis controls the rotation angle of the camera in the up and down directions. When the rotation angle of the camera on the X-axis is greater than 90 degrees, the captured image is an inverted image for the user, which does not conform to the viewing angle of the user's human eyes.

[0159] It can be understood that the correspondence between the four moving directions of up, down, left and right and the four rotation directions of X-axis, negative direction of X-axis, Y-axis and negative direction of Y-axis is not limited to the above examples, but can also be other correspondences. For example, when the moving direction is up, the rotation direction is the Y-axis, and accordingly, the relationships between the other directions and the coordinate axes are also transformed accordingly.

[0160] In another implementation, the rotation angle of the virtual camera is determined according to the moving distance corresponding to the moving operation, and the virtual camera is controlled to rotate according to the rotation angle. In this implementation, the rotation direction of the virtual camera can be a preset direction, for example, the preset direction is the X-axis, and each time a moving operation is detected, the virtual camera is controlled to rotate in the X-axis direction according to the rotation angle.

[0161] Exemplarily, the moving distance corresponding to the moving operation is the number of pixels moved, and when the moving pixels corresponding to the moving operation are M, the rotation angle of the virtual camera is determined to be M*N, where N is an integer greater than or equal to 1. When N is equal to 1, the number of pixels moved is M, and the rotation angle is M degrees.

[0162] In another implementation, the rotation direction of the virtual camera is determined according to the moving direction corresponding to the moving operation, the rotation angle of the virtual camera is determined according to the moving distance corresponding to the moving operation, and the virtual camera is controlled to rotate according to the rotation angle and rotation direction. This implementation is a combination of the first two methods, and this method can more accurately control the posture adjustment of the virtual camera.

[0163] S204: In response to the user's first operation on the direction control, adjust the position of the virtual camera.

[0164] In this embodiment, the direction control is used to control the moving direction of the virtual camera, so as to control the position of the virtual camera. The direction control is a virtual direction control displayed on the cover reset page or a physical direction control on the controller of the XR device.

[0165] Exemplarily, in response to a first operation of the user on the direction control, the target moving direction of the virtual camera is determined according to the direction corresponding to the first operation, and the virtual camera is controlled to move in the target moving direction, thereby adjusting the position of the virtual camera.

[0166] Optionally, when the direction corresponding to the first operation is forward, backward, left, or right, the target moving direction of the virtual camera is determined to be Z axis, negative direction of Z axis, X axis, and negative direction of X axis, respectively. Taking the joystick of the handle as an example, when the user pushes the joystick of the handle forward, the moving direction of the virtual camera is the Z axis, when the user pushes the joystick of the handle backward, the moving direction of the virtual camera is the negative direction of the Z axis, when the user pushes the joystick of the handle to the left, the moving direction of the virtual camera is the X axis, and when the user pushes the joystick of the handle to the right, the moving direction of the virtual camera is the negative direction of the X axis.

[0167] It can be understood that the correspondence between the four directions of the direction control, front, back, left and right, and the Z-axis, negative direction of the Z-axis, X-axis, and negative direction of the X-axis of the virtual camera is not limited to the above examples, but can also be other correspondences. For example, the moving direction of the virtual camera corresponding to the front of the direction control is the X-axis, and accordingly, the relationships between the other directions and the coordinate axes are also transformed accordingly.

[0168] Optionally, the virtual camera moves in the target moving direction according to a preset moving speed or a preset moving distance. The preset moving speed or the preset moving distance can be set by the user according to his / her own needs, or a fixed value can be adopted.

[0169] Optionally, a reset control is also displayed on the cover reset page, and in response to the user's second operation on the reset control, the position of the virtual camera is adjusted to the initial position. The posture of the virtual camera can maintain the current posture unchanged, or can be adjusted to the initial posture.

[0170] Reference Figure 2 As shown, the control with an arrow in the lower right corner of the cover editing area is a reset control. Of course, the reset control is not limited to Figure 2 The position of the reset control is not limited to Figure 2 Position shown.

[0171] By setting the reset control, the user can quickly reset the virtual camera to its initial position when it moves to a long distance. After the virtual camera is reset to its initial position and initial posture, the cover image displayed in the cover editing area is the default cover image, which is the cover image taken when the virtual camera is at its initial position and initial posture.

[0172] S205: Update the adjusted image of the virtual object in the cover editing area to the cover image of the virtual object.

[0173] In this embodiment, the posture of the virtual camera is adjusted according to the moving direction and / or moving distance corresponding to the moving operation in the cover editing area, and the position of the virtual camera is adjusted according to the user's first operation on the direction control, so that the modification operation of the cover image of the virtual object is simple and convenient.

[0174] It should be noted that in other embodiments of the present application, the position of the virtual camera can be adjusted by moving operations in the cover editing area, and the posture of the virtual camera can be adjusted by operating the direction control. The specific adjustment method is similar to that of Example 2 and will not be repeated here.

[0175] Optionally, in other embodiments of the present application, the posture and position of the virtual camera can also be adjusted by moving operations in the cover editing area. Exemplarily, the rotation direction and movement direction of the virtual camera are determined according to the moving direction corresponding to the moving operation, wherein the rotation direction and movement direction of the virtual camera can be the same or different. For example, when the moving direction corresponding to the moving operation is up, down, left, or right, the rotation direction and movement direction of the virtual camera are determined to be: X-axis, negative direction of X-axis, Y-axis, negative direction of Y-axis, or, when the moving direction corresponding to the moving operation is up, down, left, or right, the rotation direction of the virtual camera is determined to be: X-axis, negative direction of X-axis, Y-axis, negative direction of Y-axis, and the movement direction of the virtual camera is: Z-axis, negative direction of Z-axis, X-axis, negative direction of X-axis. The rotation angle and movement distance of the virtual camera can be determined according to the movement distance corresponding to the moving operation, or it can be a fixed value.

[0176] Optionally, in other embodiments of the present application, the posture and position of the virtual camera can also be adjusted by the first operation of the direction control. Exemplarily, according to the direction corresponding to the first operation, the rotation direction and movement direction of the virtual camera are determined, wherein the rotation direction and movement direction of the virtual camera can be the same or different. For example, when the direction corresponding to the first operation is front, back, left, and right, the rotation direction and movement direction of the virtual camera are determined to be: X-axis, negative direction of X-axis, Y-axis, negative direction of Y-axis, or, when the direction corresponding to the first operation is front, back, left, and right, the rotation direction of the virtual camera is determined to be: X-axis, negative direction of X-axis, Y-axis, negative direction of Y-axis, and the movement direction of the virtual camera is: Z-axis, negative direction of Z-axis, X-axis, negative direction of X-axis. The rotation angle and movement distance of the virtual camera can be determined according to the duration of the first operation, or it can be a fixed value.

[0177] Based on the first and second embodiments, the third embodiment of the present application provides a method for resetting the cover image of a virtual object. The same contents refer to the description of the first embodiment and will not be repeated in this embodiment. Figure 4 This is a flowchart of a method for resetting a cover image of a virtual object provided in Embodiment 3 of the present application, such as Figure 4 As shown, the method provided in this embodiment includes the following steps.

[0178] S301, opening a cover reset page, wherein a cover editing area and prompt information are displayed on the cover reset page, wherein a cover image of a virtual object is displayed in the cover editing area, and the prompt information is used to prompt to reset the cover image of the virtual object.

[0179] The cover reset page can be a publishing page of a virtual object, a saving page of a virtual object, or an introduction page of a virtual object. In different scenarios, the user opens the cover reset page in different ways. It is understandable that the cover reset page can also include other content or controls.

[0180] Figure 5 Another schematic diagram of the publishing page of the virtual scene is shown in FIG. Figure 5 As shown, the following prompt information is displayed in the cover editing area: drag the screen to adjust the direction, move the joystick to adjust the distance. Adjusting the direction is to adjust the posture of the virtual camera described in the embodiment of the present application, and adjusting the distance is to adjust the position of the virtual camera described in the embodiment of the present application.

[0181] It is understandable that the prompt information is not limited to text form, but can also be in the form of text combined with pictures, or text combined with special effects.

[0182] In an embodiment of the present application, the prompt message can be displayed each time the user opens the cover reset page, or it can be displayed before the user resets the cover for the first time. After detecting that the user has reset the cover, the prompt message will not be displayed when the cover reset page is opened again.

[0183] The prompt message may disappear after a preset time. For example, the prompt message is displayed for 2 seconds by default and disappears after 2 seconds. Alternatively, in response to a cancel instruction, the prompt message is hidden on the cover reset page. The cancel instruction may be input by the user by pressing the trigger key of the handle or by pressing the joystick down for 0.5 seconds.

[0184] S302. In response to an instruction to reset the cover image of the virtual object, determine the position and posture settings of the virtual camera used for this cover image reset, and set the virtual camera according to the position and posture used for this cover image reset.

[0185] Optionally, a reset control is displayed on the cover reset page, and a reset instruction is input by pressing the reset control.

[0186] If the cover image of the virtual object has been reset before, the position and posture of the virtual camera when the cover image of the virtual object was last reset are determined as the position and posture used for the current reset of the cover image. In this method, each time the cover image of the virtual object is reset, the position and posture of the virtual camera need to be recorded, and the position and posture of the virtual camera refers to the position and posture of the virtual camera relative to the virtual object.

[0187] If the cover image of the virtual object has not been reset before, the initial position and initial posture of the virtual camera are determined to be the position and posture used for the current cover image reset. The initial position and initial posture of the virtual camera are pre-set or system-provided.

[0188] S303: Display the image of the virtual object captured by the virtual camera in the cover editing area of ​​the cover reset page.

[0189] When the virtual object is a prop or material, the virtual camera is set at a certain distance from the prop or material, and the prop or material is photographed by the virtual camera. When the virtual object is a virtual scene, the virtual object is set in the virtual scene, and the virtual elements in the virtual scene are photographed by the virtual camera. As the position of the virtual camera moves, the picture in the virtual scene is constantly changing, and the virtual elements photographed by the virtual camera are also constantly changing.

[0190] S304. In response to a moving operation in the cover editing area, adjust the posture of the virtual camera.

[0191] S305: In response to a first operation of the user on a direction control on the controller, adjust the position of the virtual camera.

[0192] S306. In response to the user's second operation on the reset control on the cover reset page, the position of the virtual camera is adjusted to the initial position, and the posture of the virtual camera is adjusted to the initial posture.

[0193] It should be noted that steps S304, S306 and S307 are not executed in any order and are performed according to the user's operation. In one adjustment process, the user may only adjust the posture of the virtual camera, or may only adjust the position of the virtual camera, or may adjust both the posture and position of the virtual camera.

[0194] S307: In response to a closing operation on the cover reset page, determine that the image of the virtual object adjusted in the cover editing area is the cover image of the virtual object, and save the cover image of the virtual object.

[0195] In order to facilitate better implementation of the method for resetting the cover image of a virtual object in the embodiment of the present application, the embodiment of the present application also provides a device for resetting the cover image of a virtual object. Figure 6 This is a schematic diagram of the structure of a device for resetting a cover image of a virtual object provided in Embodiment 4 of the present application, such as Figure 6 As shown, the device 100 for resetting the cover image of the virtual object may include:

[0196] A setting module 11, configured to set a virtual camera in response to a reset instruction for a cover image of a virtual object, wherein the virtual camera is configured to shoot the virtual object;

[0197] A display module 12, used for displaying the image of the virtual object captured by the virtual camera in the cover editing area of ​​the cover reset page;

[0198] An adjustment module 13, used for adjusting the position and / or posture of the virtual camera in response to an adjustment instruction of a user;

[0199] The updating module 14 is used to update the image of the virtual object adjusted in the cover editing area to the cover image of the virtual object.

[0200] In some embodiments, the adjustment module 13 is specifically used for:

[0201] In response to a movement operation within the cover editing area, the position and / or posture of the virtual camera is adjusted.

[0202] In some embodiments, the adjustment module 13 is specifically used for:

[0203] In response to a moving operation in the cover editing area, the posture of the virtual camera is adjusted according to a moving direction and / or a moving distance corresponding to the moving operation.

[0204] In some embodiments, the adjustment module 13 is specifically used to: determine the rotation direction of the virtual camera according to the moving direction corresponding to the moving operation; and control the virtual camera to rotate according to the rotation direction.

[0205] In some embodiments, the adjustment module 13 is specifically used to: when the moving direction corresponding to the moving operation is up, down, left, or right, determine that the rotation direction of the virtual camera is X-axis, negative direction of X-axis, Y-axis, and negative direction of Y-axis, respectively.

[0206] In some embodiments, the adjustment module 13 is specifically used to: determine the rotation angle of the virtual camera according to the moving distance corresponding to the moving operation; and control the virtual camera to rotate according to the rotation angle.

[0207] In some embodiments, the moving distance corresponding to the moving operation is the number of moved pixels, and the adjustment module 13 is specifically used to: when the moving pixels corresponding to the moving operation are M, determine the rotation angle of the virtual camera to be M*N, where N is an integer greater than or equal to 1.

[0208] In some embodiments, the adjustment module 13 is specifically used for:

[0209] In response to a first operation of a direction control by a user, the position and / or posture of the virtual camera is adjusted.

[0210] In some embodiments, the directional control is a virtual directional control displayed on the cover reset page or a physical directional control on a controller of an extended reality device.

[0211] In some embodiments, the adjustment module 13 is specifically used to: in response to a first operation of the user on the direction control, determine the target moving direction of the virtual camera according to the direction corresponding to the first operation; and control the virtual camera to move in the target moving direction.

[0212] In some embodiments, the adjustment module 13 is specifically used to: when the direction corresponding to the first operation is front, back, left, or right, determine the target moving direction of the virtual camera to be Z axis, negative direction of Z axis, X axis, and negative direction of X axis in sequence.

[0213] In some embodiments, the adjustment module 13 is specifically used to control the virtual camera to move toward the target moving direction at a preset moving speed or a preset moving distance.

[0214] In some embodiments, the adjustment module 13 is specifically used for:

[0215] In response to a movement operation in the cover editing area, adjusting the posture of the virtual camera;

[0216] In response to a first operation of a directional control on the controller by the user, the position of the virtual camera is adjusted.

[0217] In some embodiments, the setting module 11 is specifically used for:

[0218] In response to a reset instruction for a cover image of a virtual object, it is determined that the virtual object is not rendered, and then a byte sequence corresponding to the virtual object is obtained;

[0219] The byte sequence corresponding to the virtual object is deserialized to form the virtual object, and a virtual camera is set for the virtual object.

[0220] In some embodiments, prompt information is displayed on the cover reset page, and the prompt information is used to prompt to reset the cover image of the virtual object.

[0221] In some embodiments, the apparatus further comprises:

[0222] A hiding module is used to hide the prompt information on the cover reset page in response to a cancel instruction.

[0223] In some embodiments, a reset control is also displayed on the cover reset page, and the adjustment module 13 is specifically used to: in response to a second operation of the user on the reset control, adjust the position of the virtual camera to the initial position.

[0224] In some embodiments, the setting module 11 is further used for:

[0225] Determine the position and posture of the virtual camera used for resetting the cover image this time;

[0226] The virtual camera is set according to the position and posture of the virtual camera used for this cover image reset.

[0227] In some embodiments, the setting module 11 is specifically used for: if the cover image of the virtual object has been reset before, determining the position and posture of the virtual camera when the cover image of the virtual object was last reset as the position and posture used for this cover image reset.

[0228] In some embodiments, the setting module 11 is further used for: if the cover image of the virtual object has not been reset before, determining the initial position and initial posture of the virtual camera as the position and posture used for resetting the cover image this time.

[0229] In some embodiments, the setting module 11 is further used to: when the virtual object takes a cover picture for the first time, set the virtual camera according to the initial position and initial posture of the virtual camera;

[0230] Shooting the virtual object according to the initial position and initial posture of the virtual camera;

[0231] The updating module 14 is also used to generate a cover image corresponding to the virtual object according to the image of the virtual object captured by the virtual camera.

[0232] In some embodiments, the background of the image captured by the virtual camera is transparent.

[0233] In some embodiments, when the virtual camera shoots the virtual object, it renders some virtual elements of the virtual object that need to be shot, and does not render other virtual elements.

[0234] In some embodiments, the virtual object is a virtual scene, and the setting module 11 is specifically used for:

[0235] In response to an instruction to reset the cover image of the virtual object, the virtual camera is set within the virtual scene.

[0236] It should be understood that the device embodiment and the method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. To avoid repetition, they will not be described here.

[0237] The above describes the device 100 of the embodiment of the present application from the perspective of the functional module in conjunction with the accompanying drawings. It should be understood that the functional module can be implemented in hardware form, can be implemented by instructions in software form, and can also be implemented by a combination of hardware and software modules. Specifically, the steps of the method embodiment in the embodiment of the present application can be completed by the hardware integrated logic circuit and / or software form instructions in the processor, and the steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or a combination of hardware and software modules in the decoding processor to perform. Optionally, the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory, and completes the steps in the above method embodiment in conjunction with its hardware.

[0238] The embodiment of the present application also provides an XR device. Figure 7 A structural diagram of an XR device provided in Embodiment 5 of the present application is shown in FIG. Figure 7 As shown, the XR device 200 may include:

[0239] The memory 21 and the processor 22, the memory 21 is used to store the computer program and transmit the program code to the processor 22. In other words, the processor 22 can call and run the computer program from the memory 21 to implement the method in the embodiment of the present application.

[0240] For example, the processor 22 may be configured to execute the above method embodiments according to instructions in the computer program.

[0241] In some embodiments of the present application, the processor 22 may include but is not limited to:

[0242] General-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.

[0243] In some embodiments of the present application, the memory 21 includes but is not limited to:

[0244] Volatile memory and / or non-volatile memory. Among them, the non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DR RAM).

[0245] In some embodiments of the present application, the computer program may be divided into one or more modules, which are stored in the memory 21 and executed by the processor 22 to complete the method provided by the present application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the XR device.

[0246] like Figure 7 As shown, the XR device may further include: a transceiver 23 , which may be connected to the processor 22 or the memory 21 .

[0247] The processor 22 may control the transceiver 23 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices. The transceiver 23 may include a transmitter and a receiver. The transceiver 23 may further include an antenna, and the number of antennas may be one or more.

[0248] Understandable, although Figure 7 Not shown, the XR device 200 may also include a camera module, a wireless fidelity WIFI module, a positioning module, a Bluetooth module, a display, a controller, etc., which will not be repeated here.

[0249] It should be understood that the various components in the XR device are connected via a bus system, wherein the bus system includes, in addition to a data bus, a power bus, a control bus, and a status signal bus.

[0250] The present application also provides a computer storage medium on which a computer program is stored, and when the computer program is executed by a computer, the computer can perform the method of the above method embodiment. In other words, the present application embodiment also provides a computer program product containing instructions, and when the instructions are executed by a computer, the computer can perform the method of the above method embodiment.

[0251] The present application also provides a computer program product, which includes a computer program, and the computer program is stored in a computer-readable storage medium. The processor of the XR device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the XR device executes the corresponding process in the method for controlling the user position in the virtual object in the embodiment of the present application, which will not be described here for the sake of brevity.

[0252] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules 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 modules, which can be electrical, mechanical or other forms.

[0253] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. For example, each functional module in each embodiment of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

[0254] The above is only a specific implementation of the present application, but the protection scope of the present application 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 application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for resetting a cover image of a virtual object, characterized in that: include: In response to an instruction to reset the cover image of the virtual object, setting a virtual camera, the virtual camera being used to shoot the virtual object; Displaying the image of the virtual object captured by the virtual camera in the cover editing area of ​​the cover reset page; In response to an adjustment instruction from a user, adjusting the position and / or posture of the virtual camera; The image of the virtual object adjusted in the cover editing area is updated to the cover image of the virtual object.

2. The method according to claim 1, characterized in that The step of adjusting the position and / or posture of the virtual camera in response to an adjustment instruction from a user includes: In response to a movement operation within the cover editing area, the position and / or posture of the virtual camera is adjusted.

3. The method according to claim 2, characterized in that The step of adjusting the position and / or posture of the virtual camera in response to the moving operation in the cover editing area includes: In response to a moving operation in the cover editing area, the posture of the virtual camera is adjusted according to a moving direction and / or a moving distance corresponding to the moving operation.

4. The method according to claim 3, characterized in that The adjusting the posture of the virtual camera according to the moving direction and / or moving distance corresponding to the moving operation includes: Determining a rotation direction of the virtual camera according to a moving direction corresponding to the moving operation; Control the virtual camera to rotate according to the rotation direction.

5. The method according to claim 4, characterized in that The step of determining the rotation direction of the virtual camera according to the moving direction corresponding to the moving operation includes: When the moving direction corresponding to the moving operation is up, down, left, or right, the rotation direction of the virtual camera is determined to be the X-axis, the negative direction of the X-axis, the Y-axis, and the negative direction of the Y-axis, respectively.

6. The method according to claim 3, characterized in that The adjusting the posture of the virtual camera according to the moving direction and / or moving distance corresponding to the moving operation includes: Determining a rotation angle of the virtual camera according to a moving distance corresponding to the moving operation; Control the virtual camera to rotate according to the rotation angle.

7. The method according to claim 6, characterized in that The moving distance corresponding to the moving operation is the number of pixels moved, and the determining the rotation angle of the virtual camera according to the moving distance corresponding to the moving operation includes: When the moving pixel corresponding to the moving operation is M, the rotation angle of the virtual camera is determined to be M*N, where N is an integer greater than or equal to 1.

8. The method according to claim 1, characterized in that The step of adjusting the position and / or posture of the virtual camera in response to an adjustment instruction from a user includes: In response to a first operation of a direction control by a user, the position and / or posture of the virtual camera is adjusted.

9. The method according to claim 8, characterized in that The direction control is a virtual direction control displayed on the cover reset page or a physical direction control on a controller of an extended reality device.

10. The method according to claim 8, characterized in that The adjusting the position and / or posture of the virtual camera in response to the user's first operation on the direction control comprises: In response to a first operation of the user on the direction control, determining a target moving direction of the virtual camera according to a direction corresponding to the first operation; Control the virtual camera to move toward the target moving direction.

11. The method according to claim 10, characterized in that The step of determining the target moving direction of the virtual camera according to the direction corresponding to the first operation includes: When the direction corresponding to the first operation is forward, backward, left, or right, the target moving direction of the virtual camera is determined to be Z axis, negative direction of Z axis, X axis, and negative direction of X axis in sequence.

12. The method according to claim 10, characterized in that The controlling the virtual camera to move toward the target moving direction includes: The virtual camera is controlled to move toward the target moving direction at a preset moving speed or a preset moving distance.

13. The method according to claim 1, characterized in that The step of adjusting the position and / or posture of the virtual camera in response to an adjustment instruction from a user includes: In response to a movement operation in the cover editing area, adjusting the posture of the virtual camera; In response to a first operation of a directional control on the controller by the user, the position of the virtual camera is adjusted.

14. The method according to any one of claims 1 to 13, characterized in that: In response to a reset instruction for a cover image of a virtual object, setting a virtual camera in the virtual object includes: In response to a reset instruction for a cover image of a virtual object, it is determined that the virtual object is not rendered, and then a byte sequence corresponding to the virtual object is obtained; The byte sequence corresponding to the virtual object is deserialized to form the virtual object, and a virtual camera is set for the virtual object.

15. The method according to any one of claims 1 to 13, characterized in that: The cover reset page displays prompt information, and the prompt information is used to prompt to reset the cover image of the virtual object.

16. The method according to claim 15, characterized in that Also includes: In response to a cancel instruction, hiding the prompt information on the cover reset page.

17. The method according to any one of claims 1 to 13, characterized in that: The cover reset page also displays a reset control, which adjusts the position and / or posture of the virtual camera in response to the user's adjustment instruction, including: In response to a second operation of the user on the reset control, the position of the virtual camera is adjusted to an initial position.

18. The method according to any one of claims 1 to 13, characterized in that: Before setting the virtual camera, the method further includes: Determine the position and posture of the virtual camera used for resetting the cover image this time; The step of setting a virtual camera comprises: The virtual camera is set according to the position and posture of the virtual camera used for this cover image reset.

19. The method according to claim 18, characterized in that Determining the position and posture of the virtual camera for resetting the cover image this time includes: If the cover image of the virtual object has been reset before, it is determined that the position and posture of the virtual camera when the cover image of the virtual object was most recently reset are the position and posture used for this cover image reset.

20. The method according to claim 18, characterized in that Determining the position of the virtual camera for resetting the cover image this time includes: If the cover image of the virtual object has not been reset before, the initial position and initial posture of the virtual camera are determined as the position and posture used for resetting the cover image this time.

21. The method according to any one of claims 1 to 13, characterized in that: The method further comprises: When the virtual object takes a cover picture for the first time, setting the virtual camera according to the initial position and initial posture of the virtual camera; Shooting the virtual object according to the initial position and initial posture of the virtual camera; A cover image corresponding to the virtual object is generated according to the image of the virtual object captured by the virtual camera.

22. The method according to any one of claims 1 to 13, characterized in that: The background of the image captured by the virtual camera is transparent.

23. The method according to any one of claims 1 to 13, characterized in that: When the virtual camera shoots the virtual object, it renders some virtual elements of the virtual object that need to be shot, and does not render other virtual elements.

24. The method according to any one of claims 1 to 13, characterized in that: The virtual object is a virtual scene, and the step of setting a virtual camera in response to a reset instruction for a cover image of the virtual object includes: In response to an instruction to reset the cover image of the virtual object, the virtual camera is set within the virtual scene.

25. A device for resetting a cover image of a virtual object, characterized in that: The device comprises: A setting module, configured to set a virtual camera in response to a reset instruction for a cover image of a virtual object, wherein the virtual camera is configured to shoot the virtual object; A display module, used for displaying the image of the virtual object captured by the virtual camera in the cover editing area of ​​the cover reset page; An adjustment module, used for adjusting the position and / or posture of the virtual camera in response to an adjustment instruction of a user; An updating module is used to update the image of the virtual object adjusted in the cover editing area to the cover image of the virtual object.

26. An XR device, characterized in that include: A processor and a memory, the memory being used to store a computer program, and the processor being used to call and run the computer program stored in the memory to execute the method according to any one of claims 1 to 24.

27. A computer-readable storage medium, characterized in that: Used to store a computer program, the computer program causing a computer to execute the method according to any one of claims 1 to 24.

28. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 24 is implemented.

Citation Information

Cited By

  • Method and apparatus for generating cover image of virtual object, device, medium, and program

    EP4651093A1

  • Method and apparatus for generating cover image of virtual object, device, medium, and program

    WO2024148992A1