Questions tagged [picking]

149 questions
0
votes
1 answer

JavaScript if parameter, Ignoring Transparency in images

I need to make if parameters optional. If that makes sense. If you notice both of my functions are 98% the same, I need to turn this difference into a parameter and it's just not clicking for me. getElement(x, y, class) where the new parameter class…
Bill Effin Murray
  • 426
  • 1
  • 5
  • 13
0
votes
2 answers

3D picking lwjgl

I have written some code to preform 3D picking that for some reason dosn't work entirely correct! (Im using LWJGL just so you know.) This is how the code looks like: if(Mouse.getEventButton() == 1) { if (!Mouse.getEventButtonState()) { …
Wirde
  • 400
  • 3
  • 14
0
votes
1 answer

Ray picking - get direction from pitch and yaw

I am attempting to cast a ray from the center of the screen and check for collisions with objects. When rendering, I use these calls to set up the camera: GL11.glRotated(mPitch, 1, 0, 0); GL11.glRotated(mYaw, 0, 1, 0); GL11.glTranslated(mPositionX,…
Isaac Waller
  • 32,709
  • 29
  • 96
  • 107
0
votes
1 answer

saving data points when picking from a plot

I want to select some points from a plot. I am using event picking and I want to store the data points that I select to numpy array. There is no problem about selecting points. I will select them and I can see those points in output (by printing…
s.a
  • 9
  • 4
0
votes
0 answers

In 3d, how to pick the most suitable point?

I have a 3d scene (with pointclouds and some other objects). I implemented algorithm to pick the closest point to the mouse for a pointclouds. But my problem is : I have several objects in my scene, so when I try to pick an object (or a point inside…
0
votes
1 answer

How to get position of clicked icon on cesium map

I am trying to draw circles around an icon that is selected via clicking. My current code is: this.handler.setInputAction(function(click) { var pickedObjects = viewer.scene.drillPick(click.Position); if(Cesium.defined(pickedObjects)) { …
user8402764
  • 143
  • 2
  • 14
0
votes
1 answer

Issues with picking in c# XNA

Im attempting to make a chess game, to move the pieces im using picking, so the user clicks on a piece to set it as the selected piece, then on the square they want to move it to. This works the first time, but when you click on a different piece to…
jriley
  • 3
  • 1
0
votes
1 answer

How to create orders for picking process at warehouse operations using Anylogic

During the creation of a generalized warehouse model, I ran into a problem when trying to create an order event that can be used by order pickers to retrieve the products from the storages racks. Currently, I am using a source block which creates…
Stefan
  • 1
0
votes
1 answer

How to create specific warehouse order picking strategy in anylogic

I am currently working on a generalized warehouse model containing all processes that take place in warehouse operations. I just started to work with anylogic and I can not figure out how to implement order picking strategies. My current model is…
Stefan
  • 1
0
votes
1 answer

how do i calculate the Touch on openGL using glUnProject

Hi i found upto near plan and far plan.. then how to identify using this i touched on the object.. could anyone pls help me.. Here is My code.. -(Boolean) checkCollission:(CGPoint)winPos { winPos.y = (float)__viewport[3] - winPos.y; …
Sivakumar
  • 11
  • 1
0
votes
1 answer

Is there a way to implement an image color picking javascript without the use of canvas?

I'm implementing a way of magnifying an image, which is now being displayed zoomed as the background image of another img element. This part is working as expected, I can move the mouse around, focus on the spot I need, click and sort of…
Mike Gmez
  • 111
  • 3
  • 18
0
votes
1 answer

Getting picture from Gallery not working on device, but does in emulator

I am using the startActivityForResult to get a picture from the android gallery, however this does not work on my device, yet it works fine on the emulator. I start the activity like this: startActivityForResult(new Intent(Intent.ACTION_PICK,…
Tom Leese
  • 19,309
  • 12
  • 45
  • 70
0
votes
1 answer

GPU Picking inconsistent across devices

I’m trying to implement GPU picking with Points using code I modified from the latter half of this article https://threejsfundamentals.org/threejs/lessons/threejs-picking.html It’s been working fine for me on desktop, but I started testing different…
0
votes
1 answer

AnyLogic: pick multiple products from the same cell in storage racks

I am trying to simulate a distribution center in AnyLogic. I have a question regarding retrieving of products from a storage rack cell. I store Handling Units (agents) in the storage racks. A Handling Unit consists of multiple items and I want to…
0
votes
1 answer

AnyLogic: Pick products from a specific cell in storage rack

I am trying to pick products from a specific cell from a storage rack/storage system. In the RackStore block, it is possible to store products in a specific cell by providing the row, position and level. When the product is stored in this specific…