<?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 Scale or Stretch Texture on the Surface in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/Scale-or-Stretch-Texture-on-the-Surface/m-p/372902#M888</link>
    <description>&lt;P&gt;Hi, guys. Could you please help me achieve the same scale effect as in SketchUp? The Unproportional Scale is also what I need. Thank you.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-03-12_14h24_13.jpg" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/73417i7D0E4A9E1482DB9A/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-03-12_14h24_13.jpg" alt="2023-03-12_14h24_13.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Oct 2025 21:32:06 GMT</pubDate>
    <dc:creator>galiaf_velikiy</dc:creator>
    <dc:date>2025-10-01T21:32:06Z</dc:date>
    <item>
      <title>Scale or Stretch Texture on the Surface</title>
      <link>https://community.graphisoft.com/t5/GDL/Scale-or-Stretch-Texture-on-the-Surface/m-p/372902#M888</link>
      <description>&lt;P&gt;Hi, guys. Could you please help me achieve the same scale effect as in SketchUp? The Unproportional Scale is also what I need. Thank you.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-03-12_14h24_13.jpg" style="width: 999px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/73417i7D0E4A9E1482DB9A/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-03-12_14h24_13.jpg" alt="2023-03-12_14h24_13.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 21:32:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Scale-or-Stretch-Texture-on-the-Surface/m-p/372902#M888</guid>
      <dc:creator>galiaf_velikiy</dc:creator>
      <dc:date>2025-10-01T21:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Scale or Stretch Texture on the Surface</title>
      <link>https://community.graphisoft.com/t5/GDL/Scale-or-Stretch-Texture-on-the-Surface/m-p/372935#M889</link>
      <description>&lt;P&gt;I think you can just use the&amp;nbsp;&lt;STRONG&gt;COOR&lt;/STRONG&gt;&amp;nbsp;commands?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 01:20:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Scale-or-Stretch-Texture-on-the-Surface/m-p/372935#M889</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2023-03-13T01:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Scale or Stretch Texture on the Surface</title>
      <link>https://community.graphisoft.com/t5/GDL/Scale-or-Stretch-Texture-on-the-Surface/m-p/372960#M890</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-03-13_11h34_49.jpg" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/35049i567FF9674C182171/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2023-03-13_11h34_49.jpg" alt="2023-03-13_11h34_49.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; I am already using COOR3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;bms_buildingMatAttribute_1 = 0
r = REQUEST{2} ("Building_Material_info", buildingMatAttribute_1, "gs_bmat_surface", bms_buildingMatAttribute_1)

mulx	A/           3
muly	B/           3
mulz	ZZYZX/           1
body    -1
model solid
resol       36


    pen     penAttribute_2
    set building_material buildingMatAttribute_1, DEFAULT, DEFAULT
    sect_attrs{2} penAttribute_3, lineTypeAttribute_1

vert{2}	           0,            0,            0, 1	!	#1   VertId=0
vert{2}	           0,            3,            0, 1	!	#2   VertId=0
vert{2}	           3,            0,            0, 1	!	#3   VertId=0
vert{2}	           3,            3,            0, 1	!	#4   VertId=0

pen penAttribute_2

edge	   1,    3,    1,    0, 262144			!	#1   EdgeId=0
edge	   4,    2,    1,    0, 262144			!	#2   EdgeId=0
edge	   2,    1,    1,    0, 262144			!	#3   EdgeId=0
edge	   3,    4,    1,    0, 262144			!	#4   EdgeId=0
vect	           0,            0,            1	!	#1  

material materialAttribute_1

pgon{3}       4,    1,    2,    6,    0, -3.000758471779, -2.992290207747,            0,            1,            0,            0,            0,            1,            0,            0,            0,            1,	!	#1   PolyId=0
		   1,		   4,		   2,		   3

material bms_buildingMatAttribute_1

coor{3}	   6,    8,
	           0,            0,            0,
	           1,            0,            0,
	           0,            1,            0,
	           0,            0,            1

body	262182

    material 0
    body    -1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Mar 2023 08:37:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Scale-or-Stretch-Texture-on-the-Surface/m-p/372960#M890</guid>
      <dc:creator>galiaf_velikiy</dc:creator>
      <dc:date>2023-03-13T08:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Scale or Stretch Texture on the Surface</title>
      <link>https://community.graphisoft.com/t5/GDL/Scale-or-Stretch-Texture-on-the-Surface/m-p/372963#M891</link>
      <description>&lt;P&gt;COOR{3} can determine the origin of the surface, it direction and the method it is wrapped, but I am not 100% sure if it can stretch the surface.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does it need to be done in GDL or can you just create a duplicate surface and increase the size of the texture?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Barry.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 08:44:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Scale-or-Stretch-Texture-on-the-Surface/m-p/372963#M891</guid>
      <dc:creator>Barry Kelly</dc:creator>
      <dc:date>2023-03-13T08:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Scale or Stretch Texture on the Surface</title>
      <link>https://community.graphisoft.com/t5/GDL/Scale-or-Stretch-Texture-on-the-Surface/m-p/372965#M892</link>
      <description>&lt;P&gt;it should be a GDL, I need it for the multiple-use case.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 08:52:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Scale-or-Stretch-Texture-on-the-Surface/m-p/372965#M892</guid>
      <dc:creator>galiaf_velikiy</dc:creator>
      <dc:date>2023-03-13T08:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Scale or Stretch Texture on the Surface</title>
      <link>https://community.graphisoft.com/t5/GDL/Scale-or-Stretch-Texture-on-the-Surface/m-p/373001#M893</link>
      <description>&lt;P&gt;&lt;a href="https://community.graphisoft.com/t5/user/viewprofilepage/user-id/5860"&gt;@galiaf_velikiy&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's possible to scale a texture dynamically by having a DEFINE TEXTURE with scaling variables (and then doing a DEFINE MATERIAL with said texture) but I don't know if it's possible to extract the texture name from a REQUESTed material.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you already know which texture you want, you could hardcode it directly maybe.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 16:19:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Scale-or-Stretch-Texture-on-the-Surface/m-p/373001#M893</guid>
      <dc:creator>MetalFingerz</dc:creator>
      <dc:date>2023-03-13T16:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Scale or Stretch Texture on the Surface</title>
      <link>https://community.graphisoft.com/t5/GDL/Scale-or-Stretch-Texture-on-the-Surface/m-p/373007#M894</link>
      <description>&lt;P&gt;It's possible, even tho you must need to do some contortions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;file_name = ""
rrr = request{2}("Material_info", old, "gs_mat_texture", file_name, w, h, mask, alpha)

define texture "new" file_name, w*2, h*2, mask, alpha

tex_id = ind(TEXTURE, "new")

str_name_of_mat = ""
rrr = request("Name_of_Material", old, str_name_of_mat)

define material "new_mat" based_on str_name_of_mat,
	parameters gs_mat_texture_ind = tex_id

mat_id = ind(MATERIAL, "new_mat")


material old
brick 1,1,0.1

addx 1.3
material mat_id
brick 1,1,0.1&lt;/LI-CODE&gt;
&lt;P&gt;Don't get hurt. &lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 16:53:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Scale-or-Stretch-Texture-on-the-Surface/m-p/373007#M894</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2023-03-13T16:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Scale or Stretch Texture on the Surface</title>
      <link>https://community.graphisoft.com/t5/GDL/Scale-or-Stretch-Texture-on-the-Surface/m-p/678577#M8017</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I copied and pasted your script (created the "old" parameter) and got the error message, am I doing something wrong?&lt;BR /&gt;&lt;/SPAN&gt;"Error in definition of materials used at line 21 in the 3D script of file Untitled-1.gsm."&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 12:56:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Scale-or-Stretch-Texture-on-the-Surface/m-p/678577#M8017</guid>
      <dc:creator>Victor Vernaglia</dc:creator>
      <dc:date>2025-10-01T12:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Scale or Stretch Texture on the Surface</title>
      <link>https://community.graphisoft.com/t5/GDL/Scale-or-Stretch-Texture-on-the-Surface/m-p/678590#M8019</link>
      <description>&lt;P&gt;Could be a GDL bug? I encounter this too, in AC 28.&lt;/P&gt;
&lt;P&gt;However it still works. So I'm not really sure why it's nagging here.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 15:24:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Scale-or-Stretch-Texture-on-the-Surface/m-p/678590#M8019</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2025-10-01T15:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Scale or Stretch Texture on the Surface</title>
      <link>https://community.graphisoft.com/t5/GDL/Scale-or-Stretch-Texture-on-the-Surface/m-p/678617#M8020</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Yes, it's working, but this error message is very annoying. Thanks for the reply.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 17:45:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Scale-or-Stretch-Texture-on-the-Surface/m-p/678617#M8020</guid>
      <dc:creator>Victor Vernaglia</dc:creator>
      <dc:date>2025-10-01T17:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Scale or Stretch Texture on the Surface</title>
      <link>https://community.graphisoft.com/t5/GDL/Scale-or-Stretch-Texture-on-the-Surface/m-p/693390#M8316</link>
      <description>&lt;P&gt;Another question, using "define texture" and "define material", is there any way to make the texture respond to the four texture distribution option buttons located in the surface settings?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VictorVernaglia_0-1771441947007.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/97476iC5936E6182B893C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="VictorVernaglia_0-1771441947007.png" alt="VictorVernaglia_0-1771441947007.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2026 19:52:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Scale-or-Stretch-Texture-on-the-Surface/m-p/693390#M8316</guid>
      <dc:creator>Victor Vernaglia</dc:creator>
      <dc:date>2026-02-18T19:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Scale or Stretch Texture on the Surface</title>
      <link>https://community.graphisoft.com/t5/GDL/Scale-or-Stretch-Texture-on-the-Surface/m-p/693399#M8317</link>
      <description>&lt;P&gt;Yes, but in the manual I find it not very well explained.&lt;/P&gt;
&lt;P&gt;Basically you need to set the status in &lt;CODE&gt;define texture "name" "filename.jpg", x, y, status, angle&lt;/CODE&gt; to one of these:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;64: random&lt;BR /&gt;128: mirrored in X&lt;BR /&gt;256: mirrored in Y&lt;BR /&gt;384: mirrored in X/Y&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2026 22:03:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/Scale-or-Stretch-Texture-on-the-Surface/m-p/693399#M8317</guid>
      <dc:creator>runxel</dc:creator>
      <dc:date>2026-02-18T22:03:06Z</dc:date>
    </item>
  </channel>
</rss>

