Picking in multiple viewports

Hi I am new to this forum, so if my question has already been answered please point me in the right direction.

I have a window with several viewports and I want to be able to pick within any viewport at any given time. Is there anything in particular I need to know? I am able to pick from the main window, but not from the additional viewports.

Thanks for any help you can provide.

if you are using the openGL picking facilities, i would say you’d be better off writing your own routines to do the picking based on the current glViewport() setting , the current projection matrix, and the cursor click location, doing ray-object intersection tests.

you can do as many viewports as you want, (even ones you aren’t rendering) and you will learn a lot. i did.

look into raytracing for info on how to do it.

but if your app doesn’t care about graphics performance, then perhaps you are OK with GL picking. i know nothing about it so i will have to defer to someone else…

[This message has been edited by vshader (edited 09-12-2002).]