Questions tagged [picking]
149 questions
2
votes
2 answers
Performantly render tens of thousands of spheres of variable size/color/position in Three.js?
This question is picking up from my last question where I found that using Points leads to problems: https://stackoverflow.com/a/60306638/4749956
To solve this you'll need to draw your points using quads instead of points. There are many ways to do…

Deklan Webster
- 25
- 4
2
votes
1 answer
Manual mouse ray picking ray calculation in java rotation problem
I am having trouble finishing my mouse ray picking algorithm for a game I am creating using java (and opengl/lwjgl). I implemented ray tracing using inspiration from here and here. I followed a lwjgl book for the implementation of the game. The…

Joris
- 23
- 3
2
votes
1 answer
Change colour of data points on selection and remove them with key press in matplotlib 3d scatter plot
I have a 3d scatter plot in matplotlib, and have set up annotations, inspired by answers here, particularly that by Don Cristobal.
I have some basic event-capturing code set up, but after several days of trying, I still have not managed to achieve…

Carl
- 598
- 2
- 11
- 25
2
votes
2 answers
Picking top n% percent of elements from matrix rows, different number of elements on each row
I have a problem with picking the top n% largest and smallest element's
from each data matrix row. Specifically, I would like to find the column numbers of those top n% elements. This would not be a problem if each row had the same number of…

Pau
- 25
- 4
2
votes
0 answers
Qt error "undefined reference gluPickMatrix@36" picking in 3d enviroment
I'm trying to write the code for the picking in my desktop app in C++ in Qt creator.
I'm totally new in Qt and C++ (apologise for my ignorance), I have read a lot of example and all of them are using Glut, Glu and\or glew.
I follow this code…

NànaVelvet
- 19
- 3
2
votes
1 answer
Color coded picking problem in OpenGL
I am making a game, actually a very basic replica of Minecraft, for a class project of mine. I'm stuck in the picking process right now, which would enable me to destroy and create blocks in the game environment.
I've been trying to use OpenGL's own…

Dunya Degirmenci
- 365
- 4
- 20
2
votes
1 answer
jogl picking example
hi guys
i am in trouble with add picking object in a JOGL project.
i know that this could be done with pick buffer.. but i can't find examples
anyone?

nkint
- 11,513
- 31
- 103
- 174
2
votes
2 answers
How would you solve this opengl necessity (in c) involving knowing in which square in a boardgame did the user click?
So I have this board, to play a boardgame... The problem is, how do I know in which square did the user click on? I know the x and y coordinates, but how do I automate it, without the need to hunt down the specific locations of each square. (Also…

dasen
- 389
- 2
- 8
- 13
2
votes
1 answer
Odoo can't transfer (stock move) from different locations
Hello I'm trying to make a delivery (outgoing stock move) from different locations (all Internal Locations), but this gives me the error:
The source location must be the same for all the moves of the picking.
The locations are, WH/Stock/01 and…

Jesse
- 727
- 13
- 44
2
votes
1 answer
gpu picking - invisible pixels around sprites
I'm rendering a picking scene that contains sprites. As my cursor gets close to the sprite, it registers as a color and gets "picked". This invisible border gets larger closer you zoom into the sprites.
Open up your console to see the IDs printed…

Jared
- 607
- 1
- 6
- 28
2
votes
1 answer
Call glReadPixels Within display() JOGL
I am trying to implement object picking. I have code to render the objects as solid, unlit colors, then I read the pixels in the screen buffer. I interpret the readings from glReadPixels() to determine which object the cursor is currently on.…

Joshua Hyatt
- 1,300
- 2
- 11
- 22
2
votes
1 answer
How to speed up band selection tool in a Dart WebGL application
The task at hand is to add a band selection tool to a Dart WebGL application.
The tool will be used to draw a rectangle over multiple objects by dragging the mouse.
Thus multiple objects can be selected/picked in a single user action.
I'm currently…

Everton
- 12,589
- 9
- 47
- 59
2
votes
0 answers
Picking/Ray projection with orthographic camera
I've got a "simple" problem in my code, picking work perfectly when my camera is in perspective mode but result are strange when I'm in orthographic mode.
Here is what I've done:
void Ray::computeFromCamera( const glm::vec3& position,
…

LongDuZboub
- 1,041
- 2
- 12
- 18
2
votes
1 answer
3D Graphics Picking - What is the best approach for this scenario
I am working on a project which allows users to pick 3d objects in a scene and I was wondering what everyone thought would be the best way to approach this particular scenario.
Basically we have a scene with at least 100 objects (they are low-poly…

poncho
- 1,100
- 2
- 15
- 38
2
votes
1 answer
Draw to backbuffer using OpenGL ES 2.0 on Android
I want to implement simple picking for a 2D Application using color codes.
So far I render my objects with a call to GLES20.glDrawElements()
and I only render on request.
Now, I have read numerous tutorials for OpenGL on this topic, but I could…
user2468462