Login  Register

Drawing a line to mimic effects of PickRay

Posted by unixnerd on Apr 15, 2025; 6:12pm
URL: https://forum.jogamp.org/Drawing-a-line-to-mimic-effects-of-PickRay-tp4043746.html

When the users moves the mouse I want to draw a simple line that mimics the effect of PickRay. PickRay works fine, but I'd like them to have a visual reference to aid selection before they click the mouse button.

I'm really having trouble finding the right co-ordinates to use for the line ends. Does anyone have advice or an example?

Thanks.