Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3507 Members - Latest Member: PienueDut

26. May 2012, 01:04:43 pm
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)Canvas3D doesn't use PickingLibrary
Pages: [1]
Print
Author Topic: Canvas3D doesn't use PickingLibrary  (Read 362 times)
Pathogen
Just dropped in

Offline Offline

Posts: 8


View Profile
« on: 16. November 2009, 05:16:14 am »


It took me a while to realize, that Canvas3D picking does not use PickingLibrary, instead it passes a picking request to lwjgl functions. I couldn't figure out why setPickable(false) was being ignored on my Nodes until I spent some time with the debugger; pickable is used only by PickingLibrary.  Shocked

Should Canvas3D use PickingLibrary instead, especially seeing how PickingLibrary is *much* faster? Or at least make a note that those methods are deprecated and slow, that might save someone else this confusion.

Sorry for making lots of work!
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 16. November 2009, 05:06:06 pm »

OpenGL picking was once a lot slower. I wanted to kick it out of the API but someone complained. Then I discovered, how to dramatically tune it and it had indeed become a lot faster. Actually I thought, it was just as fast as PickingLibrary or at least the difference wasn't that big.

Long story short, I currently don't remember, if GL-picking has some advantages over software picking. So I would not want to remove it until I have checked it. On the other hand GL-picking is contamenating the render code. So I would love to remove it. I will keep that in mind and thanks for the info.

Marvin
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic