CN108805990A - 3-D graphic editing machine model management system based on Unity engines - Google Patents

3-D graphic editing machine model management system based on Unity engines Download PDF

Info

Publication number
CN108805990A
CN108805990A CN201810522780.4A CN201810522780A CN108805990A CN 108805990 A CN108805990 A CN 108805990A CN 201810522780 A CN201810522780 A CN 201810522780A CN 108805990 A CN108805990 A CN 108805990A
Authority
CN
China
Prior art keywords
model
order
management module
command
manipulation
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
Application number
CN201810522780.4A
Other languages
Chinese (zh)
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.)
Shanghai Hua Zhu Mdt Infotech Ltd
Original Assignee
Shanghai Hua Zhu Mdt Infotech 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 Shanghai Hua Zhu Mdt Infotech Ltd filed Critical Shanghai Hua Zhu Mdt Infotech Ltd
Priority to CN201810522780.4A priority Critical patent/CN108805990A/en
Publication of CN108805990A publication Critical patent/CN108805990A/en
Pending legal-status Critical Current

Links

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

Abstract

The present invention provides a kind of 3-D graphic editing machine model management system based on Unity engines, including:Command history module, order management module, document management module and model management module;The command history module operates according to model editing and generates model manipulation order, and is transmitted to the order management module;Model manipulation order is written the document management module or obtains model manipulation order from the document management module, and model manipulation order is transmitted to the model management module by the order management module according to the model manipulation order received;The model management module operates the model read from the document management module according to the model manipulation order received.The present invention by storage model operation is text and reformed when reading in operation in the way of realize editor to model.Due to only focusing on the variation of model so that it needs a large amount of memories to handle model unlike general editing machine.

Description

3-D graphic editing machine model management system based on Unity engines
Technical field
The present invention relates to technical field of data processing, and in particular, to the 3-D graphic editing machine mould based on Unity engines Type manages system.
Background technology
Unity game engines operate because it is succinct, great degree of freedom, outstanding rendering and cross-platform ability it is extensive Apply to every field.But because the software that Unity issues out it does not have the primary branch for providing any reading and modification model It holds, rarely has the 3-D graphic editing machine made based on the engine.Although at present have third party make script for read in and it is right The model files such as obj, fbx are changed, and problems with can not be but solved:
(1) files itself such as obj, fbx are bigger, occupy more space;
(2) it due to lacking primary support, needs to parse manually, it is very slow that model file reads in speed;
(3) modification of model is preserved and occupies a large amount of memories, even result in collapse;
(4) sdk of each model format and institutional framework are different, to be write greatly to carry out same operation to each model The problem of measuring different disposal module.
Invention content
For the defects in the prior art, the object of the present invention is to provide a kind of, and the 3-D graphic based on Unity engines is compiled Collect device model management system.
According to a kind of 3-D graphic editing machine model management system based on Unity engines provided by the invention, including:Life Enable collection modules, order management module, document management module and model management module;
The command history module operates according to model editing and generates model manipulation order, and is transmitted to the order management Module;
The file pipe is written according to the model manipulation order received, by model manipulation order in the order management module It manages module or obtains model manipulation order from the document management module, and model manipulation order is transmitted to the model pipe Manage module;
The model management module is according to the model manipulation order received to the mould that is read from the document management module Type is operated.
Preferably, the model manipulation order is divided into according to feature:
Read in order:The order read in from document management module only needs full out to execute into line command;
It is ordered when operation:The order generated when user's use, the interface different according to different successions are operated;
More object commands:The order that user's multiselect model generates when operating, is considered as the set of single command, is realizing Optimized accordingly when each operation.
Preferably, the model manipulation order is divided into according to operation content:
Model transformation order:The order of map function is carried out to model, is all recorded with state, i.e., for the transformation of model State and state after transformation before record coversion;
Model delete command:The order that model is deleted;
Model copy order:To the order that model is replicated, reconstructed model shares grid with master mould.
Preferably, the order management module includes:
Command type manages submodule, is abstracted to model manipulation order, defines various model manipulation orders and need reality Existing interface and respective characteristic;
Command operation manages submodule, and model manipulation order is read in, executes, records, cancels or reformed, life is utilized Revocation stack and order is enabled to reform the management that stack carries out reversible order.
Preferably, the interface includes:
Basic command interface, it is to choose model manipulation to realize execution of command operations, execute order;
Revocable command interface, is inherited from the basic command interface, realization countermand an order operation, reform command operation and Model manipulation is chosen when countermanding an order;
Command interface is can save, the basic command interface is inherited from, write-in file operation is realized, removes behaviour from file Make;
Explicit release command interface is needed, the basic command interface is inherited from, realizes explicit release operation;
Command interface in gravity treatment is needed, the basic command interface is inherited from.
Preferably, further including operation input module, the graphical interfaces operation of user is obtained, model editing therein is operated It is transmitted to the command history module, model therein is read in into operation transmission to the document management module, by mould therein Type display operation is transmitted to the model management module.
Preferably, the document management module includes:
Model reads in submodule, and reading model is simultaneously transmitted to model management submodule;
Order management submodule receives and removes the order of executed, and buffering area is written in variation;
Order reading submodule, after reading model reading order file and will in command file order be converted into it is executable Order is transmitted to order management submodule;
Order preserves submodule, merges after receiving preservation order and simplifies the order in buffering area, by buffering area Writing commands file is integrated in order.
Preferably, the model is the model packet that Unity engines provide.
Compared with prior art, the present invention has following advantageous effect:
1) it is operated using the model APMB package of the primary supports of Unity, solves the software issued with Unity and do not support The problem of parsing common model file.Meanwhile Unity makes model APMB package occupy little space the good support of model packet, It is very fast to read in speed.
2) present invention has jumped out editor's thinking of general figures editing machine, is text using storage model operation and is reading in When reform the mode of operation and realize editor to model.Due to only focusing on the variation of model so that its editing machine one unlike Sample needs a large amount of memories to handle model.
3) this system realizes revocation using the conversion of " state " and reforms operation, saves big moment matrix and calculates, reduces Calculating error.
Description of the drawings
Upon reading the detailed description of non-limiting embodiments with reference to the following drawings, other feature of the invention, Objects and advantages will become more apparent upon:
Fig. 1 is the module diagram of the present invention;
Fig. 2 is the operational flowchart of the present invention.
Specific implementation mode
With reference to specific embodiment, the present invention is described in detail.Following embodiment will be helpful to the technology of this field Personnel further understand the present invention, but the invention is not limited in any way.It should be pointed out that the ordinary skill of this field For personnel, without departing from the inventive concept of the premise, several changes and improvements can also be made.These belong to the present invention Protection domain.
As shown in Figure 1, a kind of 3-D graphic editing machine model management system based on Unity engines provided by the invention, Including:Operation input module, command history module, order management module, document management module and model management module.
Operation input module obtains the graphical interfaces operation of user, by model editing operation transmission therein to command history Model therein is read in operation transmission to document management module, model display operation therein is transmitted to model pipe by module Manage module.
Command history module operates according to model editing and generates model manipulation order, and is transmitted to order management module.It should Module is mainly the specific implementation of available command.Command type includes mainly duplication, deletion, translation, rotation etc., is ordered according to generation The scene of order is different, inherits different interfaces and realizes different functions.
Model manipulation order is divided into according to feature:
Read in order:The order read in from document management module, such order need not choose, cancel, not can save, It need not discharge, only need full out to execute into line command.
It is ordered when operation:The order generated when user's use, such order interface different according to different successions are operated, needs It to consider the destruction operation of user, and need certain response highlight effect.
More object commands:The order that user's multiselect model generates when operating, is considered as the set of single command, but by It is very big in the possible quantity of multiselect object, it needs accordingly to be optimized when realizing each operation.
Model manipulation order is divided into according to operation content:
Model transformation order:The order of map function is carried out to model, is all recorded with state, i.e., for the transformation of model Do not record " transformation " and " inverse transformation ", but state and state after transformation before record coversion.Reduce the square of system progress in this way Battle array operation, while reducing the various errors for operating and being generated due to computational accuracy, especially accumulated error.
Model delete command:The order that model is deleted;
Model copy order:To the order that model is replicated, reconstructed model shares grid with master mould, can be significantly Ground reduces the memory spending replicated, and due to sharing material, it is also very small to render consumption.
Order management module according to the model manipulation order received, by model manipulation order be written document management module or Model manipulation order is obtained from document management module, and model manipulation order is transmitted to model management module.Under the module Including following submodule:
Whether whether command type manages submodule, is abstracted to model manipulation order, can save, may be used according to order It is inverse, whether need explicitly to discharge, whether execute and choose in inverse operation, define that various model manipulation orders needs realize connects Mouth and respective characteristic.Interface includes:
Basic command interface ICommand, it is to choose model manipulation to realize execution of command operations, execute order;
Revocable command interface IUndoCommand, is inherited from basic command interface, realizes operation of countermanding an order, reforms life It enables operation and chooses model manipulation when countermanding an order;
Can save command interface ISavableCommand, be inherited from basic command interface, realize write-in file operation, from Operation is removed in file;
Explicit release command interface IDisposableCommand is needed, basic command interface is inherited from, realization is explicitly released Put operation;
Command interface IReselectCommand in gravity treatment is needed, basic command interface is inherited from.
Command operation manages submodule, and model manipulation order is read in, executes, records, cancels or reformed, life is utilized Revocation stack and order is enabled to reform the management that stack carries out reversible order.
Order is read in:Request received from document management module executes the order group of module offer.
Order executes:Command record is entered into order if order is reversible and cancels stack, record executes the order, notification model pipe Reason module executes operation into what line command was specified, and stack is reformed in order empties and explicitly discharge the order that needs discharge.
Command record:Circular document management module carries out command record if order can save.
Order revocation:It pops nearest order from order revocation stack, circular document management module removes order and executes record, logical The destruction operation that perception model management module is specified into line command, stack is reformed by ordering into order.
Order is reformed:Stack is reformed from order to pop nearest order, carries out command-execution operation again.
Model management module grasps the model read from document management module according to the model manipulation order received Make.Including rotation, translation, scaling, multiselect and the effect etc. for choosing, cancelling selection.
The preservation and read functions of document management module implementation model and order, the module include following submodule:
Model reads in submodule, and reading model is simultaneously transmitted to model management submodule;
Order management submodule receives and removes the order of executed, and buffering area is written in variation;
Order reading submodule, after reading model reading order file and will in command file order be converted into it is executable Order is transmitted to order management submodule;
Order preserves submodule, merges after receiving preservation order and simplifies the order in buffering area, by buffering area Writing commands file is integrated in order.
Above model is the model packet that Unity engines provide, and can support the arbitrary lattice that can be parsed by Unity engines Formula model file.Primary support due to Unity to it, model packet is not only taken up space small, and it is also very fast to read in speed.
In conjunction with shown in Fig. 2, illustrated below by way of two specific embodiments.
Embodiment one:
It reads and preserves:After user enters system, select to open model A by graphical interfaces.Operation input module is connected to After input, the fileinfo of circular document management module opening.Model first in document management module, which reads in module, can open A Model packet, and parse and be read into scene.After the completion after the operation, order read module is found and the associated model change files of A, If there is this document, then reads in and be the available command in the block of command history mould by its content transformation, give order management module. Order management receive the order of reading by they handle one time (since the operation of reading need not all preserve, cancel, choose, Execute speed quickly), at this time model A just presents with last time edit after state.After if user has carried out dry run, The buffering area of system has several orders.User, which clicks, at this time preserves, and operation input module circular document management module is protected Deposit operation.Document management module takes out the order in buffering area, the operation that can be integrated and simplify is merged, the master of the process It is that multi-pass operation only retains final result to want principle.It is related to A models via document management module write-in to integrate the order finished The model change file of connection, next time, which opens, just can continue to edit.
Embodiment two:
Command operation:User has carried out translation A in system to a model block in model, makes its position from (a0, b0,c0) it is moved to (a1,b1,c1).Operation input module creates the reality of one " translation order in real time " from order collection modules Example, and by the id of the model block, original position, it is mobile after position, be passed to as parameter.A orders are then passed into order management mould Block proceeds as follows 1) since the order is revocable, and order enters order revocation stack;2) order can save, circular document Management module is written into command buffer;3) order is executed;4) due to generating newer command, it is all clear order can should to be reformed Sky, and show that release needs the order discharged.So far A end of operation is ordered.
Order revocation:User countermands an order A, and operation input module notification command management module carries out destruction operation.Order Management module cancels the A orders that just stacking is taken out in stack from order, since the order can save, circular document is needed to manage mould Block removes it from command buffer.Then the inverse operation of A orders is executed, i.e., by the model block of last time operation by (a1,b1,c1) Move back to (a0,b0,c0).A orders are revocable order, need to enter order after revocation and reform stack waiting and reform.
Order is reformed:User reforms order A, and operation input module notification command management module carries out reforming operation.Order Management module reforms taking-up A orders, circular document management module in stack from order and is added into command buffer.Then A is executed Order, A orders are revocable order, reenter order revocation stack.
The present invention solves the problems, such as that model file occupied space is too big, and ensures its reading speed of model file;Solution The too big problem of model modification process of having determined committed memory;Multi-model format is supported;Realize 3-D graphic editing machine Basic operation management is supported the revocation of operation and is reformed.
One skilled in the art will appreciate that in addition to realizing system provided by the invention in a manner of pure computer readable program code It, completely can be by the way that method and step be carried out programming in logic come so that the present invention provides and its other than each device, module, unit System and its each device, module, unit with logic gate, switch, application-specific integrated circuit, programmable logic controller (PLC) and embedding Enter the form of the controller that declines etc. to realize identical function.So system provided by the invention and its every device, module, list Member is considered a kind of hardware component, and also may be used for realizing the device of various functions, module, unit to include in it To be considered as the structure in hardware component;It can also will be considered as realizing the device of various functions, module, unit either real The software module of existing method can be the structure in hardware component again.
Specific embodiments of the present invention are described above.It is to be appreciated that the invention is not limited in above-mentioned Particular implementation, those skilled in the art can make a variety of changes or change within the scope of the claims, this not shadow Ring the substantive content of the present invention.In the absence of conflict, the feature in embodiments herein and embodiment can arbitrary phase Mutually combination.

Claims (8)

1. a kind of 3-D graphic editing machine model management system based on Unity engines, which is characterized in that including:Command history Module, order management module, document management module and model management module;
The command history module operates according to model editing and generates model manipulation order, and is transmitted to the order management mould Block;
The file management mould is written according to the model manipulation order received, by model manipulation order in the order management module Block obtains model manipulation order from the document management module, and model manipulation order is transmitted to the model management mould Block;
The model management module according to the model manipulation order received to from the model that the document management module is read into Row operation.
2. the 3-D graphic editing machine model management system according to claim 1 based on Unity engines, feature exist In the model manipulation order is divided into according to feature:
Read in order:The order read in from document management module only needs full out to execute into line command;
It is ordered when operation:The order generated when user's use, the interface different according to different successions are operated;
More object commands:The order that user's multiselect model generates when operating, is considered as the set of single command, each realizing Optimized accordingly when operation.
3. the 3-D graphic editing machine model management system according to claim 1 based on Unity engines, feature exist In the model manipulation order is divided into according to operation content:
Model transformation order:The order of map function is carried out to model, is all recorded with state, i.e., the transformation of model is recorded State and state after transformation before transformation;
Model delete command:The order that model is deleted;
Model copy order:To the order that model is replicated, reconstructed model shares grid with master mould.
4. the 3-D graphic editing machine model management system according to claim 1 based on Unity engines, feature exist In the order management module includes:
Command type manages submodule, is abstracted to model manipulation order, defines what various model manipulation orders needs were realized Interface and respective characteristic;
Command operation manages submodule, and model manipulation order is read in, executes, records, cancels or reformed, is removed using order The management that stack carries out reversible order is reformed in pin stack and order.
5. the 3-D graphic editing machine model management system according to claim 4 based on Unity engines, feature exist In the interface includes:
Basic command interface, it is to choose model manipulation to realize execution of command operations, execute order;
Revocable command interface, is inherited from the basic command interface, realizes operation of countermanding an order, reforms command operation and revocation Model manipulation is chosen when order;
Command interface is can save, the basic command interface is inherited from, write-in file operation is realized, removes operation from file;
Explicit release command interface is needed, the basic command interface is inherited from, realizes explicit release operation;
Command interface in gravity treatment is needed, the basic command interface is inherited from.
6. the 3-D graphic editing machine model management system according to claim 1 based on Unity engines, feature exist In, further include operation input module, obtain user graphical interfaces operation, by model editing operation transmission therein to the life Collection modules are enabled, model therein is read in into operation transmission to the document management module, model display operation therein is passed Transport to the model management module.
7. the 3-D graphic editing machine model management system according to claim 1 based on Unity engines, feature exist In the document management module includes:
Model reads in submodule, and reading model is simultaneously transmitted to model management submodule;
Order management submodule receives and removes the order of executed, and buffering area is written in variation;
Order reading submodule, after reading model reading order file and by command file order be converted into executable command It is transmitted to order management submodule;
Order preserves submodule, merges after receiving preservation order and simplifies the order in buffering area, by the order of buffering area Integrate writing commands file.
8. the 3-D graphic editing machine model management system according to claim 1 based on Unity engines, feature exist In the model is the model packet that Unity engines provide.
CN201810522780.4A 2018-05-28 2018-05-28 3-D graphic editing machine model management system based on Unity engines Pending CN108805990A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810522780.4A CN108805990A (en) 2018-05-28 2018-05-28 3-D graphic editing machine model management system based on Unity engines

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810522780.4A CN108805990A (en) 2018-05-28 2018-05-28 3-D graphic editing machine model management system based on Unity engines

Publications (1)

Publication Number Publication Date
CN108805990A true CN108805990A (en) 2018-11-13

Family

ID=64090470

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810522780.4A Pending CN108805990A (en) 2018-05-28 2018-05-28 3-D graphic editing machine model management system based on Unity engines

Country Status (1)

Country Link
CN (1) CN108805990A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112667342A (en) * 2021-01-06 2021-04-16 许继集团有限公司 Script driving method and system for visual logic editing of relay protection device
CN116954951A (en) * 2023-09-18 2023-10-27 成都数之联科技股份有限公司 Method and system for undoing and redoing based on units

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1776616A (en) * 2005-12-15 2006-05-24 北京航空航天大学 Three-dimensional model editor modelling command frame design method
US20070168060A1 (en) * 2004-05-04 2007-07-19 Fisher-Rosemount Systems, Inc. Markup language-based, dynamic process graphics in a process plant user interface
CN102663198A (en) * 2012-04-18 2012-09-12 上海方正数字出版技术有限公司 Method and system for designing and manufacturing printed matter on line by combining background and foreground of web
CN105413176A (en) * 2015-11-10 2016-03-23 内蒙古工业大学 3D engine system applied to games
CN106293753A (en) * 2016-08-16 2017-01-04 网易(杭州)网络有限公司 The development approach of editing machine and device, edit methods and editing machine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070168060A1 (en) * 2004-05-04 2007-07-19 Fisher-Rosemount Systems, Inc. Markup language-based, dynamic process graphics in a process plant user interface
CN1776616A (en) * 2005-12-15 2006-05-24 北京航空航天大学 Three-dimensional model editor modelling command frame design method
CN102663198A (en) * 2012-04-18 2012-09-12 上海方正数字出版技术有限公司 Method and system for designing and manufacturing printed matter on line by combining background and foreground of web
CN105413176A (en) * 2015-11-10 2016-03-23 内蒙古工业大学 3D engine system applied to games
CN106293753A (en) * 2016-08-16 2017-01-04 网易(杭州)网络有限公司 The development approach of editing machine and device, edit methods and editing machine

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112667342A (en) * 2021-01-06 2021-04-16 许继集团有限公司 Script driving method and system for visual logic editing of relay protection device
CN116954951A (en) * 2023-09-18 2023-10-27 成都数之联科技股份有限公司 Method and system for undoing and redoing based on units
CN116954951B (en) * 2023-09-18 2023-11-21 成都数之联科技股份有限公司 Method and system for undoing and redoing based on units

Similar Documents

Publication Publication Date Title
CN101996098B (en) Managing message queues
CN106227621B (en) The data back up method and system of logic-based volume management simplification volume
CN102096644B (en) system and method for permanently deleting file data
CN104714858A (en) Data backup method, data recovery method and device
CN101452465A (en) Mass file data storing and reading method
CN106844682A (en) Method for interchanging data, apparatus and system
CN103440304A (en) Method and device for storing picture
CN101533346B (en) Source file comparing unit and method thereof
CN103218176A (en) Data processing method and device
CN108805990A (en) 3-D graphic editing machine model management system based on Unity engines
CN109375568A (en) A kind of multi-source data real-time acquisition device
TW480395B (en) Record regenerating device
CN103218228B (en) A kind of Android device built-in hard disk realizes method and the device of new technology file system
CN105404591B (en) Processor system and its memory control methods
CN105488047B (en) Metadata reading/writing method and device
CN106611138B (en) GHOST file security check method and device
CN102169418B (en) Resource limited equipment and data access method
CN101661277A (en) Part processing method and device used for numerical control machine
JPH11203782A (en) Information recording and reproducing device and control method therefor
CN104850401B (en) A kind of method that Hadoop memory modules are substituted with PVFS
CN109408295A (en) A kind of clone volume fill method, device and equipment based on distributed memory system
CN110263005A (en) A kind of system management memory system for realizing the read-write optimization of data content locality
CN115712622B (en) Electric power transaction data processing method, system, computer device and storage medium
CN116611418B (en) Report processing method and device based on online editing, electronic equipment and medium
JP2013045166A (en) Information processing device, file storage method, and program

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: 20181113

RJ01 Rejection of invention patent application after publication