Questions tagged [picking]

149 questions
4
votes
2 answers

Color picking on android - glReadPixels rounding errors

I am using color picking in opengl es on android and i am calculating a color key to compare it to the values i get from glReadPixels: ByteBuffer PixelBuffer =…
Simon
  • 13,173
  • 14
  • 66
  • 90
4
votes
1 answer

OpenGL ES color picking on the iPhone

I'm looking into 3D on the iPhone, I have managed to get a 3D cube on the device but would like to add interactivity such as touching one face fires a specific event and an other face a different event. I'd rather steer clear of ray picking as this…
David Hancock
  • 14,861
  • 4
  • 41
  • 44
4
votes
3 answers

Orthographic Camera and pickingRay?

I tried to implement a function to select and move objects in a stage compound of an orthographic camera. I'd like to get the same example as : http://threejs.org/examples/webgl_interactive_draggablecubes.html but not with perspective camera. I…
Kyrion
  • 41
  • 3
3
votes
2 answers

How to optimize this set-picking algorithm?

I am trying to solve the following problem: I have several blocked sets (which may contain duplicate elements). I must pick a (varying) number of elements from each blocked set to unblock it. I am only allowed to pick elements that also occur in…
3
votes
0 answers

Simulate click event in Matplotlib that triggers a pick event

I have a Matplotlib figure, with some lines. I have a remove function that is called when a line is picked. The function simply removes the artist from the axes when the pick event is fired. I would like to be able to programmatically simulate a…
nvaytet
  • 61
  • 6
3
votes
1 answer

Interactive mouse picking/selecting of curves with OpenGL

This is NOT about how to create and render curves (e.g. Bezeier, NURBS, etc) BUT about how to be able to interactively 'pick' such curves by mouse click when the mouse cursor is hovering over ANY part of such a curve. After doing the required…
DavidH
  • 97
  • 6
3
votes
2 answers

How to change the texture or colour of an object in Qt3D with QML?

I have a project, where i have one 3d object (.obj file) and i want to click on this object. For the first test i would be happy to change the texture or colour of the object. As far as i know it's called picking. Do you guys know how to manage this…
eduard_code
  • 49
  • 1
  • 7
3
votes
1 answer

three.js orthographic camera object picking

i am trying to pick objects in a scene where i use an orthographic camera. my code fragment already works, but it is not precise. i already found some answers on stackoverflow, but those are deprecated or won't work anymore at all. here is my code…
kampfgnu
  • 107
  • 3
  • 10
3
votes
1 answer

Picking with OpenGL Shading Language

I'm trying to figure out the best way to pick informations rendered using shaders. A window manager buffer (the window) is used for outputting rendering. On user event I should pick the geometry rendered. Using gluPick is easy, but I'm trying to…
Luca
  • 11,646
  • 11
  • 70
  • 125
3
votes
2 answers

Picking in java 2d

I am using java2d to draw a simple graph at the moment I have implemented picking by calling contains(MousePoint) for each object/shape, this works but scales linearly. Is there a more efficient method for picking in java2d?
michiel
  • 6,036
  • 1
  • 18
  • 13
3
votes
2 answers

OpenGL 3D Selection

I am trying to create a 3D robot that should perform certain actions when certain body parts are clicked. I have successfully (sort of) implemented picking in that if you click on any x-plane part, it registers a hit, but not anywhere else. That is,…
Zach Smith
  • 31
  • 2
3
votes
5 answers

webgl and glsl picking

Im implementing webgl picking from scratch, and have decided to go down the GLSL route, as oppose to ray intersection testing. so Im rendering the whole scene into a separate frame buffer, assigning each object a unique color which is passed to the…
deepblue
  • 8,426
  • 13
  • 48
  • 60
3
votes
1 answer

How to implement a color picking strategy also for text?

So, I successfully implemented picking/selection by rendering with a unique color each part I want to be selectable. This works for geometry, but what about the text? I searched the Web a lot, but I didn't find anything connected to color picking…
elect
  • 6,765
  • 10
  • 53
  • 119
2
votes
0 answers

XNA Triangle picking on SkinnedModel

My game is using the SkinnedModel pipeline and AnimationPlayer to load and display models. I've implemented ray picking with triangles by building a list of vertices and indices from the pipeline. This works, however the indices are static are only…
Neovivacity
  • 109
  • 2
  • 15
2
votes
1 answer

AnyLogic: Move two agents simultaneously into a pallet rack

I want to model a double-deep pallet rack in AnyLogic that contains two types of agents: small boxes and big boxes (2 different agent types that extend the gereral agent "Box"). Here I have a question regarding the movement into and from the pallet…
Alex
  • 49
  • 4
1
2
3
9 10