CN111540062B - Path generation method based on UE engine - Google Patents

Path generation method based on UE engine Download PDF

Info

Publication number
CN111540062B
CN111540062B CN202010275636.2A CN202010275636A CN111540062B CN 111540062 B CN111540062 B CN 111540062B CN 202010275636 A CN202010275636 A CN 202010275636A CN 111540062 B CN111540062 B CN 111540062B
Authority
CN
China
Prior art keywords
curve
path
engine
automobile
selection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010275636.2A
Other languages
Chinese (zh)
Other versions
CN111540062A (en
Inventor
田晓林
沈宝亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Longshi Technology Co ltd
Original Assignee
Xiamen Longshi Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Longshi Technology Co ltd filed Critical Xiamen Longshi Technology Co ltd
Priority to CN202010275636.2A priority Critical patent/CN111540062B/en
Publication of CN111540062A publication Critical patent/CN111540062A/en
Application granted granted Critical
Publication of CN111540062B publication Critical patent/CN111540062B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts

Landscapes

  • Engineering & Computer Science (AREA)
  • Architecture (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a path generating method based on a UE engine, which comprises the following steps: s1, in a UE engine, using a curve tool, sequentially clicking and adding a plurality of curve points through a mouse, and forming a curve path by adjacent curve points; s2, developing a path type, wherein the path type comprises an automobile, a figure or a user-defined object; editing the curve path preliminarily drawn in the S1, including modifying the curve parameters; s3, when the path type selects the automobile, the automobile comprises a manual selection mode of an automobile type list introduced from the outside and an automatic selection mode of randomly distributing a plurality of automobile types by a system; the modification of the curve parameters includes bidirectional editing of lanes, editing of open and closed paths, editing of hiding and displaying, and editing of adding or inserting curve points indefinitely, and the like. The invention greatly enriches the generation methods of various paths.

Description

Path generation method based on UE engine
Technical Field
The invention relates to the field of virtual reality software development and application, in particular to a path generation method based on a UE engine.
Background
The UE Engine is an Unreal Engine, and the Unreal Engine is a 3D game Engine and a development tool, supports the development of 3D games from 2D mobile platform games to computers to game host platforms, and a large number of excellent games on the market are manufactured based on the UE.
The illusion engine provides development tool downloading of Windows and Mac platforms, and the manufactured works can run on Windows, mac, linux, PS4, X-Box One, iOS, android and even HTML5 platforms.
The existing path generation method based on the UE engine can only realize one-way single lane or one-way multi-lane, but can not edit the path.
Disclosure of Invention
In view of the above, in order to solve the above technical problems, an object of the present invention is to provide a path generating method based on a UE engine, which can edit a curved path in various ways.
The adopted technical scheme is as follows:
a path generation method based on a UE engine comprises the following steps:
s1, in a UE engine, using a curve tool, sequentially clicking and adding a plurality of curve points through a mouse, and forming a curve path by adjacent curve points;
s2, developing a path type, wherein the path type comprises an automobile, a figure or a user-defined object; editing the curve path preliminarily drawn in the S1, including modifying the curve parameters;
s3, when the path type selects the automobile, the automobile comprises a manual selection mode of an automobile type list introduced from the outside and an automatic selection mode of randomly distributing a plurality of automobile types by a system; the modification of the curve parameter includes any one of the following S31-S35:
s31, adding a same opposite lane according to the one-way lane of the curve path to generate a two-way lane;
s32, modifying the unidirectional curve path into a closed curve path;
s33, the curve path can be modified to be hidden or displayed;
s34, developing a pen tool, editing the head and the tail of the curve path in the current open state, and adding new curve points; or a plus sign is developed and set between two points in the curve path, so that a new plus sign is automatically generated between a new curve point and an original curve point, and the new curve point can be added into two already formed curve points circularly;
s35, the curve points can be moved or deleted.
Further, a selectable number of one-way lanes is set in S31: single lane, double lane or three lanes, and the selection of the road width of the lanes, the selection of the traffic density of 0-100 percent and the selection of the speed of 0-120 km/h.
Further, when generating bidirectional lanes, an isolation strip width between selectable lanes is set.
Further, S4, on the basis of S3, when the path type is continuously selected as the person, the person comprises a manual selection mode introducing the person from the outside and an automatic selection mode randomly distributing a plurality of persons by the system.
Further, when the path type selection is a person, an editable selection module can be provided, including forward and reverse selections, selections with a width of 0-100%, and selection of a road width occupied by an object located on a curved path.
Further, a custom system module is developed, so that when the path type is selected as a custom article object, the walking speed, the distance, the offset and the random angle of the custom article object can be defined in a custom mode.
The invention has the beneficial effects that:
the invention can edit the preliminarily generated curve path in various modes, including bidirectional editing of lanes, editing of open and closed paths, editing of hiding and displaying, and editing of infinitely increasing or inserting curve points, thereby greatly enriching the generation methods of various paths.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic view of an editable interface when a selected path type is an automobile in the path generating method based on the UE engine in embodiment 1.
Fig. 2 is an effect diagram generated after editing when the selected route type is an automobile in the route generation method based on the UE engine in embodiment 1.
Fig. 3 is a schematic diagram of an editable interface when the type of the selected path is a person in the path generating method based on the UE engine in embodiment 2.
Fig. 4 is a schematic diagram of an editable interface when the type of the selected path in the path generating method based on the UE engine in embodiment 2 is self-defined.
Fig. 5 is an effect diagram generated after editing when the type of the selected path is a person in the path generating method based on the UE engine in embodiment 2.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only preferred embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1
Referring to fig. 1 and 2, a path generation method based on a UE engine includes the following steps:
s1, in a UE engine, using a curve tool, sequentially clicking and adding a plurality of curve points through a mouse, and forming a curve path by adjacent curve points;
s2, developing a path type, wherein the path type comprises an automobile, a figure or a user-defined object; editing the curve path preliminarily drawn in the step S1, including modifying the curve parameters;
s3, when the path type selects the automobile, the automobile comprises a manual selection mode of an automobile type list introduced from the outside and an automatic selection mode of randomly distributing a plurality of automobile types by a system; the modification of the curve parameter includes any one of the following S31-S35:
s31, adding a same opposite lane according to the one-way lane of the curve path to generate a two-way lane; as shown in the effect diagram of fig. 2. When generating bidirectional lanes, the isolation strip width between selectable lanes is set. One-way lane number can also be selected: single lane, double lane or three lanes, and the selection of road width of lane, the selection of traffic density of 0-100% and the selection of speed of 0-120 km/h. The lanes may also be selected in reverse, forming a single lane in reverse, as shown in fig. 1.
S32, modifying the unidirectional curve path into a closed curve path; as shown in fig. 1.
S33, the curve path can be modified to be hidden or displayed; as shown in fig. 1.
S34, developing a pen tool, editing the head and the tail of the curve path in the current open state, and adding new curve points; or a plus sign is developed and set between two points in the curve path, so that a new plus sign is automatically generated between a new curve point and the original curve point, the new curve point can be added into the two formed curve points in a circulating way, and the new curve point can be produced by clicking the plus sign with a mouse;
s35, the curve points can be moved or deleted.
The preliminarily generated curve path is edited in various modes, including bidirectional editing of lanes, editing of open and closed paths, editing of hiding and displaying, and editing of infinitely increasing or inserting curve points, so that the generation methods of various paths can be greatly enriched.
In the above several edits, where the vehicle moves on a forward curve path (in the UE engine, the curve includes a straight line), the forward edit algorithm to add curve points may be as follows:
and drawing a curve with a starting point and an end point, wherein the starting point and the end point have length values, coordinate values of each segment length of the curve in a UE scene can be obtained through length increment, simultaneously, a selected object is set, the object is incremented through the current length value of the object on the curve, the object is converted into the current coordinate value of the curve in the scene, then, the coordinate of the object is updated, and the method is continuously repeated circularly according to the principle. The object may update the coordinates based on mouse clicks.
For example, the first point is increased from 0, the mouse clicks in sequence, new points are added in sequence, a line segment (with a length value) is formed between the points, the adjacent point clicked later is increased according to the previous point, and a new line segment is formed between the point and the next point.
The editing algorithm for the insertion point may be as follows (the insertion point is the new curve point inserted by the "+" sign):
each point that has been added is automatically numbered, for example starting from 0 increments: 0-N, N is a natural number. Judging whether the number of the click selected by the mouse is smaller than the current N/2 or not according to the number of the click selected by the mouse, if so (namely, smaller than the current N/2), editing in a way of adding points to the head, automatically changing the newly added points into new points with the number of 0, and renumbering and sequencing the subsequent points; if not (i.e., greater than or equal to), editing is performed in a tail plus point manner, while the newly added points continue to be sorted by number.
The editing algorithm for deleting curve points may be as follows:
deleting the current curve point and the line segment of the corresponding point, recalculating the curvature of the line segment of the two adjacent points, and updating the curvatures of the line segments of the two points adjacent to the left and the right of the deleted point.
The editing algorithm for the moving point may be as follows:
and after the moving position is fixed, the line segment curvatures of the two adjacent points are recalculated, and the line segment curvatures of the two adjacent points are updated.
The algorithm for the closed path curve may be as follows:
adding line segments to the head and the tail of the curve, and simultaneously updating the curvature of the line segments of the head and the tail to form a closed path.
And defining that each point has a corresponding line segment, when the valve is closed, forming a new line segment at the head and tail points, and updating the curvature of the line segment at the head corresponding point and the curvature of the line segment at the tail corresponding point.
The movement of the vehicle on a reverse curve path (in the UE engine, the curve includes a straight line), the reverse editing algorithm to add curve points may be as follows:
and reducing the length, converting the length into the coordinate of the current length in the UE scene, and updating the coordinate of the object. And when the length value of the current object is 0, continuously reducing the length value from the maximum length value, and continuously and circularly repeating. The object may update the coordinates according to the mouse click.
Example 2
Referring to embodiment 1, unlike embodiment 1, when the path type is selected as a character, an editable selection module may be provided, including forward and reverse selections, a selection of a width of 0-100%, and a selection of a road width occupied by an object on a curved path, as shown in fig. 3-5.
Further, a custom system module is developed, so that when the path type is selected as a custom article object, the walking speed, the distance, the offset and the random angle of the custom article object can be defined in a custom mode.
The pitch refers to the distance between the object and the object along the longitudinal direction of the curve. The offset is to randomly offset the current path; the random angle is the initial angle of random change to the added object. As shown in fig. 3.
The object objects include cars, people, and the like. Therefore, the custom system module can be superposed on the automobile or the person to edit the automobile or the person. Such as custom selection of walking speed, pitch, offset and random angle of a car or character.
Fig. 5 shows an effect diagram of a character walking on a curved path, the figure showing only static effects.
The generation and editing of the curved path are as in example 1.
The above-listed detailed description is only a specific description of a possible embodiment of the present invention, and they are not intended to limit the scope of the present invention, and equivalent embodiments or modifications made without departing from the technical spirit of the present invention should be included in the scope of the present invention.

Claims (6)

1. A path generation method based on a UE engine is characterized by comprising the following steps:
s1, in a UE engine, using a curve tool, sequentially clicking and adding a plurality of curve points through a mouse, and forming a curve path by adjacent curve points;
s2, developing a path type, wherein the path type comprises an automobile, a figure or a user-defined object; editing the curve path preliminarily drawn in the step S1, including modifying the curve parameters;
s3, when the path type selects the automobile, the automobile comprises a manual selection mode of an automobile type list introduced from the outside and an automatic selection mode of randomly distributing a plurality of automobile types by a system; the modification of the curve parameter includes any one of the following S31-S35:
s31, adding a same opposite lane according to the one-way lane of the curve path to generate a two-way lane;
s32, modifying the unidirectional curve path into a closed curve path;
s33, the curve path can be modified to be hidden or displayed;
s34, developing a pen tool, editing the head and the tail of the curve path in the current open state, and adding new curve points; or a plus sign is developed and set between two points in the curve path, so that a new plus sign is automatically generated between a new curve point and an original curve point, and the new curve point can be added into two already formed curve points circularly;
s35, the curve points can be moved or deleted.
2. The UE engine-based path generating method of claim 1, wherein a selectable number of unidirectional lanes is set in S31: single lane, double lane or three lanes, and the selection of road width of lane, the selection of traffic density of 0-100% and the selection of speed of 0-120 km/h.
3. The UE engine-based path generating method of claim 1, wherein when generating bidirectional lanes, an isolation band width between selectable lanes is set.
4. The UE engine-based path generation method of any of claims 1 to 3, wherein, s3. When the path type is selected as a personality, the personality comprises a manual selection mode in which the personality is introduced from the outside and an automatic selection mode in which a plurality of personas are randomly assigned by the system.
5. The UE engine-based path generation method of claim 4, wherein when the path type selection is a person, an editable selection module is provided, which comprises forward and backward selection, selection of width 0-100%, and selection of path width occupied by an object located on a curved path.
6. The UE engine-based path generation method of claim 5, wherein the custom system module is developed such that when the path type is selected as a custom item object, the walking speed, pitch, offset and random angle of the custom item object can be customized.
CN202010275636.2A 2020-04-09 2020-04-09 Path generation method based on UE engine Active CN111540062B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010275636.2A CN111540062B (en) 2020-04-09 2020-04-09 Path generation method based on UE engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010275636.2A CN111540062B (en) 2020-04-09 2020-04-09 Path generation method based on UE engine

Publications (2)

Publication Number Publication Date
CN111540062A CN111540062A (en) 2020-08-14
CN111540062B true CN111540062B (en) 2023-03-24

Family

ID=71980289

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010275636.2A Active CN111540062B (en) 2020-04-09 2020-04-09 Path generation method based on UE engine

Country Status (1)

Country Link
CN (1) CN111540062B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106211794A (en) * 2013-08-29 2016-12-07 索利德康有限公司 Computerization tool path generates
CN108553900A (en) * 2018-03-28 2018-09-21 厦门龙视科技有限公司 A method of the stackable storage Reusability based on UE engines
CN109753276A (en) * 2018-12-29 2019-05-14 北京天际启游科技有限公司 A kind of control method and relevant apparatus based on illusory engine
CN109876448A (en) * 2019-02-21 2019-06-14 腾讯科技(深圳)有限公司 A kind of real-time adjustment method of game skill, unit and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IT201600084942A1 (en) * 2016-08-12 2018-02-12 Paolo Andreucci System of analysis, measurement and automatic classification of road routes and relative method of operation.

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106211794A (en) * 2013-08-29 2016-12-07 索利德康有限公司 Computerization tool path generates
CN108553900A (en) * 2018-03-28 2018-09-21 厦门龙视科技有限公司 A method of the stackable storage Reusability based on UE engines
CN109753276A (en) * 2018-12-29 2019-05-14 北京天际启游科技有限公司 A kind of control method and relevant apparatus based on illusory engine
CN109876448A (en) * 2019-02-21 2019-06-14 腾讯科技(深圳)有限公司 A kind of real-time adjustment method of game skill, unit and system

Also Published As

Publication number Publication date
CN111540062A (en) 2020-08-14

Similar Documents

Publication Publication Date Title
JP4733116B2 (en) Resource management for rule-based procedural terrain generation
JP4824019B2 (en) A terrain editing tool for rule-based procedural terrain generation
Smelik et al. A declarative approach to procedural modeling of virtual worlds
JP4937907B2 (en) Rule-based procedural terrain generation
CN112989568A (en) Simulation scene three-dimensional road automatic construction method and device
CN109147050A (en) Road grid creation method and device based on Unity engine topography system
CN107220372A (en) A kind of automatic laying method of three-dimensional map line feature annotation
CN111540062B (en) Path generation method based on UE engine
Smelik et al. Semantic constraints for procedural generation of virtual worlds
CN105139750A (en) Display method and apparatus of electronic map
Groenewegen et al. Procedural city layout generation based on urban land use models
CN109993836A (en) A method of realizing virtual reality three-dimensional fireworks controlled shape
CN111522544B (en) Method and device for making visual track plug-in
KR20020058608A (en) A Blending Method In Imposing Continuity Between B-Spline Curves/Surfaces
Gao et al. A survey of procedural content generation of natural objects in games
CN106898037A (en) A kind of Animation of Fish Shoal manufacturing system and its shoal of fish generation method
CN111494958B (en) Method and device for randomly generating maze map
Gao et al. A procedural generation method of urban roads based on osm
Haubrich et al. A semantic road network model for traffic simulations in virtual environments: Generation and integration
Carey Procedural Forest Generation with L-System Instancing
AU739759B2 (en) Method for representing geometric shapes and geometric structures in computer graphics
CN113467480A (en) Global path planning algorithm for unmanned equation
Gang et al. Procedural modeling of urban road network
Diamanti et al. Extending the menge crowd simulation framework: visual authoring in unity
Bennett et al. Unity AI Programming Essentials

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant