Picking a point3f

I’ve scanned the xith-tk source, and there is nothing in there about picking a point that I could see. Any chance of digging out your old code if you are sure it was xith and not java3d you did it with.

Endolf

go to Documents & Files -> toolkit -> util -> collision detection -> Collision System
https://xith-tk.dev.java.net/servlets/ProjectDocumentList?folderID=2404&expandFolder=2404&folderID=0

and for thred here in the forums:
http://192.18.37.44/forums/index.php?topic=5549.msg75762;topicseen#msg75762

Brilliant.

Thanks for that. I saw the thread before, but I couldn’t find thinks like Ray in the xith3d source. I had mistakenly assumed that the xith3d-tk CVS repository contained all of the toolkit.

I shall now port my Java3D hud across to Xith :slight_smile:

Endolf

Two HUD systems (mine and yours) are better than one. Go on !

There are a good number not in CVS.

It would be good to see some of the important ones, such as this one perhaps moved across so they can be maintained and included in every build. I might talk to scott about moving his XML serialisation code across too.

Cool. Do you plan to make it public?

Cheers,

Will.

It depends. In terms of usage, in the general case, it probably provides less facilities than the overlay system. The one thing it does handle though, is multiple layers. I found with the UIWindow stuff, that when I had a large JPanel with an image on it, and then a few buttons over the top, the render performance was awful, and I got huge pauses when pressing buttons or updating text. When trying to do it as seperate UIWindows I found that my JButtons etc where not getting the mouse/keyboard events and things didn’t work.

In my HUD, the only thing you gain is being able to specify the layers of things, you still have to draw everthing in the paint method. You do gain the ability to specify the location and size of your components as a mix of abosulte pixel size/positions and/or relative %'s of the canvas.

I’m not sure you gain enough to make it worth whilse, and you lose the ability to autmatically handle JComponents, on the other hand, I was in the process of adding JComponents to the Java3D version, and if I can get enough of the code base common, then the Xith3D port would get them too.

Then there is also the issue that my HUD uses picking to create objects in the scene in perspective projection, and I’m sure that in Xith I should be able to mix parallel and projection, this curing the problems that I originally wrote the HUD for in Java3D :slight_smile:

It all depends on my time to some extent :slight_smile:

Endolf