Questions tagged [picking]

149 questions
1
vote
1 answer

glPushName + glPopName stack overflow and underflow

Can anybody explain me how to use glPushName and glPopName. I like to use them instead of glLoadName, but I laways get GL_STACK_OVERFLOW and GL_STACK_UNDERFLOW errors. (First, under then overflow). Example code would help me too. Note #1: My…
drahnr
  • 6,782
  • 5
  • 48
  • 75
1
vote
5 answers

Openerp: How to show new field in Delivery Orders

I've added new fields in stock.picking and would like them to appear in the form view as a new page in the Delivery Orders notebook. I think I'm having trouble because the model used in the Delivery Orders is stock.picking.out, which inherits…
MCL
  • 31
  • 6
1
vote
1 answer

GLKMathUnproject : detecting a tap on an object

So, it seems that GLKit has GLKMathUnproject which can be used to work out where you clicked in 3D space (awesome) However, I cant get it to work, I have copied a few different examples in and it still does not detect me clicking on my cube at…
Burf2000
  • 5,001
  • 14
  • 58
  • 117
1
vote
2 answers

WebGL: using framebuffers for picking multiple objects

I am trying to implement picking in WebGL. I have a lot of objects (around 500), and I'd like each one to be allowed to be picked. In order to do that, I did a loop which assigns a unique colour to each object (cf. picking principle): for (var i =…
Koln
  • 307
  • 1
  • 4
  • 11
1
vote
1 answer

Jogl, creating only red channel u16 but getting "Texture type and format combination is not valid"

So, I am trying to implement the picking through id. This means with every drawArray a different unique id will be set as uniform and saved in the red component on a texture. 16 bits are more than enough (65k elements), so I choose to use shorts, I…
elect
  • 6,765
  • 10
  • 53
  • 119
1
vote
0 answers

Three.js [r65] : Picking via Raycaster working strangely after rotation via TrackballControls

A little context: I have a scene populated with a reasonably large amounts of objects (non-merged) which have to be individually pickable. Each of those object is an Object3D with the following structure: parent Object3D |_ child_1 |_ child_2 |_…
Hal
  • 537
  • 4
  • 13
1
vote
2 answers

How to do picking in 2D opengl?

I want to select 2d object in opengl, but don't know how. I want it like in 3d with gluPickMatrix. This is what i tried: void initDraw2D(){ GLuint buff[BUFSIZE]; GLint hits, view[4]; glSelectBuffer(BUFSIZE, buff); …
float
  • 371
  • 1
  • 6
  • 16
1
vote
0 answers

OpenGL color picking RGBA vs RGB

I would like to implement color picking/selection via these three methods: void ColorIndex(uint colorIndex) { glColor4ubv((GLubyte *)&colorIndex); } void ColorIndices(vector &colorIndices) { GLubyte *colorPtr = (GLubyte…
Filip Kunc
  • 631
  • 1
  • 8
  • 19
1
vote
1 answer

How to pick items from warehouse to minimise travel in TSQL?

I am looking at this problem from a TSQL point of view, however any advice would be appreciated. Scenario I have 2 sets of criteria which identify items in a warehouse to be selected. Query 1 returns 100 items Query 2 returns 100 items I need to…
Jonno
  • 789
  • 9
  • 26
1
vote
2 answers

3d picking with gles

I'm trying to do 3d picking when user taps android phone's screen. It works sometimes but when i rotate the screen --> the ray doesnt hit the sphere I'll paste the source code with what i have until now : a) class renderer.java: ... // variables…
redbase
  • 39
  • 1
  • 6
1
vote
1 answer

LWJGL 3D picking

So I have been trying to understand the concept of 3D picking but as I can't find any video guides nor any concrete guides that actually speak English, it is proving to be very difficult. If anyone is well experienced with 3D picking in LWJGL, could…
Tarrjue
  • 25
  • 6
1
vote
2 answers

Color picking with Qt in OpenGL

I've been reading tutorials about picking and that color picking is far the most popular and simplest form. Tried some tutorials with snowmans as example but it doesn't work for me. When I run the program , it gives me just a black sceen without…
user1007522
  • 7,858
  • 17
  • 69
  • 113
1
vote
2 answers

Getting pixel colour not accurate

I'm currently using colour picking in my application. This works on the PC, however I'm having trouble to get it working on a variety of devices. This is probably due to the context being set up differently, depending on the device. For example, as…
Ben
  • 84
  • 1
  • 7
1
vote
0 answers

How to do Picking via IdMapping in Scenejs?

We have ONE huge Json Mesh like this which we render with scenejs: {"vertices":[ 0.0, 0.0, 0.0, 0.0, 0.0, 2.0, 1.0, 0.0, 2.0, 0.0, 2.0, 2.0, //... next object ], "normals":[ 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, //... next…
Stefan Ramson
  • 531
  • 1
  • 6
  • 18
1
vote
1 answer

OpenGL: Read pixels from FrameBuffer for picking rounded up to 255 (0xFF)

I am trying to implement object picking by packing the vao id to RGBA and render with it to an off-screen buffer which I then try to read with a buffer object. I am rendering to an off-screen buffer by creating a texture and a z-buffer RenderBuffer…
Jubei
  • 1,686
  • 1
  • 17
  • 28