Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (788)
Games in Android Showcase (234)
games submitted by our members
Games in WIP (860)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  PickTool efficient enough for gaming?  (Read 3148 times)
0 Members and 1 Guest are viewing this topic.
Offline bert

Junior Devvie

Miles of road and miles of code

« Posted 2007-03-06 23:08:49 »

I'm creating a game using PickTool as my collision detection. I've come up with a large number of ways to optimize it, however my computer is really slow and I don't know if it's my program slowing it or just it being slow. Would you use it?

w00t, i'm winning
Offline Herkules

Senior Devvie

Friendly fire isn't friendly!

« Reply #1 - Posted 2007-03-07 12:22:29 »

How do you relate your problem to PickTool?

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline tom
« Reply #2 - Posted 2007-03-09 15:45:28 »

1) PickTool and fastpick creates garbage. This may be a problem depending on the scene. I've used it for collision detection and it generated 50MB of garbage a second.

2) Java3D does a good job of culling objects using bounding volumes. But once an object is testet, it goes threw all the triangles. A custom implementation could use a BSP three to speed up collision detection.

3) you don't get penetration depth or time of collision when using anything else than a ray. A custom implementation can do collision detection against boxes, cylinders or spheres in in a way you cant using Java3D picking.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline shawnkendall

Senior Devvie

Exp: 20 years

« Reply #3 - Posted 2007-03-12 00:17:10 »

The issue really isn't just Java3D's picking.  Picking computes intersections, not just collision detection.

Picking is rarely used as a general case collision detection system because it is inherently much more expensive than collision detection, which is simply the overlap of geometries or bounds, and for most cases, intersection is more information than is needed to solve the problem.

Picking is really well suited to say... picking.  that's why it's call that :-)

Shawn Kendall
Cosmic Interactive, LLC
Offline bert

Junior Devvie

Miles of road and miles of code

« Reply #4 - Posted 2007-03-12 22:48:57 »

I found out what was crapping up my program... my custom subclass of Canvas3D overwrote postRender(), which slows it down considerably.

w00t, i'm winning
Offline Jeff

JGO Coder

Got any cats?

« Reply #5 - Posted 2007-04-10 15:10:56 »

Simple Java3D programs often use a pick ray to do things like floor following and simple collision prediction.

JNWN used a pick ray for floor following in its first version and it ran just fine, no GC pauses, no slow downs.

BUu its a poor tool for "real" game collision handling.  Most games use bounding volumes.

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!
Pages: [1]
  ignore  |  Print  

hadezbladez (2109 views)
2018-11-16 13:46:03

hadezbladez (804 views)
2018-11-16 13:41:33

hadezbladez (2080 views)
2018-11-16 13:35:35

hadezbladez (415 views)
2018-11-16 13:32:03

EgonOlsen (3448 views)
2018-06-10 19:43:48

EgonOlsen (3677 views)
2018-06-10 19:43:44

EgonOlsen (2272 views)
2018-06-10 19:43:20

DesertCoockie (3002 views)
2018-05-13 18:23:11

nelsongames (3072 views)
2018-04-24 18:15:36

nelsongames (3852 views)
2018-04-24 18:14:32
Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!