With the development of database technology, multimedia technology, visualization technology and virtual reality technology [1], especially the popularization of traditional Internet applications and the advent of new generation Internet technology, Web technology has gradually developed from being able to only provide text and static image browsing to being able to support rich audio and video data streams, massive data mining, remote real-time interactive monitoring and other functions. Web-based three-dimensional visualization technology is becoming one of the development directions of three-dimensional simulation technology of engineering systems. This paper constructs a three-dimensional visualization simulation framework for engineering systems based on Web structure and J2EE platform. Using JOGL as a means, the corresponding three-dimensional simulation and its implementation technology are given, and the engineering data are used to verify it.
1 True three-dimensional visualization simulation framework based on J2EE
Engineering systems (such as geological and mining engineering systems) mostly have spatial attributes, and their simulation technology needs to express the spatial attributes of the system and its spatial relationship. The development of Web technology makes remote true three-dimensional simulation of engineering systems possible. To this end, this study designs a three-dimensional visualization simulation system framework based on the J2EE platform, as shown in Figure 1.
According to the services and specifications defined by J2EE, this study divides the 3D visualization simulation system into the client layer, the middle layer (Web layer, business layer) and the data layer to realize the 3D visualization simulation function of the engineering system; JOGL is used as the display tool of 3D graphics, and points, lines, surfaces and volumes are used to express the 3D engineering system; Applet is used as the means of interaction between users and 3D graphics, and AWT, Swing, etc. are used to respond to events of keyboards, mice and other peripheral devices; JRE and JVM are used as containers and Java runtime environments for client-layer Applet components, and run in browsers using plug-ins, etc.; permission verification is used as the means of system information security, and system access security control is performed using role-based authorization; JSP is used as the basic display tool of the application system, and dynamically generated Web pages are used to publish and query business data; Struts is used as the system logic processing, and XML is used for business logic configuration to control access content; EJB and JavaBean are used as business models, and classes in object-oriented technology are used to represent the 3D model of the object engineering system. On this basis, combined with database technology, the 3D visualization simulation technology of the engineering system is given.
2 True 3D Visual Simulation Technology Based on J2EE
2.1 J2EE Technology for Platform Construction
J2EE is a system platform based on component-container model. It has become the mainstream of system construction and development with its advantages of flexibility, scalability, modularity, cross-platform and cross-database.
In this study, components mainly include Applet components running on the client and Web components and EJB components running on the server; containers mainly provide operating environment for these three types of components, such as JRE, JVM and Web Server.
(1) System flow based on J2EE. According to the specification of J2EE platform, the main steps of J2EE system flow are as follows: ① After the user starts the browser on the client, the user downloads the HTML page dynamically generated by JSP from the Web server, and realizes the browsing and query functions of the system by interacting with the Applet program embedded in the page; ② After receiving the user request from the client, the Web Server container of the Web layer parses the corresponding JSP or Servlet component to generate HTML page for the client to use; ③ After receiving the business request in the Web layer, the business layer container provides the information to the EJB component and the database adapter component, and completes the support for the Web layer components through the business domain code constructed by these two components; ④ The database server in the data layer provides the required data support for the components in the business layer, and also provides management and maintenance for various engineering data of the geological and mining engineering system.
(2) System design based on J2EE. In the client layer, the system uses JRE as a Java plug-in embedded in the browser as the Applet client running environment, uses Applet to realize the interaction between people and the system, and uses JOGL to realize the three-dimensional visualization of the engineering system based on Web. In the Web layer, Struts is used to realize the business logic control function, JSP components are used to dynamically generate pages, and the Web server Tomcat is used to provide services for the Web layer components. In the business layer, EJB technology and JavaBean are used to construct implementation classes and establish engineering system models.
In actual research, considering the fact that the engineering system has a large amount of numerical calculations such as sampling data processing and data normalization processing, and massive data throughput such as graphic data processing, driver interface technology is used for database operations to cope with the high database access speed requirements.
2.2 User interaction Applet technology
Applet is an application written in Java language, which can be embedded in the browser to obtain peripheral information such as mouse and keyboard, and respond to events. The life cycle of Applet includes four stages: initialization, start, run and end. During this process, the support of Java runtime environment is always required.
(1) Applet technology features. In the Web browser environment, HTML files load Applet programs and related resources through Web services. When the file is created, the embedded Applet program starts to run, and when the file is closed, the Applet program also ends. Applet programs can not only use window environment development tools to establish standard graphical interfaces to realize human-computer interaction, system query and other functions, but also support JOGL and other technologies for displaying and transforming three-dimensional graphics. Since Applet programs are accessed based on the network, they have potential security risks.
(2) Applet system design. In the actual design process, the subclass of the Applet class, JApplet, is used to complete the functions of the Applet, so that users can communicate with the system by clicking the mouse, tapping the keyboard, and other activities. The GLCanvas class in the JOGL class library is used to set the JOGL graphics display parameters and process the user events obtained by JApplet to realize the combination of JOGL and JApplet. The CG, GL and other classes in the JOGL class library are used to draw the three-dimensional graphics of the engineering system, and the rotation, translation, cropping and lighting setting of the graphics are realized through the interface program. In terms of security, the digital signature tool of JDK1.2 is used to set the security of the Applet program, and the security of the program is realized by comparing the digital signature loaded on the network with the digital certificate held by the client.
2.3 JOGL technology for three-dimensional drawing
At present, the more popular three-dimensional visualization tools based on Web browsers include VRML, X3D, Java3D and JOGL based on Java language. Although VRML and X3D can both generate interactive virtual reality scenes, they are still data files in essence and lack direct support for visualization algorithms. Java3D and JOGL based on Java can not only support scene graphics processing like VRML and X3D, but also support higher-level graphics processing.
(1) JOGL graphics rendering technology. JOGL is a technology based on the OpenGL public graphics interface. It is a recognized Java binding to OpenGL and is jointly supported by Java creator SUN and OpenGL creator SGI [2]. This enables the three-dimensional simulation model of the engineering system developed using Java to integrate window interfaces such as AWT and Swing, while obtaining powerful 3D graphics rendering capabilities with direct hardware support.
(2) System design based on JOGL. This study selected JOGL as the implementation method of 3D visualization simulation technology for engineering systems based on B/S structure. Its core working process includes: calling GLDrawablefactory class to create GLDrawable object; using createGLCanvas() method in GLDrawable class to create GLCanvas object; calling GLCanvas corresponding method to generate GL object; calling GL corresponding method and setting properties to set and draw 3D display, etc.; adding event listening interface to GLCanvas to realize user response to GLCanvas object action, and overloading corresponding methods to realize mouse and keyboard control, so as to realize human-computer interaction.
3 Implementation of true 3D visualization simulation based on J2EE
Taking the engineering data of an underground mine as an example, this study uses the above system framework and technical methods to realize the true 3D visualization simulation system of geological and mining engineering based on B/S structure and J2EE platform, including 3D visualization simulation of surface terrain, ore body, shaft and tunnel engineering, as shown in Figure 2.
This paper deeply studies the true 3D visualization simulation technology of engineering systems based on J2EE platform and B/S structure, constructs the true 3D visualization simulation system framework of engineering systems based on Web, and uses JOGL to realize the true 3D visualization simulation of engineering systems based on Web, taking the engineering system of an underground mine as an example, and opens up a way for the remote application of true 3D visualization simulation technology.
References
[1] Tang Zesheng. Three-dimensional data field visualization [M]. Beijing: Tsinghua University Press, 2000.
[2] DAVIS G. Learning Java bindings for OpenGL (JOGL) [M]. Bloomington, Indiana: Author House, 2004.
[3] Huang Wenjing, Tang Long, Tang Zesheng. Application of volume rendering and three-dimensional interactive technology in geological data visualization [J]. Journal of Engineering Graphics, 1998 (3): 60-64.
Previous article:Research on the simulation game and countermeasures of robot soccer based on VB language
Next article:Routing algorithm for wireless sensor networks based on minimum energy consumption
- Popular Resources
- Popular amplifiers
- Molex leverages SAP solutions to drive smart supply chain collaboration
- Pickering Launches New Future-Proof PXIe Single-Slot Controller for High-Performance Test and Measurement Applications
- CGD and Qorvo to jointly revolutionize motor control solutions
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Nidec Intelligent Motion is the first to launch an electric clutch ECU for two-wheeled vehicles
- Bosch and Tsinghua University renew cooperation agreement on artificial intelligence research to jointly promote the development of artificial intelligence in the industrial field
- GigaDevice unveils new MCU products, deeply unlocking industrial application scenarios with diversified products and solutions
- Advantech: Investing in Edge AI Innovation to Drive an Intelligent Future
- CGD and QORVO will revolutionize motor control solutions
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- Rambus Launches Industry's First HBM 4 Controller IP: What Are the Technical Details Behind It?
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- How to use MSP430 to implement PWM signal
- [Zero-knowledge ESP8266 tutorial] Quick start 29 How to use the nine-axis sensor module
- MicroPython adds self-power and power consumption parameters to USB
- [New Year's Festival Competition] + More than 200 girls walk
- Introduction to PLC, excerpted from "Control Engineer"
- Postpartum lamp - what kind of light do women need during confinement?
- Introduction to RF5 Architecture
- The relationship between standard, bandwidth, and baud rate/speed
- Share some free ADI high-quality materials and prize-winning activities, welcome everyone to actively participate in the download!
- Please help me with the formatting of articles copied from the official account to Word