Java-Gaming.org Hi !
 Featured games (83) games approved by the League of Dukes Games in Showcase (539) Games in Android Showcase (132) games submitted by our members Games in WIP (603) 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 1061 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

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.
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?
 Games published by our own members! Check 'em out!
t_larkworthy

Senior Devvie

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.
 rwatson462 (31 views) 2014-12-15 09:26:44 Mr.CodeIt (23 views) 2014-12-14 19:50:38 BurntPizza (50 views) 2014-12-09 22:41:13 BurntPizza (84 views) 2014-12-08 04:46:31 JscottyBieshaar (45 views) 2014-12-05 12:39:02 SHC (59 views) 2014-12-03 16:27:13 CopyableCougar4 (57 views) 2014-11-29 21:32:03 toopeicgaming1999 (123 views) 2014-11-26 15:22:04 toopeicgaming1999 (114 views) 2014-11-26 15:20:36 toopeicgaming1999 (32 views) 2014-11-26 15:20:08
 Rayvolution 37x LiquidNitrogen 35x basil_ 31x HeroesGraveDev 27x BurntPizza 18x kevglass 17x appel 17x Gibbo3771 15x kpars 15x gouessej 14x princec 13x Riven 11x SHC 10x Ecumene 10x Spasi 9x pitbuller 9x
 Resources 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:27Resources for WIP games2014-08-01 16:20:17Resources for WIP games2014-08-01 16:19:50List of Learning Resources2014-07-31 16:29:50
 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