OSG underground pipeline information system development, which can be used for BIM information display

OSG Forum Blog

http://bbs.osgchina.org/forum.php?mod=viewthread&tid=22738&_dsign=ded28815

1. Meeting with osg (open the window)

The first time I came into contact with osg was at a GIS research institute in Beijing in 2014, and I felt magical and shocking to see Daniel fluently display digital cities. At that time, I was inspired to master this engine well. However, I didn’t even know C++ at that time. I just took a little bit of VB and C#. After three months of hard work, I completed a result that is still not easy: any Automatic generation algorithm of polygonal 3D roof, blog address . Among them, osg is used to achieve three-dimensional rendering, cgal is used to implement the skeleton line algorithm, and the shortest path algorithm is used to implement the roof trimming boundary calculation. I was helpless, and then left Beijing to do Android mobile development. I used Irrlicht as the mobile terminal 3D engine to do indoor 3D roaming navigation development. After graduating a year later, I wanted to find a mobile terminal development job, but I didn’t want to find a GIS. System development position. The so-called newborn calves are not afraid of tigers, and even started the project development of 3D visualization of underground pipelines.
2. Begin the in-depth communication with osg (open the door).
Not a solid C++ foundation, some design pattern concepts, starting from OSG and OE compilation, to carry forward the spirit of not being afraid of hardship, and not afraid of dryness... One month later, I soberly gave up. Through OSG to develop the luxury of OE. Because of insufficient internal strength, it is impossible to become a master, besides, he has no internal strength. So start from OSG, start from MFC programming, in line with the belief that two thousand and five miles must be gritted! It took another 3 months and I gradually found the feeling. There were 12 weeks and 90 days in the three months. This is an understatement, but at the time it was mixed...I really thought about giving up, and Skyline, Supermap, wordwind, etc. kept throwing. Winks! Three months later, I finally made a model loader, which is to add the record model to the scene, use the tree control for management, and use xml as the data parameter file. It's that simple! But it gave myself great encouragement and confidence.
 
3. One forest after another (enter)
Three months finally opened the door of osg, which is beautiful! The beauty of osg is that it encapsulates all the operations of OpenGL to make people feel comfortable. There is no need to worry about the underlying efficiency. As long as it is used properly, the display of the 3D model is as simple as opening the file. Moreover, the hierarchical rendering structure is very suitable for the hierarchical design of the three-dimensional scene, the tree structure. Among them, click, measure, light, drag, zoom, and rotate are all simple commands.
 
4. The mountains in the forest (deep)
If there is only a forest, it seems that you can pass as long as you don’t get lost, but OSG also has obstacles, such as the callback of the dynamic processing model vertices, the grasp of the multi-thread control mechanism, the setting of the three-dimensional analysis logic, etc. It's not a problem, time will take you past. In small scenes, independent scene simulations, osg is sufficient, but in large areas, especially when spherical maps become common, it appears LOW without the ball. Always move the scene to OE.
 
 
 
 

5. Haze fans
have indeed gone deep into it a lot. The basic mechanism concepts are gone, and the original novelty is gone. What follows is dense code and an invisible road ahead. When you go to OE, you just change This way of writing, there is nothing in it, and there is nothing you can do, and the rest seems to just use them to the extreme. There are more and more mature 3D products on the market. As an individual developer, it is a typical ignorance of the current affairs to fight against the power of the legion with limited youth. If you can't combine specific industry applications and just compare rendering effects and efficiency, you can only sigh with joy! Development is originally a high-cost and high-risk work, and can only do NO1, NO2, and you will be hungry later. Of course, as long as you persist, there will always be spring! SXearth given to ago. Learn about SXearth
6. In conclusion, if you have not joined the Legion and are just a lone wolf, you must understand that the mayfly wants to shake the tree and only waits for the wind to come! Find your own Dongfeng, make a professional 3D application! What the Legion can do, if you can, the Legion can do it to your level, what the Legion ignores is your opportunity.
Welcome to exchange QQ: 329611847
Email: [email protected]

Guess you like

Origin blog.csdn.net/sun19890716/article/details/52882959