Dirk Reiners wrote:

        Hi Thomas,

On Thu, 2006-02-09 at 17:55 +0100, Thomas Beer wrote:
Real32 rx = (x - port.getPixelLeft()) / (Real32) port.getPixelWidth() * 2.f - 1.f

isn't port.getPixelLeft() the window-coordinate of the left viewport-border?

I see what you mean. You're right, the positions are Window-relative,
the comment is wrong. As the method is primarily used for user
interaction, it just makes sense to use Window coords, as Viewport
coords are harder to come by.

        Dirk
Ok, I'll offset my coordinates before the calcViewRay call.

Thomas


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to