Java-Gaming.org Hi !
 Featured games (84) games approved by the League of Dukes Games in Showcase (575) Games in Android Showcase (154) games submitted by our members Games in WIP (624) 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 1125 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

You cannot reply to this message, because it is very, very old.

 ClaasJG (30 views) 2015-04-27 13:36:51 BurntPizza (34 views) 2015-04-23 03:42:11 theagentd (37 views) 2015-04-22 16:23:07 Riven (51 views) 2015-04-16 10:48:47 Duke0200 (60 views) 2015-04-16 01:59:01 Fairy Tailz (43 views) 2015-04-14 20:13:12 Riven (47 views) 2015-04-12 21:36:37 bus hotdog (65 views) 2015-04-10 02:39:32 CopyableCougar4 (67 views) 2015-04-10 00:51:04 BurntPizza (72 views) 2015-04-06 22:06:58
 theagentd 23x BurntPizza 17x wessles 15x Spasi 13x kingroka123 11x alwex 11x 65K 11x Hanksha 7x Riven 7x chrislo27 7x kevglass 7x Olo 7x Ecumene 7x ra4king 7x Rayvolution 7x KevinWorkman 6x
 How to: JGO Wikiby Mac702015-02-17 20:56:162D Dynamic Lighting2015-01-01 20:25:42How do I start Java Game Development?by gouessej2014-12-27 19:41:21Resources for WIP gamesby kpars2014-12-18 10:26:14Understanding relations between setOrigin, setScale and setPosition in libGdx2014-10-09 22:35:00Definite guide to supporting multiple device resolutions on Android (2014)2014-10-02 22:36:02List of Learning Resources2014-08-16 10:40:00List of Learning Resources2014-08-05 19:33:27
 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