GDL
About building parametric objects with GDL.

Can I obtain the brightness of a coordinate point on the picture using the REQUEST command?

yongler
Booster

May I ask how to use REQUEST {2}?

Can I obtain the brightness of a coordinate point on the picture using the REQUEST {2} command?

The brightness or red, green, and blue values of the coordinate points on the picture.

 

GDL seems to have relatively weak processing power for pictures.

6 REPLIES 6
Barry Kelly
Moderator

You can request the RGB of a pen or material (surface) as these are a single colour, but not of a picture.

Every pixel of a picture could be a different colour.

Archicad just imports the picture you tell it to, and as far as I know there is no way to interrogate the colour of individual pixels.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
yongler
Booster

Okay, there's still a little disappointment

When you say 'Picture' I assume you are meaning an image file (.jpg, .tif, .png, etc).

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Lingwisyer
Guru

I assume this has got to do with using gradients to control dynamic objects?

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win10 | R5 2600 | 16GB | GTX1660 

You can try to convert the bitmap file to a .txt file that a GDL object can read.

But that means a lot of work. 

- AC-24 FIN - WIN 10 - HP Zbook -
“A winner is just a loser who tried one more time.”
George M. Moore, Jr.
Lingwisyer
Guru

...And very non user friendly...

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win10 | R5 2600 | 16GB | GTX1660 

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!