{"id":34843,"date":"2024-08-21T14:23:12","date_gmt":"2024-08-21T12:23:12","guid":{"rendered":"https:\/\/media-and-learning.eu\/?p=34843"},"modified":"2024-08-21T14:23:14","modified_gmt":"2024-08-21T12:23:14","slug":"gaussian-splatting-rapid-3d-with-ai-tools","status":"publish","type":"post","link":"https:\/\/media-and-learning.eu\/subject\/higher-education\/gaussian-splatting-rapid-3d-with-ai-tools\/","title":{"rendered":"Gaussian Splatting: rapid 3D with AI tools"},"content":{"rendered":"\n<p>by <strong>Nathan Saucier<\/strong>, Leiden University, The Netherlands.<\/p>\n\n\n\n<p>Thanks to recently-released AI tools, it is now possible to create highly realistic 3D environments, using only simple photos or videos of a given location. One of the most promising of these tools, Gaussian Splatting, offers a new means of quickly generating 3D content of a kind which used to take days or even weeks to produce, consequently lowering the technical bar to creating immersive 3D experiences.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Background<\/strong><\/h2>\n\n\n\n<p>At the Leiden Learning and Innovation Centre (LLInC), we have been working for a number of years with 360\u00b0 video and VR, demonstrating their pedagogical applications. 360\u00b0 video is an appealing medium owing to how easily it can be both created and viewed as well as its high degree of photorealism, yet it has one flaw: the user is \u201cstuck\u201d in one location, constrained to looking around the inside of a video sphere. Because of this limitation, many media producers have opted for VR, owing to its interactivity and full freedom of movement. VR, however, most often looks like a video game and photorealism falls by the wayside.<\/p>\n\n\n\n<p>This has posed a dilemma for many producers, forcing a choice between two avenues of expression for a given project. But this dilemma may soon be resolved, thanks to the promising new technology of Gaussian Splatting &#8211; a novel machine learning technique which allows us to make navigable 3D scenes that look real and are easy to create.<\/p>\n\n\n\n<p>First published at SIGGRAPH 2023 &#8211; a leading conference centred upon computer graphics and interactive techniques &#8211; Gaussian Splatting lets us construct 3D environments using simple photos or videos. The images are first processed to determine the geometry of the scene before the program calculates where in the space each picture belongs, creating a point cloud to build a 3D mesh. Next, the AI training begins. The point cloud has textures (\u201csplats\u201d) mapped onto it through an iterative process. The model attempts to find the most accurate colour for each point, refining it many thousands of times, before blending each point together with its neighbours (these are called 3D Gaussians). The result is a smooth, continuous surface with a high degree of photorealism.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"631\" height=\"856\" src=\"https:\/\/media-and-learning.eu\/files\/2024\/08\/1.png\" alt=\"\" class=\"wp-image-34845\" srcset=\"https:\/\/media-and-learning.eu\/files\/2024\/08\/1.png 631w, https:\/\/media-and-learning.eu\/files\/2024\/08\/1-221x300.png 221w, https:\/\/media-and-learning.eu\/files\/2024\/08\/1-370x502.png 370w, https:\/\/media-and-learning.eu\/files\/2024\/08\/1-270x366.png 270w, https:\/\/media-and-learning.eu\/files\/2024\/08\/1-570x773.png 570w\" sizes=\"auto, (max-width: 631px) 100vw, 631px\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><em>3D Gaussians Under Construction<\/em><\/p>\n\n\n\n<p>Compared to similar technologies which came before it, Gaussian Splatting offers much faster training times to produce its final result. Moreover, it is more photo-accurate. These qualities are an important part of any media project, especially those which are as large in scope as many educational projects. Consider, for instance, an archaeology project that seeks to capture in 3D the environments of many sites around the world. In this case, the speed and accuracy of Gaussian Splatting provides a clear advantage over previous scanning technologies.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Building a Scene<\/strong><\/h2>\n\n\n\n<p>In order to train any model, we need some data. For our Gaussian Splats, this means video. Capturing video to create a 3D model is not a difficult process but it should be a comprehensive one. Walking around a given scene, the camera operator must strive for as much coverage as possible. This means not only shooting in all relevant directions, but also at different distances from objects and at several different heights. One option is to deploy a 360\u00b0 camera, enabling an omnidirectional shoot in a fairly small amount of time. The spherical video may then be exported as several \u201cframed\u201d videos or stills \u2013 flat perspectives from within the 360\u00b0 sphere.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/media-and-learning.eu\/files\/2024\/08\/2-1024x576.png\" alt=\"\" class=\"wp-image-34846\" srcset=\"https:\/\/media-and-learning.eu\/files\/2024\/08\/2-1024x576.png 1024w, https:\/\/media-and-learning.eu\/files\/2024\/08\/2-300x169.png 300w, https:\/\/media-and-learning.eu\/files\/2024\/08\/2-768x432.png 768w, https:\/\/media-and-learning.eu\/files\/2024\/08\/2-1536x864.png 1536w, https:\/\/media-and-learning.eu\/files\/2024\/08\/2-370x208.png 370w, https:\/\/media-and-learning.eu\/files\/2024\/08\/2-270x152.png 270w, https:\/\/media-and-learning.eu\/files\/2024\/08\/2-570x321.png 570w, https:\/\/media-and-learning.eu\/files\/2024\/08\/2-740x416.png 740w, https:\/\/media-and-learning.eu\/files\/2024\/08\/2.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><em>Framed Perspectives from our 360 Camera<\/em><\/p>\n\n\n\n<p>Once the video is ready, we can train our model using either a cloud service or a local machine. At LLInC, we have (thus far) opted for the latter, using the free Windows program Postshot to train on our own Nvidia hardware. This we chose since local training affords much more granular control and yields better results than cloud options. Our splats can be monitored in real time and their parameters can even be adjusted on the fly without restarting the entire process. The fact that the cloud options are currently commercial software was another significant consideration. This being said, the cloud route is, however, currently more user friendly since splats can be produced entirely on a smartphone and hosted on the web. From our research thus far, Luma.ai and Polycam are the apparent leaders in cloud-based Gaussian Splatting, although new commercial options are appearing all the time.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"558\" src=\"https:\/\/media-and-learning.eu\/files\/2024\/08\/3-1024x558.png\" alt=\"\" class=\"wp-image-34847\" srcset=\"https:\/\/media-and-learning.eu\/files\/2024\/08\/3-1024x558.png 1024w, https:\/\/media-and-learning.eu\/files\/2024\/08\/3-300x163.png 300w, https:\/\/media-and-learning.eu\/files\/2024\/08\/3-768x419.png 768w, https:\/\/media-and-learning.eu\/files\/2024\/08\/3-1536x837.png 1536w, https:\/\/media-and-learning.eu\/files\/2024\/08\/3-2048x1116.png 2048w, https:\/\/media-and-learning.eu\/files\/2024\/08\/3-370x202.png 370w, https:\/\/media-and-learning.eu\/files\/2024\/08\/3-270x147.png 270w, https:\/\/media-and-learning.eu\/files\/2024\/08\/3-570x311.png 570w, https:\/\/media-and-learning.eu\/files\/2024\/08\/3-740x403.png 740w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><em>Postshot Training Underway<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"522\" src=\"https:\/\/media-and-learning.eu\/files\/2024\/08\/4-1024x522.png\" alt=\"\" class=\"wp-image-34848\" srcset=\"https:\/\/media-and-learning.eu\/files\/2024\/08\/4-1024x522.png 1024w, https:\/\/media-and-learning.eu\/files\/2024\/08\/4-300x153.png 300w, https:\/\/media-and-learning.eu\/files\/2024\/08\/4-768x392.png 768w, https:\/\/media-and-learning.eu\/files\/2024\/08\/4-1536x783.png 1536w, https:\/\/media-and-learning.eu\/files\/2024\/08\/4-2048x1044.png 2048w, https:\/\/media-and-learning.eu\/files\/2024\/08\/4-370x189.png 370w, https:\/\/media-and-learning.eu\/files\/2024\/08\/4-270x138.png 270w, https:\/\/media-and-learning.eu\/files\/2024\/08\/4-570x291.png 570w, https:\/\/media-and-learning.eu\/files\/2024\/08\/4-740x377.png 740w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><em>Unity Scene with Gaussian Splat<\/em><\/p>\n\n\n\n<p>Training times will depend on the complexity and size of the scene, as well as the power of the computer used to train the model. The alleyway near our LLInC office in the Hague required about 8 hours of training. The result was rather impressive and we were easily able to export the final 3D model for use in Unity &#8211; our game development software of choice. After making the scene navigable with Unity, this was able to be exported to a VR headset for further exploration.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Use in Education<\/strong><\/h2>\n\n\n\n<p>This technology has many promising applications within the field of immersive education. At LLInC, we are already working on a pilot project with the Law Faculty in which elements of an urban scene can be modified to test the public\u2019s response to planning interventions. But the sky is the limit here \u2013 any application in which a 3D environment is desirable is now much easier to create than before. As Gaussian Splatting becomes widespread, the tools to deploy it will likewise become easier to use.<\/p>\n\n\n\n<p>Behind the scenes, AI models are changing production pipelines in numerous fields. Media production for education is no exception. LLInC\u2019s Data and Media team will be keeping tabs on the aftermath of this year\u2019s SIGGRAPH conference, where radiance fields (the group to which Gaussian Splatting belongs) made up 4 distinct categories for the first time ever. Stay tuned!&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-media-text is-stacked-on-mobile\" style=\"grid-template-columns:20% auto\"><figure class=\"wp-block-media-text__media\"><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/media-and-learning.eu\/files\/2024\/08\/image-9.png\" alt=\"\" class=\"wp-image-34844 size-full\" srcset=\"https:\/\/media-and-learning.eu\/files\/2024\/08\/image-9.png 150w, https:\/\/media-and-learning.eu\/files\/2024\/08\/image-9-125x125.png 125w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/figure><div class=\"wp-block-media-text__content\">\n<h2 class=\"wp-block-heading\">Author<\/h2>\n\n\n\n<a href=\"https:\/\/content.media-and-learning.eu\/node\/4292\/lightbox2\" target=\"_blank\" data-lity><strong>Nathan Saucier<\/strong><\/a>, Leiden University, The Netherlands<\/p>\n<\/div><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/jawset.com\/\">https:\/\/jawset.com<\/a> (Postshot)<\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/aras-p\/UnityGaussianSplatting (Plugin for Unity)\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/aras-p\/UnityGaussianSplatting <\/a>(Plugin for Unity)<\/li>\n\n\n\n<li><a href=\"https:\/\/lumalabs.ai\/interactive-scenes\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/lumalabs.ai\/interactive-scenes<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/lumalabs.ai\/luma-web-library\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/lumalabs.ai\/luma-web-library<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/poly.cam\/tools\/gaussian-splatting\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/poly.cam\/tools\/gaussian-splatting<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/radiancefields.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/radiancefields.com<\/a> (further reading)<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>by Nathan Saucier, Leiden University, The Netherlands. Thanks to recently-released AI tools, it is now possible to create highly realistic 3D environments, using only simple photos or videos of a given location. One of the most promising of these tools, Gaussian Splatting, offers a new means of quickly generating 3D content of a kind which [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":34846,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mo_disable_npp":"","footnotes":""},"categories":[271,4,275],"tags":[],"class_list":["post-34843","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ar-vr","category-featured-articles","category-higher-education"],"featured_image_src":"https:\/\/media-and-learning.eu\/files\/2024\/08\/2.png","author_info":{"display_name":"Dovile Dudenaite","author_link":"https:\/\/media-and-learning.eu\/author\/dovile-dudenaite\/"},"_links":{"self":[{"href":"https:\/\/media-and-learning.eu\/api-json\/wp\/v2\/posts\/34843","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/media-and-learning.eu\/api-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/media-and-learning.eu\/api-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/media-and-learning.eu\/api-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/media-and-learning.eu\/api-json\/wp\/v2\/comments?post=34843"}],"version-history":[{"count":5,"href":"https:\/\/media-and-learning.eu\/api-json\/wp\/v2\/posts\/34843\/revisions"}],"predecessor-version":[{"id":34858,"href":"https:\/\/media-and-learning.eu\/api-json\/wp\/v2\/posts\/34843\/revisions\/34858"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/media-and-learning.eu\/api-json\/wp\/v2\/media\/34846"}],"wp:attachment":[{"href":"https:\/\/media-and-learning.eu\/api-json\/wp\/v2\/media?parent=34843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/media-and-learning.eu\/api-json\/wp\/v2\/categories?post=34843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/media-and-learning.eu\/api-json\/wp\/v2\/tags?post=34843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}