Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (577)
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  
  JOODE: trying to understand t_larkworthy's convex-hull code  (Read 1026 times)
0 Members and 1 Guest are viewing this topic.
Offline arne

Senior Duke




money is the worst drug- we should not let it rule


« Posted 2006-03-28 16:33:47 »

Jeah - I've not much to do currently... (If you know something we need more urgently than this convex-hull code - I could also do that)

I'm currently trying to understand Tom's code. 4 eyes mostly find the error more easily...

I'm wondering about what I found here in the constructor of Plane:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
   public Plane(float a, float b, float c, float d) {
      float total = (float) Math.sqrt(a*a+b*b+c*c);
      this.a = a/total;
      this.b = b/total;
      this.c = c/total;
      this.d = d/total;
     
      float dividor = (float) Math.sqrt(a*a+b*b+c*c);
     
      nx = a / dividor; //turns out I was trying to do exactly the same thing
      ny = b / dividor;
      nz = c / dividor;
      p = d / dividor;  
     
   }


divider = total
nx = this.a
ny = this.b
nz = this.c
p = this.d

why compute everything twice? (Ok doesn't seem to be very problematic, but it's bugging me none the less)

+ from my first impression it looks well commented Cheesy

:: JOODE :: Xith3d :: OdeJava ::
Offline t_larkworthy

Senior Duke


Medals: 1
Projects: 1


Google App Engine Rocks!


« Reply #1 - Posted 2006-04-02 15:24:27 »

haha! don't read that code!

That plane class has been a massive pain in the **** I started off with one representation, then realised I needed a different one. Then it all converged....

I don't think I have checked in the latest version of the code for the convex stuff, so you probably don't want to mess around with it too much.

If you want somthing to do then I think getting the joints powered and limited is pretty important. (oh and when I say powered I don't mean angular motors, I mean being able to set a desired length etc. the LCP solver has all the functionality implemented, it just needs the code adding in the Joint classes)

Runesketch: an Online CCG built on Google App Engine where players draw their cards and trade. Fight, draw or trade yourself to success.
Offline hdietrich

Junior Duke




Harald Dietrich


« Reply #2 - Posted 2006-04-11 09:24:54 »

I just saw that in the current head of ODE cvs is an implementation of convex geometry and collision as well. Does anybody know, if t_larkworthy is porting this code or if is is trying to do another implementation?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline t_larkworthy

Senior Duke


Medals: 1
Projects: 1


Google App Engine Rocks!


« Reply #3 - Posted 2006-04-11 10:11:02 »

Hello. I am doing a new implementation. Based on the DEEP algorithm. Though there are a few problems with that algorithm I did not expect...
I wil get it done as soon as I get this heap of work off my desk...

Runesketch: an Online CCG built on Google App Engine where players draw their cards and trade. Fight, draw or trade yourself to success.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Longarmx (49 views)
2014-10-17 03:59:02

Norakomi (39 views)
2014-10-16 15:22:06

Norakomi (31 views)
2014-10-16 15:20:20

lcass (35 views)
2014-10-15 16:18:58

TehJavaDev (65 views)
2014-10-14 00:39:48

TehJavaDev (65 views)
2014-10-14 00:35:47

TehJavaDev (55 views)
2014-10-14 00:32:37

BurntPizza (72 views)
2014-10-11 23:24:42

BurntPizza (43 views)
2014-10-11 23:10:45

BurntPizza (84 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!