Finding Screen Coordinates

New Message Reply Date view Thread view Subject view Author view

Martin Reddy (mxr++at++dcs.ed.ac.uk)
Mon, 15 Apr 1996 12:04:17 +0100 (BST)


I wish to use Performer for a number of psychophysical experiments I have
to carry out. In order to do this, I must know the location and size of
objects *on the display device*. I.e. I need to find the projected screen
coordinates for an object. Specifically, I want the following:

 1) The projected 2D screen coordinates for an object's (3D) position.
    (assuming the object lies within the viewing frustum)

 2) The projected radius/diameter of an object's bounding sphere in pixels
    (as a quick measure of the object's size in screen space)

I had a quick look through the mailing list archives and found a couple of
other people asking similar things, but no answers given. Can anyone shed
some light on how (or if) I can go about doing this?

Cheers,

Martin.

+============================================================================+
| Martin Reddy Dept. of Computer Science |
| University of Edinburgh |
| e-mail : mxr++at++dcs.ed.ac.uk Mayfield Road, EH9 3JZ |
| http://www.dcs.ed.ac.uk/home/mxr/ Tel : (0131) 650 5164 |
+============================================================================+


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:42 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.