<?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 Re: ArcGlobe and OpenGL: Offset when drawing in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcglobe-and-opengl-offset-when-drawing/m-p/661829#M17745</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steffen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that I am facing the same problem with features in GlobeGraphicsLayer.&lt;/P&gt;&lt;P&gt;Did you solve your problem??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jul 2014 10:50:07 GMT</pubDate>
    <dc:creator>ClausHüttermann</dc:creator>
    <dc:date>2014-07-09T10:50:07Z</dc:date>
    <item>
      <title>ArcGlobe and OpenGL: Offset when drawing</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcglobe-and-opengl-offset-when-drawing/m-p/661828#M17744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in ArcGlobe, I???m drawing geometry positioned at point features. This is done through OpenGL and works quite well except that the geometry is not drawn exactly at the point feature symbol but a meter or so aside. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically I compute the geocentric position of a feature point like that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;m_globeViewUtil.GeographicToGeocentric(
&amp;nbsp;&amp;nbsp;&amp;nbsp; point.X, point.Y, elevationMeters,
&amp;nbsp;&amp;nbsp;&amp;nbsp; out glX, out glY, out glZ);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The rendering is done in OnAfterDraw:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;GL.glPointSize(15.0f);
GL.glColor3ub(255, 0, 0);
GL.glBegin(GL.GL_POINTS);
&amp;nbsp;&amp;nbsp;&amp;nbsp; GL.glVertex3f((float)glX, (float)glY, (float)glZ);
GL.glEnd();&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With this sample code, the red point drawn by OpenGL is a few meters away from the feature points symbol. Depending on the location on earth, the distance varies. The real render code uses the geocentric position as origin for 3d models.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]18240[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This happens in ArcGlobe 10.0 and 10.1. C# is used as development language. Does somebody know how to make the symbol and the drawn geometry coincide?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 12:34:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcglobe-and-opengl-offset-when-drawing/m-p/661828#M17744</guid>
      <dc:creator>SteffenErnst</dc:creator>
      <dc:date>2012-10-06T12:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGlobe and OpenGL: Offset when drawing</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcglobe-and-opengl-offset-when-drawing/m-p/661829#M17745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steffen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that I am facing the same problem with features in GlobeGraphicsLayer.&lt;/P&gt;&lt;P&gt;Did you solve your problem??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 10:50:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcglobe-and-opengl-offset-when-drawing/m-p/661829#M17745</guid>
      <dc:creator>ClausHüttermann</dc:creator>
      <dc:date>2014-07-09T10:50:07Z</dc:date>
    </item>
  </channel>
</rss>

