cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Material Texture Set Out Point

Anonymous
Not applicable
Hi,
I have a whole bunch of materials created that have textures associated with them.
Now I want to use these materials in a library part, however I cannot work out how to set out the start point for the material. It seems to relate to the global co-ordinates as when I move the object, the texture position changes in relation to that object.
Can't work it out PLEASE HELP
6 REPLIES 6
Anonymous
Not applicable
You have to set the local origin of the texture internally in the GDL.

As I recall it is the COOR function. I also recall that it's a bit tricky but not bad if you are good at GDL.
Anonymous
Not applicable
Thanks Matthew,
I got the coor and vert commands to work, but it didnt really make sense. But it worked, so that's good. Thanks
Tom
David Maudlin
Rockstar
For anyone with the same issue, here is the code to set the texture origin, which is placed after the 3D command:

Base
Vert 0, 0, 0
Vert 1, 0, 0
Vert 0, 1, 0
Vert 0, 0, 1
Coor 2+256, -1, -2, -3, -4
Body -1

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC27 USA • iMac 27" 4.0GHz Quad-core i7 OSX11 | 24 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
Anonymous
Not applicable
David,
How do you move the texture then in this command?
Say I wanted to move the texture slightly to the right
Or does this relate to the 3D object?
David Maudlin
Rockstar
Tom:

To move the texture origin, add a transformation after the 3D model command but before the texture origin code (then delete this transformation after the texture origin code). For example:
_____________________________

Block A, B, ZZYZX

Add x1, y1, z1

Base
Vert 0, 0, 0
Vert 1, 0, 0
Vert 0, 1, 0
Vert 0, 0, 1
Coor 2+256, -1, -2, -3, -4
Body -1

Del 1
_____________________________

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC27 USA • iMac 27" 4.0GHz Quad-core i7 OSX11 | 24 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
rocorona
Booster
For an interactive texture placing, try the following routine, but I find it is not so practical, unless you have many instances, each one with a different setting.
You have to define 3 new parameters (cx, cy, cz) in your object.
hid=0 
HOTSPOT 00, cy, cz, hid+1, cx, 129 
HOTSPOT cx, cy, cz, hid+2, cx, 2 
HOTSPOT -1, cy, cz, hid+3, cx, 3 
 
hid=hid+10 
HOTSPOT cx, 00, cz, hid+1, cy, 129 
HOTSPOT cx, cy, cz, hid+2, cy, 2 
HOTSPOT cx, -1, cz, hid+3, cy, 3 
 
hid=hid+10 
HOTSPOT cx, cy, 00, hid+1, cz, 129 
HOTSPOT cx, cy, cz, hid+2, cz, 2 
HOTSPOT cx, cy, -1, hid+3, cz, 3 
 
BASE  
VERT cx,  cy,  cz  
VERT cx+1, cy, cz  
VERT cx, cy+1, cz  
VERT cx, cy, cz+1  
 
COOR 2+256, -1, -2, -3, -4  
BODY -1 
_________________

--Roberto Corona--
www.archiradar.com
AC18 - ITA full on Win10
_________________
_________________

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!