<?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 ArcGlobe Draw Rectangle OpenGL in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcglobe-draw-rectangle-opengl/m-p/129979#M3414</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've only successfully drawn a rectangle by having a custom globe layer rasterized, therefore using the 2D display basically to draw using the 2D symbols.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Inside of my DrawImmediate function, I have been able to draw a rectangle with GeographicToGeocentric to convert Lat/Lon coordinates to Geocentric but the Quad draws through the globe and is not 'draped' on it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I figured I could do in my DrawImmediate call:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;myGlobeDisplay.DirectOpenGLDraw = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;myGlobeDisplay.SetSymbol(new TextureFillSymbolClass() { Color = YELLOW_COLOR });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;myGlobeDisplay.DrawRectangle(new EnvelopeClass() { XMin = 0, XMax = 40, YMin = 0, YMax = 40 });&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;myGlobeDisplay.DirectOpenGLDraw = false;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But this seems to have no effect. I see plenty of examples for markers but not for rectangles, polygons, etc.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jul 2013 16:51:48 GMT</pubDate>
    <dc:creator>RyanKuhn</dc:creator>
    <dc:date>2013-07-19T16:51:48Z</dc:date>
    <item>
      <title>ArcGlobe Draw Rectangle OpenGL</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcglobe-draw-rectangle-opengl/m-p/129979#M3414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've only successfully drawn a rectangle by having a custom globe layer rasterized, therefore using the 2D display basically to draw using the 2D symbols.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Inside of my DrawImmediate function, I have been able to draw a rectangle with GeographicToGeocentric to convert Lat/Lon coordinates to Geocentric but the Quad draws through the globe and is not 'draped' on it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I figured I could do in my DrawImmediate call:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;myGlobeDisplay.DirectOpenGLDraw = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;myGlobeDisplay.SetSymbol(new TextureFillSymbolClass() { Color = YELLOW_COLOR });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;myGlobeDisplay.DrawRectangle(new EnvelopeClass() { XMin = 0, XMax = 40, YMin = 0, YMax = 40 });&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;myGlobeDisplay.DirectOpenGLDraw = false;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But this seems to have no effect. I see plenty of examples for markers but not for rectangles, polygons, etc.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 16:51:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcglobe-draw-rectangle-opengl/m-p/129979#M3414</guid>
      <dc:creator>RyanKuhn</dc:creator>
      <dc:date>2013-07-19T16:51:48Z</dc:date>
    </item>
  </channel>
</rss>

