<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Point visibility through semi-transparent polygons and meshes in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/point-visibility-through-semi-transparent-polygons/m-p/1550888#M85932</link>
    <description>&lt;P&gt;I have a 3D scene view with point and polygon geometries. The polygon symbols are semi-transparent backgrounds, and I want to be able to see the points on the other side of the polygon. Any ideas on how I can make this happen?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here is a simple &lt;A href="https://stackblitz.com/edit/arcgis-points-polygons-ry6syl?file=index.html" target="_self"&gt;stackblitz demo&lt;/A&gt; with different graphics. From the starting camera position, you can see a point under the square polygon. As you tilt the camera angle down, the polygon covers the point. Since the polygon is semi-transparent I would like to see the point through the polygon. However, it is completely hidden.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="point visible" style="width: 145px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/117767iBE89F498DEABB89B/image-size/small?v=v2&amp;amp;px=200" role="button" title="point_visible.PNG" alt="point visible" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;point visible&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="point hidden by transparent polygon" style="width: 167px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/117768iB0718A59E7C52731/image-size/small?v=v2&amp;amp;px=200" role="button" title="point_hidden.PNG" alt="point hidden by transparent polygon" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;point hidden by transparent polygon&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;html lang="en"&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;meta charset="utf-8" /&amp;gt;
    &amp;lt;meta
      name="viewport"
      content="initial-scale=1,maximum-scale=1,user-scalable=no"
    /&amp;gt;
    &amp;lt;title&amp;gt;
      Add Graphics to a SceneView | Sample | ArcGIS Maps SDK for JavaScript 4.30
    &amp;lt;/title&amp;gt;

    &amp;lt;link
      rel="stylesheet"
      href="https://js.arcgis.com/4.30/esri/themes/light/main.css"
    /&amp;gt;
    &amp;lt;script src="https://js.arcgis.com/4.30/"&amp;gt;&amp;lt;/script&amp;gt;

    &amp;lt;style&amp;gt;
      html,
      body,
      #viewDiv {
        padding: 0;
        margin: 0;
        height: 100%;
        width: 100%;
      }
    &amp;lt;/style&amp;gt;

    &amp;lt;script&amp;gt;
      require([
        "esri/Map",
        "esri/views/SceneView",
        "esri/layers/GraphicsLayer",
        "esri/Graphic",
        "esri/geometry/Mesh",
        "esri/geometry/Point",
      ], (Map, SceneView, GraphicsLayer, Graphic, Mesh, Point) =&amp;gt; {
        const map = new Map({
          basemap: "hybrid",
        });

        const view = new SceneView({
          container: "viewDiv",
          map: map,

          camera: {
            // autocasts as new Camera()
            position: {
              // autocasts as new Point()
              x: -0.17746710975334712,
              y: 51.44543992422466,
              z: 1266.7049653716385,
            },
            heading: 0.34445102566290225,
            tilt: 82.95536300536367,
          },
        });

        /*********************
         * Add graphics layer
         *********************/

        const graphicsLayer = new GraphicsLayer();
        map.add(graphicsLayer);

        /*************************
         * Add a 3D point graphic
         *************************/

        // London
        const point = new Point({
          // type: "point", // autocasts as new Point()
          x: -0.178,
          y: 51.48791,
          z: 1010,
        });

        const markerSymbol = {
          type: "simple-marker", // autocasts as new SimpleMarkerSymbol()
          color: [226, 119, 40],
          outline: {
            // autocasts as new SimpleLineSymbol()
            color: [255, 255, 255],
            width: 2,
          },
        };

        const pointGraphic = new Graphic({
          geometry: point,
          symbol: markerSymbol,
        });

        /****************************
         * Add a 3D polyline graphic
         ****************************/

        const polyline = {
          type: "polyline", // autocasts as new Polyline()
          paths: [
            [-0.178, 51.48791, 0],
            [-0.178, 51.48791, 1000],
          ],
        };

        const lineSymbol = {
          type: "simple-line", // autocasts as SimpleLineSymbol()
          color: [226, 119, 40],
          width: 4,
        };

        const polylineGraphic = new Graphic({
          geometry: polyline,
          symbol: lineSymbol,
        });

        graphicsLayer.add(polylineGraphic);

        /***************************
         * Add a 3D polygon graphic
         ***************************/

        const polygon = {
          type: "polygon", // autocasts as new Polygon()
          rings: [
            [-0.184, 51.48391, 400],
            [-0.184, 51.49091, 500],
            [-0.172, 51.49091, 500],
            [-0.172, 51.48391, 400],
            [-0.184, 51.48391, 400],
          ],
        };

        const fillSymbol = {
          type: "simple-fill", // autocasts as new SimpleFillSymbol()
          color: [227, 139, 79, 0.8],
          outline: {
            // autocasts as new SimpleLineSymbol()
            color: [255, 255, 255],
            width: 2,
          },
        };

        const polygonGraphic = new Graphic({
          geometry: polygon,
          symbol: fillSymbol,
        });

        graphicsLayer.add(polygonGraphic);

        // add mesh

        const mesh = Mesh.createSphere(point, { size: 1500, unit: "meters" });

        const meshSymbol = {
          type: "mesh-3d", // autocasts as new MeshSymbol3D()
          symbolLayers: [
            {
              type: "fill",
              material: { color: [237, 118, 0, 0.2] },
              outline: {
                color: [237, 118, 0, 0.35],
                size: 2,
              },
            },
          ],
        };

        const meshGraphic = new Graphic({ geometry: mesh, symbol: meshSymbol });

        graphicsLayer.add(meshGraphic);

        graphicsLayer.add(pointGraphic);

        const point2Graphic = new Graphic({
          geometry: {
            type: "point", // autocasts as new Point()
            x: -0.178,
            y: 51.48791,
            z: 250,
          },
          symbol: markerSymbol,
        });

        graphicsLayer.add(point2Graphic);
      });
    &amp;lt;/script&amp;gt;
  &amp;lt;/head&amp;gt;

  &amp;lt;body&amp;gt;
    &amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Oct 2024 15:11:51 GMT</pubDate>
    <dc:creator>TonySchwebach</dc:creator>
    <dc:date>2024-10-22T15:11:51Z</dc:date>
    <item>
      <title>Point visibility through semi-transparent polygons and meshes</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/point-visibility-through-semi-transparent-polygons/m-p/1550888#M85932</link>
      <description>&lt;P&gt;I have a 3D scene view with point and polygon geometries. The polygon symbols are semi-transparent backgrounds, and I want to be able to see the points on the other side of the polygon. Any ideas on how I can make this happen?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here is a simple &lt;A href="https://stackblitz.com/edit/arcgis-points-polygons-ry6syl?file=index.html" target="_self"&gt;stackblitz demo&lt;/A&gt; with different graphics. From the starting camera position, you can see a point under the square polygon. As you tilt the camera angle down, the polygon covers the point. Since the polygon is semi-transparent I would like to see the point through the polygon. However, it is completely hidden.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="point visible" style="width: 145px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/117767iBE89F498DEABB89B/image-size/small?v=v2&amp;amp;px=200" role="button" title="point_visible.PNG" alt="point visible" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;point visible&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="point hidden by transparent polygon" style="width: 167px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/117768iB0718A59E7C52731/image-size/small?v=v2&amp;amp;px=200" role="button" title="point_hidden.PNG" alt="point hidden by transparent polygon" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;point hidden by transparent polygon&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;html lang="en"&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;meta charset="utf-8" /&amp;gt;
    &amp;lt;meta
      name="viewport"
      content="initial-scale=1,maximum-scale=1,user-scalable=no"
    /&amp;gt;
    &amp;lt;title&amp;gt;
      Add Graphics to a SceneView | Sample | ArcGIS Maps SDK for JavaScript 4.30
    &amp;lt;/title&amp;gt;

    &amp;lt;link
      rel="stylesheet"
      href="https://js.arcgis.com/4.30/esri/themes/light/main.css"
    /&amp;gt;
    &amp;lt;script src="https://js.arcgis.com/4.30/"&amp;gt;&amp;lt;/script&amp;gt;

    &amp;lt;style&amp;gt;
      html,
      body,
      #viewDiv {
        padding: 0;
        margin: 0;
        height: 100%;
        width: 100%;
      }
    &amp;lt;/style&amp;gt;

    &amp;lt;script&amp;gt;
      require([
        "esri/Map",
        "esri/views/SceneView",
        "esri/layers/GraphicsLayer",
        "esri/Graphic",
        "esri/geometry/Mesh",
        "esri/geometry/Point",
      ], (Map, SceneView, GraphicsLayer, Graphic, Mesh, Point) =&amp;gt; {
        const map = new Map({
          basemap: "hybrid",
        });

        const view = new SceneView({
          container: "viewDiv",
          map: map,

          camera: {
            // autocasts as new Camera()
            position: {
              // autocasts as new Point()
              x: -0.17746710975334712,
              y: 51.44543992422466,
              z: 1266.7049653716385,
            },
            heading: 0.34445102566290225,
            tilt: 82.95536300536367,
          },
        });

        /*********************
         * Add graphics layer
         *********************/

        const graphicsLayer = new GraphicsLayer();
        map.add(graphicsLayer);

        /*************************
         * Add a 3D point graphic
         *************************/

        // London
        const point = new Point({
          // type: "point", // autocasts as new Point()
          x: -0.178,
          y: 51.48791,
          z: 1010,
        });

        const markerSymbol = {
          type: "simple-marker", // autocasts as new SimpleMarkerSymbol()
          color: [226, 119, 40],
          outline: {
            // autocasts as new SimpleLineSymbol()
            color: [255, 255, 255],
            width: 2,
          },
        };

        const pointGraphic = new Graphic({
          geometry: point,
          symbol: markerSymbol,
        });

        /****************************
         * Add a 3D polyline graphic
         ****************************/

        const polyline = {
          type: "polyline", // autocasts as new Polyline()
          paths: [
            [-0.178, 51.48791, 0],
            [-0.178, 51.48791, 1000],
          ],
        };

        const lineSymbol = {
          type: "simple-line", // autocasts as SimpleLineSymbol()
          color: [226, 119, 40],
          width: 4,
        };

        const polylineGraphic = new Graphic({
          geometry: polyline,
          symbol: lineSymbol,
        });

        graphicsLayer.add(polylineGraphic);

        /***************************
         * Add a 3D polygon graphic
         ***************************/

        const polygon = {
          type: "polygon", // autocasts as new Polygon()
          rings: [
            [-0.184, 51.48391, 400],
            [-0.184, 51.49091, 500],
            [-0.172, 51.49091, 500],
            [-0.172, 51.48391, 400],
            [-0.184, 51.48391, 400],
          ],
        };

        const fillSymbol = {
          type: "simple-fill", // autocasts as new SimpleFillSymbol()
          color: [227, 139, 79, 0.8],
          outline: {
            // autocasts as new SimpleLineSymbol()
            color: [255, 255, 255],
            width: 2,
          },
        };

        const polygonGraphic = new Graphic({
          geometry: polygon,
          symbol: fillSymbol,
        });

        graphicsLayer.add(polygonGraphic);

        // add mesh

        const mesh = Mesh.createSphere(point, { size: 1500, unit: "meters" });

        const meshSymbol = {
          type: "mesh-3d", // autocasts as new MeshSymbol3D()
          symbolLayers: [
            {
              type: "fill",
              material: { color: [237, 118, 0, 0.2] },
              outline: {
                color: [237, 118, 0, 0.35],
                size: 2,
              },
            },
          ],
        };

        const meshGraphic = new Graphic({ geometry: mesh, symbol: meshSymbol });

        graphicsLayer.add(meshGraphic);

        graphicsLayer.add(pointGraphic);

        const point2Graphic = new Graphic({
          geometry: {
            type: "point", // autocasts as new Point()
            x: -0.178,
            y: 51.48791,
            z: 250,
          },
          symbol: markerSymbol,
        });

        graphicsLayer.add(point2Graphic);
      });
    &amp;lt;/script&amp;gt;
  &amp;lt;/head&amp;gt;

  &amp;lt;body&amp;gt;
    &amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 15:11:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/point-visibility-through-semi-transparent-polygons/m-p/1550888#M85932</guid>
      <dc:creator>TonySchwebach</dc:creator>
      <dc:date>2024-10-22T15:11:51Z</dc:date>
    </item>
  </channel>
</rss>

