Changing texture origins in GDL

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-10-14 02:18 PM
Here's my question: How can I be sure the base/vert/coor thing is limited to just one element? Do I need to reset the texture origin back to the global origin after I've moved it around? How is that done? Or does GDL somehow understand that the relocated texture origin only applies to the object immediately before the coor statement?
Win10 64bit Intel i7 6700 3.40 Ghz, 32 Gb RAM, GeForce RTX 3070
AC 27.0 (4001 INT FULL)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-10-14 07:18 PM
I was about to ask related question when found your post. Basicly I would like to know how to change UV coordinates in GDL objects. For example how to change texture projection in AC 9.0 object called "Rail wired". It seems to be rotated 90 deg. "Align 3D texture" functions doesn't work with GDL objects, so if you or anyone else know how to fix that I would be really grateful. Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-10-14 08:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-10-14 08:24 PM
Yes, that is what I do for now but in some objects coordinates are obviously wrong so I thought it will be better to fix that than keep "overriding" it with a texture setting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-10-15 06:53 PM
tigr wrote:It's true that the "overriding" can only go so far, but the only alternative is in the GDL script. It's not so bad for someone comfortable with GDL. If you want to be particularly cool, add a 3D dynamic hotspot to let the user adjust the fill origin.
Hi Dwight,
Yes, that is what I do for now but in some objects coordinates are obviously wrong so I thought it will be better to fix that than keep "overriding" it with a texture setting.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-10-16 07:54 AM
Matthew wrote:Very cool indeed, Matthew!
If you want to be particularly cool, add a 3D dynamic hotspot to let the user adjust the fill origin.
But can you shed any light on my original question? Does the local texture origin need to be somehow reset back to the global origin, in the same way you have to DEL back from ADD, ROT and MUL statements? Or does ArchiCAD only apply the reset origin to the object immediately before the Vert/Coor statements? In a complex GDL object with scores of individual elements, can I be certain the vert/coor statement isn't going to screw up the texture for a lot of elements I don't want to change?
Win10 64bit Intel i7 6700 3.40 Ghz, 32 Gb RAM, GeForce RTX 3070
AC 27.0 (4001 INT FULL)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-10-16 07:58 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-10-16 08:09 AM
Dwight wrote:Thanks, Dwight.
If contained in the script, all is reset.
I've seen some screwiness somewhere, which is why I was asking.
I'll experiment and report back.
Win10 64bit Intel i7 6700 3.40 Ghz, 32 Gb RAM, GeForce RTX 3070
AC 27.0 (4001 INT FULL)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-10-16 09:43 AM
In the first row there is no Vert/Coor statement in the script. The first prism sits at the origin and shares the same origin and proportion with the original bitmap, so the grille is properly centered. Note the texture on the remaining four still starts at the global origin, so the grille on none of them is correctly centered.
In the second series, just after the script for the third prism, I've placed a vert/coor statement which rotates the texture 45 degrees. Note that prisms one and two are also rotated, while four and five are unaffected. Conclusion: Coor/vert statements change the texture orientation of ALL the elements that precede them in the script.
In the third series, I've added a second Vert/coor statement just before the third prism, which resets the texture back to the global origin with no rotation. The texture of the third prism remains rotated, while the others go back to their original positions.
Conclusion: GDL elements with customized texture locations must be bracketed with Vert/coor statements. The statement *after* the targeted object changes the texture origin and orientation. The statement *before* the target element must reset the texture to its global default.
Win10 64bit Intel i7 6700 3.40 Ghz, 32 Gb RAM, GeForce RTX 3070
AC 27.0 (4001 INT FULL)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-10-16 11:40 AM
I should have "not dumb, just slow" written on all my business cards.
Here's the real answer:
BODY -1 needs to go
All this was made clear by autoscripting an element with a custom texture orientation and then playing with the resulting script. (...And confused by the fact that I've been automatically erasing BODY -1 every time I see it...)
Win10 64bit Intel i7 6700 3.40 Ghz, 32 Gb RAM, GeForce RTX 3070
AC 27.0 (4001 INT FULL)