User attribute setting method and device based on virtual reality
Technical Field
The present disclosure relates to the field of virtual reality technologies, and in particular, to a method and an apparatus for setting user attributes based on virtual reality.
Background
Virtual Reality (VR) technology is a computer simulation system that creates and experiences a Virtual world, which uses a computer to create a simulated environment. The virtual reality technology mainly comprises the aspects of simulating environment, perception, natural skill, sensing equipment and the like. The simulated environment is a three-dimensional realistic image generated by a computer and dynamic in real time. Perception means that the ideal virtual reality should have the perception that everyone has. In addition to the visual perception generated by computer graphics technology, there are also perceptions such as auditory sensation, tactile sensation, force sensation, and movement, and even olfactory sensation and taste sensation, which are also called multi-perception. The natural skill refers to the head rotation, eyes, gestures or other human body behavior actions of a human, the data which is suitable for the actions of the participants is processed by the computer, and the real-time response is made to the input of the user and is respectively fed back to the five sense organs of the user. The sensing device refers to a three-dimensional interaction device.
In the related art, a user can set his user attributes in a virtual reality scene, but due to the immersive nature of virtual reality, the user cannot see the user attributes he sets, resulting in poor interactivity in setting the user attributes.
Disclosure of Invention
In view of this, the present disclosure provides a method and an apparatus for setting user attributes based on virtual reality, so as to solve the problem of poor interactivity in setting user attributes in a virtual field scene in the related art.
According to an aspect of the present disclosure, a method for setting user attributes based on virtual reality is provided, including:
under the condition that the visual focus of a user in a virtual reality scene is detected to enter an image reflection area, displaying the virtual user image of the user in the image reflection area;
under the condition that a setting operation aiming at user attributes is detected, setting the user attributes according to the setting operation, and determining virtual user images corresponding to the user attributes;
and under the condition that the virtual user image is changed, displaying the changed virtual user image in the image reflection area.
In one possible implementation, the method further includes:
and sending prompt information allowing the user attribute to be set under the condition that the visual focus of the user in the virtual reality scene is detected to enter the image reflection area.
In one possible implementation manner, issuing the prompt message allowing setting of the user attribute includes:
displaying a control for setting user attributes in the virtual reality scene; and/or the presence of a gas in the gas,
and sending out voice prompt information allowing the user attribute to be set.
In one possible implementation, the user attributes include one or more of a color, a style, an identity, a gender, an age, a species, and a character of the user in a virtual reality scene.
In one possible implementation, the image reflection area is a mirror area and/or a water surface area.
According to another aspect of the present disclosure, there is provided a virtual reality-based user attribute setting apparatus including:
the first display module is used for displaying the virtual user image of the user in the image reflection area under the condition that the visual focus of the user in the virtual reality scene is detected to enter the image reflection area;
the setting module is used for setting the user attribute according to the setting operation under the condition that the setting operation aiming at the user attribute is detected, and determining a virtual user image corresponding to the user attribute;
and the second display module is used for displaying the changed virtual user image in the image reflection area under the condition that the virtual user image is changed.
In one possible implementation, the apparatus further includes:
and the prompting module is used for sending out prompting information allowing the user attribute to be set under the condition that the visual focus of the user in the virtual reality scene is detected to enter the image reflection area.
In one possible implementation, the prompting module includes:
the first prompting sub-module is used for displaying a control for setting user attributes in the virtual reality scene; and/or the presence of a gas in the gas,
and the second prompting submodule is used for sending out voice prompting information allowing the user attribute to be set.
In one possible implementation, the user attributes include one or more of a color, a style, an identity, a gender, an age, a species, and a character of the user in a virtual reality scene.
In one possible implementation, the image reflection area is a mirror area and/or a water surface area.
According to another aspect of the present disclosure, there is provided a virtual reality-based user attribute setting apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
under the condition that the visual focus of a user in a virtual reality scene is detected to enter an image reflection area, displaying the virtual user image of the user in the image reflection area;
under the condition that a setting operation aiming at user attributes is detected, setting the user attributes according to the setting operation, and determining virtual user images corresponding to the user attributes;
and under the condition that the virtual user image is changed, displaying the changed virtual user image in the image reflection area.
According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium having instructions therein, which when executed by a processor of a terminal and/or a server, enable the terminal and/or the server to perform a virtual reality-based user attribute setting method, the method including:
under the condition that the visual focus of a user in a virtual reality scene is detected to enter an image reflection area, displaying the virtual user image of the user in the image reflection area;
under the condition that a setting operation aiming at user attributes is detected, setting the user attributes according to the setting operation, and determining virtual user images corresponding to the user attributes;
and under the condition that the virtual user image is changed, displaying the changed virtual user image in the image reflection area.
The virtual reality-based user attribute setting method and apparatus according to aspects of the present disclosure can display an avatar of a user through an image reflection region by detecting that a point of view of the user enters the image reflection region in a virtual reality scene, and set a user attribute according to the setting operation and determine an avatar corresponding to the user attribute in the case that the avatar is changed, and display the changed avatar in the image reflection region in the case that the avatar is changed, thereby enabling the user to visually see the avatar and the changing process of the avatar in the process of setting the user attribute by displaying the avatar through the image reflection region, and enabling the user to display the changing process of the avatar through the image reflection region, thereby enabling the user to improve interactivity in setting the user attribute in the virtual reality scene, and user experience can be improved.
Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1 shows a flowchart of an implementation of a virtual reality-based user attribute setting method according to an embodiment of the present disclosure.
Fig. 2 shows a schematic diagram of a mirror region 22 in a virtual reality scene 21 in a virtual reality-based user attribute setting method according to an embodiment of the present disclosure.
Fig. 3 is a block diagram illustrating a configuration of a virtual reality-based user attribute setting apparatus according to an embodiment of the present disclosure.
Fig. 4 shows an exemplary block diagram of a virtual reality-based user attribute setting apparatus according to an embodiment of the present disclosure.
Fig. 5 is a block diagram illustrating an apparatus 800 for virtual reality-based user attribute setting according to an example embodiment.
Detailed Description
Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present disclosure.
Example 1
Fig. 1 shows a flowchart of an implementation of a virtual reality-based user attribute setting method according to an embodiment of the present disclosure. The method can be applied to virtual reality equipment, and the virtual reality equipment can be integrated virtual reality equipment such as virtual reality glasses or virtual reality head displays, or split virtual reality equipment formed by installing terminal equipment such as a mobile phone on supporting equipment such as a virtual reality mirror frame. As shown in fig. 1, the method includes:
in step S11, in a case where it is detected that the apparent focal point of the user enters the image reflection area in the virtual reality scene, the virtual user character of the user is displayed in the image reflection area.
The virtual reality scene may be a three-dimensional virtual reality scene or a panoramic virtual reality scene, which is not limited herein.
In this embodiment, the visual focus of the user may be a user eye point identified by the virtual reality device.
In one possible implementation, the image reflection area is a mirror area and/or a water surface area.
In this embodiment, in the process that the visual focus of the user is in the image reflection area, the virtual user image of the user is displayed in the image reflection area.
In step S12, in the case where a setting operation for the user attribute is detected, the user attribute is set according to the setting operation, and the avatar corresponding to the user attribute is determined.
In this embodiment, the user may set the user attribute in the virtual reality scene. The virtual reality device may have operable hardware for interaction, such as a touch pad and/or hard buttons, etc., and may also support interaction by gaze or movement, such as sensors and/or gyroscopes that sense device movement or the user's point of view, etc. Therefore, in the present embodiment, the user can perform the setting operation for the user attribute through one or more of the touch panel, the hard key, the gaze operation, and the movement operation.
In one possible implementation, the user attributes include one or more of a color, a style, an identity, a gender, an age, a species, and a personality of the user in the virtual reality scene.
As one example of this implementation, the user attributes may include a color and a style of the user in the virtual reality scene. For example, if the color is green and the pattern is a luminous circle, it can be determined that the virtual user image corresponding to the user attribute is a green luminous circle.
As another example of this implementation, the user attributes may include an identity of the user in the virtual reality scenario. For example, if the identity of the user in the virtual reality scene is police, the clothes of the virtual user image corresponding to the user attribute may be police uniform; the identity of the user in the virtual reality scene is a nurse, and the clothes of the virtual user image corresponding to the user attribute can be nurse uniform.
As another example of this implementation, the user attributes may include a gender of the user in the virtual reality scenario. According to the gender of the user in the virtual reality scene, the shape and other characteristics of the virtual user image corresponding to the user attribute can be determined, which is not limited herein.
As another example of this implementation, the user attributes may include an age of the user in the virtual reality scene. According to the age of the user in the virtual reality scene, the skin aging degree and other characteristics of the virtual user image corresponding to the user attribute can be determined, which is not limited herein.
As another example of this implementation, the user attributes may include a species of the user in the virtual reality scene. According to the species of the user in the virtual reality scene, the basic form of the virtual user image corresponding to the user attribute can be determined. For example, if the user is a person in the virtual reality scene, it may be determined that the basic form of the virtual user image corresponding to the user attribute is a human form; if the species of the user in the virtual reality scene is a dog, the basic form of the virtual user image corresponding to the user attribute can be determined to be the form of the dog.
As another example of this implementation, the user attributes may include a personality of the user in the virtual reality scene. According to the character of the user in the virtual reality scene, the expression of the virtual user image corresponding to the user attribute can be determined, which is not limited herein. For example, if the character of the user in the virtual reality scene is bright, the expression of the virtual user image corresponding to the user attribute may be a smiling expression.
Although the user attributes are described above with examples of the color, style, identity, gender, age, species, and character of the user in the virtual reality scene, those skilled in the art will appreciate that the present disclosure should not be limited thereto. In fact, the user can flexibly set the user attribute according to the actual application scene.
In step S13, when the avatar is changed, the changed avatar is displayed in the image reflection area.
In this embodiment, in the process that the view focus of the user is in the image reflection area, if the setting operation for the user attribute is detected, the updated avatar may be determined in real time, and the updated avatar may be displayed in real time through the image reflection area, so that the user may see the effect of the setting operation for the user attribute through the image reflection area in real time.
Fig. 2 shows a schematic diagram of a mirror region 22 in a virtual reality scene 21 in a virtual reality-based user attribute setting method according to an embodiment of the present disclosure. For example, in the event that it is detected that the point of view of the user in the virtual reality scene enters the mirror region 22, a virtual user avatar may be displayed in the mirror region 22. When the view focus of the user is in the mirror region 22, if the setting operation for the user attribute is detected, the updated virtual user image can be determined in real time, and the updated virtual user image can be displayed in real time through the mirror region 22, so that the user can see the effect of the setting operation for the user attribute through the mirror region 22 in real time.
The embodiment can display the virtual user image through the image reflection area, and can display the change process of the virtual user image through the image reflection area in the process of setting the user attribute, so that a user can visually see the virtual user image and the change process of the virtual user image, the interactivity of setting the user attribute in a virtual scene can be improved, and the user experience can be improved.
In one possible implementation, the method further includes: and sending prompt information allowing the user attribute to be set when detecting that the visual focus of the user enters the image reflection area in the virtual reality scene. For example, the prompt message may prompt the user to set the user attribute through a physical terminal such as a touch pad and/or a hard key; alternatively, the prompt message may prompt the user to set the user attribute through a gaze operation and/or a movement operation, which is not limited herein.
In one possible implementation manner, issuing the prompt message allowing setting of the user attribute includes: displaying a control for setting user attributes in a virtual reality scene; and/or issuing voice prompt messages that allow user attributes to be set. In this implementation manner, for a control for setting user attributes displayed in a virtual reality scene, a user may trigger the control through one or more operation modes of a touch pad, a hard button, a gaze operation, and a movement operation, so as to set the user attributes.
Example 2
Fig. 3 is a block diagram illustrating a configuration of a virtual reality-based user attribute setting apparatus according to an embodiment of the present disclosure. As shown in fig. 3, the apparatus includes: the first display module 31 is configured to, in a case that it is detected that an apparent focal point of a user enters an image reflection area in a virtual reality scene, display a virtual user image of the user in the image reflection area; the setting module 32 is configured to set a user attribute according to a setting operation when the setting operation for the user attribute is detected, and determine a virtual user image corresponding to the user attribute; and a second display module 33, configured to display the changed avatar in the image reflection area when the avatar changes.
Fig. 4 shows an exemplary block diagram of a virtual reality-based user attribute setting apparatus according to an embodiment of the present disclosure. As shown in fig. 4:
in one possible implementation, the apparatus further includes: and the prompting module 34 is used for sending out prompting information allowing the user attribute to be set under the condition that the visual focus of the user in the virtual reality scene is detected to enter the image reflection area.
In one possible implementation, the prompting module 34 includes: a first prompting submodule 341, configured to display a control for setting a user attribute in the virtual reality scene; and/or a second prompt sub-module 342 for issuing voice prompt messages allowing setting of user attributes.
In one possible implementation, the user attributes include one or more of a color, a style, an identity, a gender, an age, a species, and a character of the user in the virtual reality scene.
In one possible implementation, the image reflection area is a mirror area and/or a water surface area.
The embodiment can display the virtual user image through the image reflection area, and can display the change process of the virtual user image through the image reflection area in the process of setting the user attribute, so that a user can visually see the virtual user image and the change process of the virtual user image, the interactivity of setting the user attribute in a virtual scene can be improved, and the user experience can be improved.
Example 3
Fig. 5 is a block diagram illustrating an apparatus 800 for virtual reality-based user attribute setting according to an example embodiment. For example, the apparatus 800 may be a virtual reality device, a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and so forth.
Referring to fig. 5, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, such as the memory 804 including instructions executable by the processor 820 of the device 800 to perform the above-described method.
The present disclosure may be systems, methods, and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for causing a processor to implement various aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present disclosure may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry that can execute the computer-readable program instructions implements aspects of the present disclosure by utilizing the state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the techniques in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.