CN115964039A - TDu configuration table three-dimensional engine frame and operation method thereof - Google Patents

TDu configuration table three-dimensional engine frame and operation method thereof Download PDF

Info

Publication number
CN115964039A
CN115964039A CN202310077737.2A CN202310077737A CN115964039A CN 115964039 A CN115964039 A CN 115964039A CN 202310077737 A CN202310077737 A CN 202310077737A CN 115964039 A CN115964039 A CN 115964039A
Authority
CN
China
Prior art keywords
exm
framework
model
dimensional engine
command
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
CN202310077737.2A
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.)
Tiandu Xiamen Science And Technology Co ltd
Original Assignee
Tiandu Xiamen Science And 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 Tiandu Xiamen Science And Technology Co ltd filed Critical Tiandu Xiamen Science And Technology Co ltd
Priority to CN202310077737.2A priority Critical patent/CN115964039A/en
Publication of CN115964039A publication Critical patent/CN115964039A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention provides a TDu configuration table three-dimensional engine frame and an operation method thereof, wherein the TDu configuration table three-dimensional engine frame comprises an MVC framework for frame construction, and the frame comprises an EXM configuration table module, a scene presentation module, an EMX frame and a three-dimensional engine; the EXM configuration table module is a subset of an extensible markup language and is used for marking data and defining data types, the data are defined and stored through the EXM configuration table, a user-defined XML data structure is adopted, and the data are stored in an EXM data text format; the scene presentation module makes model, animation, UI, audio and particle special effect resources according to the resource making specification and guides the resources into the three-dimensional engine; the three-dimensional engine displays a hidden model, a UI (user interface), plays animation and dynamically loads an object highlight effect, audio and a particle special effect through a corresponding controller according to an instruction of the EXM framework. The project can be rapidly deployed with a low life cycle cost, and engineering management of the software project is facilitated.

Description

TDu configuration table three-dimensional engine frame and operation method thereof
Technical Field
The invention belongs to the field of software development, and particularly relates to a three-dimensional engine framework of a TDu configuration table.
Background
The conventional three-dimensional software development needs to use a three-dimensional engine, such as a Unity3d.three-dimensional engine or a fantasy 4 three-dimensional engine, a model made by art is imported into the engine by a program, then a planning and designing function is realized, the process is complex, the cost is high, the existing three-dimensional software development often costs a large amount of manpower and material resources, and finally the desired function is not realized, the current three-dimensional (3D) related projects, such as virtual reality and three-dimensional simulation, need certain technology and team strength, need to be completed by a complete team built by art, planning and program, the manpower cost is high, talents are in short supply, and the harsh conditions are huge obstacles for hindering the three-dimensional virtual informatization of the industry
At present, in the process of developing a virtual simulation educational scene, a three-dimensional engine research and development engineer develops according to the requirements of a product by a model, animation, a UI (user interface), a particle special effect and audio resources.
With continuous improvement and update of the three-dimensional simulation technology, the virtual technology becomes more and more common, the larger the three-dimensional simulation project is, the more and more the number of the three-dimensional models is, the longer and longer the time required by model building is, and the complexity is correspondingly increased. This development model requires several experienced three-dimensional engine engineers to invest in development tasks. With the increase of projects and development tasks, scene data and logic flow structure data are mixed together, so that the existing project codes are difficult to understand, and the difficulty of maintenance and expansion of the project codes is increased. This not only increases the development cost and the period of the project, but also delays the development work of other projects, and brings extra burden to the company.
Therefore, a TDu configuration table three-dimensional engine framework is needed.
Disclosure of Invention
The invention provides a three-dimensional engine frame of a TDu configuration table, which provides a three-dimensional engine configuration table frame for other persons without programming bases, such as arts and products, and the like, so that the persons without programming bases can participate in the development of virtual simulation education scene projects, the problem that multiple three-dimensional engine engineers are required to develop cooperatively in the process of developing the virtual simulation education scene is solved, and the problem of the overall development process of the projects is optimized.
The technical scheme of the invention is realized as follows: a TDu configuration table three-dimensional engine framework comprises an MVC framework for framework construction, wherein the framework comprises an EXM configuration table module, a scene presentation module, an EMX framework and a three-dimensional engine; the EXM configuration table module is a subset of an extensible markup language and is used for marking data and defining data types, the data are defined and stored through an EXM configuration table, a custom XML data structure is adopted, and the data are stored in an EXM data text format; the scene presentation module makes model, animation, UI, audio and particle special effect resources according to the resource making specification and guides the resources into the three-dimensional engine; the three-dimensional engine displays a hidden model, a UI (user interface), plays animation and dynamically loads an object highlight effect, audio and particle special effects through a corresponding controller through an instruction of an EXM (execution framework).
The three-dimensional engine framework of the present application document adopts an MVC architecture, where MVC is a short hand for models (models), views (views), and controllers (controllers), and is a software design specification, and organizes codes by a method of separating business logic, data, and display. The system comprises an EXM configuration table (Model), a scene presentation (View), an EXM framework and a three-dimensional engine part (Controller).
The EXM profile is an extensible markup language (extensible markup language), a subset of the standard universal markup language, which can be used to tag data, define data types, and is a source language that allows users to define their own markup language. The EXM configuration file is mainly used for defining and storing data, is a self-defined XML data structure and is stored in an EXM data text format. All viewpoint sets, resource node sets, variable node sets and all variable state judgment logic sets are included. The method has the advantages of good expansibility, content and form separation, strict grammar requirement compliance and good value retention.
A method of operating a TDu configuration table three-dimensional engine framework, the method comprising the steps of: s1: when the framework runs a program, the three-dimensional engine initializes the 3D engine and the EXM framework controller, initializes a project address and an EXM configuration file, reads and analyzes variable nodes of the EXM configuration file and stores the variable nodes into a data memory; s2, starting the EXM framework, defining a resource node set loading model by the three-dimensional engine according to the EXM configuration file, and setting the position, the rotation direction and the scaling attribute of the model; s3, loading the resources of the map and the lighting scene, traversing the variable node information of the EXM configuration file, and adding an animation component to the model; s4, initializing the variable behavior by the EXM framework, and executing a next step of operation according to the configured variable node information; s5, the three-dimensional engine judges the interaction Type according to the Type label of the variable node of the EXM in the frame cycle of the main thread, and judges whether the precondition is met or not through traversing the stored dictionary variable state set; and S6, changing the value of the EXM variable node stored in the memory when the condition is met. Meanwhile, the three-dimensional engine displays a hidden model, a UI (user interface), plays animation and dynamically loads an object highlight effect, audio and a particle special effect through a corresponding controller according to the instructions of the EXM framework.
As a preferred embodiment, the model in step S2 is operated by a model controller, and the model controller displays the model when receiving a display command with an instruction of 1; when a hide command with an instruction of 0 is received, the model is hidden.
As a preferred implementation, when the model controller receives an animation playing command with an instruction of 1, creating a corresponding animation segment according to the received frame number information in the variable node and caching the animation segment into a dictionary for the next call; the model controller searches for a model in a scene and plays animation according to the received information of the variable node; and when a command with an instruction of 0 is received, stopping playing the animation.
As a preferred embodiment, when the model controller receives a command of starting highlight with the command of 1, searching a target object in a scene, adding a highlight component and starting a highlight effect; when a command instructing 0 is received, the highlight effect is turned off.
As a preferred embodiment, the audio in step S6 is controlled by an audio controller, and when the audio controller receives an audio playing command with an instruction of 1, the audio is set as a 3D surround sound or a voice-over according to the received variable node information; when an instruction of 0 is received, stopping playing the audio; when a command of 0.5 is received, the playing is paused.
As a preferred embodiment, the particle special effect in step S6 is controlled by a special effect controller, and when the special effect controller receives a command with an instruction of 1, the particle special effect is played; and when a command with an instruction of 0 is received, stopping playing the particle special effect.
As a preferred embodiment, in step S5, when the three-dimensional engine executes the last logical variable node of the EXM configuration file, the special operation submission result is triggered to transmit the experiment report of the entire virtual simulation to the background server in a Post manner in the form of Http.
After the technical scheme is adopted, the invention has the beneficial effects that: compared with the traditional development process, the TDu configuration table three-dimensional engine framework realizes the separation of data and scene representation by storing and defining the scene data and the logic flow structure data of the project in the form of an EXM configuration file. The coupling degree of virtual simulation education scene project codes is reduced, and the reusability, applicability and maintainability of the main body framework are improved. The project can be deployed rapidly with low life cycle cost, and engineering management of the software project is facilitated. People without programming foundation can directly write configuration files, and the period and the flow of project development are optimized.
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 some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow chart of a three-dimensional engine framework for a TDu configuration table according to the present invention.
FIG. 2 is a diagram of the MVC architecture of the present invention.
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 a part of the embodiments of the present invention, and not all of the 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.
The embodiment is as follows:
as shown in fig. 1, a TDu configuration table three-dimensional engine framework includes a MVC framework for framework construction, and the framework includes an EXM configuration table module, a scene presentation module, an EMX framework, and a three-dimensional engine; the EXM configuration table module is a subset of an extensible markup language and is used for marking data and defining data types, the data are defined and stored through the EXM configuration table, a user-defined XML data structure is adopted, and the data are stored in an EXM data text format; the scene presentation module is used for making a model, animation, UI, audio and particle special effect resources according to the resource making specification and guiding the resources into the three-dimensional engine; the three-dimensional engine displays a hidden model, a UI (user interface), plays animation and dynamically loads an object highlight effect, audio and particle special effects through a corresponding controller through an instruction of an EXM (execution framework). And (4) rendering the scene, making a model, animation, UI, audio and particle special effect resource by an art worker according to the resource making specification, and importing the resource into a three-dimensional engine.
When a program is operated, the three-dimensional engine initializes the 3D engine and the EXM frame controller, initializes a project address and an EXM configuration file, reads and analyzes variable nodes of the EXM configuration file and stores the variable nodes into a data storage memory. And then starting the EXM framework, loading the model by the three-dimensional engine according to the resource node set defined by the EXM configuration file, and setting the attributes of the model such as position, rotation direction, scaling size and the like. And then loading scene resources such as a map and light, traversing variable node information of the EXM configuration file, and adding an animation component for the model. And then the EXM framework initializes the variable setting behavior and executes a next operation according to the configured variable node information. And the three-dimensional engine judges the interaction Type according to the Type label of the variable node of the EXM in the frame cycle of the main thread, and judges whether the precondition is met or not by traversing the stored dictionary variable state set. When the condition is satisfied, the value of the EXM variable node stored in the memory is changed. Meanwhile, the three-dimensional engine displays a hidden model, a UI (user interface), plays animation and dynamically loads an object highlight effect, audio and particle special effects through a corresponding controller according to the instructions of the EXM framework.
When the running method is implemented, firstly, a program is run, namely, a three-dimensional engine part is started, a 3D engine controller is initialized, then, a project address and an EXM configuration file address are initialized, then, an EXM framework is started in the three-dimensional engine, the EXM framework controller is initialized in a logic part of a main frame of a TDu engine in the EXM framework, the EXM file is read by the EXM framework controller, the EXM is analyzed, after the EXM is analyzed and comprises all viewpoint sets, all resource node sets, all variable node sets, sets of variables capable of interacting in all variable nodes and all variable state judgment logic part sets, after the EXM framework is started in the three-dimensional engine, a model event is loaded through the EXM framework, the three-dimensional engine loads a model, then, the model is added, a child node is traversed, a collision body initialization animation component is added, and a Start starting part is completed
When the model controller receives a display command with an instruction of 1, displaying the model; when a hidden command with an instruction of 0 is received, the model is hidden, and the same UI displays the hidden UI by receiving the instruction of the parameter 1 or 0 through the generic < T > method according to the UI controller.
When the model controller receives an animation playing command with an instruction of 1, corresponding animation segments are created according to the received frame number information in the variable nodes and cached into a dictionary for convenient calling next time. Then, the model controller searches the model in the scene and plays the animation according to the received information of the variable node. And when a command with an instruction of 0 is received, stopping playing the animation.
And when the model controller receives a command of starting highlight with the command of 1, searching a target object in the scene, adding a highlight component and starting a highlight effect. When a command instructing 0 is received, the highlight effect is turned off.
When the audio controller receives an audio playing command with the instruction of 1, the audio is set to be 3D surround sound (the volume is attenuated along with the distance in a three-dimensional space) or common side white sound (the volume is always constant and can be heard anywhere in a scene) according to the received variable node information. And when the instruction of 0 is received, stopping playing the audio. When a command of 0.5 is received, the playing is paused.
And when the special effect controller receives a command with the instruction of 1, playing the particle special effect. And when a command with an instruction of 0 is received, stopping playing the particle special effect.
When the three-dimensional engine executes the last logic variable node of the EXM configuration file, a special operation submission result is triggered, and the experiment report of the whole virtual simulation is transmitted to the background server in a Post mode in an Http mode.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (8)

1. A TDu configuration table three-dimensional engine framework is characterized by comprising an MVC framework for framework construction, wherein the framework comprises an EXM configuration table module, a scene presenting module, an EMX framework and a three-dimensional engine;
the EXM configuration table module is a subset of an extensible markup language and is used for marking data and defining data types, the data are defined and stored through the EXM configuration table, a user-defined XML data structure is adopted, and the data are stored in an EXM data text format;
the scene presentation module makes model, animation, UI, audio and particle special effect resources according to the resource making specification and guides the resources into the three-dimensional engine;
the three-dimensional engine displays a hidden model, a UI (user interface), plays animation and dynamically loads an object highlight effect, audio and a particle special effect through a corresponding controller according to an instruction of the EXM framework.
2. A method for operating a three-dimensional engine framework of a TDu configuration table is characterized by comprising the following steps: the method comprises the following steps:
s1: when the framework runs a program, the three-dimensional engine initializes the 3D engine and the EXM framework controller, initializes a project address and an EXM configuration file, reads and analyzes variable nodes of the EXM configuration file and stores the variable nodes into a data memory;
s2, starting the EXM framework, defining a resource node set loading model by the three-dimensional engine according to the EXM configuration file, and setting the position, the rotation direction and the scaling attribute of the model;
s3, loading the resources of the map and the lighting scene, traversing the variable node information of the EXM configuration file, and adding an animation component to the model;
s4, initializing a variable setting behavior by the EXM framework, and executing a next step of operation according to the configured variable node information;
s5, the three-dimensional engine judges the interaction Type according to the Type label of the variable node of the EXM in the frame cycle of the main thread, and judges whether the precondition is met or not through traversing the stored dictionary variable state set;
and S6, changing the value of the EXM variable node stored in the memory when the condition is met. Meanwhile, the three-dimensional engine displays a hidden model, a UI (user interface), plays animation and dynamically loads an object highlight effect, audio and particle special effects through a corresponding controller according to the instructions of the EXM framework.
3. The method of claim 2, wherein the model of step S2 is operated by a model controller, and the model controller displays the model when receiving a display command with an instruction of 1; when a hiding command with an instruction of 0 is received, the model is hidden.
4. The method of claim 3, wherein when the model controller receives an animation playback command with an instruction of 1, the model controller creates a corresponding animation segment according to the received frame number information in the variable node and buffers the animation segment into a dictionary for the next call; the model controller searches for a model in the scene and plays the animation according to the received information of the variable node; and when a command with an instruction of 0 is received, stopping playing the animation.
5. The method for operating the three-dimensional engine framework with the TDu configuration table according to claim 3, wherein when the model controller receives a command of opening the highlight with the command of 1, the model controller searches for a target object in the scene, adds a highlight component and opens a highlight effect; when a command instructing 0 is received, the highlight effect is turned off.
6. The method of claim 2, wherein the audio in step S6 is controlled by an audio controller, and when the audio controller receives an audio playing command with an instruction of 1, the audio is set to be a 3D surround sound or a voice-over according to the received variable node information; when an instruction of 0 is received, stopping playing the audio; when a command of 0.5 is received, the playing is paused.
7. The method of claim 2, wherein the particle special effect in step S6 is controlled by a special effect controller, and when the special effect controller receives a command with an instruction of 1, the particle special effect is played; and when a command with the command of 0 is received, stopping playing the particle special effect.
8. The method for operating a TDu configuration table three-dimensional engine framework according to claim 2, wherein in step S5, when the three-dimensional engine executes the last logical variable node of the EXM configuration file, the three-dimensional engine triggers a special operation submission result to transmit the experiment report of the entire virtual simulation to the background server in a Post manner in the form of Http.
CN202310077737.2A 2023-02-01 2023-02-01 TDu configuration table three-dimensional engine frame and operation method thereof Pending CN115964039A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310077737.2A CN115964039A (en) 2023-02-01 2023-02-01 TDu configuration table three-dimensional engine frame and operation method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310077737.2A CN115964039A (en) 2023-02-01 2023-02-01 TDu configuration table three-dimensional engine frame and operation method thereof

Publications (1)

Publication Number Publication Date
CN115964039A true CN115964039A (en) 2023-04-14

Family

ID=87360045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310077737.2A Pending CN115964039A (en) 2023-02-01 2023-02-01 TDu configuration table three-dimensional engine frame and operation method thereof

Country Status (1)

Country Link
CN (1) CN115964039A (en)

Similar Documents

Publication Publication Date Title
US7173623B2 (en) System supporting animation of graphical display elements through animation object instances
US7336280B2 (en) Coordinating animations and media in computer display output
CA2922860C (en) System and method for streamlining user interface development
Tang et al. A platform independent game technology model for model driven serious games development
KR101323148B1 (en) Ucr contents editor device
JP2009501388A (en) Smooth transition between animations
CN112631814A (en) Game plot dialogue playing method and device, storage medium and electronic equipment
US20230290032A1 (en) Physical special effect rendering method and apparatus, computer device, and storage medium
KR20080048362A (en) A rendering apparatus and method
CN114130017A (en) Game engine-based interface deployment method, device, equipment and storage medium
CN117032895A (en) Simulation operation control method and system based on illusion engine
CN115964039A (en) TDu configuration table three-dimensional engine frame and operation method thereof
JP2001006001A (en) Three-dimensional expression control system, its method and recording medium recording its processing program
Reiss Visual languages and the GARDEN system
CN111135570B (en) Element configuration method, device, equipment and storage medium based on Unity
Kim et al. Scene Graph for Dynamic Virtual Environment: Spangraph
KR100817506B1 (en) Method for producing intellectual contents
JPH03168877A (en) Moving image forming system
CN114827703B (en) Queuing playing method, device, equipment and medium for views
CN117193720A (en) Animation realization method and device, electronic equipment and storage medium
Revie Designing a Data-Driven Renderer
CN115202624A (en) Full-real scene construction system, method, electronic equipment and storage medium
CN113485714A (en) Data processing method, data processing device, computer equipment and storage medium
CN114860223A (en) Interactive editing frame, interactive object generation method and electronic equipment
Walczak Modelling behaviour of configurable VR applications

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