DGL https://delphigl.com/forum/ |
|
GL_Select https://delphigl.com/forum/viewtopic.php?f=19&t=7623 |
Seite 1 von 1 |
Autor: | Stucuk [ Sa Jun 28, 2008 21:07 ] |
Betreff des Beitrags: | GL_Select |
![]() Im trying to implement a GL_Select picker in a map editor im making but it just returns 0 hits. I have used This tutorial as a basis. Before the code below, FInSelection is filled with every face which could have been picked by the user (Based on the Bounding Box of each face), its also sorted so that the first one will be the closest to the Camera. Any help would be appreciated. Code:
|
Autor: | Stucuk [ So Jun 29, 2008 04:54 ] |
Betreff des Beitrags: | |
Guess it helps if you enable GL_VERTEX_ARRAY before sending data using Vertex Arrays(Doh!). |
Autor: | Stucuk [ So Jun 29, 2008 18:51 ] |
Betreff des Beitrags: | |
Ran into another problem, this one shouldn't be as simple as the first. GL_Select seems to be failing somtimes, in most cases it works fine, but iv found a map with an area where it gives no hits, yet there is face's in that area which are being passed to it. The images below shows in red the faces which are being sent to the GL_Select for Picking, the Yellow area is where its generating no hits and the green dot is where i clicked. ![]() ![]() ![]() - Download ~1.36MB (EXE + Sample Map) Note: 3D View doesn't have any picking ability, only the Grid Modes have the ability. Source: Code:
|
Seite 1 von 1 | Alle Zeiten sind UTC + 1 Stunde |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |