CN108553900A - A method of the stackable storage Reusability based on UE engines - Google Patents

A method of the stackable storage Reusability based on UE engines Download PDF

Info

Publication number
CN108553900A
CN108553900A CN201810265946.9A CN201810265946A CN108553900A CN 108553900 A CN108553900 A CN 108553900A CN 201810265946 A CN201810265946 A CN 201810265946A CN 108553900 A CN108553900 A CN 108553900A
Authority
CN
China
Prior art keywords
storage
model
engines
reusability
array
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.)
Granted
Application number
CN201810265946.9A
Other languages
Chinese (zh)
Other versions
CN108553900B (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 Long Vision Technology Co Ltd
Original Assignee
Xiamen Long Vision 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 Long Vision Technology Co Ltd filed Critical Xiamen Long Vision Technology Co Ltd
Priority to CN201810265946.9A priority Critical patent/CN108553900B/en
Publication of CN108553900A publication Critical patent/CN108553900A/en
Application granted granted Critical
Publication of CN108553900B publication Critical patent/CN108553900B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/6009Methods for processing data by generating or executing the game program for importing or creating game content, e.g. authoring tools during game development, adapting content to different platforms, use of a scripting language to create content

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The method of the invention discloses a kind of stackable storage Reusability based on UE engines, includes the following steps:S1. the stationary body component for using the Actor blueprints of UE obtains the bounding box of stationary body, and then obtains 6 AnchorPoints of bounding box;S2. it is realized according to this 6 AnchorPoints and the unilateral side of current static object is scaled;S3. graphical control is created, storage model function is called;S4. material parameters, the three-dimensional coordinate vector sum model of every sub- object are obtained respectively, in storage to the model parameter of addition.S5. graphical control is clicked, storage model function is executed and carries out model storage, preserve the storage file at .sav formats;S6. when next Reusability, it is introduced directly into the storage file of the .sav formats of S3.The present invention may be implemented the unilateral scaling of article and accurately control, and superposition storage Reusability, realization are redeveloped and created on the original basis.

Description

A method of the stackable storage Reusability based on UE engines
Technical field
The present invention relates to virtual reality software development application fields, and in particular to a kind of stackable storage based on UE engines The method of Reusability.
Background technology
Game engine refers to that some editable computer game systems for having write or some interactive realtime graphics are answered With the core component of program.These systems provide the various various tools write needed for game for game designer, and purpose exists In allow game designer can easily and quickly make game formula and without by zero.It is most of all to support a variety of operations flat Platform, such as Linux, Mac OS X, Microsoft Windows.Game engine includes following system:(i.e. " renderer " contains two to rendering engine Tie up image engine and 3-D view engine), physical engine, collision detecting system, audio, script engine, computer animation, artificial intelligence Energy, network engine and scene management.
A kind of scaling of existing realization article based on game engine design, is symmetrical scaling, such as a face One times of elongation, opposite automatically symmetrically extends one times simultaneously, and it is scaled based on multiple, cannot achieve more smart True scaled size.
And a kind of existing storage method based on game engine, new data can not be stored, original is usually all to provide First old data produce new data, new data can not be superimposed when you are when old data are operated or edited It preserves, causing to be switched on every time to be operated or be edited again since old initial data again, this undoubtedly makes game or new The exploitation of scene and creation efficiency and effect all become very poor.It is, existing technology cannot achieve the stackable of new data Storage and the Reusability in superposition storage.
Invention content
In view of this, in order to solve the above technical problems, it is an object of the invention to propose a kind of folding based on UE engines The method for adding storage Reusability can also make article more accurate dimension while can realizing the unilateral scaling of article Scaling;And this unilateral can be scaled to the article accurately controlled and realize the stackable storage of new data and in superposition storage Reusability, realize original superposition storage data on the basis of redeveloped and created.
Used technical solution is:
A method of the stackable storage Reusability based on UE engines includes the following steps:
S1. the stationary body component for using the Actor blueprints of UE obtains the bounding box of stationary body, and then obtains boundary The maximum value and minimum value of tri- axial directions of X, Y, Z of frame;6 axis of X, Y, Z are calculated according to the maximum value of this X, Y, Z and minimum value Heart point;
S2. it is accurately located on 6 faces of bounding box according to this 6 AnchorPoints;6 AnchorPoints react mouse, Determine one of AnchorPoint for needing to operate;The AnchorPoint of its opposite is fixed, the position and movement of mouse movement are captured Distance assigns the movement of the AnchorPoint, realizes and is scaled to the unilateral side of current static object;
S3. graphical control is created, the function of " storage model " in UE engine Actor blueprints is called;
S4. the father's object for obtaining current scene carries out the cycle calculations to father's object, to obtain the name of every sub- object Claim, number;And then the material parameters of every sub- object of A. are obtained respectively, in storage to material array, then material array is deposited In the model parameter for storing up addition;B. the three-dimensional coordinate vector of every sub- object, is stored in three-dimensional coordinate array, then by three In dimension coordinate storage of array to the model parameter of the addition;C. the model of every sub- object, is stored in model array, then It will be in the model parameter of model storage of array to the addition;
S5. click the graphical control, execute " storage model " function, model parameter is subjected to model storage, preserve at The storage file of binary .sav formats on hard disk;
S6. when next Reusability, it is introduced directly into the storage file of the .sav formats of S5 steps.
Further, the material parameters include bloom, roughness, color and texture.
Further, the model includes dynamic model and static models.
Further, in S2, the AnchorPoint of its opposite is fixed, captures the distance of the position and movement of mouse movement, root It according to the difference of the move mode of mouse, assigns the AnchorPoint different movements, realizes the unilateral scaling to current static object, moves Dynamic or rotation.
UE engines, that is, illusory the engines of Unreal Engine, illusory engine are a 3D game engines and developing instrument, it is propped up Hold the exploitation for the 3D game your writings played from the mobile platform of 2D to computer to game host platform, on the market a large amount of outstanding trips Play is all based on UE making.
The developing instrument that illusory engine provides Windows and Mac platforms is downloaded, and the works made can be It is run on the platforms such as Windows, Mac, Linux and PS4, X-Box One, iOS, Android even HTML5.
Current newest illusory engine is UE4 engines.Preferably, UE engines are UE4 engines.
Compared with prior art, the beneficial effects of the present invention are:
The present invention is by total 6 AnchorPoints in setting article (i.e. stationary body) 6 faces, and mouse is to one of AnchorPoint Reaction, so as to realize the single side control to article.Since single side control is asymmetrical, scaled without multiple, so as to With freely scaling for realization more accurate dimension.
In turn, for the present invention by the function of " storage model ", model parameter includes material parameters, three-dimensional coordinate vector sum mould Type three parts, storage is model parameter;In this way can by old model parameter data and the model parameter data newly having into Row is respectively or superposition stores, and to establish newer data, updated model parameter is established, so as in the updated Model parameter on further develop and create, the new model parameter after developing and creating, and Reusability can be recycled, no Disconnected superposition update.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment Attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only the embodiment of the present invention, for this field For those of ordinary skill, without having to pay creative labor, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the structural schematic diagram that a kind of article shows 6 AnchorPoints;
Structural schematic diagram after the article unilateral side scaling that Fig. 2 is Fig. 1.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiment is only the preferred embodiment of the invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall within the protection scope of the present invention.
Embodiment 1
Shown in Fig. 1 to Fig. 2, a method of the stackable storage Reusability based on UE4 engines, including walk as follows Suddenly:
S1. the stationary body component (StaticMesh component) for using the Actor blueprints of UE4 obtains static object The bounding box (Bounds) of body, and then obtain the maximum value and minimum value of tri- axial directions of X, Y, Z of bounding box (Bounds);According to The maximum value and minimum value of this X, Y, Z calculate 6 AnchorPoints of X, Y, Z;
S2. it is accurately located on 6 faces of stationary body bounding box according to this 6 AnchorPoints 1, reference can be made to shown in Fig. 1;6 A AnchorPoint reacts mouse, determines one of AnchorPoint for needing to operate;The AnchorPoint of its opposite is fixed, is captured The distance of the position and movement of mouse movement, assigns the movement of the AnchorPoint, realizes and is scaled to the unilateral side of current static object.Example As shown in Figure 2, there are two AnchorPoints, the mobile AnchorPoint AnchorPoint for needing to operate to fix its opposition in X-axis, in X-axis Then another AnchorPoint in face accurately calculates mobile distance according to distance function (distance ()), realize that article can The more unilateral scaling of accurate dimension.Which achieves more accurately controlled to article size.
To be better understood from unilateral scaling, Fig. 1 and Fig. 2 give an object of reference 2, and the right side scaling of Fig. 2 does not interfere with It is fixed to object of reference 2 namely left side, when right side scales, fixed left side will not be made Chong Die with object of reference or intersected.
S3. graphical control (widget Bluprint) is created, " storage model " in UE engine Actor blueprints is called Function;
S4. the father's object for obtaining current scene carries out the cycle calculations to father's object, to obtain the name of every sub- object Claim, number;And then the material parameters of every sub- object of A. are obtained respectively, include the material of original material parameters and new superposition Parameter, material parameters include then bloom, roughness, color and texture arrive material storage of array in storage to material array In the model parameter of addition;B. the three-dimensional coordinate vector of every sub- object, three-dimensional coordinate vector include X-axis original numerical value and The original numerical value and the numerical value after transformation of original numerical value of numerical value, Y-axis after transformation and numerical value and Z axis after transformation, Such as the article after the unilateral scaling in S2, the transformed value of three-dimensional coordinate vector value are stored in three-dimensional coordinate array, then It will be in the model parameter of three-dimensional coordinate storage of array to the addition;C. the model of every sub- object, including original model (staticMesh) and new model (staticMesh), model include dynamic model and static models, are stored in model array In, it then will be in the model parameter of model storage of array to the addition;
S5. click the graphical control, execute " storage model " function, model parameter is subjected to model storage, preserve at The storage file of binary .sav formats on hard disk;
S6. when next Reusability, such as after shutdown, next time, booting reused, and UE4 engines are introduced directly into S3 steps .sav the storage file of format constantly can be developed and be created on the basis of original to recycle Reusability.For example, Before being powered off, after scene is as shown in Fig. 2, preserve shutdown, after next time is switched on again in use, importing the file of storage, scene is still It is as shown in Figure 2.
Model parameter is included material parameters, three-dimensional coordinate vector sum model three parts by the present invention, between new legacy data just The storage (if do not interacted between more than two data, storing respectively) of difference or the storage of superposition may be implemented (if having interaction between more than two data, be superimposed storage), to establish newer data, after establishing update Model parameter, so as to further develop and create in model parameter in the updated, the new mould after developing and creating Shape parameter, and Reusability can be recycled, constantly superposition update.
Especially, the present invention can by this can the article that accurately controls of unilateral scaling realize new data stackable storage and Reusability in superposition storage, realizes and is redeveloped and created on the basis of original superposition stores data.
Embodiment 2
On the basis of embodiment 1, realize more to the operation and control of article.Specifically, in S2, the mobile axle center Point fixes the AnchorPoint of its opposite, captures the distance of the position and movement of mouse movement, not according to the move mode of mouse Together, it assigns the AnchorPoint different movements, realizes the unilateral scaling to current static object, mobile or rotation.For example, in X-axis On, when the moving direction of mouse substantially with X-axis is in the same direction or range at an angle when, assign the shifting of the X-axis line of the axis point It is dynamic, it realizes and the unilateral side of current static object is scaled;When the moving direction of mouse is substantially vertical with X-axis or model at an angle When enclosing, the movement of the non-X axis of the axis point is assigned, realizes the movement to current static object;When the moving direction of mouse is in When radian, the radian movement of the axis point is assigned, realizes the rotation to current static object.
The series of detailed descriptions listed above is illustrated only for possible embodiments of the invention, They are all without departing from equivalent embodiment made by technical spirit of the present invention or change not to limit the scope of the invention It should all be included in the protection scope of the present invention.

Claims (5)

1. a kind of method of the stackable storage Reusability based on UE engines, which is characterized in that include the following steps:
S1. the stationary body component for using the Actor blueprints of UE obtains the bounding box of stationary body, and then obtains bounding box X, the maximum value and minimum value of tri- axial directions of Y, Z;6 axle center of X, Y, Z are calculated according to the maximum value of this X, Y, Z and minimum value Point;
S2. it is accurately located on 6 faces of bounding box according to this 6 AnchorPoints;6 AnchorPoints react mouse, determine One of AnchorPoint for needing to operate;The AnchorPoint of its opposite is fixed, the distance of the position and movement of mouse movement is captured, The movement of the AnchorPoint is assigned, realizes and the unilateral side of current static object is scaled;
S3. graphical control is created, the function of " storage model " in UE engine Actor blueprints is called;
S4. the father's object for obtaining current scene carries out the cycle calculations to father's object, to obtain the title, a of every sub- object Number;And then the material parameters of the every sub- objects of A. are obtained respectively, in storage to material array, then by material storage of array to adding In the model parameter added;B. the three-dimensional coordinate vector of every sub- object, is stored in three-dimensional coordinate array, then by three-dimensional coordinate In storage of array to the model parameter of the addition;C. the model of every sub- object, is stored in model array, then by model In storage of array to the model parameter of the addition;
S5. the graphical control is clicked, " storage model " function is executed, model parameter is subjected to model storage, is preserved into hard disk The storage file of upper binary .sav formats;
S6. when next Reusability, it is introduced directly into the storage file of the .sav formats of S5 steps.
2. the method for the stackable storage Reusability according to claim 1 based on UE engines, which is characterized in that described Material parameters include bloom, roughness, color and texture.
3. the method for the stackable storage Reusability according to claim 1 based on UE engines, which is characterized in that described Model includes dynamic model and static models.
4. the method for the stackable storage Reusability according to claim 1 based on UE engines, which is characterized in that S2 In, the AnchorPoint of its opposite is fixed, captures the distance of the position and movement of mouse movement, not according to the move mode of mouse Together, it assigns the AnchorPoint different movements, realizes the unilateral scaling to current static object, mobile or rotation.
5. the method for the stackable storage Reusability according to claim 1 based on UE engines, which is characterized in that described UE engines are UE4 engines.
CN201810265946.9A 2018-03-28 2018-03-28 Method capable of being repeatedly used by overlapping storage based on UE engine Active CN108553900B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810265946.9A CN108553900B (en) 2018-03-28 2018-03-28 Method capable of being repeatedly used by overlapping storage based on UE engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810265946.9A CN108553900B (en) 2018-03-28 2018-03-28 Method capable of being repeatedly used by overlapping storage based on UE engine

Publications (2)

Publication Number Publication Date
CN108553900A true CN108553900A (en) 2018-09-21
CN108553900B CN108553900B (en) 2022-04-01

Family

ID=63533131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810265946.9A Active CN108553900B (en) 2018-03-28 2018-03-28 Method capable of being repeatedly used by overlapping storage based on UE engine

Country Status (1)

Country Link
CN (1) CN108553900B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111540062A (en) * 2020-04-09 2020-08-14 厦门龙视科技有限公司 Path generation method based on UE engine
CN112817649A (en) * 2020-10-16 2021-05-18 佛山欧神诺云商科技有限公司 Virtual engine model loading method, electronic device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060082579A1 (en) * 2004-10-18 2006-04-20 Reallusion Inc. Caricature generating system and method
CN108364341A (en) * 2018-03-05 2018-08-03 四川易利数字城市科技有限公司 Three-dimensional scenic based on reusable template model loads rendering efficiency improvement method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060082579A1 (en) * 2004-10-18 2006-04-20 Reallusion Inc. Caricature generating system and method
CN108364341A (en) * 2018-03-05 2018-08-03 四川易利数字城市科技有限公司 Three-dimensional scenic based on reusable template model loads rendering efficiency improvement method

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
KE9AN: "sacle mesh in one derection", 《HTTPS://FORUMS.UNREALENGINE.COM/T/SCALE-MESH-IN-ONE-DIRECTION/354312》 *
SINMERE: "如何用Unreal 4实现存档功能", 《HTTPS://GAMEINSTITUTE.QQ.COM/COMMUNITY/DETAIL/102108》 *
爽歪歪快乐家族: "2012版3DMAX改变模型轴心点的方法", 《HTTPS://JINGYAN.BAIDU.COM/ARTICLE/3C48DD3464C86CE10BE358E3.HTML》 *
落叶千寻SKY: "3dmax放大怎么单轴放大", 《HTTPS://ZHIDAO.BAIDU.COM/QUESTION/1797632634274070667.HTML》 *
虚幻引擎官网: "10.编辑器中的缩放操作", 《HTTPS://WWW.BILIBILI.COM/VIDEO/BV1FX411H7KM?FROM=SEARCH&SEID=1762003966329757037》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111540062A (en) * 2020-04-09 2020-08-14 厦门龙视科技有限公司 Path generation method based on UE engine
CN111540062B (en) * 2020-04-09 2023-03-24 厦门龙视科技有限公司 Path generation method based on UE engine
CN112817649A (en) * 2020-10-16 2021-05-18 佛山欧神诺云商科技有限公司 Virtual engine model loading method, electronic device and storage medium

Also Published As

Publication number Publication date
CN108553900B (en) 2022-04-01

Similar Documents

Publication Publication Date Title
US10137646B2 (en) Preparing a polygon mesh for printing
CN107358649B (en) Processing method and device of terrain file
US20140078144A1 (en) Systems and methods for avatar creation
CN109147050B (en) Road grid creating method and device based on Unity engine terrain system
CN111870949B (en) Object processing method and device in game scene and electronic equipment
CN108553900A (en) A method of the stackable storage Reusability based on UE engines
US9652879B2 (en) Animation of a virtual object
JP4636741B2 (en) Image processing apparatus and three-dimensional shape display program
CN104616335B (en) A kind of three-dimensional character circulates the method for automatically accumulating of animation
CN109785449A (en) Character facial editor and decal method based on FFD
US11625900B2 (en) Broker for instancing
CN116543080A (en) Animation processing method and device based on root bones
CN111210486A (en) Method and device for realizing streamer effect
CN108499109A (en) A method of it unilateral in real time can be scaled based on UE engine implementations article
JP5864474B2 (en) Image processing apparatus and image processing method for processing graphics by dividing space
KR20090129274A (en) System and method for morphing item according to change of form in real time
Chen et al. Research on 3D modeling in scene simulation based on Creator and 3dsmax
CN115120980A (en) Game scene generation method and device, storage medium and electronic device
CN114820895A (en) Animation data processing method, device, equipment and system
US11244499B2 (en) Information processing apparatus, non-transitory computer-readable storage medium storing information processing program, information processing system, and information processing method
CN115908650A (en) Animation data processing method and device, storage medium and terminal
CN113674294A (en) 3D model slice processing method and device
JP2009251887A (en) Image generation system, program, and information storage medium
CN106600698B (en) A kind of fast drawing method of threedimensional model
CN108171784B (en) Rendering method and terminal

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