Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (121)
games submitted by our members
Games in WIP (577)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1] 2 3 ... 14
1  Discussions / Miscellaneous Topics / Re: Graphing / Chart Library Help on: 2007-02-27 15:15:10
Thanks for the suggestions.  Unfortunately, neither of those does x/y/z data.  The 3d pie is really only a 2d chart, presented in 3d.

Anyone else have suggestions?

Thanks,
DrA>
2  Discussions / Miscellaneous Topics / Graphing / Chart Library Help on: 2007-02-26 21:19:30
I'm trying to find a charting library to do line x/y and 3d plots.  My max data size would be about 10 meg of x/y/z data.

Does anyone have any experience with scientific visualization using java?

Recommendations on libraries to use?

Thanks,
DrA>
3  Java Game APIs & Engines / Java Sound & OpenAL / Re: Recording Audio Via JWS and XFer Using ftp on: 2007-02-12 16:14:44
Thank you both for the replies.  I'll have to poke around a bit and see how the implementation works out.

Thanks,
Dr.A>
4  Java Game APIs & Engines / Java Sound & OpenAL / Recording Audio Via JWS and XFer Using ftp on: 2007-02-08 20:18:57
I need to make a simple app that can record speech for me. This application will be used by non-technical people, who have little to no understanding of audio formats, specs, etc.

This is what intend to do -

- Record audio on the users computer
- Play audio on the users computer
- Save the audio to a file on their computer
- Send the file to my computer
- Run using JWS

My thought is to run a simple ftp server on my computer (on a non-standard port). The app would ftp the audio files up after they have been recorded.

The user would do the following -

1 - Run the app via JWS
2 - Press a button to start the recording
3 - The screen would present a word to the user, which they say
4 - The app pauses a few seconds and the shows another word
5 - After say 10 words, the application automatically stops recording
6 - The file is transferred up to the server
7 - The repeat 2 - 6 a few times for different sets of words
8 - They are now done and exit the app

I'm sure there are ftp libraries out there for java. The thing I'm not sure of is how to do the recording, ie what approach - JMF, Java Sound, other?

Can you all share some experience and make some suggestions?

Cheers,
DrA>
5  Java Game APIs & Engines / Java Sound & OpenAL / Re: Microphone on Macintosh? on: 2007-02-08 20:17:31
As I recall on my Mac Powerbook, only 44.1khz formats are supported.  I don't know why that is.  I remember making a quick app which showed the formats that were valid for recording, but its long gone now.  You should be able to gen one up fairly quickly though.

Cheers,
DrA>
6  Java Game APIs & Engines / Tools Discussion / Angelcode BMFont Creator for OSX and Linux on: 2007-01-04 02:27:30
I wanted to create some of my own font files to use with the AngelCode font loader. I can't find any tool to create them, except for the windows one at the Angelcode website.

http://www.angelcode.com/products/bmfont/

Does anyone have any ideas?  It seems like there might be a way to create a java tool to generate the files, then we'd all get to use this nice font solution for openGL.

Dr. A>
7  Game Development / Shared Code / Re: Triangulizing any text, any Font, any Shape, for 3d use... on: 2007-01-03 16:34:40
Does anyone have the source for this, as the links are dead.  Sad

Cheers,
Dr. A>
8  Game Development / Newbie & Debugging Questions / Re: Solving Simple tank problem with matrices on: 2006-10-20 05:41:16
It shouldn't be the problem.  The problem is wholly independent of 2d drawing in java.  So, my Y going left and X going out the front of a vehicle should be acceptable.  It might be a tad confusing, but I believe its fine.

I tried to make this problem independent of right and left hand coordinate systems, by reducing it to a 2d one.

Other thoughts?

Dr. A>
9  Game Development / Newbie & Debugging Questions / Solving Simple tank problem with matrices on: 2006-10-20 00:12:03
Ok, so I've tried a few times to figure this out and keep getting the answer wrong.  I've attached a picture to make it more clear.

You have a target point, which is relative to a missile.  I want to find the target location relative to the tank turret's coordinate system.

target location relative to missile coordinate system = (8, -4)
tank location relative to missile coordinate system = (4, 0)
turret is rotated 45 degrees from the front of the tank
The coordinate system is X out the front of a vehicle and Y to the left

Using basic algebra, you can find the answer almost trivially.  I want to understand the process when using rotation matrices.

I thought the answer should be -

R(-45)R(90)(target pos - tank pos)

Where R(x) represents the rotation matrix of x degrees.

I seem to end up getting the correct number (4* sqrt(2), 0), but I end up with it being negative, which isn't correct.

So what is the correct way of doing this?

Cheers,
Dr. A>

PS - I was using column vectors, so my rotation matix looked like:

1  
2  
3  
4  
5  
6  
7  
cos x  -sin x
sin x  cos x

so P2 = RP1

| x2 |  =  | cos x  -sin x | | x1 |
| y2 |     | sin x   cos x | | y1 |

10  Game Development / Newbie & Debugging Questions / Re: Detecting specific mouse movements on: 2006-10-10 21:53:13
Interesting question...

You could try fitting the user's mouse points to a pattern.  You'd do something like this for a circle

- Collect X number of mouse points (could be based on time or just the last x mouse movements, either way you have a collection of them)
- Find the points with the smallest x and y
- Find the points with the largest x and y
- Take the four points and use the largest and smallest values to construct two new points, which define a bounding box that encompasses all points
- Calc the center of the box
- Create a circle shape, centered in the bounding box with a radius of half the length of the bounding box (you now have a large circle inscribed in a box)
- Create a smaller circle, centered, that extends to say 1/4 the length of the box.
- Now count the number of points that exist between the two circles

You'd have to decide an appropriate number and a tolerance on the relative circle size.  This assumes you're trying to detect not only a circle, but roughly a certain size of circle as well.

Pictures might make more sense in describing this back of the napkin type idea.

Regards,
Dr. A>
11  Discussions / Miscellaneous Topics / Re: Simple regex help on: 2006-09-18 15:11:04
Breakfast you are truly a Phoentic Warrior!

I label regex-s as evil, much the same way I label lex and yacc.  Everytime I try to learn about them, the description is just as confusing as the syntax.  I would learn far better with a bunch of examples and their results.  If I could just find that mixed in with the traditional explanations, I'd probably avoid the hate completely.

I recently used the Spirit library from Boost and found it to be excellent.  While not everything was intuitive to me, creating parsers and grammer rules just made sense.  Some day my Jedi powers will be strong enough to bring balance to my programming.  Until then, I'll keep using my Goto statements.  Smiley

Cheers,
Dr. A>
12  Discussions / Miscellaneous Topics / Re: Simple regex help on: 2006-09-17 20:16:09
This isn't a java project its so I can search through files on the command line and figure out which ones I need to examine.

I think cylab has the solution for me.  I can remember it for other cases!

Much thanks to all for their input.

Dr. A>


PS - <troll bait> While I understand how powerful regex-s can be, I think they are evil, just like perl!! </troll bait>
13  Discussions / Miscellaneous Topics / Re: Simple regex help on: 2006-09-14 21:03:59
I'm confused.  "*happy*" minus "unhappy"  doesn't look like a regular expression (regex)

Some examples of a regular expression would be -

[01234]   which would match a single number between 0 - 4
[0-4]  the same as above
\bword\b  matches word with nothing next to it, ie it can't be in the middle of other text

Thats about the sum total of my regex knowledge, hence my please for help.

Dr. A>
14  Discussions / Miscellaneous Topics / Simple regex help on: 2006-09-14 19:26:56
Can some regex guru tell me the magic incantation to match this situation -

- find the word happy

- ignore unhappy

- match happy starting or ending with anything else

examples which should match -

###happy###
-- happy --
   happy

I'm trying to search through some files in linux using grep, but I can't figure out how to construct the regex to do that.

Regards,
Dr. A>
15  Discussions / Miscellaneous Topics / Re: Lego NXT Robotics on: 2006-09-14 19:22:01
Thats a pretty cool card dealing robot.  What's more they incorporated the full black jack game.

I tried to contact the lejos team, but never got a response.  Sad

Has anyone gotten ahold of an NXT system yet?  They've been on sale in the US for awhile now.

Cheers,
Dr. A>
16  Java Game APIs & Engines / Java Sound & OpenAL / Re: is GAGESound right for me? on: 2006-09-07 18:53:13
I'd be interested in it.  The GAGE stuff shouldn't fall off the map, so an update like this would be good.

Dr. A>
17  Game Development / Networking & Multiplayer / Re: Using xstream with JWS / JNLP on: 2006-09-07 18:44:03
I was able to get things working, by signing the jars and setting the <all-permissions/> tag in the jnlp.  Smiley

Can someone tell me what other tags are available under the <security> section of the jnlp?  The docs at Sun don't mention anything other then the one I used.

Thanks,
Dr. A>
18  Game Development / Networking & Multiplayer / Using xstream with JWS / JNLP on: 2006-09-06 16:07:05
I've got an app that uses xstream (http://xstream.codehaus.org/) to serialize objects in and out for me. I can jar my application up and run it fine. When I try to deploy it using java web start, I get a security error.

Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission accessDeclaredMembers)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkMemberAccess(Unknown Source)
at java.lang.Class.checkMemberAccess (Unknown Source)
at java.lang.Class.getDeclaredFields(Unknown Source)
at com.thoughtworks.xstream.core.JVM.<clinit>(JVM.java:24)

Has anyone used xstream with jws?

Thanks,
Dr. A>
19  Java Game APIs & Engines / Java Sound & OpenAL / Re: JOAL and Java Web Start on: 2006-09-03 21:33:41
I tried the demos using JWS from the joal site.  They worked great!  I'll check the new release out and report back if there are any issues.

Thanks!

Dr. A>
20  Java Game APIs & Engines / Java Sound & OpenAL / Latest Release Not Working on OSX on: 2006-09-02 04:38:09
I tried to download and run the joal demos directly.  I posted on the the JWS versions, as they didn't work for me.

Unfortunately I can't get them to work when I have the jars local.  Here's what I'm getting

 java -cp joal-demos.jar:joal.jar:joal-natives-macosx-ppc.jar:jutils.jar:. demos.devmaster.lesson1.SingleStaticSource

net.java.games.joal.ALException: java.lang.UnsatisfiedLinkError: no joal_native in java.library.path
        at net.java.games.joal.ALFactory.initialize(ALFactory.java:60)
        at net.java.games.joal.ALFactory.getALC(ALFactory.java:85)
        at net.java.games.joal.util.ALut.alutInit(ALut.java:58)
        at demos.devmaster.lesson1.SingleStaticSource.initialize(SingleStaticSource.java:90)
        at demos.devmaster.lesson1.SingleStaticSource.main(SingleStaticSource.java:220)
Caused by: java.lang.UnsatisfiedLinkError: no joal_native in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
        at java.lang.Runtime.loadLibrary0(Runtime.java:822)
        at java.lang.System.loadLibrary(System.java:992)
        at net.java.games.joal.NativeLibLoader$1.run(NativeLibLoader.java:52)
        at java.security.AccessController.doPrivileged(Native Method)
        at net.java.games.joal.NativeLibLoader.<clinit>(NativeLibLoader.java:45)
        at net.java.games.joal.ALFactory.initialize(ALFactory.java:56)
        ... 4 more

Did I screw up my command line or is something broken?

Regards,
Dr. A>
21  Java Game APIs & Engines / Java Sound & OpenAL / Re: JOAL and Java Web Start on: 2006-09-02 03:26:55
When I tried to run the first JOAL JWS demo, I got silence.  Sad  I'm using the following -

Mac OSX 10.4.7
Powerbook

Here's a dump of the exception log from JWS -

Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Can not get proc address for method "alcCaptureCloseDevice": Couldn't set value of field "_addressof_alcCaptureCloseDevice" in class net.java.games.joal.impl.ALCProcAddressTable
   at com.sun.gluegen.runtime.ProcAddressHelper.resetProcAddressTable(ProcAddressHelper.java:68)
   at net.java.games.joal.impl.ALProcAddressLookup.resetALCProcAddressTable(ALProcAddressLookup.java:100)
   at net.java.games.joal.impl.ALCImpl.alcOpenDevice(ALCImpl.java:342)
   at net.java.games.joal.util.ALut.alutInit(ALut.java:62)
   at demos.devmaster.lesson1.SingleStaticSource.initialize(SingleStaticSource.java:90)
   at demos.devmaster.lesson1.SingleStaticSource$1.actionPerformed(SingleStaticSource.java:182)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
   at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
   at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
   at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
   at java.awt.Component.processMouseEvent(Component.java:5554)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
   at java.awt.Component.processEvent(Component.java:5319)
   at java.awt.Container.processEvent(Container.java:2010)
   at java.awt.Component.dispatchEventImpl(Component.java:4021)
   at java.awt.Container.dispatchEventImpl(Container.java:2068)
   at java.awt.Component.dispatchEvent(Component.java:3869)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
   at java.awt.Container.dispatchEventImpl(Container.java:2054)
   at java.awt.Window.dispatchEventImpl(Window.java:1774)
   at java.awt.Component.dispatchEvent(Component.java:3869)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
   at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: java.lang.RuntimeException: Unable to find and load OpenAL library
   at net.java.games.joal.impl.ALProcAddressLookup$DynamicLookup.dynamicLookupFunction(ALProcAddressLookup.java:64)
   at com.sun.gluegen.runtime.ProcAddressHelper.resetProcAddressTable(ProcAddressHelper.java:64)
   ... 29 more

Dr. A>
22  Discussions / Miscellaneous Topics / Re: Lego NXT Robotics on: 2006-08-07 20:18:45
It appears the lejos team has been working on the NXT version.  Here is a link to the gmame archive of listserv posts -

http://news.gmane.org/gmane.comp.java.lejos

I'm hoping christmas will provide me with an NXT kit.  Smiley

Dr. A>
23  Discussions / Miscellaneous Topics / Re: Lego NXT Robotics on: 2006-08-02 19:58:39
dsellars -

Much thanks!  Thats the first time I've been able to get ahold of solid documentation.  I still haven't found the application that ships with the NXT.  I'm suprised its that hard to find.  Of course I could be missing the obvious.  I've tried doing all kinds of searches and nothing comes up.

http://lejos.sourceforge.net/

is one of the java environments for the original Mindstorms kit, which you have.  You could always make a java game using the robot.  Smiley

Dr. A>
24  Discussions / Miscellaneous Topics / Re: Lego NXT Robotics on: 2006-08-02 15:38:19
None of you have ever swooned over Lego robotics?  Not even when they run Java?

Dr. A>
25  Discussions / Miscellaneous Topics / Lego NXT Robotics on: 2006-08-01 18:02:37
So Lego has come out with their latest Mindstorms robotics kit, the NXT.  Its got all the greatest stuff, lcd, bluetooth, usb, inputs, etc.  The old RIS kits eventually had a Java port done to them to use java as a development environment.

So here's my annoyance - No money to buy one right now.  Sad

I wanted to download their software to see how to program using their stock kit.  The problem is I can't locate a download anywhere.  Sad  What happens if someone loses their install CD?

Surely some of you out there have caught the NXT craze and are probably lucky enough to have a kit.   Anyone know how to get the software at least?

Cheers,
Dr. A>
26  Discussions / Miscellaneous Topics / Art of Illusion / JOGL on: 2006-01-25 20:57:01
I wondered if anyone has had this weird issue using Art Of Illusion (Java 3d modeler).

- Run the app.  Open the preferences screen.  It shows up and then disappears almost right away.

I'm using a Mac and have found a way around the problem.  If you have the preferences set to use openGL, it will do this.  If openGL is disabled, it won't.  To ensure the setting is correct, locate the preferences file (aoiprefs) in your home directory.  Its under Documents and Settings/(user name) on windows.  The property entry is -

useOpenGL

Switch it to true or false to change behavior.

When set to true, AOI uses jogl for its 3d views.  Anyone have any info on this?

Thanks,
Dr. A>
27  Games Center / 16K LWJGL Competition - 2005 / Re: How dead is this? on: 2005-10-28 15:29:54
Doh!  Well, prizes or no, I was looking forward to some good stuff.

Sigh.  I think it should still be a go.  What a great way to end the year!

Dr. A>
28  Game Development / Newbie & Debugging Questions / Re: Rotation of translucent images (png) on: 2005-10-27 15:23:07
Pre-rotating your images will certainly help.  Also, since you are using alpha you are going to take some slow down on the copying.

If you use transparent ie alpha 0 or 255, you will get some performance gain that way.  There used to be some sample code for a simple performance test of png with alpha on the forums here.  I didn't write it, but it was because of some similiar questions I had asked.  If I find it, I'll reply with a link to it.

HTH,
Dr. A>

PS - Do you have a sample app to demo?

PPS - Found a link
http://www.java-gaming.org/forums/index.php?topic=5407.0
29  Games Center / 16K LWJGL Competition - 2005 / How dead is this? on: 2005-10-26 15:59:29
I'm guessing this is a dead compo?  /sighs as 'Another One Bites The Dust' plays in background

Dr. A>
30  Discussions / Miscellaneous Topics / Re: Pirated P2P Games: Free Electronic Distribution for Independent Studios on: 2005-10-24 14:37:20
matzon - I wouldn't totally agree with the statment at 16'ish year olds don't have money.  They do - its called their overindulgent parents.  I see more parent's plunking down cash for their kids than I care to, especially since they take no interest in what the game is.

I've wanted to whack some parents for blinding purchasing Resident Evil for their 7 year old or GTA for that matter.

Dr. A>
Pages: [1] 2 3 ... 14
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

theagentd (20 views)
2014-10-25 15:46:29

Longarmx (53 views)
2014-10-17 03:59:02

Norakomi (47 views)
2014-10-16 15:22:06

Norakomi (35 views)
2014-10-16 15:20:20

lcass (39 views)
2014-10-15 16:18:58

TehJavaDev (69 views)
2014-10-14 00:39:48

TehJavaDev (69 views)
2014-10-14 00:35:47

TehJavaDev (61 views)
2014-10-14 00:32:37

BurntPizza (74 views)
2014-10-11 23:24:42

BurntPizza (47 views)
2014-10-11 23:10:45
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!