CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
How to get pixel color from 3d application

 



JuR
New User

Feb 28, 2016, 8:57 AM

Post #1 of 3 (1619 views)
How to get pixel color from 3d application Can't Post

Hello ! I need to read a pixel color from 3d app at coordinates.
I can't do that, and everything i found in google is about images.
This is a live 3d app and i want to perl look on specific coordinates and found color change, and then do something like example in egnlish

if color is black at coordinates x, y then keystroke.
I understand if,elsif, else, and i know how to do keystrokes, but i can't tell my program to read a pixel color from application (the top one), i can't tell him to read any color even from desktop.
At this moment using windows 7 + strawberry.

Any ideas how to get it ?


Laurent_R
Veteran / Moderator

Feb 28, 2016, 12:58 PM

Post #2 of 3 (1611 views)
Re: [JuR] How to get pixel color from 3d application [In reply to] Can't Post

All this is very vague, many more details are needed. Where do you want to read the color from? An digital image or a photograph? A video? Your screen? Something else?

Are you going to pass x and y coordinates to your program? Or point the spot with the mouse? Something else?

If it is an existing image, what is the format? JPEG? PNG? GIF? TIFF? BMP? Something else?

Do you know about RGB colors and how the various combinations work?


Laurent_R
Veteran / Moderator

Feb 28, 2016, 1:21 PM

Post #3 of 3 (1608 views)
Re: [JuR] How to get pixel color from 3d application [In reply to] Can't Post

Cross posted on Perl Monks:
http://www.perlmonks.org/?node_id=1156387
There is nothing wrong with cross-posting questions, but it is considered polite to inform people about that, in order to avoid the risk of work duplication at various places on the Internet.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives