Java-Gaming.org Hi !
 Featured games (91) games approved by the League of Dukes Games in Showcase (757) Games in Android Showcase (229) games submitted by our members Games in WIP (844) games currently in development
 News: Read the Java Gaming Resources, or peek at the official Java tutorials
Pages: [1]
 ignore  |  Print
 JOODE: trying to understand t_larkworthy's convex-hull code  (Read 1917 times) 0 Members and 1 Guest are viewing this topic.
arne

Senior Devvie

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

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

Senior Devvie

Medals: 1
Projects: 1

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

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.
hdietrich

Junior Devvie

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?
t_larkworthy

Senior Devvie

Medals: 1
Projects: 1

 « 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

 EgonOlsen (44 views) 2018-06-10 19:43:48 EgonOlsen (24 views) 2018-06-10 19:43:44 EgonOlsen (46 views) 2018-06-10 19:43:20 DesertCoockie (201 views) 2018-05-13 18:23:11 nelsongames (126 views) 2018-04-24 18:15:36 nelsongames (125 views) 2018-04-24 18:14:32 ivj94 (866 views) 2018-03-24 14:47:39 ivj94 (127 views) 2018-03-24 14:46:31 ivj94 (770 views) 2018-03-24 14:43:53 Solater (142 views) 2018-03-17 05:04:08
 Java Gaming Resourcesby philfrei2017-12-05 19:38:37Java Gaming Resourcesby philfrei2017-12-05 19:37:39Java Gaming Resourcesby philfrei2017-12-05 19:36:10Java Gaming Resourcesby philfrei2017-12-05 19:33:10List of Learning Resourcesby elect2017-03-13 14:05:44List of Learning Resourcesby elect2017-03-13 14:04:45SF/X Librariesby philfrei2017-03-02 08:45:19SF/X Librariesby philfrei2017-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