WO2023160196A1 - 内容显示方法、装置、电子设备及存储介质 - Google Patents

内容显示方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2023160196A1
WO2023160196A1 PCT/CN2022/141346 CN2022141346W WO2023160196A1 WO 2023160196 A1 WO2023160196 A1 WO 2023160196A1 CN 2022141346 W CN2022141346 W CN 2022141346W WO 2023160196 A1 WO2023160196 A1 WO 2023160196A1
Authority
WO
WIPO (PCT)
Prior art keywords
sub
objects
target
compared
touch operation
Prior art date
Application number
PCT/CN2022/141346
Other languages
English (en)
French (fr)
Inventor
潘睿
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2023160196A1 publication Critical patent/WO2023160196A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts

Definitions

  • the present application relates to the field of computer technology, and more specifically, to a content display method, device, electronic equipment, and storage medium.
  • virtualized images can be used to interact with users, or to represent users through virtualized images.
  • the user can edit the virtualized image according to his/her preference. For example, the facial features and accessories of the virtualized image are edited.
  • the process of editing the virtualized image there is still a problem of inconvenient operation for the user.
  • the present application proposes a content display method, device, electronic equipment and storage medium.
  • the present application provides a content display method, the method comprising: displaying a virtual object display interface including a virtual object, the virtual object including editable sub-objects; responding to a touch acting on the virtual object control operation, based on the operation position of the touch operation, determine the target sub-object from the sub-objects included in the virtual object; display a material interface corresponding to the target sub-object, and the material interface includes a The material to target sub-objects for editing.
  • the present application provides a content display device, which includes: an interface display unit, configured to display a virtual object display interface including a virtual object, and the virtual object includes editable sub-objects; an object determination unit , for responding to the touch operation acting on the virtual object, and determining the target sub-object from the sub-objects included in the virtual object based on the operating position of the touch operation; the material display unit is used for displaying the object corresponding to the target A material interface corresponding to the sub-object, where the material interface includes materials for editing the target sub-object.
  • the present application provides an electronic device, including one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, The one or more programs are configured to perform the methods described above.
  • the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, wherein the above method is executed when the program code is running.
  • FIG. 1 shows a flow chart of a content display method proposed by an embodiment of the present application
  • Fig. 2 shows a schematic diagram of a virtual object display interface proposed by the present application
  • Fig. 3a shows a schematic diagram of a material interface corresponding to a display target sub-object proposed by the present application
  • Fig. 3b shows another schematic diagram of a material interface corresponding to a display target sub-object proposed by the present application
  • Figure 3c shows a schematic diagram of marking selected materials in the material interface in this application
  • Fig. 3d shows a schematic diagram of editing a virtual object according to a selected material in this application
  • FIG. 4 shows a flow chart of a content display method proposed by another embodiment of the present application.
  • FIG. 5 shows a schematic diagram in which multiple sub-objects are involved in the operation position of the touch operation in this application
  • Fig. 6 shows a schematic diagram of the material interface corresponding to the ear stud in the embodiment of the present application
  • FIG. 7 shows a flow chart of a content display method proposed by another embodiment of the present application.
  • Fig. 8a shows a schematic diagram of a material interface corresponding to a target sub-object in this application
  • Fig. 8b shows a schematic diagram of a material interface corresponding to another target sub-object in this application
  • Fig. 8c shows a schematic diagram of another material interface corresponding to a target sub-object in this application
  • FIG. 9 shows a flowchart of a content display method proposed by another embodiment of the present application.
  • Fig. 10a shows a schematic diagram of sub-objects with an overlapping relationship in the embodiment of the present application
  • Fig. 10b shows a schematic diagram of selection controls corresponding to sub-objects with an overlapping relationship in the embodiment of the present application
  • Fig. 10c shows a schematic diagram of selecting a target sub-object based on selection controls corresponding to sub-objects with an overlapping relationship in the embodiment of the present application
  • FIG. 11 shows a flow chart of a content display method proposed by another embodiment of the present application.
  • Fig. 12a shows a schematic diagram of identifying sub-objects in the embodiment of the present application
  • Fig. 12b shows a schematic diagram of identifying the selected material in the material interface in the embodiment of the present application
  • FIG. 13 shows a structural block diagram of a content display device proposed by an embodiment of the present application.
  • Fig. 14 shows a structural block diagram of an electronic device proposed by the present application
  • Fig. 15 is a storage unit for storing or carrying program codes for realizing the content display method according to the embodiment of the present application according to the embodiment of the present application.
  • virtualized images can be used to interact with users in many scenarios, or users can also represent themselves through virtualized images.
  • virtualized images can be used as customer service personnel to answer questions raised by users.
  • users can represent themselves through virtualized images.
  • the user can edit the virtualized image according to his/her preference. For example, the facial features and accessories of the virtualized image are edited, so as to change the virtualized image.
  • the process of editing the virtualized image there is still a problem of inconvenient operation for the user. Specifically, in a related process of editing a virtualized image, the user needs to operate a cumbersome operation menu to select a desired material to edit the virtualized image, which causes great inconvenience to the user.
  • the inventor proposes a content display method, device, electronic device, and storage medium in the present application. After displaying a virtual object display interface including a virtual object, it can respond to a touch operation acting on the virtual object, based on The operating position of the touch operation determines the target sub-object from the sub-objects included in the virtual object, and then directly displays the material interface corresponding to the target sub-object, and the material interface includes information for the target sub-object The material to be edited. Therefore, through the above method, the user can conveniently select the sub-object to be edited by directly performing a touch operation in the virtual object display interface including the virtual object, and make the electronic device synchronously display the sub-object determined based on the touch operation. The material interface corresponding to the sub-object, so that the user can edit the virtual object more conveniently.
  • a content display method provided by this application is applied to electronic equipment, and the method includes:
  • S110 Display a virtual object presentation interface including a virtual object, where the virtual object includes editable sub-objects.
  • the virtual object display interface is an interface capable of displaying virtual objects.
  • the virtual object display interface may be displayed in a 3D rendering window.
  • the virtual object displayed on the virtual object display interface is a virtual object in editing state.
  • the user can edit the virtual object to change the style of the virtual object.
  • the virtual object may include multiple sub-objects, and the sub-objects may be understood as components used to form the virtual object.
  • each sub-object can be understood as a sub-model for composing the 3D model.
  • the user can respectively edit the sub-objects included in the virtual object.
  • the included sub-objects may be different.
  • the virtual object can be a virtual head portrait (for example, a 3D virtual head portrait). Nose, Mouth, Mustache, Ears, Earrings, Hats and Collars etc.
  • the virtual object can also be other objects.
  • it can also be a virtual vehicle.
  • the sub-objects included in the virtual vehicle can be windows, body, tires, rearview mirrors and lights wait.
  • FIG. 2 what is shown in area 10 in FIG. 2 is a virtual object display interface, and there is a virtual avatar 11 on the virtual object display interface.
  • S120 In response to a touch operation acting on the virtual object, determine a target sub-object from sub-objects included in the virtual object based on an operation position of the touch operation.
  • the virtual object display interface may include a virtual object and a background area around the virtual object.
  • the background area can be understood as an area that only has a background color but does not further display content on the background color.
  • the touch operations acting on the virtual object may include touch operations directly acting on the virtual object itself, or may include touch operations acting on the background area.
  • the virtual object display interface only the virtual object can perform touch operations.
  • responding to the touch operation acting on the virtual object can actually be understood as responding to the touch operation acting on the virtual object display interface.
  • Touch operation of virtual objects For example, as shown in FIG. 2 , when only a virtual object can respond to a touch operation, only when the operation position of the touch operation is located in the virtual avatar 11 , the electronic device will determine the target sub-object.
  • both the virtual object and the blank area in the virtual object display interface can respond to touch operations. In this case, it can be based on whether the operation position of the touch operation directly acts on the virtual object or acts on the blank area. There are different ways of determining the target sub-object.
  • the responding to the touch operation acting on the virtual object includes: responding to the touch operation acting on the For the touch operation of the virtual object, the operation position of the touch operation is obtained, and the sub-object at the operation position is obtained as the target sub-object.
  • the electronic device may determine the target sub-object from the sub-objects included in the virtual object through the 3D picking technology and the operating position.
  • the user selects a 3D object by clicking on the 2D screen, and this process can be understood as 3D picking.
  • a ray is determined by the camera and touch points on the screen, and the ray shoots to the 3D world.
  • the first object that intersects with this ray in the 3D world is the selected object.
  • the sub-object that the user wants to edit may be deduced as the target sub-object according to the distances between the multiple sub-objects and the operation position.
  • S130 Display a material interface corresponding to the target sub-object, where the material interface includes materials for editing the target sub-object.
  • the target sub-object represents the sub-object that the user currently desires to edit.
  • the electronic device may directly display a material interface corresponding to the target sub-object, so that the user can use the material in the material interface to edit the target sub-object.
  • each material can cause the target sub-object to be displayed in different styles.
  • a material interface corresponding to the skin is displayed in the area 20, and multiple circular controls are displayed in the material interface corresponding to the skin.
  • the shape controls include a circle control 21 , a circle control 22 , a circle control 23 , a circle control 24 and a circle control 25 .
  • Each circular control represents a color material, and the corresponding color materials of multiple circular controls are different, so that users can select different color materials by clicking on different circular controls, which are used in electronic devices according to user selection The color material to change the color of the skin.
  • the material interface 27 corresponding to the beard can be displayed as shown in FIG. 3 b .
  • the material interface 27 shows a variety of materials that can be used to edit the beard, and each material corresponds to a style of the beard, so that different styles of beard can be obtained by editing the beard with different materials.
  • the user can realize the editing of the target sub-object by touching the desired material in the material interface. For example, as shown in Figure 3c, if the user touches the material identified by the dotted line frame 28, then the beard of the virtual object in the virtual object display interface will be modified to the material identified by the dotted line frame 28 as shown in Figure 3d The corresponding style to realize the editing of the beard.
  • a content display method in this embodiment, after displaying a virtual object display interface including a virtual object, it can respond to a touch operation acting on the virtual object, and based on the operating position of the touch operation, change from the virtual object to A target sub-object is determined from the included sub-objects, and then a material interface corresponding to the target sub-object is directly displayed, and materials for editing the target sub-object are included in the material interface. Therefore, through the above method, the user can conveniently select the sub-object to be edited by directly performing a touch operation in the virtual object display interface including the virtual object, and make the electronic device synchronously display the sub-object determined based on the touch operation. The material interface corresponding to the sub-object, so that the user can edit the virtual object more conveniently.
  • a content display method provided by the present application is applied to electronic equipment, and the method includes:
  • S210 Display a virtual object presentation interface including a virtual object, where the virtual object includes editable sub-objects.
  • S220 In response to a touch operation acting on the virtual object, acquire an operation position of the touch operation.
  • sub-objects at the operating position of the touch operation there may be multiple sub-objects at the operating position of the touch operation, and there may also be sub-objects with their own volume or smaller area among the multiple sub-objects.
  • the electronic device can first determine the corresponding sub-object to be compared according to the operating position.
  • the sub-object to be compared can be understood as the possible The child object selected by the user.
  • the acquiring the sub-object to be compared corresponding to the operation position includes: acquiring the sub-object at the operation position as the first sub-object; acquiring the second sub-object associated with the first sub-object object; the first sub-object and the second sub-object are used as sub-objects to be compared.
  • the electronic device may directly use the sub-object at the operating position as the first sub-object, then determine the second sub-object according to the sub-objects associated with the first sub-object, and combine the first sub-object and the second sub-object Sub-objects are used as sub-objects to be compared.
  • the first sub-object may be a sub-object determined according to a 3D pick-up technology after the electronic device responds to a touch operation.
  • adjacent sub-objects in the virtual object may be configured to have an association relationship.
  • the hair and ears are adjacent, and the hair and ears can be configured as interrelated sub-objects.
  • the ear and the stud are adjacent, you can configure the ear and the stud as sub-objects that are also related to each other.
  • the first sub-object determined by the electronic device is an ear
  • the corresponding determined second sub-object may include ear studs and hair.
  • the determined first sub-object is an ear stud
  • the corresponding determined second sub-object may be an ear.
  • the acquiring the sub-object at the operation position as the first sub-object includes: if there is a sub-object at the operation position, acquiring the sub-object at the operation position as the first sub-object;
  • a sub-object whose distance from the operation position is less than a specified distance is used as a sub-object to be compared.
  • the acquiring the second sub-object associated with the first sub-object includes: if the first sub-object is associated with sub-objects, taking the sub-object associated with the first sub-object as the second sub-object Two sub-objects; if the first sub-object is not associated with a sub-object, use the first sub-object as a target sub-object.
  • the relationship between sub-objects may be pre-configured by the developer, or may be individually defined by the user of the virtual object.
  • an association relationship table may be established in the electronic device to store the association relationship between the sub-objects.
  • the electronic device may acquire the association relationship with the first sub-object by querying the association relationship table.
  • the sub-object of is used as the second sub-object.
  • the electronic device may use sub-objects whose distance from the operating position of the touch operation is smaller than a distance threshold as sub-objects to be compared.
  • the distance threshold can be configured by default by the developer, or configured by the user of the electronic device according to his own operating habits.
  • S240 Determine a target sub-object based on the sub-objects to be compared.
  • the target sub-object can be further selected from the sub-objects to be compared.
  • the electronic device may determine a specific manner of determining the target sub-object according to the number of sub-objects to be compared.
  • the determining the target sub-object based on the sub-objects to be compared includes: if there are multiple sub-objects to be compared, respectively based on the distance between each of the multiple sub-objects to be compared and the operation position The distance, and the respective priorities of the plurality of sub-objects to be compared obtain the respective scores corresponding to the plurality of sub-objects to be compared, and the scores represent the probability that the corresponding sub-objects to be compared are selected; based on a plurality of sub-objects to be compared Scores corresponding to each of the sub-objects are determined from multiple sub-objects to be compared to determine the target sub-object.
  • the respective distances between the plurality of sub-objects to be compared and the operating position and the respective priorities of the plurality of sub-objects to be compared are respectively obtained corresponding to each of the plurality of sub-objects to be compared. , including: multiplying the respective distances of each sub-object to be compared from the operating position by a first preset value to obtain a first intermediate value; multiplying the respective priority values of each sub-object to be compared With the second preset value, the second intermediate value is obtained; the first intermediate value and the second intermediate value of each sub-object to be compared are added to obtain the corresponding scores of each sub-object to be compared; wherein, A sub-object with a smaller display area in the electronic device corresponds to a higher priority, and the smaller the value of the priority, the higher the priority, and the lower the score, the higher the probability of being selected.
  • D represents the distance between the sub-object to be compared and the operation position.
  • P represents the value of the priority of the sub-objects to be compared.
  • K1 (the first preset value) and K2 (the second preset value) are constants, which are used to adjust the degree of influence of D and P on the final calculated V.
  • the specific values of the first preset value and the second preset value may be set by developers based on experience values, or manually configured by users of electronic devices. Furthermore, the selection can also be made adaptively by the electronic device. For example, multiple sets of preset values may be preconfigured in the electronic device, and each set of preset values includes a first preset value and a second preset value. And, the first preset value in each group of preset values is different, the second preset value in each group of preset values is different, and the first preset value and the second preset value in each group of preset values Also different.
  • the electronic device may use one of a set of preset values by default to calculate the corresponding score of each sub-object to be compared. If it is detected that the user repeatedly touches the same position for a specified number of times, And each time the determined target sub-object does not correspond to multiple editing modes, the electronic device may switch the preset value used to calculate the score, for example, switch to calculate the score based on another set of preset values.
  • the second set of preset values can be used to calculate the corresponding scores of each sub-object to be compared. Furthermore, if it is necessary to switch preset values, the second set of preset values can be used Set preset values to calculate the corresponding scores for each sub-object to be compared.
  • the sum of the first preset value and the second preset value is 1, and in a set of preset values, the first preset value is smaller than the second preset value, and the first preset value Both the set value and the second preset value are greater than 0 and less than 1, and in another set of preset values, the first preset value is greater than the second preset value, and both the first preset value and the second preset value are greater than 0 and less than 1.
  • the first preset value and the second preset value are different in size, so that the aforementioned distances and priorities have different influences on the final score, so that even if the user is touching At the same location, the target sub-object finally determined by the electronic device may also be different.
  • the operation position of the user's touch operation is the position marked by the dotted circle 29 in FIG. 5, in this case, if the user actually wants to select earrings, There are also parts belonging to ears and hair within the identified range.
  • the first sub-object determined by the electronic device according to the 3D picking technology may be hair.
  • the electronic device may determine that the sub-objects associated with the hair include ear studs and ears, and then determine the ears and ear studs as the second sub-objects.
  • the obtained sub-objects to be compared include hair, ears and ear studs.
  • the sub-object with the smaller display area corresponds to a higher priority, and the smaller the value of the priority, the higher the priority.
  • the priority of the earrings can be the highest.
  • the value of the priority of ear studs may be 1.
  • the priority of the ear stud can be the ear, for example, the value of the priority of the ear can be 2.
  • the priority of the hair will be below the ears, for example, the value of the priority of the hair can be 3.
  • the score corresponding to the ear stud may be the lowest, and then the electronic device user actually has the highest probability of choosing the ear stud, and then the ear stud is determined as the target sub-object.
  • the electronic device will display a material interface corresponding to the ear stud as shown in FIG. 6 .
  • the sub-object to be compared may be directly used as the target sub-object.
  • S250 Display a material interface corresponding to the target sub-object, where the material interface includes materials for editing the target sub-object.
  • the content display method provided by this embodiment enables the user to conveniently select the sub-object to be edited by directly performing a touch operation on the virtual object display interface including the virtual object, and makes the electronic
  • the device synchronously displays the material interface corresponding to the sub-object determined based on the touch operation, so that the user can edit the virtual object more conveniently.
  • the first sub-object and the object associated with the first sub-object can be used as sub-objects to be compared, and then Based on the distance between the sub-objects to be compared and the operating position and the priority of each sub-object to be compared, the target sub-objects are determined from the sub-objects to be compared, thereby improving the accuracy of determining the target sub-objects, thereby reducing user repetition. Manipulate to select the number and frequency of sub-objects.
  • a content display method provided by the present application is applied to electronic devices, and the method includes:
  • S310 Display a virtual object presentation interface including a virtual object, where the virtual object includes editable sub-objects.
  • S320 In response to a touch operation acting on the virtual object, determine a target sub-object from sub-objects included in the virtual object based on an operation position of the touch operation.
  • S330 Obtain the number of touches corresponding to the target sub-object, wherein if the target sub-object is repeatedly touched, update the number of touches based on the number of times of repeated touches.
  • the target sub-object can be understood as the sub-object selected by the user for editing, and the number of touches of the target sub-object can be converted from the sub-object selected by the user for editing to the target sub-object Start the calculation.
  • the target sub-object determined based on the current touch operation is different from the target sub-object determined by the previous touch operation, the touched object corresponding to the target sub-object determined by the previous touch operation will be The number of times is cleared.
  • the electronic device determines that the target sub-object is a beard
  • the number of charges corresponding to the beard is 1.
  • the target sub-object re-determined in response to the touch operation is hair
  • the number of times the hair is touched that is, 1 time
  • the number of touches corresponding to the beard will be reset to zero.
  • the target sub-object re-determined in response to the touch operation is still hair, then it will be determined that the hair has been repeatedly touched twice, and the number of times the hair has been touched is updated to 2.
  • timing can be started synchronously for a specified duration, and within the specified duration, if the target sub-object is not detected again If there is a touch operation on the virtual object, the number of touch times corresponding to the determined target sub-object can be cleared, thereby reducing the difficulty of operation and avoiding misoperations to improve user experience.
  • S340 Determine an editing type corresponding to the target sub-object based on the number of times of being touched.
  • the sub-object of the face in the avatar may correspond to three editing types of skin color, age model and face shape.
  • the edit type of skin color can edit the virtual object from the dimension of skin color
  • the edit type of age model can edit the virtual avatar from the dimension of age
  • the edit type of face can edit the virtual avatar from the dimension of face shape to edit.
  • the user can determine the target sub-object by performing repeated operations on the target sub-object type of editing.
  • S350 Display a material interface corresponding to the editing type, where the material interface includes materials for editing the target sub-object.
  • the editing type of skin color can be used as the currently determined editing type, and then the material interface 31 corresponding to the face color can be displayed as shown in FIG. 8a.
  • There are multiple circular controls in the material interface 31 and different circular controls represent different colors. The user can select the desired face color by touching the circular controls in the material interface 31 .
  • the electronic device displays the image shown in Figure 8a
  • the target sub-object determined by the electronic device in response to the touch operation is still a face
  • it can be determined that the number of times the face has been touched is 2
  • the image shown in Figure 8b can be displayed
  • the displayed material interface will be switched to the material interface 32 corresponding to the age mode.
  • the image shown in Figure 8c can be displayed. display the content of the image.
  • the displayed material interface will be switched to the material interface 33 corresponding to the face shape.
  • Figure 8a When the electronic device displays Figure 8a, if the target sub-object determined by the electronic device in response to the touch operation is still a face, it can be determined that the number of times the face has been touched is 4, and then Figure 8a will be displayed again. That is, when the user repeatedly touches the same target sub-object, the electronic device may display material interfaces corresponding to each of the multiple editing modes corresponding to the target sub-object in a loop.
  • the editing type can also be switched in combination with the interval duration of touch operations and the number of touches.
  • the target sub-object is determined according to the touch operation (the number of touches is 1)
  • the edit type corresponding to the target sub-object when it is touched once will be obtained, and the corresponding edit type will be displayed. material interface.
  • the specified time period can be started. If a touch operation on the same target sub-object is detected again within the specified time period, the target sub-object will be The number of touches is increased by 1, and the material interface corresponding to the edit type corresponding to the number of touches after the increase of 1 is displayed.
  • the number of touches corresponding to the target sub-object will be cleared.
  • the content display method provided by this embodiment enables the user to conveniently select the sub-object to be edited by directly performing a touch operation on the virtual object display interface including the virtual object, and makes the electronic
  • the device synchronously displays the material interface corresponding to the sub-object determined based on the touch operation, so that the user can edit the virtual object more conveniently.
  • some sub-objects can correspond to multiple editing types, and then multiple editing types corresponding to the same sub-object can be switched through repeated touch operations on the same sub-object, thereby further The convenience of editing operations has been improved.
  • a content display method provided by the present application is applied to electronic devices, and the method includes:
  • S410 Display a virtual object presentation interface including a virtual object, where the virtual object includes editable sub-objects.
  • S420 In response to a touch operation acting on the virtual object, detect whether an operation position of the touch operation corresponds to an overlapping sub-object.
  • the respective display areas of multiple sub-objects it includes are known.
  • the acquired operation position is located in the display areas of multiple sub-objects at the same time, it can be determined that the operation position corresponds to overlapping sub-objects.
  • S440 Display a material interface corresponding to the target sub-object, where the material interface includes materials for editing the target sub-object.
  • the displaying the material interface corresponding to the target sub-object includes: obtaining the number of touches corresponding to the target sub-object, wherein, if the target sub-object is repeatedly touched, then based on repeated touches, The number of touches is updated according to the number of touches; the editing type corresponding to the target sub-object is determined based on the number of touches; and the material interface corresponding to the editing type is displayed.
  • S450 In response to the touch operation acting on the operation position, display a plurality of selection controls, where the plurality of selection controls are in one-to-one correspondence with the overlapping sub-objects.
  • S460 Use the control determined from the multiple selection controls as a target control, and display the material interface of the sub-object corresponding to the target control.
  • FIG. 10 a if the operation position of the touch operation is located at the dotted circle 34 shown in FIG. 10 a , there are two overlapping sub-objects, glasses and eyes, corresponding to the operation position. Among them, the glasses are sub-objects superimposed on it. Furthermore, glasses correspond to a variety of editing modes. Then, if the glasses are determined as the target sub-object, and the number of touches corresponding to the glasses is one, the material interface of the frame color editing mode can be displayed as shown in FIG. 10a.
  • the electronic device can be as shown in Figure 10b
  • the selection control named "glasses" and the selection control named eyes may be displayed synchronously in the virtual object display interface.
  • the selection control named glasses will be used as the target control.
  • the electronic device will display the material interface of the frame color editing mode corresponding to the glasses. If the selection control named eyes is selected, the selection control named eyes will be used as the target control. Correspondingly, as shown in FIG. 10 b , the electronic device will display the material interface corresponding to the eyes.
  • the content display method provided by this embodiment enables the user to conveniently select the sub-object to be edited by directly performing a touch operation on the virtual object display interface including the virtual object, and makes the electronic
  • the device synchronously displays the material interface corresponding to the sub-object determined based on the touch operation, so that the user can edit the virtual object more conveniently.
  • a solution is provided to determine the sub-object that the user actually wants to select from the sub-objects with overlapping positions, which further improves the virtual object editing. Ease of operation.
  • a content display method provided by the present application is applied to electronic devices, and the method includes:
  • S510 Display a virtual object presentation interface including a virtual object, where the virtual object includes editable sub-objects.
  • S520 In response to a touch operation acting on the virtual object, determine a target sub-object from sub-objects included in the virtual object based on an operation position of the touch operation.
  • the current material ID corresponding to the sub-object is the ID corresponding to the used material.
  • the electronic device may store the current material identification corresponding to each sub-object in the virtual object. Then, after the target sub-object is obtained, the material identifier corresponding to the target sub-object can be obtained from the stored material identifiers corresponding to the multiple sub-objects.
  • S540 Display a region corresponding to the material identifier in a material interface corresponding to the target sub-object, where the material interface includes materials for editing the target sub-object.
  • the electronic device displays the material interface corresponding to the target sub-object
  • the electronic device can automatically switch pages so that the target sub-object currently The material identified by the corresponding material identifier is visible to the user in the material interface.
  • the operating position of the touch operation is the position marked by the dotted circle 40 in FIG. 12a, in the material interface shown in FIG. The material identified by the material identifier currently corresponding to the target sub-object is marked.
  • a sub-object list may be displayed beside the virtual object display interface, and the sub-object corresponding to the currently displayed material interface may be identified in the sub-object list.
  • a horizontal bar may be displayed under "Skin" in the sub-object list (the content indicated by the dotted box in FIG. 12a). line as an identifier.
  • a horizontal line may be correspondingly displayed under “mouth” in the sub-object list as a mark.
  • the content display method provided by this embodiment enables the user to conveniently select the sub-object to be edited by directly performing a touch operation on the virtual object display interface including the virtual object, and makes the electronic
  • the device synchronously displays the material interface corresponding to the sub-object determined based on the touch operation, so that the user can edit the virtual object more conveniently.
  • not only the material interface corresponding to the target sub-object can be directly displayed, but also the area in the material interface corresponding to the material identifier currently corresponding to the target sub-object can be directly displayed.
  • a content display device 600 provided by the present application, the device 600 includes:
  • the interface display unit 610 is configured to display a virtual object presentation interface including a virtual object, and the virtual object includes editable sub-objects.
  • the object determining unit 620 is configured to, in response to a touch operation acting on the virtual object, determine a target sub-object from sub-objects included in the virtual object based on an operation position of the touch operation.
  • the material display unit 630 is configured to display a material interface corresponding to the target sub-object, and the material interface includes materials for editing the target sub-object.
  • the material display unit 630 is specifically configured to obtain a material identifier currently corresponding to the target sub-object; and display an area corresponding to the material identifier in the material interface corresponding to the target sub-object.
  • the object determining unit 620 is specifically configured to respond to the touch operation acting on the virtual object, obtain the operation position of the touch operation; obtain the sub-object to be compared corresponding to the operation position; The target sub-object is determined by comparing the sub-objects.
  • the object determination unit 620 is specifically configured to obtain the sub-object at the operation position as the first sub-object; obtain a second sub-object associated with the first sub-object; combine the first sub-object and The second sub-object is used as a sub-object to be compared.
  • the object determining unit 620 is specifically configured to acquire the sub-object at the operation position as the first sub-object if there is a sub-object at the operation position; if there is no sub-object at the operation position, combine The sub-objects whose distance from the operation position is less than the specified distance are used as the sub-objects to be compared.
  • the object determining unit 620 is specifically configured to use the sub-object associated with the first sub-object as the second sub-object if the first sub-object is associated with a sub-object; if the first sub-object If there is no sub-object associated, the first sub-object is used as the target sub-object.
  • the object determination unit 620 is specifically configured to, if there are multiple sub-objects to be compared, respectively based on the distances between the multiple sub-objects to be compared and the operation position, and the distances between the multiple sub-objects to be compared.
  • the respective priorities of the sub-objects obtain the corresponding scores of multiple sub-objects to be compared, and the scores represent the probability that the corresponding sub-objects to be compared are selected; based on the respective scores of multiple sub-objects to be compared, the Determine the target sub-object among the sub-objects to be compared.
  • the object determination unit 620 is specifically configured to multiply the respective distances of each sub-object to be compared from the operating position by a first preset value to obtain a first intermediate value; Multiplying the respective priority values by the second preset value to obtain a second intermediate value; adding the first intermediate value and the second intermediate value of each sub-object to be compared to obtain each sub-object to be compared Each corresponding score; wherein, the sub-object with a smaller display area in the electronic device corresponds to a higher priority, and the lower the score, the higher the probability of being selected.
  • the object determining unit 620 is specifically configured to, in response to a touch operation acting on the virtual object, obtain an operation position of the touch operation; obtain a sub-object at the operation position as a target sub-object.
  • the material display unit 630 is specifically configured to acquire the number of times the target sub-object is touched, wherein if the target sub-object is repeatedly touched, update the touched object based on the number of repeated touches. control times; determine the edit type corresponding to the target sub-object based on the touch times; display a material interface corresponding to the edit type.
  • the material display unit 630 is specifically configured to respond to a touch operation acting on the virtual object, and detect whether the operation position of the touch operation corresponds to an overlapping sub-object;
  • the material display unit 630 is specifically further configured to display a plurality of selection controls in response to a touch operation acting on the operation position, and the plurality of selection controls correspond to the overlapping sub-objects one by one, Taking the control determined from the plurality of selection controls as the target control, and displaying the material interface of the sub-object corresponding to the target control.
  • the material display unit 630 is specifically further configured to acquire the number of touches corresponding to the target sub-object, wherein, if the target sub-object is repeatedly touched, update the touched object based on the number of repeated touches. control times; determine the edit type corresponding to the target sub-object based on the number of touches;
  • a material interface corresponding to the editing type is displayed.
  • the content display device after displaying a virtual object display interface including a virtual object, it can respond to a touch operation acting on the virtual object, and based on the operating position of the touch operation, change from the virtual object to A target sub-object is determined from the included sub-objects, and then a material interface corresponding to the target sub-object is directly displayed, and materials for editing the target sub-object are included in the material interface. Therefore, through the above method, the user can conveniently select the sub-object to be edited by directly performing a touch operation in the virtual object display interface including the virtual object, and make the electronic device synchronously display the sub-object determined based on the touch operation. The material interface corresponding to the sub-object, so that the user can edit the virtual object more conveniently.
  • each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.
  • the embodiment of the present application also provides an electronic device 1000 capable of executing the above-mentioned content display method.
  • the electronic device 1000 includes one or more (only one is shown in the figure) processors 102 , a memory 104 , a camera 106 and an audio collection device 108 coupled to each other.
  • the memory 104 stores programs capable of executing the contents of the foregoing embodiments, and the processor 102 can execute the programs stored in the memory 104 .
  • the processor 102 may include one or more processing cores.
  • the processor 102 uses various interfaces and circuits to connect various parts of the entire electronic device 1000, and executes or executes instructions, programs, code sets, or instruction sets stored in the memory 104, and calls data stored in the memory 104 to execute Various functions of the electronic device 1000 and processing data.
  • the processor 102 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware.
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 102 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, and the like.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • the CPU mainly handles the operating system, user interface and application programs, etc.
  • the GPU is used to render and draw the displayed content
  • the modem is used to handle wireless communication.
  • the processor 102 may be a neural network chip.
  • it may be an embedded neural network chip (NPU).
  • the memory 104 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory). Memory 104 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • a content display device may be stored in the memory 104.
  • the content display device may be the aforementioned device 600 .
  • the memory 104 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like.
  • the electronic device 1000 may further include a network module 110 and a sensor module 112 in addition to the aforementioned components.
  • the network module 110 is used to implement information interaction between the electronic device 1000 and other devices, for example, transmitting device control instructions, manipulation request instructions, and status information acquisition instructions. However, when the electronic device 200 is specifically a different device, its corresponding network module 110 may be different.
  • the sensor module 112 may include at least one sensor. Specifically, the sensor module 112 may include, but is not limited to: a level, a light sensor, a motion sensor, a pressure sensor, an infrared heat sensor, a distance sensor, an acceleration sensor, and other sensors.
  • the pressure sensor may be a sensor for detecting pressure generated by pressing on the electronic device 1000 . That is, the pressure sensor detects pressure generated by contact or press between the user and the electronic device, eg, contact or press between the user's ear and the mobile terminal. Therefore, the pressure sensor can be used to determine whether contact or pressure occurs between the user and the electronic device 1000, and the magnitude of the pressure.
  • the acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is still, and can be used to identify the application of electronic equipment 1000 attitude (such as horizontal and vertical screen switching, related games, magnetometer, etc.) Attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.
  • the electronic device 1000 may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, and a thermometer, which will not be repeated here.
  • the audio collection device 110 is configured to collect audio signals.
  • the audio collection device 110 includes multiple audio collection devices, and the audio collection devices may be microphones.
  • the network module of the electronic device 1000 is a radio frequency module, and the radio frequency module is used to receive and send electromagnetic waves, realize mutual conversion between electromagnetic waves and electrical signals, and communicate with a communication network or other devices.
  • the radio frequency module may include various existing circuit elements for performing these functions, such as antenna, radio frequency transceiver, digital signal processor, encryption/decryption chip, Subscriber Identity Module (SIM) card, memory and so on.
  • SIM Subscriber Identity Module
  • the radio frequency module can interact with external devices by sending or receiving electromagnetic waves.
  • a radio frequency module can send instructions to a target device.
  • FIG. 15 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • Program codes are stored in the computer-readable medium 800, and the program codes can be invoked by a processor to execute the methods described in the foregoing method embodiments.
  • the computer readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium).
  • the computer-readable storage medium 800 has a storage space for program code 810 for executing any method steps in the above-mentioned methods. These program codes can be read from or written into one or more computer program products.
  • Program code 810 may, for example, be compressed in a suitable form.
  • the content display method, device, electronic device, and storage medium provided by the present application can respond to touch operations acting on the virtual object after displaying the virtual object display interface including the virtual object, based on the The operating position of the touch operation determines the target sub-object from the sub-objects included in the virtual object, and then directly displays the material interface corresponding to the target sub-object, and the material interface includes a Edited footage. Therefore, through the above method, the user can conveniently select the sub-object to be edited by directly performing a touch operation in the virtual object display interface including the virtual object, and make the electronic device synchronously display the sub-object determined based on the touch operation. The material interface corresponding to the sub-object, so that the user can edit the virtual object more conveniently.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Architecture (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种内容显示方法、装置、电子设备及存储介质。所述方法包括:显示包括虚拟对象的虚拟对象展示界面,所述虚拟对象包括有可编辑的子对象(S110);响应作用于所述虚拟对象的触控操作,基于所述触控操作的操作位置从所述虚拟对象包括的子对象中确定目标子对象(S120);显示与所述目标子对象对应的素材界面,所述素材界面中包括用于对所述目标子对象进行编辑的素材(S130)。

Description

内容显示方法、装置、电子设备及存储介质
相关申请的交叉引用
本申请要求于2022年2月22日提交的申请号为202210162865.2的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。
技术领域
本申请涉及计算机技术领域,更具体地,涉及一种内容显示方法、装置、电子设备及存储介质。
背景技术
当前在许多场景下都可以通过虚拟化的形象与用户进行交互,或者通过虚拟化的形象来表征用户。并且,用户可以通过自己的喜好来对该虚拟化的形象进行编辑。例如,编辑该虚拟化的形象的五官以及配饰等。但是,在相关的编辑虚拟化的形象的过程中,还存在用户操作较为不便的问题。
发明内容
鉴于上述问题,本申请提出了一种内容显示方法、装置、电子设备及存储介质。
第一方面,本申请提供了一种内容显示方法,所述方法包括:显示包括虚拟对象的虚拟对象展示界面,所述虚拟对象包括有可编辑的子对象;响应作用于所述虚拟对象的触控操作,基于所述触控操作的操作位置从所述虚拟对象包括的子对象中确定目标子对象;显示与所述目标子对象对应的素材界面,所述素材界面中包括用于对所述目标子对象进行编辑的素材。
第二方面,本申请提供了一种内容显示装置,所述装置包括:界面显示单元,用于显示包括虚拟对象的虚拟对象展示界面,所述虚拟对象包括有可编辑的子对象;对象确定单元,用于响应作用于所述虚拟对象的触控操作,基于所述触控操作的操作位置从所述虚拟对象包括的子对象中确定目标子对象;素材显示单元,用于显示与所述目标子对象对应的素材界面,所述素材界面中包括用于对所述目标子对象进行编辑的素材。
第三方面,本申请提供了一种电子设备,包括一个或多个处理器以及存储器;一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述的方法。
第四方面,本申请提供的一种计算机可读存储介质,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码运行时执行上述的方法。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了本申请实施例提出的一种内容显示方法的流程图;
图2示出了本申请提出的一种虚拟对象展示界面的示意图;
图3a示出了本申请提出的一种显示目标子对象对应的素材界面的示意图;
图3b示出了本申请提出的另一种显示目标子对象对应的素材界面的示意图;
图3c示出了本申请中在素材界面中标记选中素材的示意图;
图3d示出了本申请中根据选中素材对虚拟对象进行编辑的示意图;
图4示出了本申请另一实施例提出的一种内容显示方法的流程图;
图5示出了本申请中触控操作的操作位置会涉及多个子对象的示意图;
图6示出了本申请实施例中耳钉对应的素材界面的示意图;
图7示出了本申请再一实施例提出的一种内容显示方法的流程图;
图8a示出了本申请中一种目标子对象对应的素材界面的示意图;
图8b示出了本申请中另一种目标子对象对应的素材界面的示意图;
图8c示出了本申请中再一种目标子对象对应的素材界面的示意图;
图9示出了本申请另一实施例提出的一种内容显示方法的流程图;
图10a示出了本申请实施例中对具有重叠关系的子对象的示意图;
图10b示出了本申请实施例中对具有重叠关系的子对象对应的选择控件的示意图;
图10c示出了本申请实施例中基于具有重叠关系的子对象对应的选择控件进行目标子对象选择的示意图;
图11示出了本申请又一实施例提出的一种内容显示方法的流程图;
图12a示出了本申请实施例中对子对象进行标识的示意图;
图12b示出了本申请实施例中在素材界面中对选中的素材进行标识的示意图;
图13示出了本申请实施例提出的一种内容显示装置的结构框图;
图14示出了本申请提出的一种电子设备的结构框图;
图15是本申请实施例的用于保存或者携带实现根据本申请实施例的内容显示方法的程序代码的存储单元。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
随着计算机技术的发展,在许多场景下可以通过虚拟化的形象来与用户进行交互,或者用户也可以通过虚拟化的形象来表征自己。例如,在一些购物平台中可以通过虚拟化的形象来作为客服人员解答用户提出的问题等。再例如,在社交平台中,用户可以通过虚拟化的形象来代表自己。
并且,用户可以通过自己的喜好来对该虚拟化的形象进行编辑。例如,编辑该虚拟化的形象的五官以及配饰等,从而实现对虚拟化的形象进行改变。但是,在相关的编辑虚拟化的形象的过程中,还存在用户操作较为不便的问题。具体地,在一种相关的编辑虚拟化形象的过程中,用户需要操作繁琐的操作菜单来选择所需的素材来对虚拟化的形象进行编辑,所以会给用户操作了极大的不便。
因此,发明人提出了本申请中的一种内容显示方法、装置、电子设备及存储介质,在显示包括虚拟对象的虚拟对象展示界面后,可以响应作用于所述虚拟对象的触控操作,基于所述触控操作的操作位置从所述虚拟对象包括的子对象中确定目标子对象,进而直接显示与所述目标子对象对应的素材界面,在素材界面中包括有用于对所述目标子对象进行编辑的素材。从而通过上述方式使得用户通过直接在包括有虚拟对象的虚拟对象展示界面中进行触控操作,就可以便利的选择所要进行编辑的子对象,并使得电子设备同步显示基于该触控操作所确定的子对象对应的素材界面,从而使得用户可以较为方便的对虚拟对象进行编辑。
下面则结合附图来对本申请所涉及的实施例进行介绍。
请参阅图1,本申请提供的一种内容显示方法,应用于电子设备,所述方法包括:
S110:显示包括虚拟对象的虚拟对象展示界面,所述虚拟对象包括有可编辑的子对象。
在本申请实施例中,虚拟对象展示界面为可以对虚拟对象进行展示的界面。例如,该虚拟对象展示界面可以是显示在3D渲染窗口中。其中,展示在该虚拟对象展示界面的虚拟对象为处于编辑状态的虚拟对象。在虚拟对象处于编辑状态下,用户可以对虚拟对象进行编辑,以改变虚拟对象的样式。
其中,虚拟对象可以包括有多个子对象,该子对象可以理解为用于组成虚拟对象的成分。例如,在虚拟对象为基于3D模型构建的情况下,每个子对象都可以理解为用于组成该3D模型的子模型。在虚拟对象展示界面中,用户可以对虚拟对象所包括的子对象分别进行编辑。并且,对于不同的虚拟对象,所包括的子对象可以不同。可选的,虚拟对象可以为虚拟头像(例如,3D虚拟头像),在虚拟对象为虚拟头像的情况下,虚拟头像所包括的子对象可以为头像形状、发型、皮肤、眉毛、眼镜、睫毛、鼻子、嘴、胡子、耳朵、耳饰、帽子以及领饰等。可选的,虚拟对象还可以是其他对象,例如,还可以为虚拟车辆,在为虚拟车辆的情况下,虚拟车辆所包括的子对象可以为车窗、车身、轮胎、后视镜以及车灯等。
示例性的,如图2所示,在图2中区域10所展示的为一种虚拟对象展示界面,并且在该虚拟对象展示界面有虚拟头像11。
S120:响应作用于所述虚拟对象的触控操作,基于所述触控操作的操作位置从所述虚拟对象包括的子对象中确定目标子对象。
作为一种方式,虚拟对象展示界面中可以包括有虚拟对象和虚拟对象周围的背景区域。该背景区域可以理解为仅有背景颜色而未在该背景颜色上进一步显示内容的区域。在本申请实施例中,作用于虚拟对象的触控操作可以包括直接作用在虚拟对象本身的触控操作,也可以包括作用在该背景区域的触控操作。
可选的,在虚拟对象展示界面中只有虚拟对象可以进行触控操作,在这种情况下,响应作用于所述虚拟对象的触控操作,则实际可以理解为响应作用于虚拟对象展示界面中虚拟对象的触控操作。例如,如图2所示,在只有虚拟对象可以对触控操作进行响应的情况下,只有当触控操作的操作位置位于虚拟头像11中时,电子设备才会进行目标子对象的确定。
可选的,虚拟对象展示界面中的虚拟对象和空白区域均可以响应触控操作,那么在这种情况下,可以根据触控操作的操作位置是直接作用于虚拟对象还是作用于空白区域而对应有不同的确定目标子对象的方式。
作为一种方式,所述响应作用于所述虚拟对象的触控操作,基于所述触控操作的操作位置从所述虚拟对象包括的子对象中确定目标子对象,包括:响应作用于所述虚拟对象的触控操作,获取所述触控操作的操作位置,获取所述操作位置处的子对象作为目标子对象。例如,电子设备可以通过3D拾取技术以及操作位置从虚拟对象包括的子对象中确定目标子对象。其中,用户通过点击2D屏幕来选择3D物体,这个过程就可以理解为3D拾取。在通过3D拾取技术选择3D物体的过程中,由摄像机与屏幕上的触控点确定一条射线,由此射线射向3D世界,在3D世界最先和此射线相交的物体就是被选中的物体。
作为一种方式,在触控操作的操作位置位于空白区域的情况下,则可以根据多个子对象与操作位置的距离来推测出用户想要编辑的子对象作为目标子对象。
S130:显示与所述目标子对象对应的素材界面,所述素材界面中包括用于对所述目标子对象进行编辑的素材。
其中,目标子对象表征的是用户当前期望进行编辑的子对象。在确定目标子对象后,电子设备可以直接显示目标子对象对应的素材界面,从而使得用户可以使用素材界面中的素材来对目标子对象进行编辑。在素材界面中包括多种素材的情况下,每种素材可以使得目标子对象显示为不同的样式。例如,示例性的,如图3a所示,在图3a中区域20中显示有皮肤(一种子对象)对应的素材界面,在皮肤对应的素材界面中显示有多个圆形控件,多个圆形控件包括圆形控件21、圆形控件22、圆形控件23、圆形控件24以及圆形控件25。每个圆形控件表征一种颜色素材,且多个圆形控件各自对应的颜色素材不同,从而使得用户可以通过点击不同的圆形控件来选择不同的颜色素材,以用于电子设备根据用户选择的颜色素材来对皮肤的颜色进行改变。
那么在响应于作用位置为图3a中虚线圆26所标识的位置的触控操作后,若确定目标子对象为胡子,则可以如图3b所示的显示胡子对应的素材界面27。在素材界面27中显示有多种可以对胡子进行编辑的素材,并且每种素材对应一种胡子的样式,从而使得通过不同的素材对胡子进行编辑则可以得到不同样式的胡子。
其中,在对目标子对象进行编辑的过程中,用户可以通过在素材界面中对所需的素材进行触控来实现对目标子对象进行编辑。例如,如图3c所示,若用户触控的为虚线框28所标识的素材,那么则会如图3d所示将虚拟对象展示界面中虚拟对象的胡子,修改为虚线框28所标识的素材所对应的样式,以实现对胡子的编辑。
本实施例提供的一种内容显示方法,在显示包括虚拟对象的虚拟对象展示界面后,可以响应作用于所述虚拟对象的触控操作,基于所述触控操作的操作位置从所述虚拟对象包括的子对象中确定目标子对象,进而直接显示与所述目标子对象对应的素材界面,在素材界面中包括有用于对所述目标子对象进行编辑的素材。从而通过上述方式使得用户通过直接在包括有虚拟对象的虚拟对象展示界面中进行触控操作,就可以便利的选择所要进行编辑的子对象,并使得电子设备同步显示基于该触控操作所确定的子对象对应的素材界面,从而使得用户可以较为方便的对虚拟对象进行编辑。
请参阅图4,本申请提供的一种内容显示方法,应用于电子设备,所述方法包括:
S210:显示包括虚拟对象的虚拟对象展示界面,所述虚拟对象包括有可编辑的子对象。
S220:响应作用于所述虚拟对象的触控操作,获取所述触控操作的操作位置。
S230:获取所述操作位置对应的待比对子对象。
需要说明的是,在触控操作的操作位置处可能会有多个子对象,并且在该多个子对象中可能还存在本身的体积或者面积较小的子对象,在这种情况下,为了便于用户可以更为容易且准确的选中所要编辑的子对象作为目标子对象,电子设备可以根据操作位置先确定对应的待比对子对象,该待比对子对象可以理解为在该操作位置处可能会被用户选择的子对象。并且,在本申请实施例中,可 以有多种的获取待比对子对象的方式。
作为一种方式,所述获取所述操作位置对应的待比对子对象,包括:获取所述操作位置处的子对象作为第一子对象;获取与所述第一子对象关联的第二子对象;将所述第一子对象和所述第二子对象作为待比对子对象。其中,电子设备可以直接将操作位置处的子对象作为第一子对象,然后根据与第一子对象之间有关联关系的子对象来确定第二子对象,并将第一子对象和第二子对象作为待比对子对象。
其中,第一子对象可以为电子设备响应于触控操作后,根据3D拾取技术所确定的子对象。再者,需要说明的是,在本申请实施例中,可以配置在虚拟对象中的位置相邻的子对象具有关联关系。示例性的,以虚拟对象为虚拟头像为例,在虚拟头像所包括的子对象中,头发与耳朵是相邻的,则可以配置头发与耳朵为相互关联的子对象。再例如,耳朵与耳钉是相邻的,则可以配置耳朵与耳钉也互为相互关联的子对象。若电子设备所确定的第一子对象为耳朵,对应所确定的第二子对象则可以包括耳钉和头发。再例如,若确定的第一子对象为耳钉,那么对应所确定的第二子对象则可以为耳朵。
可选的,所述获取所述操作位置处的子对象作为第一子对象,包括:若所述操作位置处存在子对象,获取所述操作位置处的子对象作为第一子对象;
若所述操作位置处不存在子对象(例如,操作位置处为空白区域),将与所述操作位置的距离小于指定距离的子对象作为待比对子对象。
可选的,所述获取与所述第一子对象关联的第二子对象,包括:若所述第一子对象关联有子对象,则将与所述第一子对象关联的子对象作为第二子对象;若所述第一子对象未关联有子对象,将所述第一子对象作为目标子对象。
需要说明的是,在本申请实施例中,子对象之间的关联关系可以由开发人员预先进行配置,也可以由虚拟对象的用户自己进行个性化的定义。可选的,在电子设备中可以通过建立关联关系表来存储子对象之间的关联关系,在这种方式下,电子设备可以通过查询该关联关系表来获取到与第一子对象有关联关系的子对象作为第二子对象。
作为另外一种方式,电子设备可以将与触控操作的操作位置之间的距离小于距离阈值的子对象均作为待比对子对象。可选的,该距离阈值可以由开发人员默认配置,也可以由电子设备的用户根据自己的操作习惯进行配置。
S240:基于所述待比对子对象确定目标子对象。
在获取得到待比对子对象后,则可以进一步的从待比对子对象中选取出目标子对象。其中,电子设备可以根据待比对子对象的数量来确定具体的确定目标子对象的方式。
作为一种方式,所述基于所述待比对子对象确定目标子对象,包括:若待比对子对象有多个,分别基于所述多个待比对子对象各自与所述操作位置的距离,以及所述多个待比对子对象各自的优先级得到多个待比对子对象各自对应的评分,所述评分表征对应的待比对子对象被选择的概率;基于多个待比对子对象各自对应的评分,从多个待比对子对象中确定目标子对象。
可选的,所述分别基于所述多个待比对子对象各自与所述操作位置的距离,以及所述多个待比对子对象各自的优先级得到多个待比对子对象各自对应的评分,包括:将每个待比对子对象各自与所述操作位置的距离乘以第一预设值,得到第一中间值;将每个待比对子对象各自的优先级的数值乘以第二预设值,得到第二中间值;将所述每个待比对子对象的第一中间值与第二中间值相加得到每个待比对子对象各自对应的评分;其中,在电子设备中的显示面积越小的子对象所对应的优先级越高且优先级的数值越小所表征的优先级越高,所述评分越低被选择的概率越高。示例性的,可以基于下列公式来计算得到每个待比对子对象各自对应的评分,该公式为:V=K1*D+K2*P。其中,D表征待比对子对象与操作位置的距离。P表征待比对子对象的优先级的数值。K1(第一预设值)和K2(第二预设值)为常数,用于调节D和P对最终计算得到的V的影响程度。
需要说明的是,在本申请实施例中,第一预设值和第二预设值的具体数值可以由开发人员根据经验值进行设定,也可以由电子设备的用户进行手动的配置。再者,也可以由电子设备自适应的进行选择。例如,在电子设备中可以预先配置多组预设值,每组预设值均包括有第一预设值和第二预设值。并且,在每组预设值中的第一预设值不同,每组预设值中的第二预设值不同,以及每组预设值中的第一预设值和第二预设值也不同。在这种情况下,电子设备可以默认使用其中一组预设值用于计算每个待比对子对象各自对应的评分,若检测到用户重复的对同一个位置进行指定次数的触控操作,并且每次所确定的目标子对象并未对应有多个编辑模式的情况下,电子设备可以对用计算评分的预设值进行切换,例如,切换为基于另一组预设值计算评分。例如,若多组预设值为包括第一组预设值以及第二组预设值,在当前正在使用第一组预设值进行每个待比对子对象各自对应的评分的情况下,若需要进行预设值的切换,则可以使用第二组预设值来计算每个待比对子对象各自对应 的评分,再者,若又需要进行预设值的切换,则可以使用第二组预设值来计算每个待比对子对象各自对应的评分。
例如,多种组预设值中,第一预设值和第二预设值的和为1,且在一组预设值中第一预设值小于第二预设值,且第一预设值和第二预设值均大于0且小于1,在另一组预设值中,第一预设值大于第二预设值,且第一预设值和第二预设值均大于0且小于1。在这种两组预设值中,第一预设值和第二预设值的大小不同,从而使得前述的距离和优先级对于最终的评分的影响程度不同,进而使得即使用户是在触控同一个位置,电子设备最终所确定的目标子对象也可能不同。
示例性的,下面再通过图5对确定待比对子对象以及根据待比对子对象确定目标子对象的一种方式进行介绍。
如图5所示,若用户的触控操作的操作位置为图5中虚线圆29所标识的位置,在这种情况下,若用户实际想要选择的是耳钉,但是在该虚线圆所标识的范围内还有属于耳朵和头发的部分,在这种情况下,电子设备根据3D拾取技术所确定的第一子对象可以为头发。然后,根据子对象之间的关联关系,电子设备可以确定与头发有关联关系的子对象包括耳钉和耳朵,进而会将耳朵和耳钉确定为第二子对象。然后,所得到的待比对子对象则包括头发、耳朵以及耳钉。其中,显示面积越小的子对象所对应的优先级越高且优先级的数值越小所表征的优先级越高,那么对于头发、耳朵以及耳钉而言,耳钉的优先级可以最高,例如耳钉的优先级的数值可以为1。然后,优先级在耳钉之下的可以为耳朵,例如,耳朵的优先级的数值可以为2。头发的优先级则会在耳朵之下,例如,头发的优先级的数值可以为3。然后,根据前述计算评分的方式所计算得到的评分中,耳钉对应的评分可能最低,进而电子设备用户实际是选择耳钉的概率最大,进而会将耳钉确定为目标子对象。对应的,电子设备会显示如图6所示的与耳钉对应的素材界面。
作为另外一种方式,若待比对子对象只有一个,那么则可以直接将待比对子对象作为目标子对象。
S250:显示与所述目标子对象对应的素材界面,所述素材界面中包括用于对所述目标子对象进行编辑的素材。
本实施例提供的一种内容显示方法,从而通过上述方式使得用户通过直接在包括有虚拟对象的虚拟对象展示界面中进行触控操作,就可以便利的选择所要进行编辑的子对象,并使得电子设备同步显示基于该触控操作所确定的子对象对应的素材界面,从而使得用户可以较为方便的对虚拟对象进行编辑。并且,在本实施例中,在触控操作处的第一子对象还关联有子对象的情况下,可以将第一子对象和第一子对象关联的对象共同作为待比对子对象,然后基于待比对子对象与操作位置的距离以及每个待对比子对象的优先级来从待比对子对象中确定目标子对象,进而提升了确定目标子对象的准确性,从而也降低用户反复进行操作以选取子对象的次数和频率。
请参阅图7,本申请提供的一种内容显示方法,应用于电子设备,所述方法包括:
S310:显示包括虚拟对象的虚拟对象展示界面,所述虚拟对象包括有可编辑的子对象。
S320:响应作用于所述虚拟对象的触控操作,基于所述触控操作的操作位置从所述虚拟对象包括的子对象中确定目标子对象。
S330:获取所述目标子对象对应的被触控次数,其中,若所述目标子对象被重复触控则基于重复触控的次数更新所述被触控次数。
其中,如前述内容所示,目标子对象可以理解为用户选中进行编辑的子对象,目标子对象的被触控次数可以从用户所选择进行编辑的子对象由其他子对象转换为该目标子对象开始进行计算。对应的,在基于当前的触控操作所确定的目标子对象与前一次触控操作所确定的目标子对象不同时,则会将前一次触控操作所确定的目标子对象对应的被触控次数清零。
例如,若电子设备在确定目标子对象为胡子的情况,胡子对应的被控次数则为1次。之后,若响应于触控操作重新确定的目标子对象为头发,那么则会开始计算头发的被触控次数(即1次),并将胡子对应的被触控次数清零。再之后,若响应于触控操作重新确定的目标子对象依然是头发,那么则会确定是对头发重复触控了2次,将头发的被触控次数更新为2。
可选的,在本申请实施例中,在响应于作用于虚拟对象的触控操作确定目标子对象后,可以同步开始进行计时指定时长,并在该指定时长的计时内,若未再次检测到有作用于虚拟对象的触控操作,则可以将该确定的目标子对象对应的被触控次数清零,从而降低操作难度,也避免引起误操作以提升用户体验。
S340:基于所述被触控次数确定所述目标子对象对应的编辑类型。
需要说明的是,对于一些子对象而言可能会对应有多种编辑类型,并且,不同的编辑类型可以从不同维度对虚拟对象的显示样式进行改变。例如,以虚拟头像为例,对于虚拟头像中的脸部这个子对象可以对应有皮肤颜色、年龄模型以及脸型这三个编辑类型。其中,通过皮肤颜色这个编辑类 型可以从皮肤颜色这个维度对虚拟对象进行编辑,通过年龄模型这个编辑类型可以从年龄这个维度对虚拟头像进行编辑,通过脸型这个编辑类型可以从脸型这个维度对虚拟头像进行编辑。
其中,在目标子对象对应的编辑类型有多个,且可以通过该被触控次数来确定目标子对象对应的编辑类型的情况下,用户可以通过对目标子对象进行重复的操作循环切换所确定的编辑类型。
S350:显示与所述编辑类型对应的素材界面,所述素材界面中包括用于对所述目标子对象进行编辑的素材。
示例性的,如图8a所示,在确定的目标子对象为脸部且是由其他目标子对象切换为确定脸部为目标子对象的情况下,则确定脸部的被触控次数为1,对应的,可以将皮肤颜色这个编辑类型作为当前所确定的编辑类型,进而可以如图8a中所示的显示脸部颜色对应的素材界面31。在素材界面31中有多个圆形控件,且不同的圆形控件代表不同的颜色,用户可以通过对该素材界面31中的圆形控件进行触控来选项所需的脸部颜色。在电子设备显示图8a中所示图像的情况下,若电子设备响应于触控操作确定的目标子对象依然是脸部,则可以确定脸部的被触控次数为2,进而可以显示图8b所示图像的内容。在图8b所示图像中,会将所显示的素材界面切换为年龄模式对应的素材界面32。在电子设备显示图8b所示图像的情况下,若电子设备响应于触控操作确定的目标子对象依然是脸部,则可以确定脸部的被触控次数为3,进而可以显示图8c所示图像的内容。在图8c所示图像中,会将所显示的素材界面切换为脸型对应的素材界面33。
在电子设备显示图8a的情况下,若电子设备响应于触控操作确定的目标子对象依然是脸部,则可以确定脸部的被触控次数为4,进而又会显示图8a。即,在用户重复的对同一个目标子对象进行触控的过程中,电子设备可以对目标子对象对应的多个编辑模式各自对应的素材界面进行循环显示。
作为一种方式,对于对应有多种编辑类型的子对象,还可以同时结合触控操作的间隔时长和被触控次数进行编辑类型的切换。在这种方式中,若根据触控操作确定目标子对象(被触控次数为1次)后,会获取该目标子对象被触控1次时对应的编辑类型,并显示该编辑类型对应的素材界面。再者,在该确定目标子对象的触控操作作用后可以开始计时指定时长,若在该指定时长内再次检测到有作用于该同一目标子对象的触控操作,则会将该目标子对象的被触控次数增加1次,并显示增加1次后的被触控次数对应的编辑类型所对应的素材界面。对应的,若在该指定时长内未检测到有触控操作,则会将该目标子对象对应的被触控次数清零。
本实施例提供的一种内容显示方法,从而通过上述方式使得用户通过直接在包括有虚拟对象的虚拟对象展示界面中进行触控操作,就可以便利的选择所要进行编辑的子对象,并使得电子设备同步显示基于该触控操作所确定的子对象对应的素材界面,从而使得用户可以较为方便的对虚拟对象进行编辑。并且,在本实施例中对于一些子对象可以对应有多种的编辑类型,进而可以通过对同一个子对象进行重复的触控操作来对同一个子对象对应的多个编辑类型进行切换,从而进一步的提升了编辑操作的便利性。
请参阅图9,本申请提供的一种内容显示方法,应用于电子设备,所述方法包括:
S410:显示包括虚拟对象的虚拟对象展示界面,所述虚拟对象包括有可编辑的子对象。
S420:响应作用于所述虚拟对象的触控操作,检测所述触控操作的操作位置是否对应有重叠的子对象。
需要说明的,对于虚拟对象而言,其所包括的多个子对象各自的显示区域是已知的。在这种情况下,若获取操作位置同时位于多个子对象的显示区域内,那么则可以确定该操作位置对应有重叠的子对象。
S430:若所述触控操作的操作位置对应有重叠的子对象,将重叠在上的子对象作为目标子对象。
S440:显示与所述目标子对象对应的素材界面,所述素材界面中包括用于对所述目标子对象进行编辑的素材。
作为一种方式,所述显示与所述目标子对象对应的素材界面,包括:获取所述目标子对象对应的被触控次数,其中,若所述目标子对象被重复触控则基于重复触控的次数更新所述被触控次数;基于所述被触控次数确定所述目标子对象对应的编辑类型;显示与所述编辑类型对应的素材界面。
S450:响应作用于所述操作位置的触控操作,显示多个选择控件,所述多个选择控件与所述重叠的子对象一一对应。
S460:将从所述多个选择控件中确定的控件作为目标控件,并显示所述目标控件对应的子对象的素材界面。
示例性的,如图10a所示,若触控操作的操作位置位于图10a中所示的虚线圆34处,在该操作位置对应有相互重叠的眼镜和眼睛这两个子对象。其中,眼镜是重叠在上的子对象。再者,眼镜对应有多种的编辑模式。那么眼镜确定为目标子对象,且眼镜对应的被触控次数为1次的情况,可以如图10a所示的显示镜框颜色编辑模式的素材界面。之后,若响应于触控操作且操作位置依然与图10a中所示的触控操作的操作位置相同的情况下,眼镜的被触控次数则更新为2,对应的,电子设备 可以如图10b中所示的显示眼镜的眼镜类型编辑模式对应的素材界面。并且,在虚拟对象展示界面中可以同步显示名称为“眼镜”的选择控件以及名称为眼睛的选择控件。
若其中的名称为眼镜的选择控件被选中,则会将名称为眼镜的选择控件作为目标控件,对应的,电子设备则会又显示眼镜对应的镜框颜色编辑模式的素材界面。若其中名称为眼睛的选择控件被选中,则会将名称为眼睛的选择控件作为目标控件,对应的,如图10b所示,电子设备则会显示眼睛对应的素材界面。
本实施例提供的一种内容显示方法,从而通过上述方式使得用户通过直接在包括有虚拟对象的虚拟对象展示界面中进行触控操作,就可以便利的选择所要进行编辑的子对象,并使得电子设备同步显示基于该触控操作所确定的子对象对应的素材界面,从而使得用户可以较为方便的对虚拟对象进行编辑。并且,在本实施例中在存在有位置重叠的子对象的情况下,提供一种从存在位置重叠的子对象中确定用户的实际所要选择的子对象的方案,进一步的提升了对虚拟对象编辑操作的便利性。
请参阅图11,本申请提供的一种内容显示方法,应用于电子设备,所述方法包括:
S510:显示包括虚拟对象的虚拟对象展示界面,所述虚拟对象包括有可编辑的子对象。
S520:响应作用于所述虚拟对象的触控操作,基于所述触控操作的操作位置从所述虚拟对象包括的子对象中确定目标子对象。
S530:获取所述目标子对象当前对应的素材标识。
需要说明的是,在用户使用某个素材对子对象进行编辑后,该子对象当前对应的素材标识则为所使用的素材对应的标识。并且,电子设备可以对虚拟对象中每个子对象当前对应的素材标识进行存储。那么在获取得到目标子对象后,可以从存储的多个子对象对应的素材标识中获取到目标子对象所对应的素材标识。
S540:显示与所述目标子对象对应的素材界面中与所述素材标识对应区域,所述素材界面中包括用于对所述目标子对象进行编辑的素材。
其中,在电子设备显示目标子对象对应的素材界面后,若目标子对象当前对应的素材标识所标识的素材并未直接被用户可见,那么电子设备可以自动进行页面的切换而使得目标子对象当前对应的素材标识所标识的素材在素材界面中被用户可见。示例性的,如图12a所示,若触控操作的操作位置为图12a虚线圆40所标识的位置,在图12b中所显示的素材界面中,还可以通过显示虚线框41对素材界面中目标子对象当前对应的素材标识所标识的素材进行标记。
再者,在本申请实施例中,还可以在虚拟对象展示界面旁边显示子对象列表,并可以在该子对象列表中标识当前所显示的素材界面对应的子对象。例如,请再参阅图12a,在图12a所显示的为关于皮肤的素材界面的情况下,在子对象列表(图12a中虚线框所标识的内容)中的“皮肤”下方可以对应显示一条横线作为标识。再例如,在图12ab右侧图像所显示的为关于嘴的素材界面的情况下,在子对象列表中的“嘴”下方可以对应显示一条横线作为标识。
本实施例提供的一种内容显示方法,从而通过上述方式使得用户通过直接在包括有虚拟对象的虚拟对象展示界面中进行触控操作,就可以便利的选择所要进行编辑的子对象,并使得电子设备同步显示基于该触控操作所确定的子对象对应的素材界面,从而使得用户可以较为方便的对虚拟对象进行编辑。并且,在本实施例中,不仅可以直接显示目标子对象对应的素材界面,还可以直接显示素材界面中与目标子对象当前对应的素材标识对应的区域。
请参阅图13,本申请提供的一种内容显示装置600,所述装置600包括:
界面显示单元610,用于显示包括虚拟对象的虚拟对象展示界面,所述虚拟对象包括有可编辑的子对象。
对象确定单元620,用于响应作用于所述虚拟对象的触控操作,基于所述触控操作的操作位置从所述虚拟对象包括的子对象中确定目标子对象。
素材显示单元630,用于显示与所述目标子对象对应的素材界面,所述素材界面中包括用于对所述目标子对象进行编辑的素材。
作为一种方式,素材显示单元630,具体用于获取所述目标子对象当前对应的素材标识;显示与所述目标子对象对应的素材界面中与所述素材标识对应区域。
作为一种方式,对象确定单元620,具体用于响应作用于所述虚拟对象的触控操作,获取所述触控操作的操作位置;获取所述操作位置对应的待比对子对象;基于所述待比对子对象确定目标子对象。
可选的,对象确定单元620,具体用于获取所述操作位置处的子对象作为第一子对象;获取与所述第一子对象关联的第二子对象;将所述第一子对象和所述第二子对象作为待比对子对象。
可选的,对象确定单元620,具体用于若所述操作位置处存在子对象,获取所述操作位置处的子对象作为第一子对象;若所述操作位置处不存在子对象,将与所述操作位置的距离小于指定距离的子对象作为待比对子对象。
可选的,对象确定单元620,具体用于若所述第一子对象关联有子对象,则将与所述第一子对象关联的子对象作为第二子对象;若所述第一子对象未关联有子对象,将所述第一子对象作为目标子对象。
可选的,对象确定单元620,具体用于若待比对子对象有多个,分别基于所述多个待比对子对象各自与所述操作位置的距离,以及所述多个待比对子对象各自的优先级得到多个待比对子对象各自对应的评分,所述评分表征对应的待比对子对象被选择的概率;基于多个待比对子对象各自对应的评分,从多个待比对子对象中确定目标子对象。
可选的,对象确定单元620,具体用于将每个待比对子对象各自与所述操作位置的距离乘以第一预设值,得到第一中间值;将每个待比对子对象各自的优先级的数值乘以第二预设值,得到第二中间值;将所述每个待比对子对象的第一中间值与第二中间值相加得到每个待比对子对象各自对应的评分;其中,在电子设备中的显示面积越小的子对象所对应的优先级越高,所述评分越低被选择的概率越高。
作为一种方式,对象确定单元620,具体用于响应作用于所述虚拟对象的触控操作,获取所述触控操作的操作位置;获取所述操作位置处的子对象作为目标子对象。
作为一种方式,素材显示单元630,具体用于获取所述目标子对象对应的被触控次数,其中,若所述目标子对象被重复触控则基于重复触控的次数更新所述被触控次数;基于所述被触控次数确定所述目标子对象对应的编辑类型;显示与所述编辑类型对应的素材界面。
作为一种方式,素材显示单元630,具体用于响应作用于所述虚拟对象的触控操作,检测所述触控操作的操作位置是否对应有重叠的子对象;
若对应有重叠的子对象,将重叠在上的子对象作为目标子对象。在这种方式中,素材显示单元630,具体还用于响应作用于所述操作位置的触控操作,显示多个选择控件,所述多个选择控件与所述重叠的子对象一一对应,将从所述多个选择控件中确定的控件作为目标控件,并显示所述目标控件对应的子对象的素材界面。
可选的,素材显示单元630,具体还用于获取所述目标子对象对应的被触控次数,其中,若所述目标子对象被重复触控则基于重复触控的次数更新所述被触控次数;基于所述被触控次数确定所述目标子对象对应的编辑类型;
显示与所述编辑类型对应的素材界面。
本实施例提供的一种内容显示装置,在显示包括虚拟对象的虚拟对象展示界面后,可以响应作用于所述虚拟对象的触控操作,基于所述触控操作的操作位置从所述虚拟对象包括的子对象中确定目标子对象,进而直接显示与所述目标子对象对应的素材界面,在素材界面中包括有用于对所述目标子对象进行编辑的素材。从而通过上述方式使得用户通过直接在包括有虚拟对象的虚拟对象展示界面中进行触控操作,就可以便利的选择所要进行编辑的子对象,并使得电子设备同步显示基于该触控操作所确定的子对象对应的素材界面,从而使得用户可以较为方便的对虚拟对象进行编辑。
需要说明的是,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性。另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
下面将结合图14对本申请提供的一种电子设备进行说明。
请参阅图14,基于上述的内容显示方法、装置,本申请实施例还提供的一种可以执行前述内容显示方法的电子设备1000。电子设备1000包括相互耦合的一个或多个(图中仅示出一个)处理器102、存储器104、摄像头106以及音频采集装置108。其中,该存储器104中存储有可以执行前述实施例中内容的程序,而处理器102可以执行该存储器104中存储的程序。
其中,处理器102可以包括一个或者多个处理核。处理器102利用各种接口和线路连接整个电子设备1000内的各个部分,通过运行或执行存储在存储器104内的指令、程序、代码集或指令集,以及调用存储在存储器104内的数据,执行电子设备1000的各种功能和处理数据。可选地,处理器102可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器102可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器102中,单独通过一块通信芯片进行实现。作为一种方式,处理器102可以为神经网络芯片。例如,可以为嵌入式神经网络芯片(NPU)。
存储器104可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器104可用于存储指令、程序、代码、代码集或指令集。例如,存储器104中可以存储 有内容显示装置。该内容显示装置可以为前述的装置600。存储器104可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。
再者,电子设备1000除了前述所示的器件外,还可以包括网络模块110以及传感器模块112。
所述网络模块110用于实现电子设备1000与其他设备之间的信息交互,例如,传输设备控制指令、操纵请求指令以及状态信息获取指令等。而当电子设备200具体为不同的设备时,其对应的网络模块110可能会有不同。
传感器模块112可以包括至少一种传感器。具体地,传感器模块112可包括但并不限于:水平仪、光传感器、运动传感器、压力传感器、红外热传感器、距离传感器、加速度传感器、以及其他传感器。
其中,压力传感器可以检测由按压在电子设备1000产生的压力的传感器。即,压力传感器检测由用户和电子设备之间的接触或按压产生的压力,例如由用户的耳朵与移动终端之间的接触或按压产生的压力。因此,压力传感器可以用来确定在用户与电子设备1000之间是否发生了接触或者按压,以及压力的大小。
其中,加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备1000姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。另外,电子设备1000还可配置陀螺仪、气压计、湿度计、温度计等其他传感器,在此不再赘述。
音频采集装置110,用于进行音频信号采集。可选的,音频采集装置110包括有多个音频采集器件,该音频采集器件可以为麦克风。
作为一种方式,电子设备1000的网络模块为射频模块,该射频模块用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。所述射频模块可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。例如,该射频模块可以通过发送或者接收的电磁波与外部设备进行交互。例如,射频模块可以向目标设备发送指令。
请参考图15,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。
计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。
综上所述,本申请提供的一种内容显示方法、装置、电子设备及存储介质,在显示包括虚拟对象的虚拟对象展示界面后,可以响应作用于所述虚拟对象的触控操作,基于所述触控操作的操作位置从所述虚拟对象包括的子对象中确定目标子对象,进而直接显示与所述目标子对象对应的素材界面,在素材界面中包括有用于对所述目标子对象进行编辑的素材。从而通过上述方式使得用户通过直接在包括有虚拟对象的虚拟对象展示界面中进行触控操作,就可以便利的选择所要进行编辑的子对象,并使得电子设备同步显示基于该触控操作所确定的子对象对应的素材界面,从而使得用户可以较为方便的对虚拟对象进行编辑。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (20)

  1. 一种内容显示方法,其特征在于,所述方法包括:
    显示包括虚拟对象的虚拟对象展示界面,所述虚拟对象包括有可编辑的子对象;
    响应作用于所述虚拟对象的触控操作,基于所述触控操作的操作位置从所述虚拟对象包括的子对象中确定目标子对象;
    显示与所述目标子对象对应的素材界面,所述素材界面中包括用于对所述目标子对象进行编辑的素材。
  2. 根据权利要求1所述的方法,其特征在于,所述响应作用于所述虚拟对象的触控操作,基于所述触控操作的操作位置从所述虚拟对象包括的子对象中确定目标子对象,包括:
    响应作用于所述虚拟对象的触控操作,获取所述触控操作的操作位置;
    获取所述操作位置对应的待比对子对象;
    基于所述待比对子对象确定目标子对象。
  3. 根据权利要求2所述的方法,其特征在于,所述获取所述操作位置对应的待比对子对象,包括:
    获取所述操作位置处的子对象作为第一子对象;
    获取与所述第一子对象关联的第二子对象;
    将所述第一子对象和所述第二子对象作为待比对子对象。
  4. 根据权利要求3所述的方法,其特征在于,所述获取所述操作位置处的子对象作为第一子对象,包括:
    若所述操作位置处存在子对象,获取所述操作位置处的子对象作为第一子对象。
  5. 根据权利要求3所述的方法,其特征在于,所述获取与所述第一子对象关联的第二子对象,包括:
    若所述第一子对象关联有子对象,则将与所述第一子对象关联的子对象作为第二子对象;
    若所述第一子对象未关联有子对象,将所述第一子对象作为目标子对象。
  6. 根据权利要求3所述的方法,其特征在于,所述获取所述操作位置处的子对象作为第一子对象,包括:
    响应于触控操作后,根据3D拾取技术确定所述操作位置处的子对象为第一子对象。
  7. 根据权利要求3所述的方法,其特征在于,所述获取与所述第一子对象关联的第二子对象,包括:
    通过查询该关联关系表获取到与第一子对象有关联关系的子对象作为第二子对象。
  8. 根据权利要求2所述的方法,其特征在于,所述获取所述操作位置对应的待比对子对象,包括:
    将与所述触控操作的操作位置之间的距离小于距离阈值的子对象均作为待比对子对象。
  9. 根据权利要求2所述的方法,其特征在于,所述基于所述待比对子对象确定目标子对象,包括:
    若待比对子对象有多个,分别基于所述多个待比对子对象各自与所述操作位置的距离,以及所述多个待比对子对象各自的优先级得到多个待比对子对象各自对应的评分,所述评分表征对应的待比对子对象被选择的概率;
    基于多个待比对子对象各自对应的评分,从多个待比对子对象中确定目标子对象。
  10. 根据权利要求9所述的方法,其特征在于,所述分别基于所述多个待比对子对象各自与所述操作位置的距离,以及所述多个待比对子对象各自的优先级得到多个待比对子对象各自对应的评分,包括:
    将每个待比对子对象各自与所述操作位置的距离乘以第一预设值,得到第一中间值;
    将每个待比对子对象各自的优先级的数值乘以第二预设值,得到第二中间值;
    将所述每个待比对子对象的所述第一中间值与所述第二中间值相加得到每个待比对子对象各自对应的评分。
  11. 根据权利要求10所述的方法,其特征在于,在所述电子设备中的显示面积越小的子对象所对应的优先级越高,且优先级的数值越小所表征的优先级越高,所述评分越低被选择的概率越高。
  12. 根据权利要求1-11任一所述的方法,其特征在于,所述响应作用于所述虚拟对象的触控操作,基于所述触控操作的操作位置从所述虚拟对象包括的子对象中确定目标子对象,包括:
    响应作用于所述虚拟对象的触控操作,获取所述触控操作的操作位置;
    获取所述操作位置处的子对象作为目标子对象。
  13. 根据权利要求1-11任一所述的方法,其特征在于,所述显示与所述目标子对象对应的素材界 面,包括:
    获取所述目标子对象对应的被触控次数,其中,若所述目标子对象被重复触控则基于所述重复触控的次数更新所述被触控次数;
    基于所述被触控次数确定所述目标子对象对应的编辑类型;
    显示与所述编辑类型对应的素材界面。
  14. 根据权利要求13所述的方法,其特征在于,不同的编辑类型用于从不同维度对虚拟对象的显示样式进行改变。
  15. 根据权利要求1-11任一所述的方法,其特征在于,所述响应作用于所述虚拟对象的触控操作,基于所述触控操作的操作位置从所述虚拟对象包括的子对象中确定目标子对象;
    响应作用于所述虚拟对象的触控操作,检测所述触控操作的操作位置是否对应有重叠的子对象;
    若对应有重叠的子对象,将重叠在上的子对象作为目标子对象;
    所述显示与所述目标子对象对应的素材界面之后还包括:
    响应作用于所述操作位置的触控操作,显示多个选择控件,所述多个选择控件与所述重叠的子对象一一对应;
    将从所述多个选择控件中确定的控件作为目标控件,并显示所述目标控件对应的子对象的素材界面。
  16. 根据权利要求15所述的方法,其特征在于,所述显示与所述目标子对象对应的素材界面,包括:
    获取所述目标子对象对应的被触控次数,其中,若所述目标子对象被重复触控则基于重复触控的次数更新所述被触控次数;
    基于所述被触控次数确定所述目标子对象对应的编辑类型;
    显示与所述编辑类型对应的素材界面。
  17. 根据权利要求1-11任一所述的方法,其特征在于,所述显示与所述目标子对象对应的素材界面,包括:
    获取所述目标子对象当前对应的素材标识;
    显示与所述目标子对象对应的素材界面中与所述素材标识对应区域。
  18. 一种内容显示装置,其特征在于,所述装置包括:
    界面显示单元,用于显示包括虚拟对象的虚拟对象展示界面,所述虚拟对象包括有可编辑的子对象;
    对象确定单元,用于响应作用于所述虚拟对象的触控操作,基于所述触控操作的操作位置从所述虚拟对象包括的子对象中确定目标子对象;
    素材显示单元,用于显示与所述目标子对象对应的素材界面,所述素材界面中包括用于对所述目标子对象进行编辑的素材。
  19. 一种电子设备,其特征在于,包括一个或多个处理器以及存储器;
    一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行权利要求1-17任一所述的方法。
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码运行时执行权利要求1-17任一所述的方法。
PCT/CN2022/141346 2022-02-22 2022-12-23 内容显示方法、装置、电子设备及存储介质 WO2023160196A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210162865.2A CN116681872A (zh) 2022-02-22 2022-02-22 内容显示方法、装置以及电子设备
CN202210162865.2 2022-02-22

Publications (1)

Publication Number Publication Date
WO2023160196A1 true WO2023160196A1 (zh) 2023-08-31

Family

ID=87764649

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/141346 WO2023160196A1 (zh) 2022-02-22 2022-12-23 内容显示方法、装置、电子设备及存储介质

Country Status (2)

Country Link
CN (1) CN116681872A (zh)
WO (1) WO2023160196A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110248992A1 (en) * 2010-04-07 2011-10-13 Apple Inc. Avatar editing environment
CN109529340A (zh) * 2018-11-21 2019-03-29 腾讯科技(深圳)有限公司 虚拟对象控制方法、装置、电子设备及存储介质
CN110827379A (zh) * 2019-10-31 2020-02-21 北京字节跳动网络技术有限公司 虚拟形象的生成方法、装置、终端及存储介质
CN111432267A (zh) * 2020-04-23 2020-07-17 深圳追一科技有限公司 视频调整方法、装置、电子设备及存储介质
CN113805701A (zh) * 2021-09-16 2021-12-17 北京百度网讯科技有限公司 确定虚拟形象显示范围的方法、电子设备及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110248992A1 (en) * 2010-04-07 2011-10-13 Apple Inc. Avatar editing environment
CN109529340A (zh) * 2018-11-21 2019-03-29 腾讯科技(深圳)有限公司 虚拟对象控制方法、装置、电子设备及存储介质
CN110827379A (zh) * 2019-10-31 2020-02-21 北京字节跳动网络技术有限公司 虚拟形象的生成方法、装置、终端及存储介质
CN111432267A (zh) * 2020-04-23 2020-07-17 深圳追一科技有限公司 视频调整方法、装置、电子设备及存储介质
CN113805701A (zh) * 2021-09-16 2021-12-17 北京百度网讯科技有限公司 确定虚拟形象显示范围的方法、电子设备及存储介质

Also Published As

Publication number Publication date
CN116681872A (zh) 2023-09-01

Similar Documents

Publication Publication Date Title
CN110456907A (zh) 虚拟画面的控制方法、装置、终端设备及存储介质
WO2019105227A1 (zh) 应用图标的显示方法、终端及计算机可读存储介质
US10564712B2 (en) Information processing device, information processing method, and program
WO2020233403A1 (zh) 三维角色的个性化脸部显示方法、装置、设备及存储介质
CN111917918B (zh) 基于增强现实的事件提醒管理方法、装置以及存储介质
CN108646920A (zh) 识别交互方法、装置、存储介质及终端设备
CN108876878B (zh) 头像生成方法及装置
CN109272473B (zh) 一种图像处理方法及移动终端
CN111127595A (zh) 图像处理方法及电子设备
CN112148404B (zh) 头像生成方法、装置、设备以及存储介质
CN109471586B (zh) 一种键帽配色方法、装置和终端设备
WO2019184679A1 (zh) 游戏实现方法、装置、存储介质及电子设备
CN111461985A (zh) 图片处理方法及电子设备
CN110822641A (zh) 空调器及其控制方法、装置和可读存储介质
CN111080747B (zh) 一种人脸图像处理方法及电子设备
CN108681398A (zh) 基于虚拟人的视觉交互方法及系统
CN109164908B (zh) 一种界面控制方法及移动终端
CN112449098B (zh) 一种拍摄方法、装置、终端及存储介质
WO2019071562A1 (zh) 一种数据处理方法及终端
WO2023160196A1 (zh) 内容显示方法、装置、电子设备及存储介质
CN109547696B (zh) 一种拍摄方法及终端设备
CN114564101A (zh) 一种三维界面的控制方法和终端
CN109634503B (zh) 一种操作响应方法及移动终端
CN115033133B (zh) 渐进式的信息展示方法、装置、电子设备及存储介质
CN112766389B (zh) 图像分类方法、图像分类模型的训练方法、装置和设备

Legal Events

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

Ref document number: 22928439

Country of ref document: EP

Kind code of ref document: A1