Java-Gaming.org Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (762)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (846)
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 2943 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 picking...it'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
http://www.facebook.com/BermudaDash
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!

http://wiki.java.net/bin/view/Games/JeffFAQ
Pages: [1]
  ignore  |  Print  
 
 

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

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

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

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

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

nelsongames (835 views)
2018-04-24 18:14:32

ivj94 (1283 views)
2018-03-24 14:47:39

ivj94 (400 views)
2018-03-24 14:46:31

ivj94 (1069 views)
2018-03-24 14:43:53

Solater (417 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05
java-gaming.org 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‑gaming.org
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!