Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (636)
Games in Android Showcase (178)
games submitted by our members
Games in WIP (687)
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]
1  Java Game APIs & Engines / Xith3D Forums / Re: Bugs in JOAL Sound? on: 2006-10-31 15:22:45
Isn't it always better to commit the fixes to the original code base? That's Open Source, isn't it?
EDIT: Do you have more bugs fixed? If so, please share your fixes.
Yes I agree. I posted my modifications here because I would like you to review my changes and not just commit something to SVN and possibly break other things. I am not very familiar with xith internals and have been concentrating to game logic instead. I don't have any other fixes. Some Fixed<something> classes (like FixedJOALSoundSourceImpl) are basically just copy pasted code with new name to get rid of issues caused by extending xith3d classes.
Because I am not familiar with xith internals maybe someone could know what's wrong with updateSound after fixing the setSoundOrientation. The change in my version is not suitable to be put in version control, because of just manual setting
listenerOrientation.set(0, 0, -1);
. That would work with my game, but someone other's game might break. Smiley

And someone might know what consequences of skipping the call alc.alcMakeContextCurrent(context); has.

That's not a problem. Your game seems cool, would you want it to be mentioned on "Featured Projects" page ?
Thanks, but I think the game is not yet ready for public. Smiley

2  Java Game APIs & Engines / Xith3D Forums / Re: Bugs in JOAL Sound? on: 2006-10-30 20:08:12
Hi Amos,
thanks for the interest. Smiley There is one screenshot in The game can also be played using web start or downloaded. Even though I have developed it so long time the game is still very immature. But basic dogfight should be able to be played in multiplayer.
Too bad I have so few time that I would like to develop my game more instead of contributing much to xith3d. I appreciate your hard work but I like to be like a parasite who enjoys other's work doing nothing itself Tongue

3  Java Game APIs & Engines / Xith3D Forums / Bugs in JOAL Sound? on: 2006-10-30 19:41:04
Hi all,
I have used xith3d for about two years to build a game. I think I have found some bugs and done some private fixes. Nowadays when you guys are doing heavy modifications to code I would like fixes to be put directly to xith3d version control so I do not need to fix these manually every time I get a new build.  Wink

I think one bug is in
 public void setListenerOrientation(Tuple3f direction, Tuple3f up) {
  209         al.alListenerfv(AL.AL_ORIENTATION,new float[]{direction.z, direction.y, direction.z,
  210         up.x,up.y,up.z});
  212         // To change body of implemented methods use Options | File Templates.
  213     }

First direction.z should be direction.x:
  209         al.alListenerfv(AL.AL_ORIENTATION,new float[]{direction.x, direction.y, direction.z,
  210         up.x,up.y,up.z});

As a side effect sound directions are not not working correctly. In my game player is looking to -Z coordinate. After fixing the alListenerfv-call sounds are coming from wrong direction. I have had to do this in
private void updateSound() {

        Matrix3f m = new Matrix3f();
        listenerOrientation.set(0, 0, -1);        // NOTE! Set orientation manually. Otherwise direction is somehow wrong!
        soundDriver.setListenerOrientation(listenerOrientation, new Vector3f(0,1,0));

I noticed that in SVN this logic is moved to Do you guys have had issues with sound orientation with JOAL?

Another problem in is:
  185         System.out.println("Making sound context current");
  186         alc.alcMakeContextCurrent(context);

When I call soundDriver.shutdown(); execution hangs in the line 186. To get JOAL working I have had to comment the line out. I am not sure if this is bug in xith but I have not got it working otherwise Smiley

Currently I have not bothered to do those changes in local xith3d sources but fixed them inside the game extending base classes and creating FixedView, FixedJOALSoundDriver, FixedJOALSoundSourceImpl etc. Now I have noticed that there are all kinds of new functionality added like Xith3DEnvironment and HUD. When using those Fixed<blah blah> classes usage of new functionality is harder. It would be great if someone could check if there really is bugs in xith3d and fix them with the help of my code snippets. Cool

Pages: [1]
Dwinin (70 views)
2015-11-07 13:29:08

Rems19 (80 views)
2015-10-31 01:36:56

Rems19 (72 views)
2015-10-31 01:32:37

williamwoles (106 views)
2015-10-23 10:42:59

williamwoles (92 views)
2015-10-23 10:42:45

Jervac_ (106 views)
2015-10-18 23:29:12

DarkCart (134 views)
2015-10-16 00:58:11

KaiHH (116 views)
2015-10-11 14:10:14

KaiHH (155 views)
2015-10-11 13:26:18

BurntPizza (169 views)
2015-10-08 03:11:46
Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30

Rendering resources
by Roquen
2015-10-15 07:40:48

Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11 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‑
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!