Tire mark model generation method and device, equipment and storage medium
By allowing users to input curve data and tire mark control parameters, a programmed generation algorithm is used to automatically create tire mark models, solving the problem of low efficiency in tire mark model production in existing technologies and achieving efficient one-click generation of tire mark models that meet personalized needs.
Patent Information
- Application Number
- CN202511735769.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-24
- Publication Date
- 2026-02-27
AI Technical Summary
The production efficiency of tire track models in the current technology is low, requiring artists to perform complex operations such as manual modeling, texture creation, and material adjustment.
By using user-input curve data and multiple tire mark control parameters, a programmed generation algorithm is used to automatically create tire mark models, simplifying the process to one-click generation of target tire mark models that meet personalized needs.
It improves the efficiency of tire track model production, lowers the technical threshold, and makes it easier for more users to operate and use.
Smart Images

Figure CN121582402A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of 3D special effects production technology, and more specifically, to a method, apparatus, device, and storage medium for generating tire mark models. Background Technology
[0002] In the fields of game development, virtual simulation, and digital content creation, tire mark modeling is an important part of racing games and road scene construction. In the existing technology, traditional tire mark modeling methods usually require artists to manually model, create corresponding textures, and adjust materials, resulting in a series of complex operations and low production efficiency when using the existing technology to create tire mark models. Summary of the Invention
[0003] In view of this, this application provides a method, apparatus, device and storage medium for generating tire trace models. The method uses curve data input by the user as the original reference data for generating the tire trace model and uses multiple tire trace control parameters configured by the user to drive the creation of the tire trace model. This allows for the one-click generation of target tire trace models that meet the user's personalized needs, effectively improving the efficiency of tire trace model production.
[0004] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings.
[0005] In a first aspect, embodiments of this application provide a method for generating a tire mark model, the method comprising: In response to a curve input operation for a graphical user interface, acquire the target curve data input by the user in the graphical user interface; In response to a parameter configuration operation for the target curve data, determine multiple tire mark control parameters configured by the user for the target curve data; In response to the confirmation operation for the plurality of tire mark control parameters, a target tire mark model that matches the target curve data and the plurality of tire mark control parameters is generated.
[0006] Secondly, embodiments of this application provide an apparatus for generating a tire mark model, the apparatus comprising: A curve acquisition module is used to acquire target curve data input by the user in the graphical user interface in response to a curve input operation for the graphical user interface. The parameter configuration module is used to determine multiple tire mark control parameters configured by the user for the target curve data in response to the parameter configuration operation for the target curve data. The tire mark generation module is used to generate a target tire mark model that matches the target curve data and the multiple tire mark control parameters in response to the confirmation operation of the multiple tire mark control parameters.
[0007] Thirdly, embodiments of this application provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the above-described method for generating a tire mark model.
[0008] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of the above-described method for generating a tire mark model.
[0009] The technical solutions provided by the embodiments of this application may include the following beneficial effects: This application provides a method, apparatus, device, and storage medium for generating tire trace models. In response to a curve input operation in a graphical user interface (GUI), it acquires target curve data input by the user in the GUI; in response to a parameter configuration operation on the target curve data, it determines multiple tire trace control parameters configured by the user for the target curve data; and in response to a confirmation operation on the multiple tire trace control parameters, it generates a target tire trace model that matches the target curve data and the multiple tire trace control parameters. Thus, this application uses the curve data input by the user as the original reference data for generating the tire trace model and uses the multiple tire trace control parameters configured by the user to drive the creation of the tire trace model. This allows for one-click generation of target tire trace models that meet the user's personalized needs, effectively improving the efficiency of tire trace model production. Attached Figure Description
[0010] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0011] Figure 1 A flowchart illustrating a method for generating a tire mark model according to an embodiment of this application is shown. Figure 2 This illustration shows a schematic diagram of an interface for drawing a target curve in Unreal Engine, provided by an embodiment of this application. Figure 3 This illustration shows an interface diagram of an embodiment of the present application for overall position offset of an initial curved surface; Figure 4This illustration shows an interface diagram of a unidirectional position offset of the left and right edges of an initial curved surface, provided by an embodiment of this application. Figure 5 This illustration shows a graphical user interface diagram of a preview image of a material effect that matches an existing material, provided by an embodiment of this application. Figure 6a This illustration shows a schematic diagram of a target tire mark model before normal correction in a virtual terrain, as provided in an embodiment of this application. Figure 6b This illustration shows a schematic diagram of a target tire mark model with normal correction provided in an embodiment of this application in a virtual terrain; Figure 7a This illustration shows a schematic diagram of a target tire mark model in virtual terrain before modification, as provided in an embodiment of this application. Figure 7b This illustration shows a modified target tire mark model in virtual terrain, as provided in an embodiment of this application. Figure 8 A schematic diagram of the structure of a tire mark model generation device provided in an embodiment of this application is shown; Figure 9 This is a schematic diagram of the structure of an electronic device 900 provided in an embodiment of this application. Detailed Implementation
[0012] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the accompanying drawings in this application are for illustrative and descriptive purposes only and are not intended to limit the scope of protection of this application. Furthermore, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of this application. It should be understood that the operations in the flowcharts may not be implemented in sequence, and steps without logical contextual relationships may be reversed or implemented simultaneously. In addition, those skilled in the art, guided by the content of this application, may add one or more other operations to the flowcharts, or remove one or more operations from the flowcharts.
[0013] Furthermore, the described embodiments are merely some, not all, of the embodiments of this application. The components of the embodiments of this application described and illustrated herein can typically be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0014] It should be noted that the term "comprising" will be used in the embodiments of this application to indicate the presence of the features declared thereafter, but does not exclude the addition of other features.
[0015] Currently, in existing technologies, traditional tire mark model making methods usually require artists to perform a series of complex operations such as manual modeling, creating corresponding textures, and adjusting materials, resulting in low production efficiency when making tire mark models using the aforementioned existing technologies.
[0016] Based on this, embodiments of this application provide a method, apparatus, device, and storage medium for generating tire trace models. Using curve data input by the user as the original reference data for generating the tire trace model, and through a programmed generation method, the creation of the tire trace model can be driven by multiple tire trace control parameters configured by the user. This allows for the one-click generation of target tire trace models that meet the user's personalized needs, effectively improving the production efficiency of tire trace models.
[0017] In one embodiment of this application, a method for generating a tire mark model can be applied to Unreal Engine, which is capable of creating 3D animation effects. Unreal Engine can run on a terminal device or a server. The terminal device can be a local terminal device. When Unreal Engine runs on a server, the method for generating the tire mark model can be implemented and executed based on a cloud interaction system, which includes a server and a client device (i.e., a terminal device).
[0018] It should be noted that the specific type of Unreal Engine mentioned above is not limited in this application embodiment; for example, the virtual engine mentioned above can be the UE4 engine (Unreal Engine 4) used for game production, or the UE5 engine (Unreal Engine 5), etc.
[0019] To facilitate understanding of the embodiments of this application, a detailed description of a method, apparatus, device, and storage medium for generating a tire mark model provided in the embodiments of this application is provided below.
[0020] Reference Figure 1 As shown, Figure 1 The diagram illustrates a flowchart of a method for generating a tire mark model according to an embodiment of this application, wherein the generation method includes steps S101-S103; specifically: S101, in response to a curve input operation for a graphical user interface, acquire the target curve data input by the user in the graphical user interface.
[0021] S102, in response to a parameter configuration operation for the target curve data, determine a plurality of tire mark control parameters configured by the user for the target curve data.
[0022] S103, in response to the confirmation operation for the plurality of tire mark control parameters, a target tire mark model matching the target curve data and the plurality of tire mark control parameters is generated.
[0023] The tire mark model generation method provided in this application, in response to a curve input operation in a graphical user interface, acquires the target curve data input by the user in the graphical user interface; in response to a parameter configuration operation for the target curve data, determines multiple tire mark control parameters configured by the user for the target curve data; and in response to a confirmation operation for the multiple tire mark control parameters, generates a target tire mark model that matches the target curve data and the multiple tire mark control parameters. Thus, this application uses the curve data input by the user as the original reference data for generating the tire mark model, and uses the multiple tire mark control parameters configured by the user to drive the creation of the tire mark model, thereby enabling one-click generation of a target tire mark model that meets the user's personalized needs, effectively improving the efficiency of tire mark model production.
[0024] The following is an exemplary description of each step in the method for generating the tire mark model provided in the embodiments of this application: S101, in response to a curve input operation for a graphical user interface, acquire the target curve data input by the user in the graphical user interface.
[0025] Here, a visual graphical user interface is provided to the user in Unreal Engine, in which a blank virtual space scene is displayed. The user can draw curves in the virtual space scene displayed in the graphical user interface, or import external curve data located outside Unreal Engine and display it in the virtual space scene. That is, in this embodiment of the application, the user can use at least two different curve data input methods: drawing curves and importing curve data from outside Unreal Engine. This embodiment of the application does not limit the specific curve data input method actually used by the user in step S101.
[0026] It should be noted that, considering that in specific creative fields such as game development, users usually need to display one or more tire mark models in the virtual terrain they create, in addition to inputting the target curve data in the blank virtual space scene mentioned above (equivalent to generating a tire mark model in the blank virtual space scene mentioned above), users can also open and display the pre-made virtual terrain in the graphical user interface in advance, and then select to input the target curve data in the virtual terrain currently displayed in the graphical user interface (equivalent to generating a tire mark model in the virtual terrain currently displayed in the graphical user interface).
[0027] Specifically, as an optional embodiment, when performing step S101, the user can input target curve data in the graphical user interface by drawing curves, as shown in step a1 below: Step a1: In response to the curve drawing operation for the graphical user interface, display the target curve drawn by the user on the graphical user interface, and use the curve data of the target curve as the target curve data.
[0028] Here, Unreal Engine has a built-in curve drawing tool that supports users to draw curves (such as the curve class component that comes with Unreal Engine). Users can select the curve drawing tool from the toolbar displayed on the graphical user interface, and then use the curve drawing tool to draw a curve at any position in the virtual space scene (or virtual terrain) displayed on the graphical user interface (that is, the curve drawing operation can be a drag operation of the curve drawing tool by the user on the graphical user interface). At this time, Unreal Engine can display the curve drawn by the user in the virtual space scene (or virtual terrain) as the target curve, and automatically obtain the target curve's length information, key point position information (i.e., the position information of multiple key points that make up the target curve), key point number information (i.e., the number information of multiple key points that make up the target curve), tangent vector information (i.e., the tangent direction vector corresponding to each key point that makes up the target curve), and other related curve data as the target curve data.
[0029] An exemplary description, Figure 2 This illustration shows a schematic diagram of an interface for drawing a target curve in Unreal Engine, as provided in an embodiment of this application. Figure 2 As shown, the graphical user interface 200 provided by Unreal Engine displays virtual terrain. Users can use the curve drawing tools built into Unreal Engine to draw target curves in the virtual terrain. Each white square on the target curve represents a key point that makes up the target curve. In the virtual space where the virtual terrain is located, the red arrow represents the x-axis, the green arrow represents the y-axis, and the blue arrow represents the z-axis. Therefore, based on the three-dimensional coordinate system in the virtual space represented by the three-color arrows, the position information of each key point on the target curve in the virtual terrain and the tangent direction vector corresponding to each key point can be determined. This allows Unreal Engine to automatically obtain the curve data of the target curve as the target curve data drawn by the user.
[0030] Specifically, as an optional embodiment, when performing step S101, users can also input target curve data in the graphical user interface by importing external curve data from Unreal Engine, as shown in step b1 below: Step b1: In response to the curve import operation for the graphical user interface, obtain the external curve data imported by the user as the target curve data, and display the target curve that matches the external curve data on the graphical user interface.
[0031] In the existing technology, the workflow from traditional DDC software (such as 3ds Max, Maya, Blender, etc.) to Unreal Engine is fragmented. Users need to create tire track models in DDC software, export the relevant data of the created tire track models from DDC software, and then import them into Unreal Engine for display. When users detect that the tire track models in Unreal Engine have problems that need adjustment and correction, they also need to export them from Unreal Engine and import them back into DDC software for adjustment and correction. As a result, when creating virtual scenes with tire track models, users often need to repeatedly create and modify tire track models through DCC software, making the tire track model creation process very complicated.
[0032] Based on this, in order to overcome the above-mentioned defects, a target plugin can be pre-built into Unreal Engine in this embodiment of the application. The target plugin provides a data access interface for external (i.e., external to Unreal Engine) software, so that users can directly obtain existing curve data in the external software as the external curve data imported into Unreal Engine this time by means of the built-in target plugin. After obtaining the external curve data, Unreal Engine can automatically convert the external curve data into a target format that is compatible with Unreal Engine, and reconstruct and display the target curve matching the external curve data in the graphical user interface based on the external curve data converted into the target format.
[0033] For example, taking the external software containing game tracks created by game developers in the past as an example, a user can access the external software through the target plugin in Unreal Engine, and extract a portion of curve data from the game track stored in the external software as the external curve data to be imported into Unreal Engine this time (equivalent to the curve import operation being an interactive operation based on the target plugin obtaining external curve data from the external software). After obtaining the external curve data imported by the user, Unreal Engine can automatically convert the external curve data into a target format that is compatible with Unreal Engine, and based on the external curve data converted to the target format, reconstruct and display the target curve that matches the external curve data in the graphical user interface.
[0034] It should be noted that the external curve data mentioned above also includes relevant curve data such as the length of the target curve, key point location information (i.e., the location information of multiple key points that make up the target curve), key point quantity information (i.e., the quantity information of multiple key points that make up the target curve), and tangent vector information (i.e., the tangent direction vector corresponding to each key point that makes up the target curve).
[0035] S102, in response to a parameter configuration operation for the target curve data, determine a plurality of tire mark control parameters configured by the user for the target curve data.
[0036] Here, referring to the relevant description in step S101 above, it can be seen that the target curve data is the relevant curve data of the target curve displayed in the current graphical user interface (the length information of the target curve, the location information of key points, the number of key points, the tangent vector information, etc.). At this time, the above parameter configuration operation can be a specific interactive operation triggered by the user on the target curve displayed on the graphical user interface (such as a double-click operation), or it can be a trigger operation triggered by the user on a specific virtual control displayed on the graphical user interface (such as a reference configuration control). This application embodiment does not limit the specific operation type of the above parameter configuration operation.
[0037] Specifically, in response to the above parameter configuration operations, Unreal Engine can display a parameter configuration list on the graphical user interface. The parameter configuration list displays the parameter configuration entries corresponding to the above multiple tire mark control parameters, allowing users to configure the specific parameter value or specific parameter value range of each tire mark control parameter in the parameter configuration entry corresponding to each tire mark control parameter.
[0038] It should be noted that the above-mentioned multiple tire mark control parameters are used to represent multiple personalized control parameters that can reflect the user's tire mark production needs. This application embodiment does not impose any mandatory limitations on the specific parameter content and the specific number of the above-mentioned multiple tire mark control parameters.
[0039] S103, in response to the confirmation operation for the plurality of tire mark control parameters, a target tire mark model matching the target curve data and the plurality of tire mark control parameters is generated.
[0040] Here, as an optional embodiment, a confirmation control can also be displayed in the parameter configuration list mentioned in step S102 above. After the user completes the parameter configuration for each tire mark control parameter in the parameter configuration list, he / she can click the confirmation control to indicate confirmation of the currently configured tire mark control parameters. At this time, in response to the user's click operation on the confirmation control (that is, the above confirmation operation can be a click operation on the confirmation control displayed in the parameter configuration list), the Unreal Engine can automatically generate a target tire mark model that matches the above target curve data and the above multiple tire mark control parameters through a procedural generation algorithm.
[0041] Here, as another optional embodiment, a tire trace generation control for indicating the generation of a tire trace model can also be displayed on the graphical user interface. In this case, after the user completes the parameter configuration for each tire trace control parameter in the parameter configuration list, they can click the tire trace generation control to confirm the currently configured tire trace control parameters. At this time, in response to the user's click operation on the tire trace generation control (i.e., the above confirmation operation can be a click operation on the tire trace generation control), the Unreal Engine can automatically generate a target tire trace model that matches the above target curve data and the above multiple tire trace control parameters through a procedural generation algorithm.
[0042] It should be noted that regardless of the specific interactive operation used by the user to confirm the multiple tire mark control parameters, based on the tire mark model generation method shown in steps S101-S103 above, this application can package the specific method of generating a target tire mark model that meets the user's personalized needs (i.e., matches the target curve data and the multiple tire mark control parameters) according to the target curve data and the user-specified personalized parameters (i.e., the multiple tire mark control parameters) into a black box that is not visible to the user (similar to a trained generation model) by combining a procedural generation algorithm. This allows users to generate target tire mark models that meet their personalized needs in Unreal Engine with extremely high efficiency through black box operations. This not only effectively improves the efficiency of tire mark model production but also helps to lower the technical threshold for tire mark model production, making it easier for more users to operate and use.
[0043] The specific implementation process of each of the above steps in the embodiments of this application will be described in detail below: Regarding the specific implementation of step S102 above, in this application embodiment, as an optional embodiment, the above-mentioned multiple tire mark control parameters may include at least one of the following: (1) Random style control parameters; wherein, the random style parameters are used to randomly influence the model style of the generated target tire mark model.
[0044] (2) Tire mark number control parameters; wherein, the tire mark number control parameters are used to determine the number of models of the generated target tire mark model.
[0045] (3) Tire mark shape control parameters; wherein the tire mark shape control parameters include: a width parameter for determining the width of the tire mark of the generated target tire mark model, and a length parameter for constraining the range of values of the tire mark length of the generated target tire mark model.
[0046] (4) Tire mark position control parameters; wherein, the tire mark position control parameters include: an overall offset control parameter for determining the overall positional offset of all generated target tire mark models relative to the target curve, and a unidirectional offset control parameter for determining the edge offset of each generated target tire mark model relative to the target curve; the target curve represents the curve corresponding to the target curve data.
[0047] (5) Collision detection range parameters; wherein, the collision detection range parameters are used to determine the detection range for collision detection of each point on the target curve along the depth direction (i.e., the z-axis direction in virtual space).
[0048] It should be noted that, in addition to the multiple tire mark control parameters shown in (1)-(5) above, in this embodiment of the application, the multiple tire mark control parameters may also include a z-axis (i.e., the depth direction) offset parameter; in particular, it is mainly considered that when the generated tire mark model is placed in the virtual terrain, the tire mark model may overlap with the plane involved in the collision detection (such as the virtual ground where the virtual terrain is located) in the z-axis direction (i.e., the depth direction above). If an overlap occurs, the overlapping part will cause the screen to flicker. Therefore, the z-axis offset parameter is the specific value of controlling the target tire mark model to shift upward along the z-axis direction when the collision detection is performed according to the collision detection range parameter above and the above overlap occurs, so as to avoid the above flickering phenomenon caused by the above overlap.
[0049] Regarding the specific implementation of step S103 above, and in conjunction with the multiple tire mark control parameters shown in (1)-(5) above, as an optional embodiment, the target tire mark model can be generated in the manner shown in steps c1-c7 below, specifically: Step c1: Based on the tire mark quantity control parameter, randomly select a curve of target length from the target curve to obtain an initial curve that matches the number of models.
[0050] Here, the tire mark quantity control parameter indicates the number of target tire mark models to be generated from the target curve as specified by the user, while the range of the length parameter (derived from the tire mark shape control parameter) indicates the tire mark length range of each target tire mark model specified by the user (i.e., a maximum tire mark length and a minimum tire mark length specified by the user). Therefore, when performing step c1, when extracting the initial curve corresponding to each subsequent target tire mark model from the target curve according to the tire mark quantity control parameter, it is also necessary to keep the curve length of each extracted initial curve (which is also equivalent to the tire mark length of each target tire mark model) within the range of the length parameter.
[0051] Specifically, the target length mentioned above refers to the length of a random curve determined according to the random length ratio indicated by the random style control parameter within the range of the length parameter values. That is, in order to enrich the model styles of different target tire mark models (that is, to increase the randomness of the model styles of the target tire mark models), a numerically random curve length can also be determined as the curve length of the initial curve (that is, the target length) from the range of the length parameter values according to the random length ratio indicated by the random style control parameter. Among them, the curve lengths corresponding to different initial curves for different target tire mark models can be the same or different (that is, the target lengths corresponding to different initial curves can be the same or different).
[0052] For example, taking the tire mark quantity control parameter as 1, if the user configures the above length parameter to be in the range of 0.5-1 (equivalent to the user specifying a maximum tire mark length of 1 and a minimum tire mark length of 0.5), and if the random ratio determined according to the above random style control parameter is 0.6, then the random curve length matching the above random ratio can be determined from the above length parameter value range as 0.6 (i.e., the target length is 0.6). At this time, a curve with a length of 0.6 can be randomly selected from the target curve as the initial curve.
[0053] Step c2: For each of the initial curves, determine an initial surface that matches the width parameter and has a shape that matches the initial curve, based on the width parameter.
[0054] Here, as an optional embodiment, for each initial curve, in the tangent direction at each key point on the initial curve, taking each key point on the initial curve as the center point, position points on both sides of the center point are determined with a distance of half the aforementioned width parameter, thereby obtaining a surface composed of each center point and the aforementioned position points on both sides of each center point as an initial surface matching the initial curve, thus ensuring that when generating the target tire mark model based on the initial surface, the tire mark width of the target tire mark model can match the aforementioned width parameter specified by the user.
[0055] Here, as another optional embodiment, for each initial curve, in the tangent direction at each key point on the initial curve, taking each key point on the initial curve as the starting point, from the left or right side of the starting point (which can be randomly determined by the above-mentioned random style control parameters), a position point with a distance of the above-mentioned width parameter between it and the starting point can be determined, thereby obtaining a surface composed of each key point and each position point as an initial surface that matches the initial curve. At this time, it can also be ensured that when generating the target tire mark model based on the initial surface, the tire mark width of the target tire mark model can match the above-mentioned width parameter specified by the user.
[0056] Step c3: Determine the overall position offset of the initial surface relative to the initial curve based on the overall offset control parameters.
[0057] Here, since each initial surface is obtained based on its corresponding initial curve, if the position of the initial surface is not offset, the position of the initial surface can be basically equivalent to the position of the initial curve. Therefore, in order to improve the personalized display style of the final generated target tire mark model (i.e., the generated target tire mark model is not a one-to-one copy of the target curve), based on the overall offset control parameters configured by the user, all initial surfaces can be controlled to be offset relative to the original target curve (that is, each initial curve will be offset relative to its corresponding initial curve).
[0058] Specifically, the aforementioned overall offset control parameter can be further divided into an intersection point control parameter and a weight control parameter. The specific value of the intersection point control parameter can represent the specific location of the intersection point on the target curve, while the aforementioned weight control parameter can represent the overall offset weight applied at both ends of the intersection point. At this time, based on the aforementioned intersection point control parameter and the aforementioned weight control parameter, multiple initial surfaces located on both sides of the intersection point can be controlled to generate an overall position offset relative to the original target curve according to their corresponding weight control parameters. The overall position offset value generated by each initial surface relative to its corresponding initial curve is the overall position offset amount of the initial surface relative to the initial curve.
[0059] An exemplary description, Figure 3 This illustration shows an interface diagram illustrating an overall positional offset of an initial curved surface according to an embodiment of this application. Figure 3 As shown, based on the user-configured overall offset control parameters, the initial surface can be controlled to produce an overall positional offset relative to the initial curve, based on the position of the initial curve.
[0060] Step c4: Determine the unidirectional position offset of the edge region of the initial surface relative to the edge region of the initial curve according to the unidirectional offset control parameters.
[0061] Here, the aforementioned edge region can be a left or right edge region, or a top or bottom edge region, etc. The specific edge type of the aforementioned edge region is not limited in this embodiment.
[0062] Here, the aforementioned unidirectional offset control parameters are related to the edge type of the aforementioned edge region. For example, if the edge region is of the left or right edge region type, the aforementioned unidirectional offset control parameters can be further subdivided into a maximum left offset along the direction of the conductor spline (i.e., the curve direction of the target curve) and a maximum right offset along the direction of the conductor spline. If the edge region is of the upper or lower edge region type, the aforementioned unidirectional offset control parameters can be further subdivided into a maximum upward offset along the direction of the conductor spline (i.e., the curve direction of the target curve) and a maximum downward offset along the direction of the conductor spline.
[0063] Specifically, taking the aforementioned edge region as an example of the left and right edge regions, based on the aforementioned unidirectional offset control parameters, the left edge of the initial surface can be controlled to shift to the left by a random value not exceeding the aforementioned maximum left offset (which can be randomly determined by the aforementioned random style control parameters), and the right edge of the initial surface can be controlled to shift to the right by a random value not exceeding the aforementioned maximum right offset (which can be randomly determined by the aforementioned random style control parameters), thereby enabling the left and right edges of the initial surface to generate a unidirectional position offset relative to the left and right edges of the initial curve, respectively.
[0064] Specifically, taking the aforementioned edge region as an example of the upper and lower edge regions, based on the aforementioned unidirectional offset control parameters, the upper edge of the initial surface can be controlled to offset upward by a random value not exceeding the aforementioned maximum upward offset (which can be randomly determined by the aforementioned random style control parameters), and the lower edge of the initial surface can be controlled to offset downward by a random value not exceeding the aforementioned maximum downward offset (which can be randomly determined by the aforementioned random style control parameters), thereby enabling the upper and lower edges of the initial surface to generate a unidirectional position offset relative to the upper and lower edges of the initial curve.
[0065] It should be noted that when performing step c4, it is also necessary to ensure that the width of the initial surface after the unidirectional position offset remains consistent with the width parameter. For example, taking the above-mentioned edge region as the upper and lower edge region, when controlling the left edge of the initial surface to produce a unidirectional offset relative to the left edge of the initial curve and / or controlling the right edge of the initial surface to produce a unidirectional offset relative to the right edge of the initial curve based on the above-mentioned unidirectional offset control parameter, it is still necessary to constrain the width of the initial surface after the unidirectional position offset to remain consistent with the width parameter initially configured by the user, so as to ensure that the width of the target tire mark model generated based on the initial surface can meet the width parameter initially configured by the user.
[0066] An exemplary description, Figure 4 This illustration shows an interface diagram of a unidirectional position offset of the left and right edges of an initial curved surface, as provided in an embodiment of this application. Figure 4 As shown, based on the user-configured unidirectional offset control parameters, the left edge of the initial surface can be controlled to produce a unidirectional offset relative to the left edge of the initial curve, and the right edge of the initial surface can also be controlled to produce a unidirectional offset relative to the right edge of the initial curve.
[0067] Step c5: Determine the position coordinates of each point on the initial surface on the target two-dimensional plane based on the overall position offset and the unidirectional position offset.
[0068] Here, the aforementioned target two-dimensional plane refers to a two-dimensional plane in the virtual space that is perpendicular to the depth direction; that is, after offsetting the position of each initial surface in the virtual space (i.e., the virtual space where the blank virtual scene / virtual terrain where the target curve is displayed on the graphical user interface) based on the aforementioned overall position offset and the aforementioned unidirectional position offset, the position coordinates of each point on the initial surface on the aforementioned target two-dimensional plane can be determined according to each initial surface after offset.
[0069] Step c6: Based on the collision detection range parameters, determine the position coordinates of each point on the initial surface in the depth direction by performing collision detection in the virtual space.
[0070] Here, virtual space refers to the virtual space where the blank virtual scene / virtual terrain currently displays the target curve on the graphical user interface.
[0071] Specifically, taking a user-configured collision detection range parameter of 1000 as an example, when executing step c6, each point on the initial surface can be used as the starting point for collision detection. Collision detection is performed within a range of 1000 downwards from the starting point in the depth direction. When a collision is detected, the points on the initial surface corresponding to the ray of the detected collision will be offset and collapsed in the depth direction (the specific values can be randomly determined by the aforementioned random style control parameters). Thus, after collision detection, the final position coordinates of each point on the initial surface in the depth direction can be determined.
[0072] Step c7: Generate a target tire mark model that matches the initial surface based on the three-dimensional position coordinates of each point on the initial surface in the virtual space.
[0073] Here, the aforementioned three-dimensional position coordinates are determined based on the position coordinates of each point on the initial surface on the target two-dimensional plane and the position coordinates in the depth direction.
[0074] Specifically, in step c7, the target tire mark model can be generated using a procedural generation algorithm. When determining the three-dimensional position coordinates of each point on the initial surface in virtual space, the procedural generation algorithm determines them one by one in a zigzag pattern: the left edge position point of the initial surface, the right edge position point of the initial surface, and the position point adjacent to the left edge position point of the initial surface. Therefore, the generation order of each point on the initial surface is also determined according to the determination order of the three-dimensional position coordinates. At this time, for each point on the initial surface, the procedural generation algorithm will package the three-dimensional position coordinates of the point and the generation order of the point into an array as the array information corresponding to the point.
[0075] Here, after obtaining the array information corresponding to each point on the initial surface, taking n points on the initial surface whose generation order is represented by 1-n as an example, the procedural generation algorithm can first determine whether there are multiple vertices that can form a mesh on the surface of the target tire mark model from the three-dimensional position coordinates corresponding to points 1-4 respectively (if the mesh is a quadrilateral, it is necessary to determine whether there are four vertices that can form a quadrilateral mesh; if the mesh is a triangle, it is necessary to determine whether there are three vertices that can form a triangle mesh). Then, it continues to determine whether there are multiple vertices that can form a mesh on the surface of the target tire mark model from the three-dimensional position coordinates corresponding to points 2-5 respectively. By analogy, the specific vertices corresponding to each mesh can be determined, so that the procedural generation algorithm can generate each mesh that forms the surface of the target tire mark model according to the specific vertices corresponding to each mesh, and thus obtain the target tire mark model (at this time, it is equivalent to the original mesh model that has not yet been rendered with materials).
[0076] Here, when performing step c7, in order to save the computational resources required to generate the target tire mark model and improve the model generation efficiency, as an optional embodiment, the mesh subdivision degree of the beginning and end ends of the initial surface in the target tire mark model can be appropriately reduced by judging the degree of fit between the overall shape of the initial surface and the straight line shape, as shown in steps d1-d2 below. Specifically: Step d1: Calculate the endpoint length corresponding to the initial surface and divide it by the overall curve length corresponding to the initial surface to obtain the target proportion of the beginning and end ends of the initial surface in the initial surface.
[0077] Here, the endpoint length represents the curve length corresponding to the beginning and end of the initial surface; the endpoint length can be a default value (equivalent to determining the specific beginning and end points of the initial surface based on the default value), or it can be one of the above multiple tire mark control parameters that can be customized by the user (equivalent to determining the specific beginning and end points of the initial surface based on the user-defined endpoint length value).
[0078] Step d2: When generating the target tire mark model, determine the mesh subdivision level of the beginning and end ends in the target tire mark model according to the target scale.
[0079] Specifically, the larger the target ratio mentioned above, the closer the overall shape of the initial curved surface is to the shape of a straight line. Therefore, the larger the target ratio mentioned above, the fewer meshes can be subdivided for the beginning and end parts when generating the target tire mark model.
[0080] After generating the target tire mark model (which is equivalent to the original mesh model without added materials for rendering), as an optional embodiment, the user can configure materials for the currently generated target tire mark model according to the methods shown in steps e1-e2 below. Specifically: Step e1: Based on the multiple existing materials stored in the data asset library, dynamically generate material effect preview images that match the multiple existing materials respectively.
[0081] Here, to help users more intuitively determine the specific material display effect (including but not limited to texture display effect, color display effect, wear degree display effect, etc.) of each existing material stored in the data asset library (equivalent to the specific material that the user can currently select and configure) when applied to the target tire track model, as an optional embodiment, multiple material effect preview images matching the multiple existing materials stored in the data asset library can be dynamically generated. The material effect preview images are determined based on the effect of the existing materials applied to the target tire track model, so that users can select the existing material whose material preview effect meets their expectations from the multiple existing materials displayed so as the tire track material used for rendering the target tire track model.
[0082] An exemplary description, Figure 5 This illustration shows a graphical user interface diagram of an embodiment of the present application that displays a preview image of a material effect matching an existing material on a graphical user interface. Figure 5 As shown, after generating a preview image of the material effect for each existing material, each existing material contained in the tire track library (i.e., the aforementioned data asset library) can also be displayed on the graphical user interface 200. When the user selects an existing material from the tire track library, a preview image of the material effect applied to the target tire track model by the selected existing material can be displayed on the graphical user interface (i.e.,...). Figure 5 (See the details shown) for users to view.
[0083] Step e2: In response to the selection operation of a target material effect preview image among the multiple material effect preview images, the target tire mark model is rendered according to the existing material matched by the target material effect preview image, and the rendered target tire mark model is displayed in the graphical user interface.
[0084] Here, the target material effect preview image represents the material effect preview image selected by the user from multiple material effect preview images. In response to the user's selection operation for the target material effect preview image, Unreal Engine can use the existing material that matches the target material effect preview image to render the target tire mark model. Based on the three-dimensional position coordinates of each point on the target tire mark model, Unreal Engine determines the specific display position of the rendered target tire mark model in the graphical user interface, and thus displays the rendered target tire mark model at that display position.
[0085] Specifically, based on the aforementioned data asset library, as an optional embodiment, users can also follow the steps f1-f2 below to add a specific target mask to the existing material of the currently selected target using the masking tool pre-integrated in Unreal Engine. This allows the material with the added target mask, when applied to the target tire track model, to exhibit a semi-transparent effect after rendering, thus enabling the rendered target tire track model to better integrate into the virtual terrain currently displayed on the graphical user interface. Step f1: In response to the material optimization operation for the target existing material in the data asset library, a target mask is superimposed on the target existing material to obtain an optimized version of the target existing material as the target tire mark material.
[0086] Here, any mask that can produce a semi-transparent effect can be used as a target mask. However, the specific mask type of the target mask is not unique, and this application embodiment does not impose any limitations on it.
[0087] Specifically, as an optional embodiment, the target mask can be a mask that represents a gradual decrease in brightness from the center to the two edges; wherein, the aforementioned target existing material refers to an existing material selected by the user in the data asset library, and the aforementioned material optimization operation can be an operation in which the user selects to use the aforementioned new mask creation tool on the aforementioned target existing material. That is, in this embodiment of the application, based on the mask creation tool pre-integrated in Unreal Engine, the user selects which existing material to use the mask creation tool on, and the existing material with the aforementioned target mask added can be automatically generated as the optimized tire mark material.
[0088] Step f2: In response to the selection operation for the target tire mark material, render the target tire mark model according to the target tire mark material, and display the rendered target tire mark model in the graphical user interface.
[0089] Here, the specific implementation of step f2 is the same as that of step e2 above, and the repetitions will not be repeated here; however, unlike step e2 above, since the target tire mark material is an existing target material with the above-mentioned target mask added, after rendering the target tire mark model using the target tire mark material, the rendered target tire mark model can present a semi-transparent special effect (for example, when the target mask is a mask that indicates that the brightness gradually decreases from the center to the two sides, the above-mentioned semi-transparent special effect can specifically be: the center of the tire mark is opaque, and the two sides of the tire mark have high transparency). This allows the rendered target tire mark model to be better integrated into the virtual terrain currently displayed on the graphical user interface.
[0090] It should be noted that although using a regular Translucent semi-transparent model can also achieve a semi-transparent effect after rendering, a regular Translucent semi-transparent model requires a lot of rendering performance during rendering. Therefore, the material optimization method shown in steps f1-f2 above in this embodiment can effectively save rendering performance overhead, thereby ensuring a good semi-transparent effect while consuming less rendering performance.
[0091] In addition to optimizing the tire track material, as another optional embodiment, the normals of the target tire track model can be corrected as shown in step g1 below, so that the corrected target tire track model can better integrate into the virtual terrain currently displayed on the graphical user interface. Specifically: Step g1: In response to the virtual terrain displayed in the graphical user interface, the normal corresponding to the rendered target tire mark model is corrected to the world coordinate normal according to the world coordinate normal corresponding to the virtual terrain, and the rendered target tire mark model with the corrected normal is displayed in the virtual terrain.
[0092] Here, the normal correction function can also be implemented with the help of the normal correction tool that is integrated into Unreal Engine. That is, when virtual terrain is displayed in the graphical user interface, Unreal Engine will call the above-mentioned normal correction tool before displaying the rendered target tire track model in the virtual terrain, and correct the normals corresponding to the rendered target tire track model to the above-mentioned world coordinate normals, so that the normal-corrected target tire track model can be better integrated into the virtual terrain currently displayed on the graphical user interface.
[0093] An exemplary description, Figure 6a This illustration shows a schematic diagram of a target tire mark model before normal correction in a virtual terrain, as provided in an embodiment of this application. Figure 6b This illustration shows a schematic diagram of a target tire mark model with normal correction provided in an embodiment of this application in a virtual terrain. A comparison is made... Figure 6a and Figure 6b As can be clearly seen, in the same virtual terrain, the integration effect between the target tire track model after normal correction and the surrounding virtual terrain is obviously more natural than the integration effect between the target tire track model before normal correction and the surrounding virtual terrain.
[0094] In addition to optimizing the tire track material and correcting the normals of the target tire track model, as another optional embodiment, the vertex colors of each mesh vertex in the target tire track model can be processed according to the steps h1-h2 below, so that the target tire track model with processed vertex colors can be better integrated into the virtual terrain currently displayed on the graphical user interface. Specifically: Step h1: In response to the virtual terrain displayed in the graphical user interface, determine the placement position of the rendered target tire mark model in the virtual terrain based on the position coordinates of the rendered target tire mark model in the virtual space.
[0095] Here, virtual space refers to the virtual space where the virtual terrain is located. The position coordinates of the rendered target tire track model in the virtual space can be found in the details of step c7 above. Repeated parts will not be repeated here.
[0096] Step h2: When displaying the rendered target tire mark model in the virtual terrain, the vertex color of each grid vertex in the rendered target tire mark model is configured to the terrain color according to the terrain color of the local terrain area adjacent to the placement position in the virtual terrain.
[0097] Specifically, for the rendered target tire mark model, if the terrain color of the local terrain region adjacent to its placement position in the virtual terrain is light, then the vertex color of each grid vertex in the rendered target tire mark model will be configured to be light; if the terrain color of the local terrain region adjacent to its placement position in the virtual terrain is dark, then the vertex color of each grid vertex in the rendered target tire mark model will be configured to be dark.
[0098] An exemplary description, Figure 7a This illustration shows a schematic diagram of a pre-modified target tire mark model in a virtual terrain, as provided in an embodiment of this application. Figure 7b This illustration shows a modified target tire mark model in a virtual terrain, as provided in an embodiment of this application. The modification refers to the changes made to the target tire mark model compared to the original model, including material optimization, normal correction, and vertex color processing. (Comparison is needed for accurate translation.) Figure 7a and Figure 7b As can be clearly seen, in the same virtual terrain, the modified target tire track model blends more naturally with the surrounding virtual terrain than the original target tire track model.
[0099] It should be noted that for the generated target tire mark model displayed on the graphical user interface, users can also instruct Unreal Engine to update and correct the target tire mark model according to the transformed target curve or the modified tire mark control parameters by dragging the original target curve or modifying the previously configured tire mark control parameters, so as to obtain a new version of the target tire mark model that matches the transformed target curve or the modified tire mark control parameters.
[0100] Based on the tire mark model generation method provided in this application embodiment, in response to a curve input operation on a graphical user interface, target curve data input by the user in the graphical user interface is obtained; in response to a parameter configuration operation on the target curve data, multiple tire mark control parameters configured by the user for the target curve data are determined; and in response to a confirmation operation on the multiple tire mark control parameters, a target tire mark model matching the target curve data and the multiple tire mark control parameters is generated. Thus, this application uses the curve data input by the user as the original reference data for generating the tire mark model, and uses the multiple tire mark control parameters configured by the user to drive the creation of the tire mark model, thereby enabling one-click generation of target tire mark models that meet the user's personalized needs, effectively improving the efficiency of tire mark model production.
[0101] Based on the same inventive concept, this application also provides a generating device corresponding to the above-mentioned tire mark model generating method. Since the principle of the generating device in the embodiments of this application is similar to the above-mentioned tire mark model generating method in the embodiments of this application, the implementation of the generating device can refer to the implementation of the above-mentioned generating method, and the repeated parts will not be described again.
[0102] Reference Figure 8 As shown, Figure 8 A schematic diagram of a tire mark model generation device provided in an embodiment of this application is shown, wherein the generation device includes: The curve acquisition module 801 is used to acquire target curve data input by the user in the graphical user interface in response to a curve input operation for the graphical user interface. The parameter configuration module 802 is used to determine multiple tire mark control parameters configured by the user for the target curve data in response to a parameter configuration operation for the target curve data. The tire mark generation module 803 is used to generate a target tire mark model that matches the target curve data and the multiple tire mark control parameters in response to a confirmation operation for the multiple tire mark control parameters.
[0103] In an optional implementation, when acquiring target curve data input by the user in the graphical user interface in response to a curve input operation for the graphical user interface, the curve acquisition module 801 is configured to: In response to a curve drawing operation for the graphical user interface, a target curve drawn by the user is displayed on the graphical user interface, and the curve data of the target curve is used as the target curve data; or, In response to a curve import operation for the graphical user interface, external curve data imported by the user is acquired as the target curve data, and the target curve matching the external curve data is displayed on the graphical user interface.
[0104] In one alternative implementation, the plurality of tire mark control parameters include at least one of the following: Random style control parameters; wherein, the random style parameters are used to randomly influence the model style of the generated target tire mark model; Tire mark quantity control parameters; wherein, the tire mark quantity control parameters are used to determine the number of generated target tire mark models; Tire mark shape control parameters; wherein, the tire mark shape control parameters include: a width parameter for determining the width of the generated target tire mark model, and a length parameter for constraining the range of values for the length of the generated target tire mark model; Tire mark position control parameters; wherein, the tire mark position control parameters include: an overall offset control parameter for determining the overall positional offset of all generated target tire mark models relative to the target curve, and a unidirectional offset control parameter for determining the edge offset of each generated target tire mark model relative to the target curve; the target curve represents the curve corresponding to the target curve data; Collision detection range parameters; wherein, the collision detection range parameters are used to determine the detection range for collision detection at each point on the target curve along the depth direction.
[0105] In an optional implementation, when generating the target tire mark model that matches the target curve data and the plurality of tire mark control parameters, the tire mark generation module 803 is configured to: Based on the tire mark quantity control parameter, a curve of target length is randomly selected from the target curve to obtain an initial curve that matches the number of models; wherein, the target length represents the length of a random curve determined according to the random length ratio indicated by the random style control parameter within the range of the length parameter value; For each of the initial curves, an initial surface that matches the width parameter and has a shape that matches the initial curve is determined based on the width parameter. Based on the overall offset control parameters, determine the overall position offset of the initial surface relative to the initial curve; Based on the unidirectional offset control parameters, the unidirectional position offset of the edge region of the initial surface relative to the edge region of the initial curve is determined; wherein, the width of the initial surface after the unidirectional position offset remains to match the width parameter; Based on the overall position offset and the unidirectional position offset, determine the position coordinates of each point on the initial surface on the target two-dimensional plane; wherein, the target two-dimensional plane represents a two-dimensional plane in virtual space that is perpendicular to the depth direction; Based on the collision detection range parameters, the position coordinates of each point on the initial surface in the depth direction are determined by performing collision detection in the virtual space. Based on the three-dimensional position coordinates of each point on the initial surface in the virtual space, a target tire mark model matching the initial surface is generated; wherein, the three-dimensional position coordinates are determined based on the position coordinates of each point on the initial surface on the target two-dimensional plane and the position coordinates in the depth direction.
[0106] In an optional implementation, when generating a target tire mark model matching the initial surface based on the three-dimensional position coordinates of each point on the initial surface in the virtual space, the tire mark generation module 803 is further configured to: The target proportion of the beginning and end of the initial surface is obtained by dividing the endpoint length of the initial surface by the overall curve length of the initial surface; wherein, the endpoint length represents the curve length corresponding to the beginning and end of the initial surface. When generating the target tire mark model, the mesh subdivision level corresponding to the beginning and end ends in the target tire mark model is determined according to the target scale.
[0107] In one optional embodiment, the generating apparatus further includes a material configuration module, wherein the material configuration module is used for: Based on multiple existing materials stored in the data asset library, material effect preview images matching each of the multiple existing materials are dynamically generated; wherein, the material effect preview image is determined based on the effect of the existing material applied to the target tire mark model; In response to the selection operation of a target material effect preview image among multiple material effect preview images, the target tire mark model is rendered according to the existing material matched by the target material effect preview image, and the rendered target tire mark model is displayed in the graphical user interface.
[0108] In one optional implementation, the material configuration module is further configured to: In response to the material optimization operation for the target existing material in the data asset library, a target mask is superimposed on the target existing material to obtain an optimized version of the target existing material as the target tire mark material; In response to the selection operation for the target tire mark material, the target tire mark model is rendered according to the target tire mark material, and the rendered target tire mark model is displayed in the graphical user interface.
[0109] In an optional implementation, when the rendered target tire mark model is displayed in the graphical user interface, the material configuration module is further configured to: In response to the display of virtual terrain in the graphical user interface, the normal corresponding to the rendered target tire mark model is corrected to the world coordinate normal based on the world coordinate normal corresponding to the virtual terrain, and the rendered target tire mark model with the corrected normal is displayed in the virtual terrain.
[0110] In an optional implementation, when the rendered target tire mark model is displayed in the graphical user interface, the material configuration module is further configured to: In response to the display of virtual terrain in the graphical user interface, the placement position of the rendered target tire mark model in the virtual terrain is determined according to the position coordinates of the rendered target tire mark model in the virtual space. When the rendered target tire mark model is displayed in the virtual terrain, the vertex color of each grid vertex in the rendered target tire mark model is configured to the terrain color according to the terrain color of the local terrain area adjacent to the placement position in the virtual terrain.
[0111] Based on the tire mark model generation apparatus provided in this application embodiment, in response to a curve input operation for a graphical user interface, it acquires target curve data input by the user in the graphical user interface; in response to a parameter configuration operation for the target curve data, it determines multiple tire mark control parameters configured by the user for the target curve data; and in response to a confirmation operation for the multiple tire mark control parameters, it generates a target tire mark model that matches the target curve data and the multiple tire mark control parameters. Thus, this application uses the curve data input by the user as the original reference data for generating the tire mark model, and uses the multiple tire mark control parameters configured by the user to drive the creation of the tire mark model, thereby enabling one-click generation of target tire mark models that meet the user's personalized needs, effectively improving the efficiency of tire mark model production.
[0112] Based on the same inventive concept, this application also provides an electronic device corresponding to the above-mentioned method for generating tire mark models. Since the principle of solving the problem by the electronic device in the embodiments of this application is similar to the above-mentioned method for generating tire mark models in the embodiments of this application, the implementation of the electronic device can refer to the implementation of the above-mentioned method for generating tire mark models, and the repeated parts will not be described again.
[0113] Figure 9A schematic diagram of the structure of an electronic device 900 provided in this application embodiment includes: a processor 901, a memory 902, and a bus 903. The memory 902 stores machine-readable instructions executable by the processor 901. When the electronic device runs a tire mark model generation method as described in the embodiment, the processor 901 communicates with the memory 902 via the bus 903. The processor 901 executes the machine-readable instructions, wherein the processor 901 executes the machine-readable instructions to perform the following steps, specifically: In response to a curve input operation for a graphical user interface, acquire the target curve data input by the user in the graphical user interface; In response to a parameter configuration operation for the target curve data, determine multiple tire mark control parameters configured by the user for the target curve data; In response to the confirmation operation for the plurality of tire mark control parameters, a target tire mark model that matches the target curve data and the plurality of tire mark control parameters is generated.
[0114] In an alternative implementation, when acquiring target curve data input by the user in the graphical user interface in response to a curve input operation for the graphical user interface, the processor 901 is configured to: In response to a curve drawing operation for the graphical user interface, a target curve drawn by the user is displayed on the graphical user interface, and the curve data of the target curve is used as the target curve data; or, In response to a curve import operation for the graphical user interface, external curve data imported by the user is acquired as the target curve data, and the target curve matching the external curve data is displayed on the graphical user interface.
[0115] In one alternative implementation, the plurality of tire mark control parameters include at least one of the following: Random style control parameters; wherein, the random style parameters are used to randomly influence the model style of the generated target tire mark model; Tire mark quantity control parameters; wherein, the tire mark quantity control parameters are used to determine the number of generated target tire mark models; Tire mark shape control parameters; wherein, the tire mark shape control parameters include: a width parameter for determining the width of the generated target tire mark model, and a length parameter for constraining the range of values for the length of the generated target tire mark model; Tire mark position control parameters; wherein, the tire mark position control parameters include: an overall offset control parameter for determining the overall positional offset of all generated target tire mark models relative to the target curve, and a unidirectional offset control parameter for determining the edge offset of each generated target tire mark model relative to the target curve; the target curve represents the curve corresponding to the target curve data; Collision detection range parameters; wherein, the collision detection range parameters are used to determine the detection range for collision detection at each point on the target curve along the depth direction.
[0116] In one alternative implementation, when generating the target tire mark model that matches the target curve data and the plurality of tire mark control parameters, the processor 901 is configured to: Based on the tire mark quantity control parameter, a curve of target length is randomly selected from the target curve to obtain an initial curve that matches the number of models; wherein, the target length represents the length of a random curve determined according to the random length ratio indicated by the random style control parameter within the range of the length parameter value; For each of the initial curves, an initial surface that matches the width parameter and has a shape that matches the initial curve is determined based on the width parameter. Based on the overall offset control parameters, determine the overall position offset of the initial surface relative to the initial curve; Based on the unidirectional offset control parameters, the unidirectional position offset of the edge region of the initial surface relative to the edge region of the initial curve is determined; wherein, the width of the initial surface after the unidirectional position offset remains to match the width parameter; Based on the overall position offset and the unidirectional position offset, determine the position coordinates of each point on the initial surface on the target two-dimensional plane; wherein, the target two-dimensional plane represents a two-dimensional plane in virtual space that is perpendicular to the depth direction; Based on the collision detection range parameters, the position coordinates of each point on the initial surface in the depth direction are determined by performing collision detection in the virtual space. Based on the three-dimensional position coordinates of each point on the initial surface in the virtual space, a target tire mark model matching the initial surface is generated; wherein, the three-dimensional position coordinates are determined based on the position coordinates of each point on the initial surface on the target two-dimensional plane and the position coordinates in the depth direction.
[0117] In an optional implementation, when generating a target tire mark model matching the initial surface based on the three-dimensional position coordinates of points on the initial surface in the virtual space, the processor 901 is further configured to: The target proportion of the beginning and end of the initial surface is obtained by dividing the endpoint length of the initial surface by the overall curve length of the initial surface; wherein, the endpoint length represents the curve length corresponding to the beginning and end of the initial surface. When generating the target tire mark model, the mesh subdivision level corresponding to the beginning and end ends in the target tire mark model is determined according to the target scale.
[0118] In an alternative implementation, the processor 901 is further configured to: Based on multiple existing materials stored in the data asset library, material effect preview images matching each of the multiple existing materials are dynamically generated; wherein, the material effect preview image is determined based on the effect of the existing material applied to the target tire mark model; In response to the selection operation of a target material effect preview image among multiple material effect preview images, the target tire mark model is rendered according to the existing material matched by the target material effect preview image, and the rendered target tire mark model is displayed in the graphical user interface.
[0119] In an alternative implementation, after forming the tire mark material library consisting of a plurality of said tire mark materials, the processor 901 is further configured to: In response to the material optimization operation for the target existing material in the data asset library, a target mask is superimposed on the target existing material to obtain an optimized version of the target existing material as the target tire mark material; In response to the selection operation for the target tire mark material, the target tire mark model is rendered according to the target tire mark material, and the rendered target tire mark model is displayed in the graphical user interface.
[0120] In an alternative implementation, when the rendered target tire mark model is displayed in the graphical user interface, the processor 901 is further configured to: In response to the display of virtual terrain in the graphical user interface, the normal corresponding to the rendered target tire mark model is corrected to the world coordinate normal based on the world coordinate normal corresponding to the virtual terrain, and the rendered target tire mark model with the corrected normal is displayed in the virtual terrain.
[0121] In an alternative implementation, when the rendered target tire mark model is displayed in the graphical user interface, the processor 901 is further configured to: In response to the display of virtual terrain in the graphical user interface, the placement position of the rendered target tire mark model in the virtual terrain is determined according to the position coordinates of the rendered target tire mark model in the virtual space. When the rendered target tire mark model is displayed in the virtual terrain, the vertex color of each grid vertex in the rendered target tire mark model is configured to the terrain color according to the terrain color of the local terrain area adjacent to the placement position in the virtual terrain.
[0122] The electronic device provided in this application embodiment, in response to a curve input operation on a graphical user interface, acquires the target curve data input by the user in the graphical user interface; in response to a parameter configuration operation on the target curve data, determines multiple tire mark control parameters configured by the user for the target curve data; and in response to a confirmation operation on the multiple tire mark control parameters, generates a target tire mark model that matches the target curve data and the multiple tire mark control parameters. Thus, this application uses the curve data input by the user as the original reference data for generating the tire mark model, and uses the multiple tire mark control parameters configured by the user to drive the creation of the tire mark model, thereby enabling one-click generation of a target tire mark model that meets the user's personalized needs, effectively improving the efficiency of tire mark model production.
[0123] Based on the same inventive concept, embodiments of this application also provide a computer-readable storage medium storing a computer program, which is executed by a processor, wherein the processor performs the following steps: In response to a curve input operation for a graphical user interface, acquire the target curve data input by the user in the graphical user interface; In response to a parameter configuration operation for the target curve data, determine multiple tire mark control parameters configured by the user for the target curve data; In response to the confirmation operation for the plurality of tire mark control parameters, a target tire mark model that matches the target curve data and the plurality of tire mark control parameters is generated.
[0124] In one alternative implementation, when acquiring target curve data input by the user in the graphical user interface in response to a curve input operation for the graphical user interface, the processor is configured to: In response to a curve drawing operation for the graphical user interface, a target curve drawn by the user is displayed on the graphical user interface, and the curve data of the target curve is used as the target curve data; or, In response to a curve import operation for the graphical user interface, external curve data imported by the user is acquired as the target curve data, and the target curve matching the external curve data is displayed on the graphical user interface.
[0125] In one alternative implementation, the plurality of tire mark control parameters include at least one of the following: Random style control parameters; wherein, the random style parameters are used to randomly influence the model style of the generated target tire mark model; Tire mark quantity control parameters; wherein, the tire mark quantity control parameters are used to determine the number of generated target tire mark models; Tire mark shape control parameters; wherein, the tire mark shape control parameters include: a width parameter for determining the width of the generated target tire mark model, and a length parameter for constraining the range of values for the length of the generated target tire mark model; Tire mark position control parameters; wherein, the tire mark position control parameters include: an overall offset control parameter for determining the overall positional offset of all generated target tire mark models relative to the target curve, and a unidirectional offset control parameter for determining the edge offset of each generated target tire mark model relative to the target curve; the target curve represents the curve corresponding to the target curve data; Collision detection range parameters; wherein, the collision detection range parameters are used to determine the detection range for collision detection at each point on the target curve along the depth direction.
[0126] In one alternative implementation, when generating a target tire mark model that matches the target curve data and the plurality of tire mark control parameters, the processor is configured to: Based on the tire mark quantity control parameter, a curve of target length is randomly selected from the target curve to obtain an initial curve that matches the number of models; wherein, the target length represents the length of a random curve determined according to the random length ratio indicated by the random style control parameter within the range of the length parameter value; For each of the initial curves, an initial surface that matches the width parameter and has a shape that matches the initial curve is determined based on the width parameter. Based on the overall offset control parameters, determine the overall position offset of the initial surface relative to the initial curve; Based on the unidirectional offset control parameters, the unidirectional position offset of the edge region of the initial surface relative to the edge region of the initial curve is determined; wherein, the width of the initial surface after the unidirectional position offset remains to match the width parameter; Based on the overall position offset and the unidirectional position offset, determine the position coordinates of each point on the initial surface on the target two-dimensional plane; wherein, the target two-dimensional plane represents a two-dimensional plane in virtual space that is perpendicular to the depth direction; Based on the collision detection range parameters, the position coordinates of each point on the initial surface in the depth direction are determined by performing collision detection in the virtual space. Based on the three-dimensional position coordinates of each point on the initial surface in the virtual space, a target tire mark model matching the initial surface is generated; wherein, the three-dimensional position coordinates are determined based on the position coordinates of each point on the initial surface on the target two-dimensional plane and the position coordinates in the depth direction.
[0127] In an optional implementation, when generating a target tire mark model matching the initial surface based on the three-dimensional position coordinates of points on the initial surface in the virtual space, the processor is further configured to: The target proportion of the beginning and end of the initial surface is obtained by dividing the endpoint length of the initial surface by the overall curve length of the initial surface; wherein, the endpoint length represents the curve length corresponding to the beginning and end of the initial surface. When generating the target tire mark model, the mesh subdivision level corresponding to the beginning and end ends in the target tire mark model is determined according to the target scale.
[0128] In one alternative implementation, the processor is further configured to: Based on multiple existing materials stored in the data asset library, material effect preview images matching each of the multiple existing materials are dynamically generated; wherein, the material effect preview image is determined based on the effect of the existing material applied to the target tire mark model; In response to the selection operation of a target material effect preview image among multiple material effect preview images, the target tire mark model is rendered according to the existing material matched by the target material effect preview image, and the rendered target tire mark model is displayed in the graphical user interface.
[0129] In one alternative implementation, the processor is further configured to: In response to the material optimization operation for the target existing material in the data asset library, a target mask is superimposed on the target existing material to obtain an optimized version of the target existing material as the target tire mark material; In response to the selection operation for the target tire mark material, the target tire mark model is rendered according to the target tire mark material, and the rendered target tire mark model is displayed in the graphical user interface.
[0130] In an alternative implementation, when the rendered target tire mark model is displayed in the graphical user interface, the processor is further configured to: In response to the display of virtual terrain in the graphical user interface, the normal corresponding to the rendered target tire mark model is corrected to the world coordinate normal based on the world coordinate normal corresponding to the virtual terrain, and the rendered target tire mark model with the corrected normal is displayed in the virtual terrain.
[0131] In an alternative implementation, when the rendered target tire mark model is displayed in the graphical user interface, the processor is further configured to: In response to the display of virtual terrain in the graphical user interface, the placement position of the rendered target tire mark model in the virtual terrain is determined according to the position coordinates of the rendered target tire mark model in the virtual space. When the rendered target tire mark model is displayed in the virtual terrain, the vertex color of each grid vertex in the rendered target tire mark model is configured to the terrain color according to the terrain color of the local terrain area adjacent to the placement position in the virtual terrain.
[0132] The computer-readable storage medium provided in this application embodiment, in response to a curve input operation for a graphical user interface, acquires target curve data input by the user in the graphical user interface; in response to a parameter configuration operation for the target curve data, determines multiple tire mark control parameters configured by the user for the target curve data; and in response to a confirmation operation for the multiple tire mark control parameters, generates a target tire mark model that matches the target curve data and the multiple tire mark control parameters. Thus, this application uses the curve data input by the user as the original reference data for generating the tire mark model, and uses the multiple tire mark control parameters configured by the user to drive the creation of the tire mark model, thereby enabling one-click generation of target tire mark models that meet the user's personalized needs, effectively improving the efficiency of tire mark model production.
[0133] In the embodiments of this application, the computer-readable storage medium can also execute other machine-readable instructions when the processor runs, so as to execute the tire mark model generation method as described in other embodiments. For the specific steps and principles of the tire mark model generation method, please refer to the description of the method-side embodiment, which will not be repeated here.
[0134] In the embodiments provided in this application, it should be understood that the disclosed systems and methods can be implemented in other ways. The system embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and there may be other division methods in actual implementation. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the coupling or direct coupling or communication connection shown or discussed may be through some communication interface; the indirect coupling or communication connection between systems or units may be electrical, mechanical, or other forms.
[0135] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0136] In addition, the functional units in the embodiments provided in this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0137] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0138] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0139] Finally, it should be noted that the above-described embodiments are merely specific implementations of this application, used to illustrate the technical solutions of this application, and not to limit them. The protection scope of this application is not limited thereto. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this application; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application. All should be covered within the protection scope of this application. Therefore, the protection scope of this application should be determined by the protection scope of the claims.
Claims
1. A method for generating a tire mark model, characterized in that, The generation method includes: In response to a curve input operation for a graphical user interface, acquire the target curve data input by the user in the graphical user interface; In response to a parameter configuration operation for the target curve data, determine multiple tire mark control parameters configured by the user for the target curve data; In response to the confirmation operation for the plurality of tire mark control parameters, a target tire mark model that matches the target curve data and the plurality of tire mark control parameters is generated.
2. The generation method according to claim 1, characterized in that, The step of acquiring target curve data input by the user in the graphical user interface in response to a curve input operation on the graphical user interface includes: In response to a curve drawing operation for the graphical user interface, a target curve drawn by the user is displayed on the graphical user interface, and the curve data of the target curve is used as the target curve data; or, In response to a curve import operation for the graphical user interface, external curve data imported by the user is acquired as the target curve data, and the target curve matching the external curve data is displayed on the graphical user interface.
3. The generation method according to claim 1, characterized in that, The plurality of tire mark control parameters include at least one of the following: Random style control parameters; wherein, the random style parameters are used to randomly influence the model style of the generated target tire mark model; Tire mark quantity control parameters; wherein, the tire mark quantity control parameters are used to determine the number of generated target tire mark models; Tire mark shape control parameters; wherein, the tire mark shape control parameters include: a width parameter for determining the width of the generated target tire mark model, and a length parameter for constraining the range of values for the length of the generated target tire mark model; Tire mark position control parameters; wherein, the tire mark position control parameters include: an overall offset control parameter for determining the overall positional offset of all generated target tire mark models relative to the target curve, and a unidirectional offset control parameter for determining the edge offset of each generated target tire mark model relative to the target curve; the target curve represents the curve corresponding to the target curve data; Collision detection range parameters; wherein, the collision detection range parameters are used to determine the detection range for collision detection at each point on the target curve along the depth direction.
4. The generation method according to claim 3, characterized in that, The generation of a target tire mark model that matches the target curve data and the plurality of tire mark control parameters includes: Based on the tire mark quantity control parameter, a curve of target length is randomly selected from the target curve to obtain an initial curve that matches the number of models; wherein, the target length represents the length of a random curve determined according to the random length ratio indicated by the random style control parameter within the range of the length parameter value; For each of the initial curves, an initial surface that matches the width parameter and has a shape that matches the initial curve is determined based on the width parameter. Based on the overall offset control parameters, determine the overall position offset of the initial surface relative to the initial curve; Based on the unidirectional offset control parameters, the unidirectional position offset of the edge region of the initial surface relative to the edge region of the initial curve is determined; wherein, the width of the initial surface after the unidirectional position offset remains to match the width parameter; Based on the overall position offset and the unidirectional position offset, determine the position coordinates of each point on the initial surface on the target two-dimensional plane; wherein, the target two-dimensional plane represents a two-dimensional plane in virtual space that is perpendicular to the depth direction; Based on the collision detection range parameters, the position coordinates of each point on the initial surface in the depth direction are determined by performing collision detection in the virtual space. Based on the three-dimensional position coordinates of each point on the initial surface in the virtual space, a target tire mark model matching the initial surface is generated; wherein, the three-dimensional position coordinates are determined based on the position coordinates of each point on the initial surface on the target two-dimensional plane and the position coordinates in the depth direction.
5. The generation method according to claim 1, characterized in that, When generating a target tire mark model that matches the initial surface based on the three-dimensional position coordinates of each point on the initial surface in the virtual space, the generation method further includes: The target proportion of the beginning and end of the initial surface is obtained by dividing the endpoint length of the initial surface by the overall curve length of the initial surface; wherein, the endpoint length represents the curve length corresponding to the beginning and end of the initial surface. When generating the target tire mark model, the mesh subdivision level corresponding to the beginning and end ends in the target tire mark model is determined according to the target scale.
6. The generation method according to claim 1, characterized in that, The generation method further includes: Based on multiple existing materials stored in the data asset library, material effect preview images matching each of the multiple existing materials are dynamically generated; wherein, the material effect preview image is determined based on the effect of the existing material applied to the target tire mark model; In response to the selection operation of a target material effect preview image among multiple material effect preview images, the target tire mark model is rendered according to the existing material matched by the target material effect preview image, and the rendered target tire mark model is displayed in the graphical user interface.
7. The generation method according to claim 6, characterized in that, The generation method further includes: In response to the material optimization operation for the target existing material in the data asset library, a target mask is superimposed on the target existing material to obtain an optimized version of the target existing material as the target tire mark material; In response to the selection operation for the target tire mark material, the target tire mark model is rendered according to the target tire mark material, and the rendered target tire mark model is displayed in the graphical user interface.
8. The generation method according to claim 6, characterized in that, When displaying the rendered target tire mark model in the graphical user interface, the generation method further includes: In response to the display of virtual terrain in the graphical user interface, the normal corresponding to the rendered target tire mark model is corrected to the world coordinate normal based on the world coordinate normal corresponding to the virtual terrain, and the rendered target tire mark model with the corrected normal is displayed in the virtual terrain.
9. The generation method according to claim 6, characterized in that, When displaying the rendered target tire mark model in the graphical user interface, the generation method further includes: In response to the display of virtual terrain in the graphical user interface, the placement position of the rendered target tire mark model in the virtual terrain is determined according to the position coordinates of the rendered target tire mark model in the virtual space. When the rendered target tire mark model is displayed in the virtual terrain, the vertex color of each grid vertex in the rendered target tire mark model is configured to the terrain color according to the terrain color of the local terrain area adjacent to the placement position in the virtual terrain.
10. A device for generating a tire mark model, characterized in that, The generating apparatus includes: A curve acquisition module is used to acquire target curve data input by the user in the graphical user interface in response to a curve input operation for the graphical user interface. The parameter configuration module is used to determine multiple tire mark control parameters configured by the user for the target curve data in response to the parameter configuration operation for the target curve data. The tire mark generation module is used to generate a target tire mark model that matches the target curve data and the multiple tire mark control parameters in response to the confirmation operation of the multiple tire mark control parameters.
11. An electronic device, characterized in that, include: The device includes a processor, a memory, and a bus. The memory stores machine-readable instructions that the processor executes. When the electronic device is in operation, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, they perform the steps of the method for generating a tire mark model as described in any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, performs the steps of the method for generating a tire mark model as described in any one of claims 1 to 9.