Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

finding the 3D coordinates of a bitmap pixel

finding the 3D coordinates of a bitmap pixel

Anonymous
Not applicable
330 Views
3 Replies
Message 1 of 4

finding the 3D coordinates of a bitmap pixel

Anonymous
Not applicable
I've got a bitmap on a plane. This bitmap has pixels. I want to find specific pixels based on a filter that I have developed, and extract those pixels' 3d coordinates. I can't for the life of me figure out how to do this, or if it is at all possible.

Anyone have any ideas?

Thanks!

Tim Borrelli
Principal Technical Animator/Character Animator
Volition, Inc
0 Likes
331 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
I don't see the correct algorithm you want to use to find the coordinates.
Apart from that, what is your major goal? Maybe it can be achieved in another way.
0 Likes
Message 3 of 4

jeff
Collaborator
Collaborator
Perhaps you could ignore the fact that there is a bitmap, and use the dimension of the bitmap to divide the plane (similar to percentage). Then the plane center and rotation, plus percent (pixel) offset, with some basic trigonometry, should give you the 3D coords. of the "pixel".

-Jeff
Max since 1992 (3d Studio) · Win 10-64 · Wintel workstation · 64 GB RAM · nVidia Quadro RTX 4000 · BB render garden via Deadline
0 Likes
Message 4 of 4

PiXeL_MoNKeY
Collaborator
Collaborator
You would need to convert the barycentric coordinates of the UV position to extract the World XYZ position. You may try searching the CGTalk 3ds max Maxscript section for barycentric coordinates to get some more info, for example what is posted here may help.
0 Likes