GDL
About building parametric objects with GDL.
SOLVED!

picture in GDL without borderlines in 3D??

Hmooslechner
Rockstar

The picture command unfortunately only knows one setting for an always visible border line

Who knows a simple way to work around this?

so - to get an GDL image -simply resizeable like the picture-command -  without border lines in 3D.

AC5.5-AC27EduAut, PC-Win10, MacbookAirM1, MacbookM1Max, Win-I7+Nvidia
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Pertti Paasky
Advocate

This works in 3d.

mask=0
rotx 45
group "pict"
if picturename #"" then PICTURE picturename, a, b, mask
endgroup
placegroup "pict"

addz 2
repl_directive = 0

j1=0!: replace pen,
j2=0!: replace material,
j4=1!: make edges invisible.
repl_directive = j1 + 2*j2 + 4*j3 + 8*j4
pen_= 1
material_=0

placegroup CREATEGROUPWITHMATERIAL ("pict", repl_directive, pen_, material_)
- AC-24 FIN - WIN 10 - HP Zbook -
“A winner is just a loser who tried one more time.”
George M. Moore, Jr.

View solution in original post

5 REPLIES 5
DGSketcher
Legend

Shot in the dark, have you tried different pen settings before the picture command including background and transparent. The frame makes reference to using RECT which doesn't have pen settings so I assume relies on the PEN setting.

Apple iMac Intel i9 / macOS Sonoma / AC27UKI (most recent builds.. if they work)
Hmooslechner
Rockstar

no - unfortunately not - i cant turn it off completely to just show the picture without the lineframe with the pen-setting.

AC5.5-AC27EduAut, PC-Win10, MacbookAirM1, MacbookM1Max, Win-I7+Nvidia
runxel
Legend

You can't have that with PICTURE, Heimo.

Either use a Graphic Override to get rid of the outline.

Or just use "DEFINE TEXTURE" with any geometry.

This might be the best option.

Lucas Becker | AC 27 on Mac | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»
Solution
Pertti Paasky
Advocate

This works in 3d.

mask=0
rotx 45
group "pict"
if picturename #"" then PICTURE picturename, a, b, mask
endgroup
placegroup "pict"

addz 2
repl_directive = 0

j1=0!: replace pen,
j2=0!: replace material,
j4=1!: make edges invisible.
repl_directive = j1 + 2*j2 + 4*j3 + 8*j4
pen_= 1
material_=0

placegroup CREATEGROUPWITHMATERIAL ("pict", repl_directive, pen_, material_)
- AC-24 FIN - WIN 10 - HP Zbook -
“A winner is just a loser who tried one more time.”
George M. Moore, Jr.

Thank You - it worked fine!

 


@Pertti Paasky wrote:
This works in 3d.

mask=0
rotx 45
group "pict"
if picturename #"" then PICTURE picturename, a, b, mask
endgroup
placegroup "pict"

addz 2
repl_directive = 0

j1=0!: replace pen,
j2=0!: replace material,
j4=1!: make edges invisible.
repl_directive = j1 + 2*j2 + 4*j3 + 8*j4
pen_= 1
material_=0

placegroup CREATEGROUPWITHMATERIAL ("pict", repl_directive, pen_, material_)


I did it for the whole group i already had with all pictures in it:

 



repl_directive = 0 !!! GDL Handbuch Seite 183

j1=0!: replace pen,
j2=0!: replace material,
j3=0!: ????
j4=1!: make edges invisible.

repl_directive = j1 + 2*j2 + 4*j3 + 8*j4

pen_= 1

material_=0

if OhneRahmenLinien = 1 then

  placegroup CREATEGROUPWITHMATERIAL (Wandvorsatz, repl_directive, pen_, material_)

else

   placegroup Wandvorsatz

endif

 

 

For What: 

 

https://forum.Graphisoft.de/viewtopic.php?f=6&t=28872 

AC5.5-AC27EduAut, PC-Win10, MacbookAirM1, MacbookM1Max, Win-I7+Nvidia