Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (581)
games submitted by our members
Games in WIP (500)
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  
  Fast math api (including vectors)  (Read 3314 times)
0 Members and 1 Guest are viewing this topic.
Offline zingbat

Senior Member




Java games rock!


« Posted 2005-10-28 23:54:52 »

Im looking for a FREE and very fast math api for java that includes vectors and matrices. Can you recomend anything ? Something compatible with jogl or lwjgl would be preferable.
Offline cborders

Junior Member





« Reply #1 - Posted 2005-10-28 23:58:26 »

The LWJGL has some math classes, I haven't verified their speed, but they seem ok to me! Smiley
Offline darkprophet

Senior Member




Go Go Gadget Arms


« Reply #2 - Posted 2005-10-29 00:32:08 »

vecmath?

DP

Friends don't let friends make MMORPGs.

Blog | Volatile-Engine
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 605
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #3 - Posted 2005-10-29 02:20:49 »

You could use the parallel architechture of the GPU and use PBuffers (GL_FLOAT) and fragment-shaders on RGB components. It might not be what you had in mind, but a GPU is a very useful toy.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Mark Thornton

Senior Member





« Reply #4 - Posted 2005-10-29 11:30:13 »

This may be of interest
http://hoschek.home.cern.ch/hoschek/colt/
Offline zingbat

Senior Member




Java games rock!


« Reply #5 - Posted 2005-10-29 12:33:41 »

Thanks i will give these apis a try.

You could use the parallel architechture of the GPU and use PBuffers (GL_FLOAT) and fragment-shaders on RGB components. It might not be what you had in mind, but a GPU is a very useful toy.

Wow. That certainly looks interesting. But can it outperform a cpu ?

This bring me memories of when i had an Amiga and was loading chipset assembler code in the video memory to be executed by the Fat Agnus chip. Good times.
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 605
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #6 - Posted 2005-10-29 13:25:42 »

It will dwarf the fastest cpu available.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Mark Thornton

Senior Member





« Reply #7 - Posted 2005-10-29 16:12:26 »

It will dwarf the fastest cpu available.
But possibly not if you try to transfer the results back to the CPU. The communication path between the CPU and GPU is often very asymmetric.
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 605
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #8 - Posted 2005-10-29 17:00:30 »

That's why you want to send and receive the data one time. Do everything else in shaders.

Ofcourse this is only efficient if you are processing enormous amounts of data.

I'm building a benchmark now Smiley

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 605
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #9 - Posted 2005-10-29 18:53:35 »

Transforming 3d vertices by 4x4 matrix: (on 32bit floats)

CPU P4, 2.4GHz: 80M tris/s
GPU 9700pro: 2840M tris/s (without data upload/readback)
GPU 9700pro: 2.4M tris/s (with data upload/readback)

So much for my previous statements Smiley


If you have data that can remain on GPU (like particle-engines) you'll have extreme performance.
But it's not really usable for anything else, it seems.


Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline javazoid

Junior Member




Where's Flender?


« Reply #10 - Posted 2005-10-31 09:07:36 »

maybe http://www.gpgpu.org/ is what you're looking for.

Offline Jeff

JGO Coder




Got any cats?


« Reply #11 - Posted 2005-11-08 20:46:16 »

If your looking for fast CPU based math, based on Shawn Kendall's last tests, the built in math in the 1.4 and beyond VM is damn fast.

If your looking to offload to the gpu, yeah see gpgpu.


Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
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.

xsi3rr4x (57 views)
2014-04-15 18:08:23

BurntPizza (55 views)
2014-04-15 03:46:01

UprightPath (68 views)
2014-04-14 17:39:50

UprightPath (51 views)
2014-04-14 17:35:47

Porlus (68 views)
2014-04-14 15:48:38

tom_mai78101 (93 views)
2014-04-10 04:04:31

BurntPizza (153 views)
2014-04-08 23:06:04

tom_mai78101 (249 views)
2014-04-05 13:34:39

trollwarrior1 (205 views)
2014-04-04 12:06:45

CJLetsGame (213 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!