CN109254766B - Mobile-terminal-based visual programming platform and two-dimensional drawing three-dimensional visualization method - Google Patents

Mobile-terminal-based visual programming platform and two-dimensional drawing three-dimensional visualization method Download PDF

Info

Publication number
CN109254766B
CN109254766B CN201810828208.0A CN201810828208A CN109254766B CN 109254766 B CN109254766 B CN 109254766B CN 201810828208 A CN201810828208 A CN 201810828208A CN 109254766 B CN109254766 B CN 109254766B
Authority
CN
China
Prior art keywords
dimensional
platform
information model
development
unity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810828208.0A
Other languages
Chinese (zh)
Other versions
CN109254766A (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.)
First Construction Co Ltd of China Construction Eighth Engineering Division Co Ltd
Original Assignee
First Construction Co Ltd of China Construction Eighth Engineering Division 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 First Construction Co Ltd of China Construction Eighth Engineering Division Co Ltd filed Critical First Construction Co Ltd of China Construction Eighth Engineering Division Co Ltd
Priority to CN201810828208.0A priority Critical patent/CN109254766B/en
Publication of CN109254766A publication Critical patent/CN109254766A/en
Application granted granted Critical
Publication of CN109254766B publication Critical patent/CN109254766B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/203D [Three Dimensional] animation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Computing Systems (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a mobile terminal-based visual programming platform and a two-dimensional drawing three-dimensional visualization method, which belong to the technical field of building engineering and adopt the technical scheme that ① the mobile terminal-based visual programming platform comprises a basic module realized by a Unity 3d development platform, a parameter configuration module used for providing an annotation card picture, an interaction module realized by the Unity 3d development platform and a PlayMaker visual programming module, ② the mobile terminal-based two-dimensional drawing three-dimensional visualization method is characterized in that a three-dimensional construction information model is led into the Unity 3d development platform, a two-dimensional construction drawing and a three-dimensional construction information model are set to be in a corresponding relation on the Unity 3d development platform, after the mobile terminal scans the two-dimensional construction drawing, the corresponding three-dimensional construction information model can be displayed on a screen of the mobile terminal, and the explosion effect animation and the recovery effect of the three-dimensional construction information model are manufactured by the visual programming platform, so that the three-dimensional construction drawing is displayed on the mobile terminal.

Description

Mobile-terminal-based visual programming platform and two-dimensional drawing three-dimensional visualization method
Technical Field
The invention relates to the technical field of constructional engineering, in particular to a mobile-end-based visual programming platform and a two-dimensional drawing three-dimensional visualization method.
Background
At present, in the field of building engineering design, a main method for designing a building construction scheme is a construction drawing; in order to store and transmit a determined three-dimensional building construction scheme, a designer abstracts the three-dimensional building construction scheme into a two-dimensional building construction drawing according to a design rule. After the constructor takes the two-dimensional construction drawing, the three-dimensional construction scheme to be expressed by the constructor is restored in the brain according to the grasped design rule, and then the engineering entity is built sequentially.
Due to the fact that two-dimensional construction drawings lack visual effects, the drawing reading capacity of constructors is uneven, the three-dimensional construction scheme restored in the brains of the constructors is prone to deviation, construction quality is unstable, and reworking, misoperation and the like of a construction site frequently occur. At present, a three-dimensional construction scheme of a designer can be simulated on a computer through a BIM technology, but the BIM technology has high requirements on configuration of computer hardware, the data volume of a building information model of each specialty is huge, the transfer is inconvenient, professional technicians are required to operate and demonstrate, the cost is high, and the use by the constructors is inconvenient.
Disclosure of Invention
The technical task of the invention is to provide a mobile terminal-based visual programming platform and a two-dimensional drawing three-dimensional visualization method, so as to solve the problems that a two-dimensional construction drawing lacks visual effect, construction quality is influenced, cost for displaying the three-dimensional drawing through a BIM technology is high, and operation is complex. A
The technical task of the present invention is achieved in a mobile-based visual programming platform, which comprises,
the basic module is realized by adopting a Unity 3d development platform;
the parameter configuration module is used for providing an annotation card picture which is used for displaying corresponding component information parameters in the three-dimensional visualization process of the two-dimensional construction drawing so as to realize visualization programming;
the interaction module is realized by adopting a Unity 3d development platform and a playmarker visual programming module and is used for forming a playmarker visual development unit, and the playmarker visual development unit is used for setting action selection and state parameters of different state nodes and calling annotation card pictures for the three-dimensional building information model, so that visual programming is realized, the programming difficulty is reduced, and the programming efficiency is improved.
Preferably, the PlayMaker visualization development unit comprises a state machine unit, and the state machine unit is used for setting state parameters and selecting actions; the state machines include an explosion effect state machine, an annotation card state machine, and a template project 360 live action state machine.
Preferably, the states of the three-dimensional building information model include an explosion state, a rotation state, and a zoom state; the explosion state visual programming of the three-dimensional building information model comprises the following steps:
①, generating an explosion effect instruction, namely creating a Button E state, opening an action browser, adding a GUI Button action for the Button E state, and designing a transfer event 'play (start)' between the states;
②, displaying explosion effect, creating 'exploding' state, opening action browser, adding 'playing Animation' action;
③, Reset effect, create 'Reset model' state, open action browser, add 'Playanimation' action.
Preferably, the visual programming of the display state of the comment card picture comprises the following steps:
①, generating a model Touch feedback instruction, namely creating a 'Touch Event' state, opening an action browser, adding a 'Touch Object Event' action for the Touch Event state, and designing a transmission Event 'activation' and 'disappearance' between states;
②, performing model annotation display, namely creating a 'display annotation' state, opening an action browser and adding a 'GUI Button' action;
③, model comment disappearance, creating a state of 'comment disappearance', opening an action browser, and adding a 'GUI Button' action.
A two-dimensional drawing three-dimensional visualization method based on a mobile terminal comprises the steps of obtaining a two-dimensional construction drawing, scanning the two-dimensional construction drawing into an electronic version, forming an augmented reality data packet which can be identified by a Unity 3d development platform by using an augmented reality development tool, simultaneously guiding a three-dimensional construction information model into the Unity 3d development platform, setting a corresponding relation between the two-dimensional construction drawing and the three-dimensional construction information model on the Unity 3d development platform, displaying the corresponding three-dimensional construction information model on a screen of the mobile terminal after scanning the two-dimensional construction drawing by the mobile terminal, manufacturing an explosion effect animation and a recovery effect animation of the three-dimensional construction information model by using a visual programming platform, realizing the three-dimensional display of the two-dimensional construction drawing on the mobile terminal, reducing the construction difficulty, improving the construction quality, and avoiding the phenomena of rework and miswork of a construction site, greatly improving the construction progress.
Preferably, the method comprises the following specific steps:
(1) obtaining a two-dimensional construction drawing of a target engineering building, manufacturing a three-dimensional building information model by using a BIM technology, manufacturing the three-dimensional building information model by using an Autodesk Revit platform in contrast to the two-dimensional construction drawing, and setting colors or simulation mapping on different model components according to different materials of building components when the Autodesk Revit platform builds the three-dimensional building information model;
(2) converting the three-dimensional building information model into fbx format for lightweight processing;
(3) and setting a corresponding relation between the split two-dimensional construction drawing and the split three-dimensional building information model on the Unity 3d development platform: the fbx model file opens a three-dimensional building information model corresponding to a two-dimensional construction drawing, performs material recovery setting on different components of the three-dimensional building model, and simultaneously splits the three-dimensional building information model by referring to the two-dimensional construction drawing so as to correspond to the specific design content of each part on each two-dimensional drawing;
(4) scanning a two-dimensional construction drawing into an electronic version through a mobile end camera and a mobile end touch screen, decomposing the two-dimensional construction drawing of the electronic version into single electronic pictures according to design contents, and forming the single two-dimensional construction drawing of the electronic version into an augmented reality data packet which can be identified by the Unity 3d development platform identification by utilizing an augmented reality development tool;
(5) designing a rotation and zooming interaction function based on a finger touch screen for the three-dimensional building information model on the Unity 3d development platform, and respectively performing rotation and zooming interaction effects based on the touch screen on each split three-dimensional building information model;
(6) after an explosion effect animation and a recovery effect animation of the three-dimensional building information model are manufactured on the Unity 3d development platform by using the playMaker visual programming platform, interactive development for demonstrating the explosion effect based on the touch screen button is realized through the playMaker visual programming platform, and the interactive effect development difficulty for demonstrating the explosion effect based on the touch screen button is reduced;
(7) the interaction function of the comment card module is introduced into the Unity 3d development platform, the corresponding component information parameters are conveniently called out by using the comment card module interaction function, and the development difficulty of calling out the component information parameter comment card interaction effect of the three-dimensional building model component displayed on the basis of a touch screen is reduced;
(8) and exporting the designed Unity 3d development platform and installing the platform on the mobile terminal, and scanning the two-dimensional construction drawing through a camera of the mobile terminal to display the three-dimensional building information model corresponding to the two-dimensional construction drawing on a screen of the mobile terminal.
Preferably, the three-dimensional building information model in the step (2) is converted into the fbx format, and the weight reduction processing is specifically performed as follows: and (3) exporting the three-dimensional building information model into a unified fbx model file for transmission on the Autodesk Revit platform, opening the three-dimensional building information model on the Autodesk 3ds MAX platform, carrying out model lightweight processing and model material standardization processing, and exporting into a processed fbx format model file.
Preferably, in the step (4), a single electronic two-dimensional construction drawing is formed into the augmented reality data package which can be identified by the Unity 3d development platform identification by using an augmented reality development tool, and the specific steps are as follows:
①, converting the two-dimensional building drawing into an electronic picture in a jpg format;
②, decomposing the electronic edition paper into a series of electronic pictures corresponding to the local design content according to the difference of the design content;
③, opening an augmented reality development tool Vuforia network platform, creating a development project name and generating a registration code, and importing series electronic pictures to the network platform;
④, setting each electronic picture as an augmented reality target picture, then generating an augmented reality data package and downloading, downloading the SDK development plug-in of the Vuforia network platform aiming at the Unity 3d development platform, and importing the SDK development plug-in and the augmented reality data package into the Unity 3d development platform.
Preferably, the three-dimensional building information model rotation effect script based on the single finger sliding touch screen in the step (5) is as follows:
float xSpeed = 150.0f;
if (Input.GetTouch(0).phase == TouchPhase.Moved) {transform.Rotate(Vector3.up * Input.GetAxis("Mouse X") * -xSpeed * Time.deltaTime,Space.World);}。
preferably, the two-finger sliding touch screen based three-dimensional building information model zooming effect script in the step (5) is as follows:
Vector2 temPos1 = Input.GetTouch(0).position; Vector2 temPos2 =Input.GetTouch(1).position;
if (isEnlarge(oldPos1, oldPos2, temPos1, temPos2)) {float oldScale =transform.localScale.x;
float newScale = oldScale * 1.025f;transform.localScale = new Vector3(newScale, newScale, newScale); }
else {float oldScale = transform.localScale.x;float newScale =oldScale / 1.025f;
transform.localScale = new Vector3(newScale, newScale, newScale);}。
the mobile terminal-based visual programming platform and the two-dimensional drawing three-dimensional visualization method have the following advantages that:
according to the invention, an augmented reality development tool and a visual programming platform are embedded in a Unity 3d development platform, a three-dimensional building information model of a building is guided into the Unity 3d development platform, then the integrated Unity 3d development platform is guided out and mounted to a mobile end, a construction worker only needs to open the mobile end carried with him to operate the Unity 3d development platform, the Unity 3d development platform calls a mobile end camera, the camera scans a two-dimensional construction drawing, and simultaneously, a screen of the mobile end displays a three-dimensional virtual model corresponding to the two-dimensional construction drawing, so that three-dimensional visualization of the two-dimensional construction drawing is realized, the construction difficulty is reduced, the construction quality is improved, the phenomena of reworking and misworking of a construction site are avoided, and the construction progress is greatly improved;
the construction personnel can interact with the three-dimensional building information model through the mobile terminal screen, so that the functions of rotation, scaling, model explosion effects, reading of comment cards of basic components of the model group and the like of the three-dimensional building information model can be realized, the three-dimensional building information model can conveniently guide the construction personnel to operate, and the construction quality and the construction progress are improved;
and thirdly, the three-dimensional visualization of the two-dimensional drawing is realized by adopting a visualization programming platform, so that the programming difficulty is greatly reduced, and the programming efficiency is improved.
Drawings
The invention is further described below with reference to the accompanying drawings.
FIG. 1 is a flow chart diagram of a two-dimensional drawing three-dimensional visualization method based on a mobile terminal;
FIG. 2 is a flow diagram of identifying recognizable augmented reality data packages by a Unity 3d development platform from a single electronic two-dimensional construction drawing using an augmented reality development tool;
FIG. 3 is a diagram of an explosion state visualization programming operation interface of the three-dimensional building information model;
FIG. 4 is a graphical illustration of a visual programming interface for display status of comment card pictures;
FIG. 5 is an interface diagram of a visual development window of the PlayMaker;
FIG. 6 is an operation interface diagram of embodiment 4;
FIG. 7 is an interface diagram of the PlayMaker state machine window for visually programming the explosion effect of Module 01;
FIG. 8 is an interface diagram of the setting of the "button E" status parameter;
FIG. 9 is an interface diagram of "Explosive" status parameter settings;
FIG. 10 is an interface diagram of the "Reset" status parameter setting.
Detailed Description
The mobile terminal-based visualization programming platform and the two-dimensional drawing three-dimensional visualization method of the invention are described in detail below with reference to the drawings and specific embodiments of the specification.
Example (b):
the invention relates to a mobile terminal-based visual programming platform, which structurally comprises a platform,
the basic module is realized by adopting a Unity 3d development platform;
the parameter configuration module is used for providing an annotation card picture which is used for displaying corresponding component information parameters in the three-dimensional visualization process of the two-dimensional construction drawing so as to realize visualization programming;
the interaction module is realized by adopting a Unity 3d development platform and a playmarker visual programming module and is used for forming a playmarker visual development unit, and the playmarker visual development unit is used for setting action selection and state parameters of different state nodes and calling annotation card pictures for the three-dimensional building information model, so that visual programming is realized, the programming difficulty is reduced, and the programming efficiency is improved.
As shown in fig. 5, the PlayMaker visualization development unit includes a state machine unit, and the state machine unit is used for setting state parameters and selecting actions; the state machines include an explosion effect state machine, an annotation card state machine, and a template project 360 live action state machine.
The states of the three-dimensional building information model comprise an explosion state, a rotation state and a scaling state; as shown in fig. 3, the explosion state visualization programming of the three-dimensional building information model includes the following steps:
①, generating an explosion effect instruction, namely creating a Button E state, opening an action browser, adding a GUI Button action for the Button E state, and designing a transfer event "play (start)" between the states, wherein the Button E state parameter is set as shown in figure 8;
②, displaying explosion effect, creating 'exploding model' state, opening action browser, adding 'playing Animation' action, setting 'exploding model' state parameter as shown in figure 9;
③, Reset effect, create "Reset (model Reset)" state, open action browser, add "play animation" action, and set the "Reset (model Reset)" state parameter as shown in FIG. 10.
As shown in fig. 4, the visual programming of the display status of the comment card picture includes the following steps:
①, generating a model Touch feedback instruction, namely creating a 'Touch Event' state, opening an action browser, adding a 'Touch Object Event' action for the Touch Event state, and designing a transmission Event 'activation' and 'disappearance' between states;
②, performing model annotation display, namely creating a 'display annotation' state, opening an action browser and adding a 'GUI Button' action;
③, model comment disappearance, creating a state of 'comment disappearance', opening an action browser, and adding a 'GUI Button' action.
The manufacturing process of the visual programming platform is as follows:
s1, installing a PlayMaker visual programming module on the Unity 3d platform, and forming a visual development unit on the Unity 3d platform;
s2, setting node action selection and action parameters of different states of a PlayMaker visual programming module;
s3, designing an annotation card picture according to the three-dimensional building information model, and calling an annotation card effect for the three-dimensional building information model in a PlayMaker visual programming module to carry out visual programming design;
and S4, setting action selection and action parameters of the nodes in different states in the visual programming design process.
Example 2:
the invention relates to a mobile terminal-based three-dimensional visualization method for a two-dimensional drawing, which comprises the steps of obtaining a two-dimensional construction drawing, scanning the two-dimensional construction drawing into an electronic version, forming an augmented reality data packet which can be identified by a Unity 3d development platform by using an augmented reality development tool, simultaneously leading a three-dimensional construction information model into the Unity 3d development platform, setting a corresponding relation between the two-dimensional construction drawing and the three-dimensional construction information model on the Unity 3d development platform, displaying the corresponding three-dimensional construction information model on a screen of a mobile terminal after scanning the two-dimensional construction drawing by the mobile terminal, manufacturing an explosion effect animation and a recovery effect animation of the three-dimensional construction information model by using a visual programming platform, realizing the three-dimensional display of the two-dimensional construction drawing on the mobile terminal, reducing the construction difficulty, improving the construction quality, avoiding the phenomena of rework and miswork of a construction site, greatly improving the construction progress.
Example 3:
as shown in fig. 1, the method for three-dimensionally visualizing a two-dimensional drawing based on a mobile terminal of the present invention comprises the following specific steps:
(1) obtaining a two-dimensional construction drawing of a target engineering building, manufacturing a three-dimensional building information model by using a BIM technology, manufacturing the three-dimensional building information model by using an Autodesk Revit platform in contrast to the two-dimensional construction drawing, and setting colors or simulation mapping on different model components according to different materials of building components when the Autodesk Revit platform builds the three-dimensional building information model;
(2) converting the three-dimensional building information model into fbx format for lightweight processing, which comprises the following steps: the method comprises the steps that fbx model files for leading out three-dimensional building information models to be used systematically are transmitted on an Autodesk Revit platform, three-dimensional building information models are opened on an Autodesk 3dsMAX platform, model lightweight processing and model material standardization processing are carried out, and the processed fbx format model files are led out;
(3) and setting a corresponding relation between the split two-dimensional construction drawing and the split three-dimensional building information model on the Unity 3d development platform: the fbx model file opens a three-dimensional building information model corresponding to a two-dimensional construction drawing, performs material recovery setting on different components of the three-dimensional building model, and simultaneously splits the three-dimensional building information model by referring to the two-dimensional construction drawing so as to correspond to the specific design content of each part on each two-dimensional drawing;
(4) scanning a two-dimensional construction drawing into an electronic version through a mobile end camera and a mobile end touch screen, decomposing the two-dimensional construction drawing of the electronic version into single electronic pictures according to design contents, and forming the single two-dimensional construction drawing of the electronic version into an augmented reality data packet which can be identified by the Unity 3d development platform identification by utilizing an augmented reality development tool; a single electronic version two-dimensional construction drawing is formed into an augmented reality data packet which can be identified by a Unity 3d development platform identification by using an augmented reality development tool, and as shown in the attached figure 2, the method comprises the following specific steps:
①, converting the two-dimensional building drawing into an electronic picture in a jpg format;
②, decomposing the electronic edition paper into a series of electronic pictures corresponding to the local design content according to the difference of the design content;
③, opening an augmented reality development tool Vuforia network platform, creating a development project name and generating a registration code, and importing series electronic pictures to the network platform;
④, setting each electronic picture as an augmented reality target picture, then generating an augmented reality data package and downloading, downloading the SDK development plug-in of the Vufaria network platform aiming at the Unity 3d development platform, and importing the SDK development plug-in and the augmented reality data package into the Unity 3d development platform;
(5) designing a rotation and zooming interaction function based on a finger touch screen for the three-dimensional building information model on the Unity 3d development platform, and respectively performing rotation and zooming interaction effects based on the touch screen on each split three-dimensional building information model;
the three-dimensional building information model rotation effect script based on the single finger sliding touch screen is as follows:
float xSpeed = 150.0f;
if (Input.GetTouch(0).phase == TouchPhase.Moved) {transform.Rotate(Vector3.up * Input.GetAxis("Mouse X") * -xSpeed * Time.deltaTime,Space.World);}。
the three-dimensional building information model zooming effect script based on the two-finger sliding touch screen is as follows:
Vector2 temPos1 = Input.GetTouch(0).position; Vector2 temPos2 =Input.GetTouch(1).position;
if (isEnlarge(oldPos1, oldPos2, temPos1, temPos2)) {float oldScale =transform.localScale.x;
float newScale = oldScale * 1.025f;transform.localScale = new Vector3(newScale, newScale, newScale); }
else {float oldScale = transform.localScale.x;float newScale =oldScale / 1.025f;
transform.localScale = new Vector3(newScale, newScale, newScale);};
(6) after an explosion effect animation and a recovery effect animation of the three-dimensional building information model are manufactured on the Unity 3d development platform by using the playMaker visual programming platform, interactive development for demonstrating the explosion effect based on the touch screen button is realized through the playMaker visual programming platform, and the interactive effect development difficulty for demonstrating the explosion effect based on the touch screen button is reduced;
(7) the interaction function of the comment card module is introduced into the Unity 3d development platform, the corresponding component information parameters are conveniently called out by using the comment card module interaction function, and the development difficulty of calling out the component information parameter comment card interaction effect of the three-dimensional building model component displayed on the basis of a touch screen is reduced;
(8) and exporting the designed Unity 3d development platform and installing the platform on the mobile terminal, and scanning the two-dimensional construction drawing through a camera of the mobile terminal to display the three-dimensional building information model corresponding to the two-dimensional construction drawing on a screen of the mobile terminal.
Example 4:
as shown in fig. 6, the explosion and reset development of the three-dimensional building information model Module01 is taken as an example:
① importing an explosion effect button UI picture in the Unity 3d platform;
② designing explosion effect animation ExplodeView01 and Reset effect animation Reset01 for model Module01 on the Unity 3d platform;
③ visual programming design for the explosion effect of Module01 in the PlayMaker state machine window, as shown in FIG. 7, the explosion effect design method based on the smart phone screen is:
(a) when the program runs, activating an explosion effect function button of the screen of the smart phone;
(b) when a finger touches an 'explosion effect' button based on the screen, the ExplodeView01 animation of the model Module01 is activated, and the smart phone screen displays the explosion effect of the Module 01;
(c) when the 'explosion effect' button is touched again, the result 01 animation effect of the Module01 is activated, and the smart phone screen displays the Module01 reset animation in an explosion state.
Example 5:
taking the development of the annotation card function of the three-dimensional building information model Module01 as an example:
①, designing an annotation card picture for a model Module01 component on a Unity 3d platform;
②, calling comment card effects for Module01 in a PlayMaker state machine window for visual programming design, wherein the comment card function design method based on the smart phone screen comprises the following steps:
(a) when the program runs, activating a three-dimensional building information model touch feedback function based on a smart phone screen;
(b) when a finger touches a certain model component based on the screen, an annotation card of the model is activated and displayed on the screen of the smart phone;
(c) and when the model component is touched again, the comment card on the mobile phone screen disappears.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; as soon as the invention has been described in detail with reference to the preceding examples, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (7)

1. The method is characterized in that after a two-dimensional construction drawing is obtained, the two-dimensional construction drawing is scanned into an electronic version, an augmented reality data packet which can be identified by a Unity 3d development platform is formed by utilizing an augmented reality development tool, meanwhile, a three-dimensional construction information model is led into the Unity 3d development platform, the two-dimensional construction drawing and the three-dimensional construction information model are set to be in a corresponding relation on the Unity 3d development platform, after the two-dimensional construction drawing is scanned by a mobile terminal, the corresponding three-dimensional construction information model can be displayed on a screen of the mobile terminal, an explosion effect animation and a recovery effect animation of the three-dimensional construction information model are manufactured by a visual programming platform, and the three-dimensional display of the two-dimensional construction drawing on the mobile terminal is realized; the method comprises the following specific steps:
(1) obtaining a two-dimensional construction drawing of a target engineering building, manufacturing a three-dimensional building information model by using a BIM technology, manufacturing the three-dimensional building information model by using an Autodesk Revit platform in contrast to the two-dimensional construction drawing, and setting colors or simulation mapping on different model components according to different materials of building components when the Autodesk Revit platform builds the three-dimensional building information model;
(2) converting the three-dimensional building information model into fbx format for lightweight processing;
(3) and setting a corresponding relation between the split two-dimensional construction drawing and the split three-dimensional building information model on the Unity 3d development platform: the fbx model file opens a three-dimensional building information model corresponding to a two-dimensional construction drawing, performs material recovery setting on different components of the three-dimensional building model, and simultaneously splits the three-dimensional building information model by referring to the two-dimensional construction drawing so as to correspond to the specific design content of each part on each two-dimensional drawing;
(4) scanning a two-dimensional construction drawing into an electronic version through a mobile end camera and a mobile end touch screen, decomposing the two-dimensional construction drawing of the electronic version into single electronic pictures according to design contents, and forming the single two-dimensional construction drawing of the electronic version into an augmented reality data packet which can be identified by the Unity 3d development platform identification by utilizing an augmented reality development tool; the method comprises the following specific steps:
①, converting the two-dimensional building drawing into an electronic picture in a jpg format;
②, decomposing the electronic edition paper into a series of electronic pictures corresponding to the local design content according to the difference of the design content;
③, opening an augmented reality development tool Vuforia network platform, creating a development project name and generating a registration code, and importing series electronic pictures to the network platform;
④, setting each electronic picture as an augmented reality target picture, then generating an augmented reality data package and downloading, downloading the SDK development plug-in of the Vufaria network platform aiming at the Unity 3d development platform, and importing the SDK development plug-in and the augmented reality data package into the Unity 3d development platform;
(5) designing a rotation and zooming interaction function based on a finger touch screen for the three-dimensional building information model on the Unity 3d development platform, and respectively performing rotation and zooming interaction effects based on the touch screen on each split three-dimensional building information model;
(6) after an explosion effect animation and a recovery effect animation of the three-dimensional building information model are made on the Unity 3d development platform by using the playMaker visual programming platform, interactive development based on touch screen button demonstration explosion effect is realized through the playMaker visual programming platform;
(7) introducing an interaction function of the comment card module into the Unity 3d development platform, and calling out corresponding component information parameters conveniently by using the interaction function of the comment card module;
(8) and exporting the designed Unity 3d development platform and installing the platform on the mobile terminal, and scanning the two-dimensional construction drawing through a camera of the mobile terminal to display the three-dimensional building information model corresponding to the two-dimensional construction drawing on a screen of the mobile terminal.
2. The method for three-dimensional visualization of the mobile-end-based two-dimensional drawing according to claim 1, wherein the three-dimensional building information model in the step (2) is transformed into the fbx format, and the weight reduction is performed specifically as follows: and (3) exporting the three-dimensional building information model into a unified fbx model file for transmission on the Autodesk Revit platform, opening the three-dimensional building information model on the Autodesk 3ds MAX platform, carrying out model lightweight processing and model material standardization processing, and exporting into a processed fbx format model file.
3. The method for three-dimensional visualization of the two-dimensional drawing based on the mobile terminal according to claim 1, wherein the step (5) comprises the step of sliding the touch screen three-dimensional building information model based on a single finger to rotate the effect script:
float xSpeed=150.0f;
if(Input.GetTouch(0).phase==TouchPhase.Moved){transform.Rotate(Vector3.up*Input.GetAxis("Mouse X")*-xSpeed*Time.deltaTime,Space.World);}。
4. the method for three-dimensional visualization of the two-dimensional drawing based on the mobile terminal according to claim 1, wherein the script of the zooming effect of the three-dimensional building information model based on the two-finger sliding touch screen in the step (5) is as follows:
Vector2 temPos1=Input.GetTouch(0).position;Vector2 temPos2=Input.GetTouch(1).position;
if(isEnlarge(oldPos1,oldPos2,temPos1,temPos2)){floatoldScale=transform.localScale.x;
float newScale=oldScale*1.025f;transform.localScale=newVector3(newScale,newScale,newScale);}
else{float oldScale=transform.localScale.x;float newScale=oldScale/1.025f;
transform.localScale=new Vector3(newScale,newScale,newScale);}。
5. the visual programming platform based on the mobile terminal is characterized by comprising,
the basic module is realized by adopting a Unity 3d development platform;
the parameter configuration module is used for providing an annotation card picture which is used for displaying corresponding component information parameters in the three-dimensional visualization process of the two-dimensional construction drawing so as to realize visualization programming; the visual programming of the display state of the comment card picture comprises the following steps:
①, generating a model Touch feedback instruction, namely creating a 'Touch Event' state, opening an action browser, adding a 'Touch Object Event' action to the Touch Event state, and designing the transmission events 'activation' and 'disappearance' between the states;
②, performing model annotation display, namely creating a 'display annotation' state, opening an action browser and adding a 'GUI Button' action;
③, model annotation disappearance is carried out, namely, a 'annotation disappearance' state is created, an action browser is opened, and a 'GUI Button' action is added;
the interaction module is realized by adopting a Unity 3d development platform and a PlayMaker visual programming module and is used for forming a PlayMaker visual development unit, and the PlayMaker visual development unit is used for setting action selection and state parameters of different state nodes and calling annotation card pictures for the three-dimensional building information model so as to realize visual programming.
6. The mobile-based visual programming platform according to claim 5, wherein the PlayMaker visual development unit comprises a state machine unit for state parameter setting and action selection; the state machines include an explosion effect state machine, an annotation card state machine, and a template project 360 live action state machine.
7. The mobile-based visual programming platform according to claim 5 or 6, wherein the states of the three-dimensional building information model include an explosion state, a rotation state, and a zoom state; the explosion state visual programming of the three-dimensional building information model comprises the following steps:
①, generating an explosion effect instruction, namely creating a Button E state, opening an action browser, adding a GUI Button action for the Button E state and designing a transfer event 'play' between the states;
②, displaying explosion effect, creating 'Explosive' state, opening action browser, and adding 'Play Animation' action;
③, Reset the effect by creating a Reset state, opening the action browser, and adding the Play Animation action.
CN201810828208.0A 2018-07-25 2018-07-25 Mobile-terminal-based visual programming platform and two-dimensional drawing three-dimensional visualization method Active CN109254766B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810828208.0A CN109254766B (en) 2018-07-25 2018-07-25 Mobile-terminal-based visual programming platform and two-dimensional drawing three-dimensional visualization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810828208.0A CN109254766B (en) 2018-07-25 2018-07-25 Mobile-terminal-based visual programming platform and two-dimensional drawing three-dimensional visualization method

Publications (2)

Publication Number Publication Date
CN109254766A CN109254766A (en) 2019-01-22
CN109254766B true CN109254766B (en) 2020-02-07

Family

ID=65049711

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810828208.0A Active CN109254766B (en) 2018-07-25 2018-07-25 Mobile-terminal-based visual programming platform and two-dimensional drawing three-dimensional visualization method

Country Status (1)

Country Link
CN (1) CN109254766B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109886868A (en) * 2019-02-21 2019-06-14 中水北方勘测设计研究有限责任公司 Portable engineering BIM model projection device and method based on augmented reality
CN111340694B (en) * 2020-02-07 2023-10-27 腾讯科技(深圳)有限公司 Image processing method, apparatus, computer readable storage medium and computer device
CN111985025B (en) * 2020-07-23 2024-03-08 中建八局第一建设有限公司 Intelligent visualization system and method for building engineering construction standard atlas based on Unity 3D
CN112464318A (en) * 2020-11-25 2021-03-09 中铁二局集团勘测设计院有限责任公司 BIM-based visual process engineering method display system and method
CN113312041A (en) * 2021-03-05 2021-08-27 广东工业大学 AR authoring platform and authoring method thereof
CN113128961B (en) * 2021-04-16 2022-03-11 深圳市艾赛克科技有限公司 Wisdom building site management cloud platform system
CN113538708B (en) * 2021-06-17 2023-10-31 上海建工四建集团有限公司 Method for displaying and interacting three-dimensional BIM model in two-dimensional view
CN115171111B (en) * 2022-08-08 2023-11-17 江苏满锐精密工具有限公司 Drawing annotation recognition method for metal cutting tool

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106652049A (en) * 2017-01-10 2017-05-10 沈阳比目鱼信息科技有限公司 Full-professional design delivery method for building based on augmented reality technology of mobile terminal
CN107610217B (en) * 2017-08-22 2021-09-07 深圳中广核工程设计有限公司 Nuclear power equipment virtual identification display system and method

Also Published As

Publication number Publication date
CN109254766A (en) 2019-01-22

Similar Documents

Publication Publication Date Title
CN109254766B (en) Mobile-terminal-based visual programming platform and two-dimensional drawing three-dimensional visualization method
EP3798817A1 (en) User interface logical and execution view navigation and shifting
CN103247004B (en) A kind of approaches to IM based on the integrated BIM model of electromechanics and system
EP3798757A1 (en) Task based configuration presentation context
CN103942053A (en) Three-dimensional model gesture touch browsing interaction method based on mobile terminal
EP3798759A1 (en) Preferential automation view curation
CN103019702B (en) A kind of visualization of 3 d display and control editing system and method
Dörner et al. Content creation and authoring challenges for virtual environments: from user interfaces to autonomous virtual characters
JP2011013986A (en) Operation instruction diagram generating apparatus and operation instruction diagram generating method
EP2672462A1 (en) Computer-implemented method for defining initial conditions for dynamic simulation of an assembly of objects in a three-dimensional scene of a system of computer-aided design
US20040083451A1 (en) Method for developing embedded code for system simulations and for use in a HMI
Kanai et al. 3D digital prototyping and usability enhancement of information appliances based on UsiXML
Waurich et al. Interactive FMU-Based Visualization for an Early Design Experience.
CN115756161A (en) Multi-modal interactive structure mechanics analysis method, system, computer equipment and medium
Song et al. AUGMENTED BRICKS an onsite AR immersive design to fabrication framework for masonry structures
EP2602712A1 (en) Program-producing device and image control system
CN111897530B (en) UI system and method based on UE4 platform
CN114708126A (en) Building construction process training method and system based on interactive virtual environment
US10496237B2 (en) Computer-implemented method for designing a three-dimensional modeled object
TWI625636B (en) Control system and method having visual programming capabilities and computer program product having visual control program
KR102440740B1 (en) System for providing visualization service regarding pre-processing and post-processing of open field operation and manipulation solver
CN110047343B (en) Method for operating VR (virtual reality) simulation microhardness meter
Kanai 3D digital prototyping and usability assessment of user interfaces based on user interface description languages: lessons learned from UsiXML and XAML
Prosser Solving mathematical problems on touch-based devices
Kanai et al. XAML-based usability assessment for prototyping information appliances with touch sensitive interfaces

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