<?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: Why is the UV obtained through ACAPI_ModelAccess_GetTextureCoord API different from ArchiCAD? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Why-is-the-UV-obtained-through-ACAPI-ModelAccess-GetTextureCoord/m-p/667250#M10472</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/160656"&gt;@sxs&lt;/a&gt;&amp;nbsp;wrote:&lt;/BLOCKQUOTE&gt;&lt;LI-CODE lang="cpp"&gt;if (err == NoError)
						uv.push_back({ resultUV.u / xSize, resultUV.v / ySize });&lt;/LI-CODE&gt;&lt;HR /&gt;&lt;P&gt;&lt;SPAN class=""&gt;It can work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/160656"&gt;@sxs&lt;/a&gt;&amp;nbsp;wrote:&lt;P&gt;It seems that the following actions need to be taken.But the xSize/ySize I get&amp;nbsp;can not produce the correct effect.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class=""&gt;The&lt;/SPAN&gt; &lt;SPAN class=""&gt;reason&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class=""&gt;is&lt;/SPAN&gt; &lt;SPAN class=""&gt;that&lt;/SPAN&gt; &lt;SPAN class=""&gt;the&lt;/SPAN&gt; &lt;SPAN class=""&gt;texture&lt;/SPAN&gt; &lt;SPAN class=""&gt;is&lt;/SPAN&gt; &lt;SPAN class=""&gt;missing.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jun 2025 08:08:57 GMT</pubDate>
    <dc:creator>sxs</dc:creator>
    <dc:date>2025-06-25T08:08:57Z</dc:date>
    <item>
      <title>Why is the UV obtained through ACAPI_ModelAccess_GetTextureCoord API different from ArchiCAD?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Why-is-the-UV-obtained-through-ACAPI-ModelAccess-GetTextureCoord/m-p/665543#M10452</link>
      <description>&lt;P&gt;Hi,everyone:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;In ArchiCad:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sxs_0-1749782033610.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/87874i242BFD20FAFD44DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sxs_0-1749782033610.png" alt="sxs_0-1749782033610.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In my Render System：&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sxs_1-1749782075088.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/87875i4E4F736A823C9C2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sxs_1-1749782075088.png" alt="sxs_1-1749782075088.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is obvious that the size of the texture is inconsistent（Ignore color）.&lt;/P&gt;&lt;P&gt;I'm pretty sure the exported texture file is fine, so I think it's a UV issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;					//texture
					API_TexCoordPars	pars = { 0 };
					pars.elemIdx = elemIdx;
					pars.bodyIdx = bodyIdx;
					pars.pgonIndex = j;
					//
					pars.surfacePoint.x = backCo.x;
					pars.surfacePoint.y = backCo.y;
					pars.surfacePoint.z = backCo.z;
					err = ACAPI_ModelAccess_GetTextureCoord(&amp;amp;pars, &amp;amp;resultUV);
					if (err == NoError)
						uv.push_back({ resultUV.u, resultUV.v });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 03:08:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Why-is-the-UV-obtained-through-ACAPI-ModelAccess-GetTextureCoord/m-p/665543#M10452</guid>
      <dc:creator>sxs</dc:creator>
      <dc:date>2025-06-13T03:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the UV obtained through ACAPI_ModelAccess_GetTextureCoord API different from ArchiCAD?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Why-is-the-UV-obtained-through-ACAPI-ModelAccess-GetTextureCoord/m-p/665770#M10456</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sxs_0-1750057506369.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/87970iE74F53AC94AF2DAF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sxs_0-1750057506369.png" alt="sxs_0-1750057506369.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;if (err == NoError)
						uv.push_back({ resultUV.u / xSize, resultUV.v / ySize });&lt;/LI-CODE&gt;&lt;P&gt;It seems that the following actions need to be taken.But the xSize/ySize I get&amp;nbsp;can not produce the correct effect.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 07:07:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Why-is-the-UV-obtained-through-ACAPI-ModelAccess-GetTextureCoord/m-p/665770#M10456</guid>
      <dc:creator>sxs</dc:creator>
      <dc:date>2025-06-16T07:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the UV obtained through ACAPI_ModelAccess_GetTextureCoord API different from ArchiCAD?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Why-is-the-UV-obtained-through-ACAPI-ModelAccess-GetTextureCoord/m-p/667250#M10472</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/160656"&gt;@sxs&lt;/a&gt;&amp;nbsp;wrote:&lt;/BLOCKQUOTE&gt;&lt;LI-CODE lang="cpp"&gt;if (err == NoError)
						uv.push_back({ resultUV.u / xSize, resultUV.v / ySize });&lt;/LI-CODE&gt;&lt;HR /&gt;&lt;P&gt;&lt;SPAN class=""&gt;It can work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/160656"&gt;@sxs&lt;/a&gt;&amp;nbsp;wrote:&lt;P&gt;It seems that the following actions need to be taken.But the xSize/ySize I get&amp;nbsp;can not produce the correct effect.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class=""&gt;The&lt;/SPAN&gt; &lt;SPAN class=""&gt;reason&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class=""&gt;is&lt;/SPAN&gt; &lt;SPAN class=""&gt;that&lt;/SPAN&gt; &lt;SPAN class=""&gt;the&lt;/SPAN&gt; &lt;SPAN class=""&gt;texture&lt;/SPAN&gt; &lt;SPAN class=""&gt;is&lt;/SPAN&gt; &lt;SPAN class=""&gt;missing.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 08:08:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Why-is-the-UV-obtained-through-ACAPI-ModelAccess-GetTextureCoord/m-p/667250#M10472</guid>
      <dc:creator>sxs</dc:creator>
      <dc:date>2025-06-25T08:08:57Z</dc:date>
    </item>
  </channel>
</rss>

