English is not my first language so please don't mind any bad grammar here, as long as you get the sense of what I am writing. I am a regular lazy viewer of CodeProject and this is my first article to share the working behind my prototype. Below is the link of the video showing what we can achieve. I shall not be able to cover any video streaming part as that will be out of scope for this article and against my company's policies. In this article, I will cover the code of my prototype and the explanation side by side. Our clients are quite impressed with this and I am soon going to develop a full fledged interface. After 3 days of work, I ended up creating a successful prototype of what I desired. I also did research on Ajax, Jquery and restful services pattern so that I could interact with server side. I started my research and was impressed with bing maps initially but as they revoked their 3D maps feature, I ended up using Google maps for my solution. For the last couple of days, I have been thinking of making a sophisticated dashboard with live maps (all 3D, 2D, street view), tracking live positions of the camera, streaming video on the side with a whole lot of other information and settings to customize the dashboard view. Play with settings for the 3D-object, your camera setup, the orientation and scale of your 3D-object until it displays correct (see section below).I work for a company 'Momentum Technologies' in Australia which provides real time video streaming solutions. You may get a popup saying something like “Files have absolute path”. Next, drag in a “3D-object” element and select the “.dae” file for it (from the “3d” subfolder). 1 file ending on “.dae” and a lot of “.png” images. Paste all files that you created with Blender above, i.e. Next, create a subfolder named “3d” (exactly that name!). Change its “Far clipping distance” to a higher value, typically 20000-50000 works (it depends on the scale of your photogrammetry). Load up AnyLogic, create a new model and drag in a “3D-window” element from the “Presentation” palette. The last step will be trivial in comparison… Loading into AnyLogicįinally, we can see the fruit of our hard work. dae”Įxport into a separate new folder of your choice (it will create many files in there)Ĭongrats, another difficult piece of the work done. Lastly, in Blender click “File” -> “Export” -> “Collada (default). Select the MapsModelImporter zip file you downloaded previously In the “Addons” tab, click the “Install” button Open Blender, go to “Edit”, “Preferences” I tested it with version 2.93.4Īctivate MapsModelImporter within Blender (refer to the original video for visuals): I tested it with release v0.4.0ĭownload and install Blender. I cannot guarantee it works with newer versions so maybe try with the versions I specify first:ĭownload MapsModelImporter. These steps are only necessary the very first time you try this. The technical foundation is based on this video, do check that as well for more details (or if you are stuck with my text descriptions below) This workflow only works on Windows (10, not tested 11) So you want to learn and apply this yourself? Let’s get kicking. Obviously, I cannot accept any liability resulting from you using Google Maps data. You must make your own decision if you are eligible to follow this approach for your models under their “fair use” guidelines. Please be aware that Google has rules about how to use its data.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |