CN108537892A - The method that threedimensional model and contextual data are automatically imported UE4 - Google Patents
The method that threedimensional model and contextual data are automatically imported UE4 Download PDFInfo
- Publication number
- CN108537892A CN108537892A CN201710118365.8A CN201710118365A CN108537892A CN 108537892 A CN108537892 A CN 108537892A CN 201710118365 A CN201710118365 A CN 201710118365A CN 108537892 A CN108537892 A CN 108537892A
- Authority
- CN
- China
- Prior art keywords
- dimensional
- model
- data
- file
- engine4
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
- G06T19/20—Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
- G06T1/60—Memory management
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Architecture (AREA)
- Computer Graphics (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a kind of methods that threedimensional model and contextual data are automatically imported UE4, include the following steps:In three-dimensional software, threedimensional model, contextual data are generated into exportable three-dimensional modeling data file and three-dimensional data message file;Start Unreal Engine4 engines;In Unreal Engine4, three-dimensional modeling data file and three-dimensional data message file are read, center point coordinate, direction and the scaling of each model are restored.The efficiency for making VR contents greatly improved in the present invention, shorten fabrication cycle, directly reduce cost, reduce the repetitive operation that object coordinates are handled in three-dimensional software, it realizes in the batch-automated processing of one key of three-dimensional software, quickly model, coordinate, direction, size information accurately can be imported in Unreal Engine4.
Description
Technical field
The present invention relates to technical field of virtual reality, and in particular to a kind of threedimensional model and contextual data are automatically imported UE4
The method of (Unreal Engine4).
Background technology
At present make VR (virtual reality) scene, usually there are three types of mode (1, use UnrealEngine4 game engines;
2, using Unity3D game engines;3, using the engine that itself is researched and developed), and Unreal Engine4 are that the current whole world is generally acknowledged most
One of outstanding engine can realize that real-time, interactive, picture effect can reach close to vivid effect Figure 90 % in high quality
More than.
Existing scheme is to be manually operated entirely, and the scene made in three-dimensional software/model is exported, is then manually imported
Unreal Engine4.As shown in Figure 1, detailed process is:
1, UV is extended to each model in three-dimensional software, sets the channels UV;
2, due in transfer process Unreal Engine4 cannot restore the center point coordinate in original three-dimensional software, so
It to need that each object is placed world centre origin (0,0,0) coordinate manually inside three-dimensional software;
3, if each object AnchorPoint is placed in the middle if necessary, each model needs individually export FBX from three-dimensional software
Then file individually imported into Unreal Engine4 again, such as 100 models need export 100 times, then import again 100 times;
4, the collision attribute of each object of manual setting;
5, world environments parameter is set one by one manually;
6, reflection sphere is added manually;
7, light volume is added manually;
8, later stage volume is added manually;
The major defect of the existing scheme is:
1, long, of high cost from three-dimensional software reduced model and UE4 repetition importing modelling periods;
2, the FBX models imported Unreal Engine4 coordinates cannot be accurate with three-dimensional software coordinate, direction, scaling
Really matching;
3, setting world environments parameter efficiency is low one by one manually;
4, it is low that addition reflection sphere efficiency is repeated manually;
5, it is low that addition light volume efficiency is repeated manually;
6, it is low that addition later stage volume efficiency is repeated manually.
Invention content
The purpose of the present invention is to provide a kind of methods that threedimensional model and contextual data are automatically imported UE4, substantially to carry
Height makes the efficiency of VR contents, shortens fabrication cycle, directly reduces cost, reduces the weight that object coordinates are handled in three-dimensional software
Multiple operation, realizes in the batch-automated processing of one key of three-dimensional software, quickly model, coordinate, direction, size information is accurately imported
In UnrealEngine4.
To achieve the above object, the method for the present invention includes the following steps:
In three-dimensional software, threedimensional model, contextual data are generated into exportable three-dimensional modeling data file and three dimensions
According to message file;
Start Unreal Engine4 engines;
In Unreal Engine4, three-dimensional modeling data file and three-dimensional data message file are read, each is restored
Center point coordinate, direction and the scaling of model.
It is described in three-dimensional software, threedimensional model, contextual data are generated into exportable three-dimensional modeling data file and three
Dimension data message file, includes the following steps:
Clear up the redundant data in three-dimensional software scene;
The three-dimensional data information of the three-dimensional modeling data file and XML format of FBX formats is generated according to scene, model data
File.
Redundant data in the cleaning three-dimensional software scene, including:
All models of unlock defrosting;
Clear up junk data;
Configure the channels UV and UV;
Whether retrieval has the textures light information of loss;
Detach the material ball of all multidimensional;
Merge the model of relevant materials.
The junk data includes:Two-dimentional lines, empty body, remove TargetSpot/TargetDirect/Omni/ at particle
Outside FreeSpot/FreeDirect/Skylight/Vraylight/VrayIES/VraySun/V ray Ambient Ligh
All light, all video cameras in addition to Freecamera, the influence of mr light, reference document, invalid lines.
The three-dimensional data of the three-dimensional modeling data file and XML format that FBX formats are generated according to scene, model data
Message file includes the following steps:
According to initial position setting role's initial position of three-dimensional software;
According to the object coordinates of three-dimensional software, object coordinate position is restored in Unreal Engine4;
According to the big small size of model, increases to object in Unreal Engine4 and collide;
According to the camera coordinates of three-dimensional software, corresponding coordinate adds video camera in Unreal Engine4;
The scheme provided according to production is made, to the world environments ginseng that scene configuration is optimal in Unreal Engine4
Number;
The scheme provided according to production is made increases light volume and environment ball in Unreal Engine4.
The three-dimensional data message file includes model ID, name, center point coordinate, direction and contracting in three-dimensional software scene
Put ratio.
Further include:According to the model volume described in three-dimensional modeling data file and three-dimensional data message file,
Increase to model in Unreal Engine4 and collide, specifically includes:
Three-dimensional modeling data file is read, and is imported into Unreal Engine4 projects;
Read the three-dimensional modeling data file imported and the model recorded in three-dimensional data message file in three dimensions
Coordinate information, be accordingly placed into the view of the outpost of the tax office;
The length, width and height information of computation model when placement, and the value by the way that longest edge is calculated, with preset critical value into
Row compares, and filters out the model for meeting addition collision, the built-in interface provided by UnrealEngine4 engines, model
Collision attribute is arranged to band collision, and preservation model resource.
The invention has the advantages that:
1. the efficiency for making VR contents greatly improved, shorten fabrication cycle, directly reduce cost, reduces in three-dimensional software
In handle the repetitive operations of object coordinates, realize in the batch-automated processing of one key of three-dimensional software, can quickly model, sit
Mark, direction, size information accurately import in Unreal Engine4;
2. saving three-dimensional software reduced model and Unreal Engine4 importing the repetitive operation of model;
3. model coordinate data derived from three-dimensional software can accurate Corresponding matching in Unreal Engine4;
4. without each object manual setting collision body, automatic addition setting collision;
5. setting world environments parameter automatically.
Description of the drawings
Fig. 1 is the flow chart of existing method;
Fig. 2 is the flow chart of the method for the present invention.
Specific implementation mode
The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention..
Realize Batch conversion, the most important condition, which is data, can generate in three-dimensional software and be read in UnrealEngine4, so
Afterwards since Unreal Engine4 cannot restore the original center point coordinate of object, so the data file of a centre is just needed to make
To transmit, by the plug-in unit in three-dimensional software, rapid batch automatically processes into exportable FBX files and three-dimensional data information
File, three-dimensional data message file includes model ID, name, coordinate, direction and scaling in three-dimensional software scene, with code
Form is output to xml document as intermediate bridge, then automatically opens UnrealEngine4 and the model and xml data of agreement are read
It takes, the datamation for completing scene and model is generated in Unreal Engine4.
Embodiment 1
As shown in Fig. 2, one embodiment of the present of invention includes the following steps:
In three-dimensional software, threedimensional model and contextual data are generated into exportable three-dimensional modeling data file and three dimensions
According to message file;
Start Unreal Engine4 engines;
In Unreal Engine4, three-dimensional modeling data file and three-dimensional data message file are read, each is restored
Center point coordinate, direction and the scaling of model.
Wherein, scene is made of multiple models.
Embodiment 2
It is in another embodiment of the present invention, described in three-dimensional software on the basis of embodiment 1, by three-dimensional mould
Type and contextual data generate exportable three-dimensional modeling data file and three-dimensional data message file, include the following steps:
Clear up the redundant data in three-dimensional software scene;
The three-dimensional data information of the three-dimensional modeling data file and XML format of FBX formats is generated according to scene, model data
File.
Wherein, the three-dimensional modeling data file of FBX formats and the three-dimensional data message file of XML format are two files.
FBX is a software for cross-platform free three-dimensional creation and exchange format that autodesk, inc. produces, and is used by FBX
Family can access the three dimensional file of most of three-dimensional suppliers.FBX formats support all main three-dimensional data elements.These are three-dimensional
Data element, such as apex coordinate, face ID etc. inside model.And three-dimensional data message file is exactly XML format file, is used
In recording entire model and material, the relationship of textures etc..
Embodiment 3
On the basis of embodiment 2, the redundant data in the cleaning three-dimensional software scene, including:
All models of unlock defrosting;
Clear up junk data;
Configure the channels UV and UV;
Whether retrieval has the textures light information of loss;
Detach the material ball of all multidimensional;
Merge the model of relevant materials.
The junk data includes:Two-dimentional lines, empty body, remove TargetSpot/TargetDirect/Omni/ at particle
Outside FreeSpot/FreeDirect/Skylight/Vraylight/VrayIES/VraySun/V ray Ambient Ligh
All light, all video cameras in addition to Freecamera, the influence of mr light, reference document, invalid lines.
Embodiment 4
On the basis of embodiment 2, the three-dimensional modeling data file that FBX formats are generated according to scene and model data
With the three-dimensional data message file of XML format, include the following steps:
According to initial position setting role's initial position of three-dimensional software;
According to the object coordinates of three-dimensional software, object coordinate position is restored in Unreal Engine4;
According to the big small size of model, increases to object in Unreal Engine4 and collide;
According to the camera coordinates of three-dimensional software, corresponding coordinate adds video camera in Unreal Engine4;
The scheme provided according to production is made, to the world environments ginseng that scene configuration is optimal in Unreal Engine4
Number;
The scheme provided according to production is made increases light volume and environment ball in Unreal Engine4.
Wherein, world environments parameter is one group of floating type and option type data, this data is to be led to by those skilled in the art
It crosses and understands official's case and largely test the empirical value obtained, can be needed that two kinds of different parameters values of height are arranged according to project,
The worlds Unreal Engine4 provide corresponding installation position in setting interface, and the variation per entry value can influence finally to present
The time of effect and structure illumination.
Embodiment 5
On the basis of embodiment 1, in yet another embodiment of the present invention, further include:According to three-dimensional modeling data text
The model volume described in part and three-dimensional data message file increases to model in UnrealEngine4 and collides, specific to wrap
It includes:
According to the model volume described in three-dimensional modeling data file and three-dimensional data message file, in Unreal
Increase to model in Engine4 and collide, specifically includes:
Three-dimensional modeling data file is read, and is imported into Unreal Engine4 projects;
Read the three-dimensional modeling data file imported and the model recorded in three-dimensional data message file in three dimensions
Coordinate information, be accordingly placed into the view of the outpost of the tax office;
The length, width and height information of computation model when placement, and the value by the way that longest edge is calculated, with preset critical value into
Row compares, and filters out the model for meeting addition collision, the built-in interface provided by UnrealEngine4 engines, model
Collision attribute is arranged to band collision, and preservation model resource.
Embodiment 6
In above-mentioned each embodiment, the three-dimensional data message file include three-dimensional software scene in model ID, name,
Center point coordinate, direction and scaling.
Although above having used general explanation and specific embodiment, the present invention is described in detail, at this
On the basis of invention, it can be made some modifications or improvements, this will be apparent to those skilled in the art.Therefore,
These modifications or improvements without departing from theon the basis of the spirit of the present invention belong to the scope of protection of present invention.
Claims (7)
1. a kind of method that threedimensional model and contextual data are automatically imported UE4, which is characterized in that include the following steps:
In three-dimensional software, threedimensional model, contextual data are generated into exportable three-dimensional modeling data file and three-dimensional data is believed
Cease file;
Start Unreal Engine4 engines;
In Unreal Engine4, three-dimensional modeling data file and three-dimensional data message file are read, each model is restored
Center point coordinate, direction and scaling.
2. the method that threedimensional model according to claim 1 and contextual data are automatically imported UE4, which is characterized in that described
In three-dimensional software, threedimensional model, contextual data are generated into exportable three-dimensional modeling data file and three-dimensional data information text
Part includes the following steps:
Clear up the redundant data in three-dimensional software scene;
The three-dimensional data information text of the three-dimensional modeling data file and XML format of FBX formats is generated according to scene, model data
Part.
3. the method that threedimensional model according to claim 2 and contextual data are automatically imported UE4, which is characterized in that described
The redundant data in three-dimensional software scene is cleared up, including:
All models of unlock defrosting;
Clear up junk data;
Configure the channels UV and UV;
Whether retrieval has the textures light information of loss;
Detach the material ball of all multidimensional;
Merge the model of relevant materials.
4. the method that threedimensional model according to claim 3 and contextual data are automatically imported UE4, which is characterized in that described
Junk data includes:Two-dimentional lines, empty body, remove TargetSpot/TargetDirect/Omni/FreeSpot/ at particle
All light outside FreeDirect/Skylight/Vraylight/VrayIES/VraySun/Vray Ambient Ligh,
All video cameras, the influence of mr light, reference document, invalid lines in addition to Freecamera.
5. the method that threedimensional model according to claim 2 and contextual data are automatically imported UE4, which is characterized in that described
The three-dimensional data message file of the three-dimensional modeling data file and XML format of FBX formats, packet are generated according to scene, model data
Include following steps:
According to initial position setting role's initial position of three-dimensional software;
According to the object coordinates of three-dimensional software, object coordinate position is restored in Unreal Engine4;
According to the big small size of model, increases to object in Unreal Engine4 and collide;
According to the camera coordinates of three-dimensional software, corresponding coordinate adds video camera in Unreal Engine4;
The scheme provided according to production is made gives scene configuration world environments parameter in Unreal Engine4;
The scheme provided according to production is made increases light volume and environment ball in Unreal Engine4.
6. the method that threedimensional model according to claim 1 and contextual data are automatically imported UE4, which is characterized in that described
Three-dimensional data message file includes model ID, name, center point coordinate, direction and scaling in three-dimensional software scene.
7. the method that threedimensional model according to claim 1 and contextual data are automatically imported UE4, which is characterized in that also wrap
It includes:According to the model volume described in three-dimensional modeling data file and three-dimensional data message file, in Unreal Engine4
Increase to model and collide, specifically includes:
Three-dimensional modeling data file is read, and is imported into Unreal Engine4 projects;
Read the seat of the three-dimensional modeling data file imported and the model recorded in three-dimensional data message file in three dimensions
Information is marked, is accordingly placed into the view of the outpost of the tax office;
The length, width and height information of computation model when placement, and the value by the way that longest edge is calculated, are compared with preset critical value
Compared with, it filters out and meets the model that addition is collided, the built-in interface provided by Unreal Engine4 engines, the collision of model
Attribute is arranged to band collision, and preservation model resource.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710118365.8A CN108537892A (en) | 2017-03-01 | 2017-03-01 | The method that threedimensional model and contextual data are automatically imported UE4 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710118365.8A CN108537892A (en) | 2017-03-01 | 2017-03-01 | The method that threedimensional model and contextual data are automatically imported UE4 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108537892A true CN108537892A (en) | 2018-09-14 |
Family
ID=63489073
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710118365.8A Pending CN108537892A (en) | 2017-03-01 | 2017-03-01 | The method that threedimensional model and contextual data are automatically imported UE4 |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108537892A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109598997A (en) * | 2018-11-12 | 2019-04-09 | 中交公局桥隧工程有限公司 | Construction safety training education system based on BIM in conjunction with VR |
CN109615707A (en) * | 2018-12-13 | 2019-04-12 | 佛山市超体软件科技有限公司 | A kind of threedimensional model processing method, device, computer equipment and storage medium |
CN112711783A (en) * | 2021-01-07 | 2021-04-27 | 闫张宇 | Jewelry design method and system based on three-dimensional software and illusion engine |
CN113409449A (en) * | 2021-06-22 | 2021-09-17 | 杭州群核信息技术有限公司 | Method and device for generating robot simulation scene based on three-dimensional scene data and storage medium |
CN114333413A (en) * | 2022-01-10 | 2022-04-12 | 成都四方伟业软件股份有限公司 | Three-dimensional visualization method and device based on parking lot |
CN114612620A (en) * | 2022-05-12 | 2022-06-10 | 山东捷瑞数字科技股份有限公司 | Method for constructing linearly deformable chain model based on three-dimensional engine |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101866386A (en) * | 2010-06-25 | 2010-10-20 | 杭州维肖软件科技有限公司 | Flexible body bump processing method based on energy balance |
US8749556B2 (en) * | 2008-10-14 | 2014-06-10 | Mixamo, Inc. | Data compression for real-time streaming of deformable 3D models for 3D animation |
CN105677021A (en) * | 2015-12-31 | 2016-06-15 | 周岩 | New method based on fusion of AR system and VR system and applying new method to recurrence of relics |
CN106056666A (en) * | 2016-05-27 | 2016-10-26 | 美屋三六五(天津)科技有限公司 | Three-dimensional model processing method and three-dimensional model processing system |
CN106067184A (en) * | 2016-05-27 | 2016-11-02 | 美屋三六五(天津)科技有限公司 | A kind of threedimensional model processing method and processing device |
CN106067185A (en) * | 2016-05-27 | 2016-11-02 | 美屋三六五(天津)科技有限公司 | A kind of threedimensional model processing method and processing device |
-
2017
- 2017-03-01 CN CN201710118365.8A patent/CN108537892A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8749556B2 (en) * | 2008-10-14 | 2014-06-10 | Mixamo, Inc. | Data compression for real-time streaming of deformable 3D models for 3D animation |
CN101866386A (en) * | 2010-06-25 | 2010-10-20 | 杭州维肖软件科技有限公司 | Flexible body bump processing method based on energy balance |
CN105677021A (en) * | 2015-12-31 | 2016-06-15 | 周岩 | New method based on fusion of AR system and VR system and applying new method to recurrence of relics |
CN106056666A (en) * | 2016-05-27 | 2016-10-26 | 美屋三六五(天津)科技有限公司 | Three-dimensional model processing method and three-dimensional model processing system |
CN106067184A (en) * | 2016-05-27 | 2016-11-02 | 美屋三六五(天津)科技有限公司 | A kind of threedimensional model processing method and processing device |
CN106067185A (en) * | 2016-05-27 | 2016-11-02 | 美屋三六五(天津)科技有限公司 | A kind of threedimensional model processing method and processing device |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109598997A (en) * | 2018-11-12 | 2019-04-09 | 中交公局桥隧工程有限公司 | Construction safety training education system based on BIM in conjunction with VR |
CN109615707A (en) * | 2018-12-13 | 2019-04-12 | 佛山市超体软件科技有限公司 | A kind of threedimensional model processing method, device, computer equipment and storage medium |
CN112711783A (en) * | 2021-01-07 | 2021-04-27 | 闫张宇 | Jewelry design method and system based on three-dimensional software and illusion engine |
CN112711783B (en) * | 2021-01-07 | 2023-12-22 | 闫张宇 | Jewelry design method and system based on three-dimensional software and illusion engine |
CN113409449A (en) * | 2021-06-22 | 2021-09-17 | 杭州群核信息技术有限公司 | Method and device for generating robot simulation scene based on three-dimensional scene data and storage medium |
CN114333413A (en) * | 2022-01-10 | 2022-04-12 | 成都四方伟业软件股份有限公司 | Three-dimensional visualization method and device based on parking lot |
CN114612620A (en) * | 2022-05-12 | 2022-06-10 | 山东捷瑞数字科技股份有限公司 | Method for constructing linearly deformable chain model based on three-dimensional engine |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108537892A (en) | The method that threedimensional model and contextual data are automatically imported UE4 | |
CN110245368B (en) | Structured processing and storage method of BIM data | |
CN102568038B (en) | Method for translating dimensions on two-dimensional engineering drawing to three-dimensional CAD (computer aided design) model | |
CN104346769B (en) | The compression of three-dimensional modeling object | |
CN102577442B (en) | Method and apparatus for encoding a mesh model, encoded mesh model, and method and apparatus for decoding a mesh model | |
CN106600700B (en) | Three-dimensional model data processing system | |
CN108335367A (en) | A kind of threedimensional model processing method for terminal display | |
CN107464286B (en) | Method, device, equipment and readable medium for repairing holes in three-dimensional city model | |
CN107392078B (en) | Method, terminal device and the computer readable storage medium of multi-angle scanning | |
CN111353956B (en) | Image restoration method and device, computer equipment and storage medium | |
CN109683858B (en) | Data processing method and device | |
CN112365598B (en) | Method, device and terminal for converting oblique photography data into three-dimensional data | |
CN112784330A (en) | IBIM-based multi-source graphic processing method | |
CN116126809A (en) | Building information model data storage conversion method based on national standard | |
CN114387386A (en) | Rapid modeling method and system based on three-dimensional lattice rendering | |
CN111612686B (en) | Structure mapping method from EBOM to PBOM | |
CN111930742B (en) | Building information model BIM-based data storage method and related device | |
CN110910463B (en) | Full-view-point cloud data fixed-length ordered encoding method and equipment and storage medium | |
CN109872386B (en) | STL model-based product physical property modeling method for accurate voxelization | |
CN112270034A (en) | Wall splitting method, device and system | |
CN108038900A (en) | Oblique photograph model monomerization approach, system and computer-readable recording medium | |
CN111199086A (en) | Three-dimensional geometric discretization processing system | |
CN109523588A (en) | A kind of customized matching method and system | |
CN102262703A (en) | Method for constructing figure and RDF (Radio Direction Finder) model for designing intelligent transformer substation | |
WO2023028777A1 (en) | Method and apparatus for automatically generating labeled image, and computer storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180914 |
|
RJ01 | Rejection of invention patent application after publication |