Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (481)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (548)
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  
  Is there a small geometry library for java out there?  (Read 1648 times)
0 Members and 1 Guest are viewing this topic.
Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Posted 2013-11-02 20:24:12 »

What I need is a small, simple geometry library with shapes and intersection. I googled it, and nothing useful came up.

Anyone know of one?

Offline JFixby
« Reply #1 - Posted 2013-11-02 20:46:30 »

what for?

my dev log: http://jfix.by/
Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #2 - Posted 2013-11-02 20:49:53 »

For my game engine MERCury. I realized that I cannot re-invent the wheel with geometry, so I want to get a small, simple library.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline opiop65

JGO Kernel


Medals: 154
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #3 - Posted 2013-11-02 20:52:16 »

Its better just to do it yourself, honestly. If you're having trouble with collision detection, thats a whole other issue, but a basic geometry library isn't hard to create, just tedious.

Edit: I found this:
http://tsusiatsoftware.net

Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #4 - Posted 2013-11-02 20:58:13 »

Ok, thanks  Grin.
I usually make my own libraries, and for geometry, I just felt that I might be doing something less efficient than someone else has...
But if it is that easy, then I will just do it for myself.
Thanks!

Offline JFixby
« Reply #5 - Posted 2013-11-03 17:33:46 »

I dunno, maybe it make sense for you to use Box2D wrapped by libGDX. Check it out anyway.

my dev log: http://jfix.by/
Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #6 - Posted 2013-11-03 21:50:32 »

I said 'small' and 'simple' 'geometry library,' not a physics library!

Offline Jeremy
« Reply #7 - Posted 2013-11-03 22:47:55 »

I said 'small' and 'simple' 'geometry library,' not a physics library!

http://www.vividsolutions.com/jts/JTSHome.htm

I haven't used it personally, but it is quite robust, mature and it works in pure Java which is also a plus.

JevaEngine, Latest Playthrough (This demo is networked with a centralized server model)

http://www.youtube.com/watch?v=rWA8bajpVXg
Offline opiop65

JGO Kernel


Medals: 154
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #8 - Posted 2013-11-04 01:33:30 »

Yes, but we all know box2D is a full out physics library, which is not what he needs. A simple class that creates geometry based on coordinates that are passed in should be more than sufficient. I don't see the need to overkill it with box2D, not that its a bad library, its actually very good.

Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #9 - Posted 2013-11-04 01:53:19 »

Quote
then I will just do it for myself.

I just said, I made it my own. Went wonderfully. End of conversation.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline CommanderKeith
« Reply #10 - Posted 2013-11-04 05:18:58 »

Hi,
I had the same problem and tried to make one: straightedge (https://code.google.com/p/straightedge/). It's on google code and you can download the source. You would be most interested in the KPolygon and KPoint classes. They contain most of the useful geometry methods.
For more advanced geometry stuff, try JTS. It's more advanced than my library, but not made for speed.
Cheers,
Keith

Offline StumpyStrust
« Reply #11 - Posted 2013-11-04 06:44:58 »

What is wrong with the ones in java? You said you looked online but never looked at java? Java has everything you want. Make a polygon and test other polygons against it.

I would NOT write your own. They are simple but hard to make fast. CommanderKeiths like is good. Use that lib.

Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #12 - Posted 2013-11-04 12:12:02 »

For the last time! It is a done deal! I already just made m'y own. Worked beutifully!

Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #13 - Posted 2013-11-04 18:30:02 »

It's a discussion forum, people are discussing. You don't get to end a thread, even if you started it. Smiley

libgdx has a Rectangle, etc class. There is an Intersector class and most if it would be easily ported for use anywhere.

Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #14 - Posted 2013-11-04 19:40:44 »

Ok, sorry  Clueless.

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.

atombrot (27 views)
2014-08-19 09:29:53

Tekkerue (25 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (15 views)
2014-08-16 06:20:21

Tekkerue (22 views)
2014-08-16 06:12:11

Rayexar (61 views)
2014-08-11 02:49:23

BurntPizza (39 views)
2014-08-09 21:09:32

BurntPizza (31 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38

BurntPizza (67 views)
2014-08-03 02:57:17
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

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!