Virtual object construction method, device and computer readable storage medium
By displaying candidate placement information in voxel game, helping users confirm the position and direction of the second construction unit, the problem of users frequently turning their perspectives is solved, and the construction efficiency of virtual objects is improved.
Patent Information
- Application Number
- CN202410275842.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-11
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2044-03-11
AI Technical Summary
In voxel games, users need to frequently rotate their perspective to adjust the placement of virtual objects, resulting in low construction efficiency of virtual objects.
By in response to the user placing the first construction unit in the virtual scene, the first prompt information is displayed, and the candidate placement information of the second construction unit, including the candidate placement position and direction. After the user confirms, the second construction unit is placed according to the candidate placement information until the iteration stop condition is satisfied.
Reduces the operation frequency and improves the construction efficiency of virtual objects, allowing users to continuously place construction units without frequently adjusting their perspective.
Smart Images

Figure CN118217633B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a virtual object construction method, a virtual object construction device and a computer-readable storage medium. Background Art
[0002] In some virtual scenes realized by computer technology, users can construct some complex virtual objects, such as buildings, statues, and even virtual characters, by placing virtual objects. For example, in a game scene, users can construct virtual objects by placing volume elements (such as block-shaped virtual objects). This kind of game can be called a voxel game.
[0003] In the related art, for voxel games on mobile devices (such as mobile phones, tablets, and other devices), the placement of virtual objects is changed by adjusting the crosshair position in the middle of the screen. Summary of the invention
[0004] The inventors of the present disclosure have discovered that the above-mentioned related technologies have the following problems: users need to change the placement position by constantly rotating the viewing angle, which makes the operation frequency more frequent, resulting in lower efficiency in constructing virtual objects.
[0005] In view of this, the present disclosure proposes a virtual object construction technology solution, which can improve the construction efficiency of virtual objects.
[0006] According to some embodiments of the present disclosure, a virtual object construction method is provided, comprising: in response to a user placing a first construction unit in a virtual scene, displaying first prompt information for prompting candidate placement information of a second construction unit, the candidate placement information being predicted based on a placement position of the first construction unit; in response to a user confirming the first prompt information, placing the second construction unit based on the candidate placement information to construct a virtual object.
[0007] In some embodiments, the candidate placement information includes a candidate placement position and a candidate direction, and the candidate direction points from the placement position of the first construction unit to the candidate placement position.
[0008] In some embodiments, the virtual object construction method further includes: in response to the second construction unit being placed in the virtual scene, displaying second prompt information for prompting the user to place the next construction unit along the candidate direction; in response to the next construction unit being placed in the virtual scene, updating the next construction unit to the second construction unit; and repeating the above steps until the iteration stop condition is met.
[0009] In some embodiments, the iteration stopping condition includes that the number of iterations exceeds a threshold and / or the candidate placement position conflicts with an existing building unit in the virtual scene.
[0010] In some embodiments, the candidate placement information includes multiple candidate building unit positions, the multiple candidate building unit positions and multiple building units placed by the user in the virtual scene constitute a target shape, the target shape is predicted based on the placement positions of the multiple building units, and the multiple building units include a first building unit.
[0011] In some embodiments, placing the second building unit according to the placement information includes: starting from the first building unit, and placing the second building unit according to a plurality of candidate building unit positions until a target shape is formed.
[0012] In some embodiments, the first prompt information includes relevant information of multiple candidate shapes, each of the multiple candidate shapes is predicted based on the placement position of multiple building units that have been placed, wherein placing the second building unit according to the candidate placement information includes: in response to the user confirming the target shape among the multiple candidate shapes, placing the second building unit according to the target shape.
[0013] In some embodiments, the first prompt information includes contour information of the target shape, and in response to a user's modification operation on the contour information, the target shape is modified to update the candidate placement information.
[0014] In some embodiments, the placement position of the first construction unit is determined according to the intersection of a ray passing through a designated point in the virtual scene and an existing construction unit in the virtual scene.
[0015] According to some other embodiments of the present disclosure, a virtual object construction device is provided, including: a display unit, in response to a user placing a first construction unit in a virtual scene, displaying first prompt information for prompting candidate placement information of a second construction unit, the candidate placement information being predicted based on a placement position of the first construction unit; and a placement unit, in response to a user confirming an operation on the first prompt information, placing the second construction unit based on the candidate placement information to construct a virtual object.
[0016] In some embodiments, the candidate placement information includes a candidate placement position and a candidate direction, and the candidate direction points from the placement position of the first construction unit to the candidate placement position.
[0017] In some embodiments, in response to the second building unit being placed in the virtual scene, the display unit displays second prompt information for prompting the user to place the next building unit along the candidate direction, and in response to the next building unit being placed in the virtual scene, the placement unit updates the next building unit to the second building unit, and the display unit and the placement unit repeat the above steps until the iteration stop condition is met.
[0018] In some embodiments, the iteration stopping condition includes that the number of iterations exceeds a threshold and / or the candidate placement position conflicts with an existing building unit in the virtual scene.
[0019] In some embodiments, the candidate placement information includes multiple candidate building unit positions, the multiple candidate building unit positions and multiple building units placed by the user in the virtual scene constitute a target shape, the target shape is predicted based on the placement positions of the multiple building units, and the multiple building units include a first building unit.
[0020] In some embodiments, the placement unit takes the first building unit as a starting point and places a second building unit according to a plurality of candidate building unit positions until a target shape is formed.
[0021] In some embodiments, the first prompt information includes relevant information of multiple candidate shapes, each of the multiple candidate shapes is predicted based on the placement position of multiple building units that have been placed, and the placement unit places the second building unit based on the target shape in response to the user confirming the target shape among the multiple candidate shapes.
[0022] In some embodiments, the first prompt information includes contour information of the target shape, and in response to a user's modification operation on the contour information, the target shape is modified to update the candidate placement information.
[0023] In some embodiments, the placement position of the first construction unit is determined according to the intersection of a ray passing through a designated point in the virtual scene and an existing construction unit in the virtual scene.
[0024] According to some further embodiments of the present disclosure, there is provided a virtual object construction device, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute the virtual object construction method in any one of the above embodiments based on instructions stored in the memory device.
[0025] According to some further embodiments of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the virtual object construction method in any of the above embodiments is implemented.
[0026] According to some further embodiments of the present disclosure, a computer program product is provided, comprising instructions, which, when executed by a processor, enable the processor to execute the virtual object construction method in any one of the above embodiments.
[0027] In the above embodiment, the predicted placement position of the next building unit is prompted to the user based on the placement position of the building unit that has been placed. In this way, the user does not need to perform frequent operations, but only needs to confirm the predicted placement position to complete the continuous placement of the building units, thereby improving the construction efficiency of the virtual object. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0029] The present disclosure may be more clearly understood from the following detailed description with reference to the accompanying drawings:
[0030] Figure 1 A flowchart showing some embodiments of the virtual object construction method of the present disclosure;
[0031] Figure 2a to 2g Schematic diagrams showing some embodiments of the virtual object construction method disclosed herein;
[0032] Figure 3 Flowcharts showing other embodiments of the virtual object construction method disclosed herein;
[0033] Figure 4 A block diagram showing some embodiments of the virtual object construction apparatus of the present disclosure;
[0034] Figure 5 A block diagram showing some other embodiments of the virtual object construction device disclosed herein;
[0035] Figure 6 A block diagram showing some further embodiments of the virtual object construction device of the present disclosure. DETAILED DESCRIPTION
[0036] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless otherwise specifically stated.
[0037] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0038] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
[0039] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.
[0040] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0041] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0042] As mentioned above, the position of the next building unit can be determined by using the ray emitted from the screen crosshair and the focus of the building unit already placed in the virtual scene. In this case, the user needs to constantly adjust the position of the crosshair to change the position of the building unit; the crosshair is located at the center of the screen and is always unchanged, so the user needs to constantly rotate the viewing angle to adjust the ray emitted from the crosshair and the focus of the virtual scene.
[0043] Therefore, for users who need to build virtual objects (such as building a house, etc.), the placement conditions of the building units are relatively complex and cumbersome. The user player needs to constantly rotate the screen perspective, and each rotation of the perspective can only place one building unit, which is very cumbersome and inefficient.
[0044] In view of the above technical problems, the technical solution disclosed in the present invention prompts the user by predicting the placement position of the construction unit, thereby reducing the operation frequency and improving the construction efficiency.
[0045] For example, the technical solution of the present disclosure can be implemented through the following embodiments.
[0046] Figure 1 A flowchart showing some embodiments of the virtual object construction method of the present disclosure.
[0047] like Figure 1 As shown, in step 110, in response to the user placing a first building unit in the virtual scene, first prompt information is displayed to prompt candidate placement information of a second building unit.
[0048] In some embodiments, the candidate placement information is predicted based on the placement position of the first building unit. For example, the possible placement of the next building unit can be predicted based on the placement position, placement direction, nearby building units, etc. of the building units already placed by the user to determine the candidate placement information.
[0049] In some embodiments, the candidate placement information includes a candidate placement position and a candidate direction, and the candidate direction points from the placement position of the first construction unit to the candidate placement position. For example, a prompt mark can be displayed at the candidate placement position as the first prompt information to prompt the user.
[0050] For example, the prompt mark can be displayed in a display style different from the placed building units, such as a building unit icon with a dotted outline and a specified fill color. In this way, the position of the subsequent building unit can be intuitively displayed, thereby improving construction efficiency.
[0051] For example, the prompt mark may also include an icon that can prompt the placement direction of the next building unit, such as an arrow icon, text information, etc. In this way, the placement continuation direction of the subsequent building units can be intuitively displayed, thereby improving the construction efficiency.
[0052] Below through Figure 2a , 2b The embodiment in the figure exemplifies the prediction and prompting method of the next building block.
[0053] Figure 2a-2b Schematic diagrams showing some embodiments of the virtual object construction method of the present disclosure.
[0054] like Figure 2a As shown, the user can control the virtual character 22a to move to the virtual scene where the virtual object is to be constructed. For example, the placement position of the first construction unit can be determined according to the intersection of the ray passing through the specified point in the virtual scene and the existing construction unit in the virtual scene. For example, the candidate placement position 21a of the first construction unit is determined according to the ray emitted from the position 20a at the center of the virtual scene and the focus of the placed construction unit.
[0055] like Figure 2b As shown, in response to the user placing the first building unit at the placement position 21a, the candidate placement position 22b and candidate direction of the second building unit are predicted based on the placement position. For example, an arrow icon 20b can be used to indicate a candidate direction (such as a vertical direction of the bottom surface of the first building unit where the crosshair is located), to indicate to the user that the subsequent placement direction is to extend upward from the first building unit as the starting point.
[0056] After the user is prompted with the predicted candidate placement position and candidate direction of the second building unit, the user can continue to Figure 1 Step 120 in the process constructs a virtual object.
[0057] In step 120, in response to the user's confirmation operation on the first prompt information, the second construction unit is placed according to the candidate placement information to construct the virtual object. For example, the confirmation operation may include the user clicking or long pressing a designated button.
[0058] In the above embodiment, the predicted placement position of the next building unit is prompted to the user based on the placement position of the building unit that has been placed. In this way, the user does not need to perform frequent operations, but only needs to confirm the predicted placement position to complete the continuous placement of the building units, thereby improving the construction efficiency of the virtual object.
[0059] In some embodiments, in response to the second building unit being placed in the virtual scene, second prompt information is displayed to prompt the user to place the next building unit along the candidate direction; in response to the next building unit being placed in the virtual scene, the next building unit is updated to the second building unit; and the above steps are repeated until the iteration stop condition is met.
[0060] For example, the extension direction in which the user continues to place building units may be predicted as a candidate direction based on the placement positions, placement directions, nearby building units, etc. of the first building unit and the second building unit.
[0061] In some embodiments, the iteration stopping condition includes that the number of iterations exceeds a threshold and / or the candidate placement position conflicts with an existing building unit in the virtual scene.
[0062] In this way, through the above iterative process, the placement continuation direction of subsequent construction units can be intuitively displayed. The user does not need to adjust the viewing angle, but only needs to continue to confirm to complete the placement of multiple construction units, thereby improving construction efficiency.
[0063] Below through Figure 2c , 2d The embodiment in the figure illustrates an exemplary way of iteratively placing the next building unit.
[0064] Figure 2c~2d Schematic diagrams showing some embodiments of the virtual object construction method of the present disclosure.
[0065] like Figure 2c As shown, in response to the user placing the second building unit at the placement position 22b predicted based on the first building unit, the placement candidate direction and candidate placement position 23c of the next building unit can be predicted based on the placement position 22b, or the placement position 21a and the placement position 22b.
[0066] For example, the arrow icon 20c can be used to indicate a candidate direction as the second prompt information, which is used to indicate to the user that the subsequent placement direction is to extend upward from the second building unit as the starting point; in response to the user placing the next building unit at the placement position 23c, the building unit is used as the second building unit to predict the candidate direction of the next building unit. Similarly, each round of iterative processing updates the second building unit and the next building unit to generate the second prompt information until the iteration condition is met.
[0067] like Figure 2d As shown, after the user places the next building unit at the placement position 23c, the screen crosshair is moved to the position 20d. In response to the change in the crosshair position, the prediction logic of the previous candidate direction prediction can be canceled, and the user is prompted to reselect the placement position, such as the placement position 21d; in response to the user determining the placement position 21d, the crosshair is kept at the position 20d and the processing method defined in the embodiment in the above steps 110 and 120 is continued.
[0068] In this way, by continuously confirming the candidate placement information, the user can continuously place construction units along the candidate placement direction without adjusting the viewing angle, and quickly build virtual objects (such as houses, bridges, roads, etc.) covering a large area, thereby improving construction efficiency.
[0069] In some embodiments, the candidate placement information includes multiple candidate building unit positions, and the multiple candidate building unit positions and multiple building units that the user has placed in the virtual scene constitute a target shape. The target shape is predicted based on the placement positions of the multiple building units that have been placed, and the multiple building units that have been placed include the first building unit.
[0070] For example, the target shape can be predicted based on the shape, type, surrounding environment and other related information of the multiple building units that have been placed; the type can include the material type of the building unit (such as brick, metal, wood, etc.), and the surrounding environment can include forests, cities, villages, etc.
[0071] For example, if the shape formed by the multiple construction units that have been placed is a small rectangular block, it can be predicted that the user wants to build a cube; if the shape formed by the multiple construction units that have been placed is a plurality of cylindrical objects and the material type is bricks, it can be predicted that the user wants to build a bridge.
[0072] In some embodiments, starting from the first building unit, second building units are placed according to multiple candidate building unit positions until a target shape is formed. For example, in response to a user determining a prompted target shape, multiple second building units may be placed to form the target shape.
[0073] In this way, the target shape that the user wants to build can be predicted to prompt candidate positions of multiple building units, so that multiple building units can be placed at one time, thereby improving construction efficiency.
[0074] Below through Figure 2e The embodiment in this example illustrates the method of predicting the target shape.
[0075] Figure 2e Schematic diagrams showing some embodiments of the virtual object construction method of the present disclosure.
[0076] like Figure 2e As shown, according to the placement positions 21e (including 4 unit positions) of multiple construction units that have been placed by the user in the virtual scene, the placement positions 22e (including 4 unit positions) of multiple candidate construction units are predicted.
[0077] For example, placement position 21e of multiple building units that the user has placed in the virtual scene forms a smaller cuboid, and it can be predicted that the user wants to build a cube; in response to the multiple building units that have been placed at placement position 21e and the multiple second building units to be placed at placement position 22e being able to form a cube, the user is prompted that placement position 22e is a candidate placement position.
[0078] In some embodiments, the first prompt information includes information related to a plurality of candidate shapes, each of the plurality of candidate shapes being predicted based on a placement position of a plurality of already placed building units. In response to the user confirming a target shape among the plurality of candidate shapes, a second building unit is placed based on the target shape.
[0079] For example, multiple possible candidate shapes can be predicted based on the shapes, types, surrounding environments, and other related information of the multiple building units that have been placed. For example, if the shape of the multiple building units that have been placed is a small cuboid, it can be predicted that the user may want to build a large cube or a large cuboid.
[0080] For example, description information of these candidate shapes may be displayed for the user to select, such as image description information, text description information, etc. of these candidate shapes may be displayed for the user to select.
[0081] In this way, the computer's automatic prediction and the user's active selection can be combined to predict a target shape that is more in line with the expected target, thereby improving construction efficiency and quality.
[0082] Below through Figure 2f , 2g The embodiment in this example illustrates the prediction method of candidate shapes.
[0083] Figure 2f , 2g Schematic diagrams showing some embodiments of the virtual object construction method of the present disclosure.
[0084] like Figure 2f As shown, the shape formed by the placement positions 212 of the placed multiple building units is a small cuboid, and it can be predicted that the user wants to build a large cube or a large cuboid. In this case, a thumbnail 21fa of a large cube and a thumbnail 21fb of a large cuboid can be displayed in the display area 21f as image description information of candidate shapes for the user to select.
[0085] In some embodiments, in response to a user selecting the description information of one of the candidate shapes, the description information of the candidate shape is displayed in a display style different from that of the description information of other candidate shapes (eg, different color, size, etc.).
[0086] For example, in response to a user selecting description information of one of the candidate shapes, contour information corresponding to the candidate shape may be displayed.
[0087] like Figure 2f As shown, in response to the user selecting the thumbnail 21fa, the thumbnail 21fa is displayed in a color different from the thumbnail 21fb; the placement position 22e corresponding to the thumbnail 21fa can also be displayed to form the outline information corresponding to the thumbnail 21fa. The multiple building blocks placed at the placement position 21e and the multiple second building blocks to be placed at the placement position 22e can form a cube corresponding to the thumbnail 21fa.
[0088] like Figure 2g As shown, in response to the user selecting thumbnail 21fb, the thumbnail 21fb is displayed in a color different from thumbnail 21fa; the placement position 22g corresponding to thumbnail 21fb can also be displayed, and the contour information corresponding to thumbnail 21fb has been formed. The multiple building units placed at the placement position 21e and the multiple second building units to be placed at the placement position 22g can form a larger cube corresponding to thumbnail 21fb.
[0089] For example, in response to the user determining the placement position 22e or the placement position 22g, a plurality of second building units are placed at one time to form a corresponding target shape.
[0090] In this way, the computer's automatic prediction and the user's active selection can be combined to predict a target shape that is more in line with the expected target, and multiple construction units can be placed at one time, thereby improving construction efficiency and quality.
[0091] In some embodiments, the first prompt information includes contour information of the target shape, and in response to a user's modification operation on the contour information, the target shape is modified to update the candidate placement information.
[0092] In some embodiments, the target shape may be displayed in a dotted frame, and the user may modify the target shape through a modification operation, such as a long press, a click, and the like.
[0093] For example, in response to a user's modification operation on a target shape, text description information of the target shape is displayed; in response to a user's modification of the text description information, the target shape is modified according to the modified text description information.
[0094] For example, in response to a user long pressing the outline information of a target shape (such as a cuboid), the text description information of the target shape "cuboid" is displayed; in response to the user modifying the text description information to "cylinder", the outline information of the target shape is modified to a cylinder outline.
[0095] In this way, a target shape that better meets the expected target can be generated, and multiple building units can be placed at one time, thereby improving construction efficiency and quality.
[0096] Below through Figure 3 The embodiment in the figure exemplifies the processing process of the virtual object construction method.
[0097] Figure 3 Flowcharts showing other embodiments of the virtual object construction method of the present disclosure.
[0098] like Figure 3 As shown, in step 310, the user can control the virtual character to move to the virtual scene where the virtual object is to be constructed, and the candidate placement position information is displayed at the crosshair position. For example, the candidate placement position can be determined based on the ray emitted from the crosshair in the virtual scene and the focus of the construction unit already existing in the virtual scene.
[0099] In step 320 , in response to the user placing the first building unit, candidate placement positions and candidate directions of the second building unit are predicted and prompted according to the placement position of the first building unit.
[0100] In step 330 , in response to the user confirming the candidate placement position and the candidate direction, a second building unit is placed; in response to the user not moving the position of the crosshairs, steps 310 and 320 are iterated to continuously place building units.
[0101] In step 340, in response to the user moving the crosshair position or changing the candidate placement position (such as changing it through a function key such as an arrow key), the user is prompted with the changed candidate placement position.
[0102] In step 350, a target shape is predicted based on the shapes, types, surroundings, and other related information of the multiple building units that have been placed. The types may include the material type of the building units (such as bricks, metals, wood, etc.), and the surroundings may include forests, cities, rural areas, etc. For example, multiple candidate shapes may be predicted to select the target shape from them.
[0103] In step 360, description information of these candidate shapes is displayed for the user to select, such as image description information, text description information, etc. of these candidate shapes can be displayed for the user to select.
[0104] In step 370, the outline information of the target shape selected by the user is displayed to the user. For example, the target shape may be displayed in a dotted frame.
[0105] In step 380 , in response to the user's selection operation on the outline information, a second building unit is placed starting from the placed first building unit to form a target shape.
[0106] In step 390, in response to the user's modification operation on the outline information, the target shape is modified to update the candidate placement information. For example, in response to the user's modification operation on the target shape, the text description information of the target shape is displayed; in response to the user's modification of the text description information, the target shape is modified according to the modified text description information.
[0107] For example, in response to a user long pressing the outline information of a cuboid, text description information of the target shape "cuboid" is displayed; in response to a user modifying the text description information to "cylinder", the outline information of the target shape is modified to a cylinder outline.
[0108] In step 395, the contour information of the modified target shape is displayed.
[0109] Figure 4 A block diagram showing some embodiments of the virtual object construction device of the present disclosure.
[0110] like Figure 4 As shown, the virtual object construction device 4 includes: a display unit 41, which is used to display first prompt information in response to the user placing a first construction unit in the virtual scene, and is used to prompt candidate placement information of the second construction unit, and the candidate placement information is predicted based on the placement position of the first construction unit; a placement unit 42, which is used to place the second construction unit according to the candidate placement information in response to the user's confirmation operation on the first prompt information, so as to construct the virtual object.
[0111] In some embodiments, the candidate placement information includes a candidate placement position and a candidate direction, and the candidate direction points from the placement position of the first construction unit to the candidate placement position.
[0112] In some embodiments, in response to the second building unit being placed in the virtual scene, the display unit 41 displays second prompt information for prompting the user to place the next building unit along the candidate direction, and in response to the next building unit being placed in the virtual scene, the placement unit 42 updates the next building unit to the second building unit, and the display unit 41 and the placement unit 42 repeat the above steps until the iteration stop condition is met.
[0113] In some embodiments, the iteration stopping condition includes that the number of iterations exceeds a threshold and / or the candidate placement position conflicts with an existing building unit in the virtual scene.
[0114] In some embodiments, the candidate placement information includes multiple candidate building unit positions, the multiple candidate building unit positions and multiple building units placed by the user in the virtual scene constitute a target shape, the target shape is predicted based on the placement positions of the multiple building units, and the multiple building units include a first building unit.
[0115] In some embodiments, the placement unit 42 takes the first building unit as a starting point and places a second building unit according to a plurality of candidate building unit positions until a target shape is formed.
[0116] In some embodiments, the first prompt information includes relevant information of multiple candidate shapes, each of the multiple candidate shapes is predicted based on the placement position of multiple building units that have been placed, and the placement unit 42 places the second building unit based on the target shape in response to the user confirming the target shape among the multiple candidate shapes.
[0117] In some embodiments, the first prompt information includes contour information of the target shape, and in response to a user's modification operation on the contour information, the target shape is modified to update the candidate placement information.
[0118] In some embodiments, the placement position of the first construction unit is determined according to the intersection of a ray passing through a designated point in the virtual scene and an existing construction unit in the virtual scene.
[0119] In the above embodiment, the predicted placement position of the next building unit is prompted to the user based on the placement position of the building unit that has been placed. In this way, the user does not need to perform frequent operations, but only needs to confirm the predicted placement position to complete the continuous placement of the building units, thereby improving the construction efficiency of the virtual object.
[0120] Figure 5 A block diagram showing some other embodiments of the virtual object construction device of the present disclosure.
[0121] like Figure 5 As shown, the virtual object construction device 5 of this embodiment includes: a memory 51 and a processor 52 coupled to the memory 51, and the processor 52 is configured to execute the virtual object construction method in any embodiment of the present disclosure based on the instructions stored in the memory 51.
[0122] The memory 51 may include, for example, a system memory, a fixed non-volatile storage medium, etc. The system memory may store, for example, an operating system, an application program, a boot loader, a database, and other programs.
[0123] Figure 6 A block diagram showing some further embodiments of the virtual object construction device of the present disclosure.
[0124] like Figure 6 As shown, the virtual object construction device 6 of this embodiment includes: a memory 610 and a processor 620 coupled to the memory 610 , and the processor 620 is configured to execute the virtual object construction method in any one of the aforementioned embodiments based on the instructions stored in the memory 610 .
[0125] The memory 610 may include, for example, a system memory, a fixed non-volatile storage medium, etc. The system memory may store, for example, an operating system, an application program, a boot loader, and other programs.
[0126] The virtual object construction device 6 may also include an input / output interface 630, a network interface 640, a storage interface 650, etc. These interfaces 630, 640, 650, the memory 610, and the processor 620 may be connected, for example, via a bus 660. The input / output interface 630 provides a connection interface for input / output devices such as a display, a mouse, a keyboard, a touch screen, a microphone, and a speaker. The network interface 640 provides a connection interface for various networked devices. The storage interface 650 provides a connection interface for external storage devices such as an SD card and a USB flash drive.
[0127] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present disclosure may take the form of a computer program product implemented on one or more computer-usable non-transient storage media including but not limited to disk storage, CD-ROM, optical storage, etc., which contain computer-usable program code.
[0128] So far, the virtual object construction method, virtual object construction device and computer-readable storage medium according to the present disclosure have been described in detail. In order to avoid obscuring the concept of the present disclosure, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solution disclosed herein.
[0129] The method and system of the present disclosure may be implemented in many ways. For example, the method and system of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
[0130] Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that the above embodiments may be modified without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.
Claims
1. A method for constructing a virtual object, comprising: In response to the user placing a first building unit in the virtual scene, displaying first prompt information for prompting candidate placement information of a second building unit, the candidate placement information being predicted based on a placement position of the first building unit; In response to the user's confirmation operation on the first prompt information, placing the second construction unit according to the candidate placement information to construct a virtual object, the candidate placement information including a candidate placement position and a candidate direction; In response to the second building unit being placed in the virtual scene, displaying second prompt information for prompting a user to place a next building unit along the candidate direction; In response to the next construction unit being placed in the virtual scene, updating the next construction unit to the second construction unit; Repeat the above steps until the iteration stop condition is met.
2. The virtual object construction method according to claim 1, wherein: The candidate direction points from the placement position of the first construction unit to the candidate placement position.
3. The virtual object construction method according to claim 1, wherein: The iteration stopping condition includes that the number of iterations exceeds a threshold and / or the candidate placement position conflicts with an existing construction unit in the virtual scene.
4. The virtual object construction method according to claim 1, wherein: The candidate placement information includes multiple candidate building unit positions, and the multiple candidate building unit positions and multiple building units placed by the user in the virtual scene constitute a target shape. The target shape is predicted based on the placement positions of the multiple building units, and the multiple building units include the first building unit.
5. The virtual object construction method according to claim 4, wherein: Placing the second construction unit according to the placement information includes: Taking the first building unit as a starting point, the second building unit is placed according to the plurality of candidate building unit positions until the target shape is formed.
6. The virtual object construction method according to claim 4, wherein: The first prompt information includes relevant information of a plurality of candidate shapes, each of the plurality of candidate shapes being predicted based on the placement position of the plurality of construction units that have been placed, The placing of the second construction unit according to the candidate placement information includes: In response to the user confirming the target shape among the plurality of candidate shapes, the second building unit is placed according to the target shape.
7. The virtual object construction method according to claim 4, wherein: The first prompt information includes contour information of the target shape, In response to the user's modification operation on the outline information, the target shape is modified to update the candidate placement information.
8. The virtual object construction method according to any one of claims 1 to 7, wherein: The placement position of the first construction unit is determined according to the intersection point of a ray passing through a designated point in the virtual scene and an existing construction unit in the virtual scene.
9. A virtual object construction device, comprising: a display unit, configured to display first prompt information for prompting candidate placement information of a second building unit in response to a user placing the first building unit in the virtual scene, the candidate placement information being predicted based on a placement position of the first building unit; a placement unit, configured to place the second construction unit according to the candidate placement information to construct a virtual object in response to the user's confirmation operation on the first prompt information, wherein the candidate placement information includes a candidate placement position and a candidate direction, In which, in response to the second building unit being placed in the virtual scene, the display unit displays second prompt information for prompting the user to place the next building unit along the candidate direction; in response to the next building unit being placed in the virtual scene, the placement unit updates the next building unit to the second building unit; the display unit and the placement unit repeat the above steps until the iteration stop condition is met.
10. A virtual object construction device, comprising: Memory; and A processor coupled to the memory, wherein the processor is configured to execute the virtual object construction method according to any one of claims 1 to 8 based on instructions stored in the memory.
11. A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the virtual object construction method according to any one of claims 1 to 8 is implemented.
12. A computer program product, comprising instructions, which, when executed by a processor, cause the processor to perform the virtual object construction method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Method and device for recommending positions of manor components and server
CN112365576A