Method, system and storage medium for space drawing using virtual scene brush

By selecting the target point within the field of view bounding box as the brush landing point in virtual reality technology, combined with the adsorption function, the problem of environmental dependence and display effect of the traditional brush function is solved, and flexible three-dimensional space drawing and convenient painting are realized. experience.

CN118212390BActive Publication Date: 2024-08-23VSWORK NETWORK TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410638586.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-08-23
Estimated Expiration
2044-05-22

AI Technical Summary

Technical Problem

The brush function in traditional virtual reality technology requires the help of the building model in the scene when drawing, causing the pattern to be distorted when the viewing angle changes or the building surface is uneven, the display effect is poor, and it is inflexible to use without a building model.

Method used

By selecting a target point within the field of view bounding box of the user's camera as the tip landing point of the virtual brush, collecting the movement trajectory of the field of view bounding box, recording the position coordinates in real time and rendering the brush trajectory, achieving three-dimensional space rendering that is not affected by the environment when the brush lands. , providing the adsorption function to continue painting.

Benefits of technology

It improves the flexibility of using brushes, ensuring that the brush trajectory can be rendered in any environment without the need for architectural models, resulting in better display effects. The painting process is simplified through the adsorption function, so users can easily continue painting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118212390B
    Figure CN118212390B
Patent Text Reader

Abstract

The present invention discloses a method, system and storage medium for spatial drawing using a virtual scene brush, belonging to the field of virtual and reality technology, and the method includes: receiving a drawing instruction from a user, turning on a drawing function, wherein the turning on of the drawing function includes displaying a virtual brush on a scene display interface; selecting a target point within the field of view bounding box of a user's camera as the pen tip landing point of the virtual brush; collecting the moving trajectory of the field of view bounding box, recording the position coordinates of the target point in real time, and rendering the brush trajectory according to the position coordinates; receiving a closing instruction from the user, turning off the drawing function, wherein the turning off of the drawing function includes hiding the virtual brush on the scene display interface. The present invention selects a target point within the field of view bounding box of the user's camera as the pen tip landing point of the virtual brush, and in a virtual scene, the brush trajectory can be effectively rendered without the aid of other buildings or materials in the scene, thereby improving the flexibility of using the brush.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of virtual and reality technology, and in particular to a method, system and storage medium for space drawing using a virtual scene brush. Background Art

[0002] Virtual reality technology (English name: Virtual Reality, abbreviated as VR), also known as virtual reality or spiritual technology, is a new practical technology developed in the 20th century. Virtual reality technology encompasses computers, electronic information, and simulation technology. Its basic implementation method is based on computer technology, using and integrating the latest developments of various high technologies such as three-dimensional graphics technology, multimedia technology, simulation technology, display technology, and servo technology. With the help of computers and other equipment, a realistic three-dimensional visual, tactile, olfactory and other sensory experiences are generated in the virtual world, so that people in the virtual world have an immersive feeling. With the continuous development of social productivity and science and technology, the demand for VR technology in all walks of life is growing. VR technology has also made great progress and has gradually become a new field of science and technology.

[0003] The brush function is an annotation function in virtual reality technology. Users can use the mouse or finger to simulate the brush and move the mouse or finger to draw the desired pattern. However, in order to capture the trajectory of the brush, the traditional brush function usually needs to use the surface of the building model in the scene as a collision surface to easily locate the landing point of the brush. The pattern drawn in this way will be distorted when the viewing angle is changed or the building surface is uneven, resulting in poor display effects. Moreover, in the absence of a building model, the brush can only be drawn on the wall, which is not flexible enough to use. Summary of the invention

[0004] The purpose of the present invention is to solve the problem of inconvenient brush drawing and poor display effect in the above-mentioned virtual scene, and to propose a method, system and storage medium for spatial drawing using a virtual scene brush. The method has the advantages that the brush is not affected by the environment when it falls to the ground, drawing is convenient, and three-dimensional space drawing can be performed with good display effect.

[0005] In a first aspect, the present invention achieves the above-mentioned purpose through the following technical scheme, a method for spatial drawing using a virtual scene brush, the method comprising the following steps:

[0006] Receiving a drawing instruction from a user and starting a drawing function, wherein starting the drawing function includes displaying a virtual brush on a scene display interface;

[0007] Select a target point within the bounding box of the user's camera's field of view as the tip landing point of the virtual brush;

[0008] Collecting the moving trajectory of the field of view bounding box, recording the position coordinates of the target point in real time, and rendering a brush trajectory according to the position coordinates;

[0009] A closing instruction from the user is received, and a painting function is closed, wherein closing the painting function includes hiding the virtual paintbrush on the scene display interface.

[0010] Preferably, the method of selecting a target point within the field of view bounding box of the user's camera as the tip landing point of the virtual brush is:

[0011] Get the starting point coordinates and viewing direction of the field of view bounding box;

[0012] Calculate the central axis vector of the field of view bounding box;

[0013] Select a point in the center axis vector as the target point, and adjust the position of the displayed virtual brush so that the tip of the virtual brush is aligned with the target point.

[0014] Preferably, the selecting a point in the central axis vector as the target point further comprises:

[0015] Set the length of the central axis, set the average distance, and generate a length-ordered list of the central axis;

[0016] Setting the scene display interface to generate an adjustment button UI for the target point when the drawing function is turned on, and mapping the length-equally divided sequence list to the adjustment button UI;

[0017] Get the sequence value entered by the user on the adjustment button UI, and find the corresponding position on the central axis as the target point.

[0018] Preferably, collecting the movement trajectory of the field of view bounding box includes collecting the trajectory of the user controlling the movement of the virtual character through a keyboard or a joystick, and / or collecting the trajectory of the user controlling the rotation of the field of view through a mouse or finger touch.

[0019] Preferably, the method for rendering the brush trajectory according to the position coordinates is to set a line renderer in a 3D engine, and the line renderer is used to render the display of the line in space, and synchronize the position coordinates of the target point to the input end of the line renderer in real time.

[0020] Preferably, the method further comprises, after hiding the virtual brush on the scene display interface:

[0021] Record the last position coordinates of the target point and set them as the adsorption coordinates, and set the minimum adsorption distance L1;

[0022] Monitor whether the drawing function is turned on again. If so, calculate the distance L2 between the position coordinates of the current target point and the adsorption coordinates when it is turned on, and proceed to the next step. If not, end;

[0023] Compare L2 with L1. If L2>L1, use the target point as the tip of the virtual brush.

[0024] If L2≤L1, the virtual character is moved so that the target point within the field of view bounding box coincides with the adsorption coordinates as the landing point of the virtual brush tip.

[0025] In a second aspect, the present invention achieves the above-mentioned purpose through the following technical solutions: a system for spatial drawing using a virtual scene brush, the system comprising:

[0026] A spatial brush unit, configured to receive a drawing instruction from a user, to start a drawing function, wherein the starting of the drawing function includes displaying a virtual brush on the scene display interface, and to receive a closing instruction from a user, to close the drawing function, wherein the closing of the drawing function includes hiding the virtual brush on the scene display interface;

[0027] A target point selection unit, used to select a target point within the field of view bounding box of the user's camera as the tip landing point of the virtual brush;

[0028] The brush rendering unit is used to collect the moving trajectory of the field of view bounding box, record the position coordinates of the target point in real time, and render the brush trajectory according to the position coordinates.

[0029] Preferably, in the target point selection unit, a method for selecting a target point within the field of view bounding box of the user's camera as the tip landing point of the virtual brush is:

[0030] Get the starting point coordinates and viewing direction of the field of view bounding box;

[0031] Calculate the central axis vector of the field of view bounding box;

[0032] Select a point in the center axis vector as the target point, and adjust the position of the displayed virtual brush so that the tip of the virtual brush is aligned with the target point.

[0033] Preferably, the system further comprises an adsorption unit, which is used for hiding the virtual brush on the scene display interface:

[0034] Record the last position coordinates of the target point and set them as the adsorption coordinates, and set the minimum adsorption distance L1;

[0035] Monitor whether the drawing function is turned on again. If so, calculate the distance L2 between the position coordinates of the current target point and the adsorption coordinates when it is turned on, and proceed to the next step. If not, end;

[0036] Compare L2 with L1. If L2>L1, use the target point as the tip of the virtual brush.

[0037] If L2≤L1, the virtual character is moved so that the target point within the field of view bounding box coincides with the adsorption coordinates as the landing point of the virtual brush tip.

[0038] In a third aspect, the present invention achieves the above-mentioned purpose through the following technical solution: a storage medium having a computer program stored thereon, which, when executed by a processor, implements the method of using a virtual scene brush for spatial drawing as described in the first aspect.

[0039] Compared with the prior art, the present invention has the following beneficial effects:

[0040] The present invention selects a target point within the field of view bounding box of the user's camera as the tip landing point of the virtual brush. In the virtual scene, the trajectory of the brush can be effectively rendered without the help of other buildings or materials in the scene, thereby improving the flexibility of using the brush.

[0041] The present invention can obtain the position change of the target point by collecting the moving trajectory of the field of view bounding box, and restore the brush trajectory by rendering the target point. In this way, when the user controls the movement of the virtual character or the field of view, a three-dimensional space pattern can be drawn, and the display effect is better.

[0042] The present invention records the last point drawn by the brush by adding a target point adsorption function. When drawing next time, if the next target point is close to the recorded point, the current target point can be adsorbed to the recorded point, so that the last painting can be continued, which is convenient for users. The adsorption function can also add a switch controlled by the user on the scene display interface, so that the user can freely choose whether to use the function and is not prone to conflicts. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 The present invention is a flowchart of a method for performing spatial drawing using the brush of the present invention.

[0044] Figure 2 It is a schematic diagram of the brush function operation options of the present invention.

[0045] Figure 3 It is a schematic diagram of the central axis of the present invention in the field of view bounding box.

[0046] Figure 4 It is a flow chart of the brush adsorption method of the present invention.

[0047] Figure 5 The present invention is a schematic diagram of the system structure for performing spatial drawing using the brush of the present invention. DETAILED DESCRIPTION

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

[0049] Example 1

[0050] like Figure 1 As shown, a method for space drawing using a virtual scene brush comprises the following steps:

[0051] Step S1, receiving a drawing instruction from a user, and turning on a drawing function, wherein turning on the drawing function includes displaying a virtual brush on a scene display interface. When constructing a virtual scene, the brush function is written into the scene. When a user enters the scene, the control switch of the brush can be viewed on the scene display interface. When the brush is turned on, a drawing instruction is received, and the drawing function is turned on. At this time, a virtual brush is displayed. The purpose of displaying the virtual brush is to facilitate the user to view the position of the virtual brush, so that the subsequent drawing can be more accurate. When the user turns on the drawing function, step S2 is started. The brush function not only includes a control switch, such as Figure 2 As shown, it can also include color options and operation options. The color option can be used to select the color of the brush. A variety of colors are provided in the color library, and the user only needs to click on the desired color. The operation option includes undo and clear to facilitate the user to modify the drawn pattern.

[0052] Step S2, select a target point within the field of view bounding box of the user's camera as the pen tip landing point of the virtual brush. The pattern drawn by the brush is a trajectory composed of pixel points connected in series. In order to capture the landing point of the brush each time, in traditional technology, it is necessary to use the building model to make the virtual brush emit rays to the building model. When the ray collides with a certain point on the surface of the building model, it is used as the pen tip landing point. In step S2 of the present application, by selecting a point within the field of view bounding box as the pen tip landing point, there is no need to use other collision objects. In the virtual scene, the scene pictures seen by the user are all contained in the field of view bounding box of the user's camera, and the part beyond the field of view bounding box is the blind spot of the user's field of view. Therefore, the selection of the target point within the field of view bounding box not only makes it convenient for the user to see the pen tip landing point of the virtual brush, but also prevents the target point from being lost due to moving the field of view bounding box in step S3.

[0053] Step S3, collecting the moving trajectory of the field of view bounding box, recording the position coordinates of the target point in real time, and rendering the brush trajectory according to the position coordinates. The field of view bounding box mentioned in the above step S2 is actually the user's field of view, and the user can control the change of the field of view by moving the virtual character through the sense of manipulation, or rotating the viewing angle. Since the target point is selected in the field of view bounding box, the position of the target point will also change continuously during the movement. By recording the position coordinates of the target point in this step, the transformation trajectory of the target point can be restored. By rendering this trajectory, the line drawn by the virtual brush can be obtained. When drawing the line, moving the virtual character can draw a straight line, which is equivalent to using the virtual character as a virtual brush. As the virtual character moves up, down, left, and right, straight lines in different directions can be drawn. These lines can form a two-dimensional pattern or a three-dimensional pattern, and by rotating the field of view, since the virtual character is rotating, a curve can be drawn. By combining these two methods, the desired pattern can be combined.

[0054] Step S4, receiving a closing instruction from the user, and closing the painting function, wherein closing the painting function includes hiding the virtual brush on the scene display interface. The above steps S1, S2, and S3 are all steps when using the brush function. When the user turns off the painting function on the control switch, the virtual brush is hidden. This is to avoid the virtual brush always affecting the use of the scene on the scene display interface.

[0055] In step S2, it is mentioned that the target point is selected within the range of the field of view bounding box. However, in the scene, the field of view bounding box is a cone-shaped spatial structure. There are a large number of coordinate points within this range. In order to facilitate accurate positioning of the target point, the method of selecting a target point within the field of view bounding box of the user's camera as the tip landing point of the virtual brush is as follows:

[0056] Get the starting point coordinates and field of view direction of the field of view bounding box. The starting point coordinates are used as the origin of the coordinates. When calculating the coordinates of the target point, the starting point coordinates are used as a reference. The field of view direction is to facilitate the determination of the direction of the central axis vector.

[0057] Calculate the central axis vector of the field of view bounding box;

[0058] Select a point in the center axis vector as the target point, adjust the position of the displayed virtual brush so that the tip of the virtual brush is aligned with the target point, and select a point in the center axis vector as the target point. Figure 3As shown, the central axis of the field of view bounding box is in the center of the screen from the user's perspective, so when the tip of the virtual brush is in this position, the user's visual effect is the best, and there will not be too much offset. Since the scene is a spatial model, the scene has depth, and the target point can be selected at a suitable distance from the user's camera on the central axis. Due to different users' different brush usage habits, or the complexity of the building model in the scene, the virtual brush being too close or too far from the user will affect the drawing, so the selection of a point in the central axis vector as the target point also includes:

[0059] Set the length of the central axis, set the average distance, and generate a length equal division sequence list of the central axis. The average distance can be used to divide the central axis into lines composed of several average distances. The equal division sequence list makes it easier for the computer to identify the position of each equal division. By entering the serial number, the position of this equal division can be located, so that any position on the central axis can be specified.

[0060] When the drawing function is turned on, the scene display interface generates an adjustment button UI for the target point, and the length equal-order list is mapped to the adjustment button UI. Through the adjustment button UI, the user can be provided with the option of adjusting the distance between the target point and themselves to adapt to the usage habits of different users. Moreover, the adjustment of the target point is placed on the adjustment button UI, which makes the operation more convenient.

[0061] Get the sequence value entered by the user on the adjustment button UI, and find the corresponding position on the central axis as the target point. The user's adjustment method is not limited to entering the sequence value, but can also be adjusted by pulling the pointer, etc. Different adjustment methods can be designed according to user habits.

[0062] In step S3, a field of view bounding box is mentioned. The field of view bounding box is a limited range of the user's camera viewing angle. The content in the field of view bounding box can be collected by the user. Since the user's camera is bound to the user's virtual character, when the virtual character is moved or rotated by manipulation, the display content of the field of view bounding box will also change. The collection of the movement trajectory of the field of view bounding box includes collecting the trajectory of the user controlling the movement of the virtual character through the keyboard or joystick, and / or collecting the trajectory of the user controlling the rotation of the field of view through the mouse or finger touch. When the field of view bounding box moves or rotates, the target point also moves. At this time, recording the trajectory of the target point can restore the trajectory drawn by the brush. When displaying the trajectory drawn by the brush, the method of rendering the brush trajectory according to the position coordinates is to set a line renderer in the 3D engine. The line renderer is used to render the display of the line in space, and the position coordinates of the target point are synchronized to the input end of the line renderer in real time. As the position coordinates of the target point are continuously input into the line renderer, the line renderer can display the movement trajectory of the target point.

[0063] The pattern drawn by the brush in the above method can be suspended in the scene without the support of any architectural model, and the drawing scenes described above are all complete and continuous drawing at one time. In actual use, the user cannot draw the desired content continuously at one time, so it involves interrupting the drawing and then continuing it. When continuing, the user needs to accurately align the brush with the last landing point. Considering this situation, it is proposed as follows Figure 4 A method flow of brush adsorption is shown, the method further comprising: after hiding the virtual brush on the scene display interface:

[0064] The last position coordinates of the recorded target point are set as the adsorption coordinates, and the minimum adsorption distance L1 is set. The minimum adsorption distance is used to determine whether adsorption is required. The computer determines whether the user wants to continue the line drawn by the previous brush by whether the current target point is too close or too far from the last target point recorded.

[0065] Monitor whether the drawing function is turned on again. If so, calculate the distance L2 between the position coordinates of the current target point and the adsorption coordinates when it is turned on, and proceed to the next step. If not, end.

[0066] Compare the sizes of L2 and L1. If L2>L1, the target point is used as the landing point of the virtual brush tip. In the case of L2>L1, it means that the target point selected by the user is far away from the recorded target point. The computer determines that the user has no intention of continuing to draw, so the current target point is used as the main point.

[0067] If L2≤L1, the virtual character is moved so that the target point within the field of view bounding box coincides with the adsorption coordinates as the pen tip landing point of the virtual brush. In the case of L2≤L1, it means that the target point selected by the user is close to the recorded target point. The computer determines that the user wants to continue drawing, so the recorded target point is used as the pen tip landing point of the virtual brush. Since the target point is predetermined within the field of view bounding box, it is assumed that the range displayed by the field of view bounding box under the current target point is area A, and the range displayed by the field of view bounding box under the recorded target point is area B. In order to ensure that the displayed area is consistent after the target point is changed, the current field of view bounding box range needs to be adjusted so that it can also display area B. Then the field of view bounding box needs to be moved, and the movement method can still be selected as mentioned above, by controlling the movement of the virtual character, and / or controlling the rotation of the virtual character's field of view.

[0068] This method is not only applicable to hiding the virtual brush, but also to all operations after the brush is interrupted. In order to better meet the user's usage habits, a control switch can be added to the scene display interface to provide the user with an operation to turn on or off the adsorption function.

[0069] Example 2

[0070] like Figure 5 As shown, a system for space drawing using a virtual scene brush, the system comprising:

[0071] A spatial brush unit, configured to receive a drawing instruction from a user, to start a drawing function, wherein the starting of the drawing function includes displaying a virtual brush on the scene display interface, and to receive a closing instruction from a user, to close the drawing function, wherein the closing of the drawing function includes hiding the virtual brush on the scene display interface;

[0072] A target point selection unit, used to select a target point within the field of view bounding box of the user's camera as the tip landing point of the virtual brush;

[0073] A brush rendering unit is used to collect the movement trajectory of the field of view bounding box, record the position coordinates of the target point in real time, and render the brush trajectory according to the position coordinates. The collecting of the movement trajectory of the field of view bounding box includes collecting the trajectory of the user controlling the movement of the virtual character through a keyboard or a joystick, and / or collecting the trajectory of the user controlling the rotation of the field of view through a mouse or finger touch. The method for rendering the brush trajectory according to the position coordinates is to set a line renderer in a 3D engine, and the line renderer is used to render the display of lines in space, and synchronize the position coordinates of the target point to the input end of the line renderer in real time.

[0074] In the target point selection unit, a method for selecting a target point within the field of view bounding box of the user's camera as the tip landing point of the virtual brush is:

[0075] Get the starting point coordinates and viewing direction of the field of view bounding box;

[0076] Calculate the central axis vector of the field of view bounding box;

[0077] Select a point in the center axis vector as the target point, and adjust the position of the displayed virtual brush so that the tip of the virtual brush is aligned with the target point.

[0078] The target point selection unit further includes: setting the length of the central axis, setting the average distance, and generating a length-equally-divided sequence list of the central axis;

[0079] Setting the scene display interface to generate an adjustment button UI for the target point when the drawing function is turned on, and mapping the length-equally divided sequence list to the adjustment button UI;

[0080] Get the sequence value entered by the user on the adjustment button UI, and find the corresponding position on the central axis as the target point.

[0081] The system further includes an adsorption unit, which is used to:

[0082] Record the last position coordinates of the target point and set them as the adsorption coordinates, and set the minimum adsorption distance L1;

[0083] Monitor whether the drawing function is turned on again. If so, calculate the distance L2 between the position coordinates of the current target point and the adsorption coordinates when it is turned on, and proceed to the next step. If not, end;

[0084] Compare L2 with L1. If L2>L1, use the target point as the tip of the virtual brush.

[0085] If L2≤L1, the virtual character is moved so that the target point within the field of view bounding box coincides with the adsorption coordinates as the landing point of the virtual brush tip.

[0086] Embodiment 2 is essentially the same as Embodiment 1, so the specific working principles of each unit will not be described in detail.

[0087] Example 3

[0088] This embodiment proposes a storage medium, which includes a program storage area and a data storage area, wherein the program storage area can store an operating system and programs required for running an instant messaging function, etc.; the data storage area can store various instant messaging information and operation instruction sets, etc. The computer program is stored in the program storage area, and when the computer program is executed by the processor, the method for spatial drawing using a virtual scene brush as described in Example 1 is implemented. The processor may include one or more central processing units, or a digital processing unit, etc.

[0089] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, the embodiments should be considered exemplary and non-restrictive in all respects, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims be included in the present invention.

[0090] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.

Claims

1. A method for spatial drawing using a virtual scene brush, characterized in that: The method comprises the following steps: Receiving a drawing instruction from a user and starting a drawing function, wherein starting the drawing function includes displaying a virtual brush on a scene display interface; A target point is selected within the bounding box of the user's camera's field of view as the tip of the virtual brush's landing point. The method of selecting a target point within the bounding box of the user's camera's field of view as the tip of the virtual brush's landing point is: Get the starting point coordinates and viewing direction of the field of view bounding box; Calculate the central axis vector of the field of view bounding box; Select a point in the center axis vector as the target point, and adjust the position of the displayed virtual brush so that the tip of the virtual brush is aligned with the target point; Collecting the moving trajectory of the field of view bounding box, recording the position coordinates of the target point in real time, and rendering a brush trajectory according to the position coordinates; A closing instruction from the user is received, and a painting function is closed, wherein closing the painting function includes hiding the virtual paintbrush on the scene display interface.

2. The method for spatial drawing using a virtual scene brush according to claim 1, characterized in that: The selecting a point in the central axis vector as the target point also includes: Set the length of the central axis, set the average distance, and generate a length-ordered list of the central axis; Setting the scene display interface to generate an adjustment button UI for the target point when the drawing function is turned on, and mapping the length-equally divided sequence list to the adjustment button UI; Get the sequence value entered by the user on the adjustment button UI, and find the corresponding position on the central axis as the target point.

3. The method for spatial drawing using a virtual scene brush according to claim 1, characterized in that: The collecting of the movement trajectory of the field of view bounding box includes collecting the trajectory of the user controlling the movement of the virtual character through a keyboard or a joystick, and / or collecting the trajectory of the user controlling the rotation of the field of view through a mouse or a finger touch.

4. The method for spatial drawing using a virtual scene brush according to claim 1, characterized in that: The method for rendering the brush trajectory according to the position coordinates is to set a line renderer in the 3D engine, and the line renderer is used to render the display of the line in space, and synchronize the position coordinates of the target point to the input end of the line renderer in real time.

5. The method for spatial drawing using a virtual scene brush according to claim 1, characterized in that: The method further includes, after hiding the virtual brush on the scene display interface: Record the last position coordinates of the target point and set them as the adsorption coordinates, and set the minimum adsorption distance L1; Monitor whether the drawing function is turned on again. If so, calculate the distance L2 between the position coordinates of the current target point and the adsorption coordinates when it is turned on, and proceed to the next step. If not, end; Compare L2 with L1. If L2>L1, use the target point as the tip of the virtual brush. If L2≤L1, the virtual character is moved so that the target point within the field of view bounding box coincides with the adsorption coordinates as the landing point of the virtual brush tip.

6. A system for spatial drawing using a virtual scene brush, characterized in that: The system includes: A spatial brush unit, configured to receive a drawing instruction from a user, to start a drawing function, wherein the starting of the drawing function includes displaying a virtual brush on the scene display interface, and to receive a closing instruction from a user, to close the drawing function, wherein the closing of the drawing function includes hiding the virtual brush on the scene display interface; The target point selection unit is used to select a target point within the field of view bounding box of the user's camera as the tip landing point of the virtual brush. In the target point selection unit, a method for selecting a target point within the field of view bounding box of the user's camera as the tip landing point of the virtual brush is: Get the starting point coordinates and viewing direction of the field of view bounding box; Calculate the central axis vector of the field of view bounding box; Select a point in the center axis vector as the target point, and adjust the position of the displayed virtual brush so that the tip of the virtual brush is aligned with the target point; The brush rendering unit is used to collect the moving trajectory of the field of view bounding box, record the position coordinates of the target point in real time, and render the brush trajectory according to the position coordinates.

7. The system for performing space drawing using a virtual scene brush according to claim 6, characterized in that: The system further includes an adsorption unit, which is used to: Record the last position coordinates of the target point and set them as the adsorption coordinates, and set the minimum adsorption distance L1; Monitor whether the drawing function is turned on again. If so, calculate the distance L2 between the position coordinates of the current target point and the adsorption coordinates when it is turned on, and proceed to the next step. If not, end; Compare L2 with L1. If L2>L1, use the target point as the tip of the virtual brush. If L2≤L1, the virtual character is moved so that the target point within the field of view bounding box coincides with the adsorption coordinates as the landing point of the virtual brush tip.

8. A storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the method for spatial drawing using a virtual scene brush as described in any one of claims 1 to 5 is implemented.