The Global ARCHICAD Community

Stay informed. Get help. Share your knowledge.

Everything about GDL - Doors/Windows/Objects/Stairs etc. (Example: I created an object that prints an error message in 3D all the time, please help!)

Moderators: Barry Kelly, Karl Ottenstein, LaszloNagy, ejrolon, gkmethy, Gergely Feher

#260351
Hi,
is it possible to construct an object that _always_ faces the camera?
I'm thinking about a billboard-like tree, that aways can be seen perpendicular to the camera axis and never can be seen being shortened.

It's possible to get the camera's position through the GLOB_EYEPOS_X and GLOB_EYEPOS_Y variables but are such variables there for the gdl object? (I haven't found such one.)
#260353
The 2D billboard trees and people in the library have always done this... at least since version 6.5 when I began using ARCHICAD.

For example, Deciduous Trees 20 lets you select a variety of tree image or outline billboards. In 3D - and only in perspective view, not axo view - doing a rebuild/regenerate rotates the tree to face the camera.

The library part above also lets you load your own custom picture as the billboard under the '2D Representation...' and '3D Representation" settings groups.

You can open any of these billboard parts to view the code that does the rotation.
#261163
I have the same problem ... it's not enoough to regenerate the 3D window ... everytime I have to select all the billboards (trees, people, etc), open the settings and click ok (without changing anything) ... Only in this way I get them to regenerate and face correctly the camera...
And this happens since many versions ...