
Picking/Selection using Vb.NET
Posted Thursday, 14 March, 2013 - 15:23 by ngdg inHello. I've been developing a VB.Net Windows Form Application, learning and using OpenTK from the scratch, with which I'm actually getting by, thanks to your excelent support and documentation.
I started using the GameWindow style, then I moved to GLControl in order to fulfill my needs of an interface. I'm now familiar with the whole drawing thing, including mouse and keyboard inputs, although I'm facing a problem now that I wanted to add a picking support to my application, but I have no clue about how I could do it. I've also been googling and reading this forum, and I've actually found some examples, most of then written in C# and using a certain lib called "Glu" which as far as I'm concerned has been discontinued. My question is: Is there any example (written in VB) from which I could take some ideas? Or is anyone willing to give me some guidelines in order to do it?
Thanks in advance!


Comments
Re: Picking/Selection using Vb.NET
c# or Vb.NET doesn't matter. just take a look a opentk's picking example (in the example browser) and translate it from c# to vb.net.
Re: Picking/Selection using Vb.NET
Do you mean in the project gallery? I can't seem to find one...
Re: Picking/Selection using Vb.NET
OpenTK\1.0\Source\Examples\OpenGL\1.x\Picking.cs
Re: Picking/Selection using Vb.NET
Hi, I checked that example, but it uses color information for picking. Extending the logic for box selection drawn by user may not be all that easy. Can anybody please give a working example of picking using selection?
I googled and tried various solutions proposed, but I think I am going wrong somewhere in the projection matrices.
The code I am using is as follows:
I am also allowing rotation by arcball (just in case if it matters). Can anybody please help?
Thanks