Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3509 Members - Latest Member: lioneltenel

27. May 2012, 03:18:15 am
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)PickingLibrary and null Bounds
Pages: [1]
Print
Author Topic: PickingLibrary and null Bounds  (Read 1102 times)
Patheros
Getting respectable
***
Offline Offline

Posts: 267


Dead Dolphin


View Profile WWW Email
« on: 15. January 2007, 06:19:17 am »

I'm trying to use the PickingLibrary. I haven't explicitly set any Bounds on any of my objects. When I pick I get the following error:
Code:
Exception in thread "Render Thread" java.lang.NullPointerException
at org.xith3d.picking.PickingLibrary.getPickCandidates(PickingLibrary.java:118)
at org.xith3d.picking.PickingLibrary.pickNearest(PickingLibrary.java:395)
at org.xith3d.picking.PickingLibrary.pickNearest(PickingLibrary.java:424)
at org.xith3d.picking.PickingLibrary.pickNearest(PickingLibrary.java:450)

Anyone have any ideas?

Also once I get this working will I have to set the bounds for my objects, or will it calculate them automatically from geometries?
Logged

"I like my method, what was my method again?" - Jon
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 15. January 2007, 07:06:37 am »

I'm trying to use the PickingLibrary. I haven't explicitly set any Bounds on any of my objects. When I pick I get the following error:
Code:
Exception in thread "Render Thread" java.lang.NullPointerException
at org.xith3d.picking.PickingLibrary.getPickCandidates(PickingLibrary.java:118)
at org.xith3d.picking.PickingLibrary.pickNearest(PickingLibrary.java:395)
at org.xith3d.picking.PickingLibrary.pickNearest(PickingLibrary.java:424)
at org.xith3d.picking.PickingLibrary.pickNearest(PickingLibrary.java:450)

Anyone have any ideas?

Also once I get this working will I have to set the bounds for my objects, or will it calculate them automatically from geometries?

I will have a look at this NullPointerException this evening.

The Bounds are always autocomputed by default.

Marvin
Logged
Patheros
Getting respectable
***
Offline Offline

Posts: 267


Dead Dolphin


View Profile WWW Email
« Reply #2 on: 17. January 2007, 08:56:10 pm »

Hey Marvin, I was wondering if you looked at this yet.
Logged

"I like my method, what was my method again?" - Jon
Patheros
Getting respectable
***
Offline Offline

Posts: 267


Dead Dolphin


View Profile WWW Email
« Reply #3 on: 05. February 2007, 06:37:55 am »

Just for the record, I found the cause of this problem in my own code.
Logged

"I like my method, what was my method again?" - Jon
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #4 on: 05. February 2007, 01:28:33 pm »

Just for the record, I found the cause of this problem in my own code.

Oh, cool Smiley.

Wow I just forgot this issue. Sorry. But I have had my hands on the Bounds managing code the last days. Should be everything alright.

Marvin
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic