CINXE.COM

Set line width in COLLADA for viewing in Google Earth - COLLADA - Khronos Forums

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Set line width in COLLADA for viewing in Google Earth - COLLADA - Khronos Forums</title> <meta name="description" content="I can set up 3D lines in a COLLADA .dae file and view them in Google Earth, but they are really thin and very hard to see over Colorado. How can I set the line width to something other than the default of 1 (meter?)? I h&amp;hellip;"> <meta name="generator" content="Discourse 3.4.0.beta2-dev - https://github.com/discourse/discourse version 68c9553251930d981c769946241a78529083d2be"> <link rel="icon" type="image/png" href="https://community.khronos.org/uploads/default/optimized/2X/5/518875af668dc5e9fe5ac6462f5183fc8607ac31_2_32x32.png"> <link rel="apple-touch-icon" type="image/png" href="https://community.khronos.org/uploads/default/optimized/2X/5/518875af668dc5e9fe5ac6462f5183fc8607ac31_2_180x180.png"> <meta name="theme-color" media="all" content="#333333"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=yes, viewport-fit=cover"> <link rel="canonical" href="https://community.khronos.org/t/set-line-width-in-collada-for-viewing-in-google-earth/109243" /> <link rel="search" type="application/opensearchdescription+xml" href="https://community.khronos.org/opensearch.xml" title="Khronos Forums Search"> <link href="/stylesheets/color_definitions_neutral_2_3_4f5a035d5d51f82f286296f63a0dd28b851c4e3e.css?__ws=community.khronos.org" media="all" rel="stylesheet" class="light-scheme"/> <link href="/stylesheets/desktop_f79ae0d7f1c968ed3423df281a7cde7f60779595.css?__ws=community.khronos.org" media="all" rel="stylesheet" data-target="desktop" /> <link href="/stylesheets/chat_f79ae0d7f1c968ed3423df281a7cde7f60779595.css?__ws=community.khronos.org" media="all" rel="stylesheet" data-target="chat" /> <link href="/stylesheets/checklist_f79ae0d7f1c968ed3423df281a7cde7f60779595.css?__ws=community.khronos.org" media="all" rel="stylesheet" data-target="checklist" /> <link href="/stylesheets/discourse-akismet_f79ae0d7f1c968ed3423df281a7cde7f60779595.css?__ws=community.khronos.org" media="all" rel="stylesheet" data-target="discourse-akismet" /> <link href="/stylesheets/discourse-bbcode_f79ae0d7f1c968ed3423df281a7cde7f60779595.css?__ws=community.khronos.org" media="all" rel="stylesheet" data-target="discourse-bbcode" /> <link href="/stylesheets/discourse-chat-integration_f79ae0d7f1c968ed3423df281a7cde7f60779595.css?__ws=community.khronos.org" media="all" rel="stylesheet" data-target="discourse-chat-integration" /> <link href="/stylesheets/discourse-data-explorer_f79ae0d7f1c968ed3423df281a7cde7f60779595.css?__ws=community.khronos.org" media="all" rel="stylesheet" data-target="discourse-data-explorer" /> <link href="/stylesheets/discourse-details_f79ae0d7f1c968ed3423df281a7cde7f60779595.css?__ws=community.khronos.org" media="all" rel="stylesheet" data-target="discourse-details" /> <link href="/stylesheets/discourse-lazy-videos_f79ae0d7f1c968ed3423df281a7cde7f60779595.css?__ws=community.khronos.org" media="all" rel="stylesheet" data-target="discourse-lazy-videos" /> <link href="/stylesheets/discourse-local-dates_f79ae0d7f1c968ed3423df281a7cde7f60779595.css?__ws=community.khronos.org" media="all" rel="stylesheet" data-target="discourse-local-dates" /> <link href="/stylesheets/discourse-math_f79ae0d7f1c968ed3423df281a7cde7f60779595.css?__ws=community.khronos.org" media="all" rel="stylesheet" data-target="discourse-math" /> <link href="/stylesheets/discourse-narrative-bot_f79ae0d7f1c968ed3423df281a7cde7f60779595.css?__ws=community.khronos.org" media="all" rel="stylesheet" data-target="discourse-narrative-bot" /> <link href="/stylesheets/discourse-presence_f79ae0d7f1c968ed3423df281a7cde7f60779595.css?__ws=community.khronos.org" media="all" rel="stylesheet" data-target="discourse-presence" /> <link href="/stylesheets/discourse-solved_f79ae0d7f1c968ed3423df281a7cde7f60779595.css?__ws=community.khronos.org" media="all" rel="stylesheet" data-target="discourse-solved" /> <link href="/stylesheets/docker_manager_f79ae0d7f1c968ed3423df281a7cde7f60779595.css?__ws=community.khronos.org" media="all" rel="stylesheet" data-target="docker_manager" /> <link href="/stylesheets/footnote_f79ae0d7f1c968ed3423df281a7cde7f60779595.css?__ws=community.khronos.org" media="all" rel="stylesheet" data-target="footnote" /> <link href="/stylesheets/poll_f79ae0d7f1c968ed3423df281a7cde7f60779595.css?__ws=community.khronos.org" media="all" rel="stylesheet" data-target="poll" /> <link href="/stylesheets/spoiler-alert_f79ae0d7f1c968ed3423df281a7cde7f60779595.css?__ws=community.khronos.org" media="all" rel="stylesheet" data-target="spoiler-alert" /> <link href="/stylesheets/chat_desktop_f79ae0d7f1c968ed3423df281a7cde7f60779595.css?__ws=community.khronos.org" media="all" rel="stylesheet" data-target="chat_desktop" /> <link href="/stylesheets/poll_desktop_f79ae0d7f1c968ed3423df281a7cde7f60779595.css?__ws=community.khronos.org" media="all" rel="stylesheet" data-target="poll_desktop" /> <link href="/stylesheets/desktop_theme_3_d8444bde10722dab941e705c958b8c0a717f94c3.css?__ws=community.khronos.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="3" data-theme-name="neutral"/> <script defer="" src="/theme-javascripts/63cb4eaf19e695de68147c1d7f88da4c8be7fa5a.js?__ws=community.khronos.org" data-theme-id="5" nonce="vsvvRSMHFtfKWLvQRlYchU6o4"></script> <meta id="data-ga-universal-analytics" data-tracking-code="G-LNKMFEH9Z3" data-json="{&quot;cookieDomain&quot;:&quot;community.khronos.org&quot;}" data-auto-link-domains=""> <script async src="https://www.googletagmanager.com/gtag/js?id=G-LNKMFEH9Z3" nonce="vsvvRSMHFtfKWLvQRlYchU6o4"></script> <script defer src="/assets/google-universal-analytics-v4-e154af4adb3c483a3aba7f9a7229b8881cdc5cf369290923d965a2ad30163ae8.js" data-discourse-entrypoint="google-universal-analytics-v4" nonce="vsvvRSMHFtfKWLvQRlYchU6o4"></script> <link rel="alternate nofollow" type="application/rss+xml" title="RSS feed of &#39;Set line width in COLLADA for viewing in Google Earth&#39;" href="https://community.khronos.org/t/set-line-width-in-collada-for-viewing-in-google-earth/109243.rss" /> <meta property="og:site_name" content="Khronos Forums" /> <meta property="og:type" content="website" /> <meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:image" content="https://community.khronos.org/uploads/default/original/2X/c/ca03e6681e2a66424a1c1a268f9c2b6dfdb63ce7.jpeg" /> <meta property="og:image" content="https://community.khronos.org/uploads/default/original/2X/b/ba89cb49313a0e869198c8be354afde8bcae027e.png" /> <meta property="og:url" content="https://community.khronos.org/t/set-line-width-in-collada-for-viewing-in-google-earth/109243" /> <meta name="twitter:url" content="https://community.khronos.org/t/set-line-width-in-collada-for-viewing-in-google-earth/109243" /> <meta property="og:title" content="Set line width in COLLADA for viewing in Google Earth" /> <meta name="twitter:title" content="Set line width in COLLADA for viewing in Google Earth" /> <meta property="og:description" content="I can set up 3D lines in a COLLADA .dae file and view them in Google Earth, but they are really thin and very hard to see over Colorado. How can I set the line width to something other than the default of 1 (meter?)? I have located the line_width tag in the COLLADA documentation, but it does not seem to do anything no matter where I put it. Here is my .dae file Lines-blue.dae. &lt;?xml version=&quot;1.0&quot;?&gt; &lt;COLLADA xmlns=&quot;http://www.collada.org/2005/11/COLLADASchema&quot; version=&quot;1.4.1&quot;&gt; &lt;asset&gt; &lt;co..." /> <meta name="twitter:description" content="I can set up 3D lines in a COLLADA .dae file and view them in Google Earth, but they are really thin and very hard to see over Colorado. How can I set the line width to something other than the default of 1 (meter?)? I have located the line_width tag in the COLLADA documentation, but it does not seem to do anything no matter where I put it. Here is my .dae file Lines-blue.dae. &lt;?xml version=&quot;1.0&quot;?&gt; &lt;COLLADA xmlns=&quot;http://www.collada.org/2005/11/COLLADASchema&quot; version=&quot;1.4.1&quot;&gt; &lt;asset&gt; &lt;co..." /> <meta property="og:article:section" content="Other Standards" /> <meta property="og:article:section:color" content="F7941D" /> <meta property="og:article:section" content="COLLADA" /> <meta property="og:article:section:color" content="F7941D" /> <meta property="article:published_time" content="2022-11-22T19:40:35+00:00" /> <meta property="og:ignore_canonical" content="true" /> <script type="application/ld+json">{"@context":"http://schema.org","@type":"QAPage","name":"Set line width in COLLADA for viewing in Google Earth","mainEntity":{"@type":"Question","name":"Set line width in COLLADA for viewing in Google Earth","text":"I can set up 3D lines in a COLLADA .dae file and view them in Google Earth, but they are really thin and very hard to see over Colorado. How can I set the line width to something other than the default of 1 (meter?)? I have located the line_width tag in the COLLADA documentation, but it does not see&hellip;","upvoteCount":0,"answerCount":0,"datePublished":"2022-11-22T19:40:34.922Z","author":{"@type":"Person","name":"drews","url":"https://community.khronos.org/u/drews"}}}</script> </head> <body class="crawler browser-update"> <header> <a href="/"> Khronos Forums </a> </header> <div id="main-outlet" class="wrap" role="main"> <div id="topic-title"> <h1> <a href="/t/set-line-width-in-collada-for-viewing-in-google-earth/109243">Set line width in COLLADA for viewing in Google Earth</a> </h1> <div class="topic-category" itemscope itemtype="http://schema.org/BreadcrumbList"> <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a href="/c/other-standards/collada/13" class="badge-wrapper bullet" itemprop="item"> <span class='badge-category-bg' style='background-color: #F7941D'></span> <span class='badge-category clear-badge'> <span class='category-name' itemprop='name'>Other Standards</span> </span> </a> <meta itemprop="position" content="1" /> </span> <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a href="/c/other-standards/collada/13" class="badge-wrapper bullet" itemprop="item"> <span class='badge-category-bg' style='background-color: #F7941D'></span> <span class='badge-category clear-badge'> <span class='category-name' itemprop='name'>COLLADA</span> </span> </a> <meta itemprop="position" content="2" /> </span> </div> </div> <div itemscope itemtype='http://schema.org/DiscussionForumPosting'> <meta itemprop='headline' content='Set line width in COLLADA for viewing in Google Earth'> <link itemprop='url' href='https://community.khronos.org/t/set-line-width-in-collada-for-viewing-in-google-earth/109243'> <meta itemprop='datePublished' content='2022-11-22T19:40:34Z'> <meta itemprop='articleSection' content='COLLADA'> <meta itemprop='keywords' content=''> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='The Khronos Group, Inc'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://community.khronos.org/uploads/default/original/2X/b/b557c879c88ec7b8104d755db805309010d5e1c0.png'> </div> </div> <div id='post_1' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://community.khronos.org/u/drews'><span itemprop='name'>drews</span></a> </span> <link itemprop="mainEntityOfPage" href="https://community.khronos.org/t/set-line-width-in-collada-for-viewing-in-google-earth/109243"> <span class="crawler-post-infos"> <time datetime='2022-11-22T19:40:35Z' class='post-time'> November 22, 2022, 7:40pm </time> <meta itemprop='dateModified' content='2022-11-22T19:40:35Z'> <span itemprop='position'>1</span> </span> </div> <div class='post' itemprop='text'> <p>I can set up 3D lines in a COLLADA .dae file and view them in Google Earth, but they are really thin and very hard to see over Colorado. How can I set the line width to something other than the default of 1 (meter?)? I have located the line_width tag in the COLLADA documentation, but it does not seem to do anything no matter where I put it.</p> <p>Here is my .dae file Lines-blue.dae.</p> <pre><code class="lang-auto">&lt;?xml version="1.0"?&gt; &lt;COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1"&gt; &lt;asset&gt; &lt;contributor&gt; &lt;author&gt;Carl Drews&lt;/author&gt; &lt;authoring_tool&gt;Assimp Collada Exporter&lt;/authoring_tool&gt; &lt;/contributor&gt; &lt;created&gt;2000-01-01T23:59:59&lt;/created&gt; &lt;modified&gt;2000-01-01T23:59:59&lt;/modified&gt; &lt;unit name="meter" meter="1" /&gt; &lt;up_axis&gt;Z_UP&lt;/up_axis&gt; &lt;/asset&gt; &lt;library_effects&gt; &lt;effect id="m0DefaultMaterial-fx" name="m0DefaultMaterial"&gt; &lt;profile_COMMON&gt; &lt;technique sid="standard"&gt; &lt;phong&gt; &lt;emission&gt; &lt;color sid="emission"&gt;0 0 0 1&lt;/color&gt; &lt;/emission&gt; &lt;ambient&gt; &lt;color sid="ambient"&gt;0.05 0.05 0.05 1&lt;/color&gt; &lt;/ambient&gt; &lt;diffuse&gt; &lt;color sid="diffuse"&gt;0 0 1 1&lt;/color&gt; &lt;/diffuse&gt; &lt;specular&gt; &lt;color sid="specular"&gt;0 0 0 1&lt;/color&gt; &lt;/specular&gt; &lt;shininess&gt; &lt;float sid="shininess"&gt;16&lt;/float&gt; &lt;/shininess&gt; &lt;reflective&gt; &lt;color sid="reflective"&gt;0 0 0 0&lt;/color&gt; &lt;/reflective&gt; &lt;transparency&gt; &lt;float sid="transparency"&gt;0.5&lt;/float&gt; &lt;/transparency&gt; &lt;/phong&gt; &lt;/technique&gt; &lt;extra&gt; &lt;technique profile="GOOGLEEARTH"&gt; &lt;double_sided&gt;1&lt;/double_sided&gt; **&lt;line_width&gt;1200.0&lt;/line_width&gt;** &lt;/technique&gt; &lt;/extra&gt; &lt;/profile_COMMON&gt; &lt;/effect&gt; &lt;/library_effects&gt; &lt;library_materials&gt; &lt;material id="m0DefaultMaterial" name="m0DefaultMaterial"&gt; &lt;instance_effect url="#m0DefaultMaterial-fx"/&gt; &lt;/material&gt; &lt;/library_materials&gt; &lt;library_geometries&gt; &lt;geometry id="meshId0" name="meshId0_name" &gt; &lt;mesh&gt; &lt;source id="meshId0-positions" name="meshId0-positions"&gt; &lt;float_array id="meshId0-positions-array" count="36"&gt; 0 0 0 12000 0 0 6000 6000 6000 12000 0 0 12000 12000 0 6000 6000 6000 12000 12000 0 0 12000 0 6000 6000 6000 0 12000 0 0 0 0 6000 6000 6000 &lt;/float_array&gt; &lt;technique_common&gt; &lt;accessor count="12" offset="0" source="#meshId0-positions-array" stride="3"&gt; &lt;param name="X" type="float" /&gt; &lt;param name="Y" type="float" /&gt; &lt;param name="Z" type="float" /&gt; &lt;/accessor&gt; &lt;/technique_common&gt; &lt;/source&gt; &lt;source id="meshId0-normals" name="meshId0-normals"&gt; &lt;float_array id="meshId0-normals-array" count="36"&gt; 0 -0.5 0.5 0 -0.5 0.5 0 -0.5 0.5 -0.5 0 0.5 -0.5 0 0.5 -0.5 0 0.5 0 0.5 0.5 0 0.5 0.5 0 0.5 0.5 -0.5 0 0.5 -0.5 0 0.5 -0.5 0 0.5 &lt;/float_array&gt; &lt;technique_common&gt; &lt;accessor count="12" offset="0" source="#meshId0-normals-array" stride="3"&gt; &lt;param name="X" type="float" /&gt; &lt;param name="Y" type="float" /&gt; &lt;param name="Z" type="float" /&gt; &lt;/accessor&gt; &lt;/technique_common&gt; &lt;/source&gt; &lt;vertices id="meshId0-vertices"&gt; &lt;input semantic="POSITION" source="#meshId0-positions" /&gt; &lt;input semantic="NORMAL" source="#meshId0-normals" /&gt; &lt;/vertices&gt; &lt;lines count="4" material="theresonlyone"&gt; &lt;input offset="0" semantic="VERTEX" source="#meshId0-vertices" /&gt; &lt;vcount&gt;3 3 3 3&lt;/vcount&gt; &lt;p&gt;0 1 2 3 4 5 6 7 8 9 10 11 &lt;/p&gt; &lt;/lines&gt; &lt;/mesh&gt; &lt;/geometry&gt; &lt;/library_geometries&gt; &lt;library_visual_scenes&gt; &lt;visual_scene id="myScene" name="myScene"&gt; &lt;node id="STL_BINARY" name="STL_BINARY"&gt; &lt;matrix&gt;1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1&lt;/matrix&gt; &lt;instance_geometry url="#meshId0"&gt; &lt;bind_material&gt; &lt;technique_common&gt; &lt;instance_material symbol="theresonlyone" target="#m0DefaultMaterial"/&gt; &lt;/technique_common&gt; &lt;/bind_material&gt; &lt;/instance_geometry&gt; &lt;/node&gt; &lt;/visual_scene&gt; &lt;/library_visual_scenes&gt; &lt;scene&gt; &lt;instance_visual_scene url="#myScene" /&gt; &lt;/scene&gt; &lt;/COLLADA&gt; </code></pre> <p>Here is the KML fragment that includes the COLLADA Model:</p> <pre><code class="lang-auto">&lt;Style id="WideLine"&gt; &lt;LineStyle&gt; &lt;width&gt;100&lt;/width&gt; &lt;/LineStyle&gt; &lt;/Style&gt; &lt;Placemark&gt; &lt;name&gt;Experimental white lines floating over Boulder.&lt;/name&gt; &lt;description&gt;Model created by Carl Drews - November 18, 2022.&lt;/description&gt; &lt;Camera&gt; &lt;longitude&gt;-105.1000&lt;/longitude&gt; &lt;latitude&gt; 40.0650&lt;/latitude&gt; &lt;altitude&gt;2000&lt;/altitude&gt; &lt;tilt&gt;90.00&lt;/tilt&gt; &lt;heading&gt;-90.00&lt;/heading&gt; &lt;/Camera&gt; &lt;Style id="default"&gt; &lt;styleUrl&gt;#WideLine&lt;/styleUrl&gt; &lt;/Style&gt; &lt;Model id="model_7"&gt; &lt;altitudeMode&gt;relativeToGround&lt;/altitudeMode&gt; &lt;Location&gt; &lt;longitude&gt;-104.9000&lt;/longitude&gt; &lt;latitude&gt; 39.7000&lt;/latitude&gt; &lt;altitude&gt;1000&lt;/altitude&gt; &lt;/Location&gt; &lt;Orientation&gt; &lt;heading&gt;0&lt;/heading&gt; &lt;tilt&gt;0&lt;/tilt&gt; &lt;roll&gt;0&lt;/roll&gt; &lt;/Orientation&gt; &lt;Scale&gt; &lt;x&gt;1&lt;/x&gt; &lt;y&gt;1&lt;/y&gt; &lt;z&gt;1&lt;/z&gt; &lt;/Scale&gt; &lt;Link&gt; &lt;href&gt;Lines-blue.dae&lt;/href&gt; &lt;/Link&gt; &lt;/Model&gt; &lt;TimeSpan&gt; &lt;begin&gt;2021-04-09T00:00:00Z&lt;/begin&gt; &lt;end&gt;2021-04-11T00:00:00Z&lt;/end&gt; &lt;/TimeSpan&gt; &lt;/Placemark&gt; </code></pre> <p>These lines in 3D space are supposed to trace the contours of 3D isosurfaces that I have already created with COLLADA and displayed with Google Earth. But the lines won鈥檛 show up unless they are thicker or wider. I could create lines in pure KML (no .dae) but I don鈥檛 think they will lay down on my isosurfaces accurately enough.</p> <p>Thank you for any assistance you can provide.</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_2' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://community.khronos.org/u/drews'><span itemprop='name'>drews</span></a> </span> <link itemprop="image" href="https://community.khronos.org/uploads/default/original/2X/7/7ffcca0dd4b4825bfe8a18ec359d0347b04844b4.jpeg"> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2022-11-23T15:42:13Z' class='post-time'> November 23, 2022, 3:42pm </time> <meta itemprop='dateModified' content='2022-11-23T15:42:13Z'> <span itemprop='position'>2</span> </span> </div> <div class='post' itemprop='text'> <p>Here is a screen shot to clarify. The thin blue lines run from roughly Glendale to Buckley AFB and then on to Rocky Mountain Arsenal.<br> <div class="lightbox-wrapper"><a class="lightbox" href="https://community.khronos.org/uploads/default/original/2X/7/7ffcca0dd4b4825bfe8a18ec359d0347b04844b4.jpeg" data-download-href="https://community.khronos.org/uploads/default/7ffcca0dd4b4825bfe8a18ec359d0347b04844b4" title="BlueLinesInSpace-20221123"><img src="https://community.khronos.org/uploads/default/optimized/2X/7/7ffcca0dd4b4825bfe8a18ec359d0347b04844b4_2_690x470.jpeg" alt="BlueLinesInSpace-20221123" data-base62-sha1="igeeI3yh39sswesOTAAItGM6L8U" width="690" height="470" srcset="https://community.khronos.org/uploads/default/optimized/2X/7/7ffcca0dd4b4825bfe8a18ec359d0347b04844b4_2_690x470.jpeg, https://community.khronos.org/uploads/default/optimized/2X/7/7ffcca0dd4b4825bfe8a18ec359d0347b04844b4_2_1035x705.jpeg 1.5x, https://community.khronos.org/uploads/default/optimized/2X/7/7ffcca0dd4b4825bfe8a18ec359d0347b04844b4_2_1380x940.jpeg 2x" data-small-upload="https://community.khronos.org/uploads/default/optimized/2X/7/7ffcca0dd4b4825bfe8a18ec359d0347b04844b4_2_10x10.png"><div class="meta"> <svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">BlueLinesInSpace-20221123</span><span class="informations">1431脳975 284 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg> </div></a></div></p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_3' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://community.khronos.org/u/carsten_neumann'><span itemprop='name'>carsten_neumann</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2022-11-24T16:33:09Z' class='post-time'> November 24, 2022, 4:33pm </time> <meta itemprop='dateModified' content='2022-11-24T16:33:09Z'> <span itemprop='position'>3</span> </span> </div> <div class='post' itemprop='text'> <p>Hmm, I don鈥檛 know a lot about COLLADA and Google Earth (GE), but it looks like you are using a GE specific extension for the line width - assuming that is the way to do that it feels like a bug in the GE renderer. Line width is often specified in pixels, have you tried some values in the 1-10 range?<br> Also, KML has support for <a href="https://developers.google.com/kml/documentation/kmlreference#linestyle" rel="noopener nofollow ugc">line width</a> (no idea if it works though <img src="https://community.khronos.org/images/emoji/twitter/wink.png?v=12" title=":wink:" class="emoji" alt=":wink:" loading="lazy" width="20" height="20"> ) - can you use that instead of COLLADA?</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_4' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://community.khronos.org/u/drews'><span itemprop='name'>drews</span></a> </span> <link itemprop="image" href="https://community.khronos.org/uploads/default/original/2X/8/8cd1d66f5ef08394f43548406b61f11025bf9b7d.jpeg"> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2022-12-05T21:46:58Z' class='post-time'> December 5, 2022, 9:46pm </time> <meta itemprop='dateModified' content='2022-12-05T21:46:58Z'> <span itemprop='position'>4</span> </span> </div> <div class='post' itemprop='text'> <p>Here is a simple example containing a 3-segment LineString in KML instead of COLLADA. Google Earth supports line width 4 pixels, and these lines show up nicely.</p> <p>My concern about accuracy with COLLADA isosurfaces in the original post remains. Also note that the real application will have tens of thousands of LineStrings, so KML performance may be in issue.</p> <pre><code class="lang-auto">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom"&gt; &lt;Document&gt; &lt;name&gt;Multi-segment line.kml&lt;/name&gt; &lt;Style id="outline123"&gt; &lt;LineStyle&gt; &lt;color&gt;ffffff00&lt;/color&gt; &lt;width&gt;4&lt;/width&gt; &lt;/LineStyle&gt; &lt;/Style&gt; &lt;Placemark id="Outline12345"&gt; &lt;name&gt;Multi-segment line&lt;/name&gt; &lt;gx:TimeSpan&gt; &lt;begin&gt;2021-04-09&lt;/begin&gt; &lt;end&gt;2021-04-10T01:00:00Z&lt;/end&gt; &lt;/gx:TimeSpan&gt; &lt;styleUrl&gt;#outline123&lt;/styleUrl&gt; &lt;LineString id="line67890"&gt; &lt;altitudeMode&gt;absolute&lt;/altitudeMode&gt; &lt;coordinates&gt; -105.6426,39.5876,4313 -105.616,40.2529,4338 -105.1692,40.1016,1555 -105.6426,39.5876,4313 &lt;/coordinates&gt; &lt;/LineString&gt; &lt;/Placemark&gt; &lt;/Document&gt; &lt;/kml&gt; </code></pre> <p><div class="lightbox-wrapper"><a class="lightbox" href="https://community.khronos.org/uploads/default/original/2X/8/8cd1d66f5ef08394f43548406b61f11025bf9b7d.jpeg" data-download-href="https://community.khronos.org/uploads/default/8cd1d66f5ef08394f43548406b61f11025bf9b7d" title="LineString-KML-4pxWidth"><img src="https://community.khronos.org/uploads/default/optimized/2X/8/8cd1d66f5ef08394f43548406b61f11025bf9b7d_2_690x470.jpeg" alt="LineString-KML-4pxWidth" data-base62-sha1="k5Kq62z0ZAgcLvZUy6MSs4iLY9T" width="690" height="470" srcset="https://community.khronos.org/uploads/default/optimized/2X/8/8cd1d66f5ef08394f43548406b61f11025bf9b7d_2_690x470.jpeg, https://community.khronos.org/uploads/default/optimized/2X/8/8cd1d66f5ef08394f43548406b61f11025bf9b7d_2_1035x705.jpeg 1.5x, https://community.khronos.org/uploads/default/optimized/2X/8/8cd1d66f5ef08394f43548406b61f11025bf9b7d_2_1380x940.jpeg 2x" data-small-upload="https://community.khronos.org/uploads/default/optimized/2X/8/8cd1d66f5ef08394f43548406b61f11025bf9b7d_2_10x10.png"><div class="meta"> <svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">LineString-KML-4pxWidth</span><span class="informations">1431脳975 190 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg> </div></a></div></p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_5' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://community.khronos.org/u/drews'><span itemprop='name'>drews</span></a> </span> <link itemprop="image" href="https://community.khronos.org/uploads/default/original/2X/6/6021a3f1fa48c04e8fc62c507acfe9e5bb5d8c53.jpeg"> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2022-12-13T21:38:59Z' class='post-time'> December 13, 2022, 9:38pm </time> <meta itemprop='dateModified' content='2022-12-13T21:46:02Z'> <span itemprop='position'>5</span> </span> </div> <div class='post' itemprop='text'> <p>Here is the KML experiment showing a pyrocumulus plume of smoke from the Williams Flats Fire in August 2019. The green (and nested yellow) isosurfaces are created with COLLADA 3D models and rendered in Google Earth. The gridded cage (wireframe) around the isosurfaces is built in KML with LineStrings of width=1 pixel. The purpose of the white grid lines is to bring out the 3D contours better.</p> <p>The grid cage does not line up accurately with the edges of the COLLADA triangles; see upper left, below the image title. It is the same Cartesian-to-polar-coordinates conversion, but there is some difference in accuracy between COLLADA and whatever calculation Google Earth carries out in the viewer. This inaccuracy is why I would prefer to express both the isosurfaces and the grid lines in COLLADA.</p> <p>The line width=1 pixel in KML looks satisfactory for visibility. I will try creating the grid cage in COLLADA and see if the paired 3D elements line up better.</p> <p>The KML file size increases from 600 Kb to 20 Mb. It takes about 16 seconds to load the KML file, but the performance is satisfactory after that (zooming, panning).</p> <p>It would be nice to know where the line_string parameter belongs in COLLADA and how to use it properly. I want to avoid requiring my users to squint at their screens.<br> <div class="lightbox-wrapper"><a class="lightbox" href="https://community.khronos.org/uploads/default/original/2X/6/6021a3f1fa48c04e8fc62c507acfe9e5bb5d8c53.jpeg" data-download-href="https://community.khronos.org/uploads/default/6021a3f1fa48c04e8fc62c507acfe9e5bb5d8c53" title="WilliamsFlatsFire-PyrocumulusClouds-August9-2019"><img src="https://community.khronos.org/uploads/default/optimized/2X/6/6021a3f1fa48c04e8fc62c507acfe9e5bb5d8c53_2_690x473.jpeg" alt="WilliamsFlatsFire-PyrocumulusClouds-August9-2019" data-base62-sha1="dIpUvsQmtHPc1zs3mYEw7siqBhh" width="690" height="473" srcset="https://community.khronos.org/uploads/default/optimized/2X/6/6021a3f1fa48c04e8fc62c507acfe9e5bb5d8c53_2_690x473.jpeg, https://community.khronos.org/uploads/default/optimized/2X/6/6021a3f1fa48c04e8fc62c507acfe9e5bb5d8c53_2_1035x709.jpeg 1.5x, https://community.khronos.org/uploads/default/optimized/2X/6/6021a3f1fa48c04e8fc62c507acfe9e5bb5d8c53_2_1380x946.jpeg 2x" data-small-upload="https://community.khronos.org/uploads/default/optimized/2X/6/6021a3f1fa48c04e8fc62c507acfe9e5bb5d8c53_2_10x10.png"><div class="meta"> <svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">WilliamsFlatsFire-PyrocumulusClouds-August9-2019</span><span class="informations">1571脳1079 284 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg> </div></a></div></p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> <div class='crawler-linkback-list' itemscope itemtype='http://schema.org/ItemList'> <div itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'> <a itemprop='url' href="https://community.khronos.org/t/how-to-draw-edges-on-top-of-triangles/109256/8">How to draw edges on top of triangles</a> <meta itemprop='position' content='2'> </div> </div> </div> <div id='post_6' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://community.khronos.org/u/drews'><span itemprop='name'>drews</span></a> </span> <link itemprop="image" href="https://community.khronos.org/uploads/default/original/2X/e/e5023ae553d98182649a49009aee50660a571958.jpeg"> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2022-12-21T18:42:47Z' class='post-time'> December 21, 2022, 6:42pm </time> <meta itemprop='dateModified' content='2022-12-21T18:42:47Z'> <span itemprop='position'>6</span> </span> </div> <div class='post' itemprop='text'> <p>Here is the wireframe as expressed in a COLLADA .DAE file. As anticipated, the triangle-based isosurfaces do indeed line up better with the white grid lines of the wireframe. Compare the upper and left edges of the pyrocumulus plume to see the improvement.</p> <p>I will stick with the COLLADA implementation. Just in case anyone asks me to make the wireframe a little thicker, please let me know here how to increase the line_width from the default 1.0 pixels.<br> <div class="lightbox-wrapper"><a class="lightbox" href="https://community.khronos.org/uploads/default/original/2X/e/e5023ae553d98182649a49009aee50660a571958.jpeg" data-download-href="https://community.khronos.org/uploads/default/e5023ae553d98182649a49009aee50660a571958" title="WilliamsFlatsFire-PyrocumulusClouds-August9-2019-DAE"><img src="https://community.khronos.org/uploads/default/optimized/2X/e/e5023ae553d98182649a49009aee50660a571958_2_690x473.jpeg" alt="WilliamsFlatsFire-PyrocumulusClouds-August9-2019-DAE" data-base62-sha1="wFU7lY1bSV2FQm2ALjDdem4x3II" width="690" height="473" srcset="https://community.khronos.org/uploads/default/optimized/2X/e/e5023ae553d98182649a49009aee50660a571958_2_690x473.jpeg, https://community.khronos.org/uploads/default/optimized/2X/e/e5023ae553d98182649a49009aee50660a571958_2_1035x709.jpeg 1.5x, https://community.khronos.org/uploads/default/optimized/2X/e/e5023ae553d98182649a49009aee50660a571958_2_1380x946.jpeg 2x" data-small-upload="https://community.khronos.org/uploads/default/optimized/2X/e/e5023ae553d98182649a49009aee50660a571958_2_10x10.png"><div class="meta"> <svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">WilliamsFlatsFire-PyrocumulusClouds-August9-2019-DAE</span><span class="informations">1571脳1079 257 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg> </div></a></div></p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_7' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://community.khronos.org/u/drews'><span itemprop='name'>drews</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2023-01-09T19:00:06Z' class='post-time'> January 9, 2023, 7:00pm </time> <meta itemprop='dateModified' content='2023-01-09T19:00:06Z'> <span itemprop='position'>7</span> </span> </div> <div class='post' itemprop='text'> <p>I have placed the Python solution into a public GitHub repository:<br> <a href="https://github.com/NCAR/Marching-Cubes" class="onebox" target="_blank" rel="noopener nofollow ugc">https://github.com/NCAR/Marching-Cubes</a></p> <p>This implementation of Marching Cubes is described by a peer-reviewed paper included in the <em>Proceedings of the Improving Scientific Software conference</em> held at NCAR in Boulder, Colorado during April 4-8, 2022. Title: <strong>Marching Cubes Without Lookup Cases: Crawl the Edge Crossings Instead</strong>. Marching Cubes (Drews 2022) begins on page 19.</p> <p>Citation: Hu, W., Vanderwende, B., Mickelson, S., &amp; Nusbaumer, J. (Eds.). (2022). Proceedings of the 2022 Improving Scientific Software Conference (No. NCAR/TN-574+PROC). doi:10.5065/98kd-b491</p> <p>Published Version: <a href="http://dx.doi.org/10.5065/98kd-b491" rel="noopener nofollow ugc">http://dx.doi.org/10.5065/98kd-b491</a></p> <p>Link at NCAR OpenSky: <a href="https://opensky.ucar.edu/islandora/object/technotes%3A598" rel="noopener nofollow ugc">https://opensky.ucar.edu/islandora/object/technotes%3A598</a></p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> </div> </div> <footer class="container wrap"> <nav class='crawler-nav'> <ul> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/' itemprop="url">Home </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/categories' itemprop="url">Categories </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/guidelines' itemprop="url">Guidelines </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/tos' itemprop="url">Terms of Service </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='https://www.khronos.org/legal/privacy' itemprop="url">Privacy Policy </a> </span> </li> </ul> </nav> <p class='powered-by-link'>Powered by <a href="https://www.discourse.org">Discourse</a>, best viewed with JavaScript enabled</p> </footer> <div class="buorg"><div>Unfortunately, <a href="https://www.discourse.org/faq/#browser">your browser is unsupported</a>. Please <a href="https://browsehappy.com">switch to a supported browser</a> to view rich content, log in and reply.</div></div> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10