Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (480)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (546)
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
1  
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 http://www.xith.org/ "Featured Projects" page ?
Thanks, but I think the game is not yet ready for public. Smiley

-ari
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 http://atr.dy.fi/~atr/aos/. 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

-ari
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 JOALSoundDriverImpl.java:
1  
2  
3  
4  
5  
6  
7  
 public void setListenerOrientation(Tuple3f direction, Tuple3f up) {
  208
  209         al.alListenerfv(AL.AL_ORIENTATION,new float[]{direction.z, direction.y, direction.z,
  210         up.x,up.y,up.z});
  211
  212         // To change body of implemented methods use Options | File Templates.
 213     }


First direction.z should be direction.x:
1  
2  
  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 View.java
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
private void updateSound() {

        getTransform().get(listenerPosition);
        listenerOrientation.set(1,0,0);
        Matrix3f m = new Matrix3f();
        getTransform().getRotation(m);
        m.transform(listenerOrientation);
        listenerOrientation.normalize();
        listenerOrientation.set(0, 0, -1);        // NOTE! Set orientation manually. Otherwise direction is somehow wrong!
       soundDriver.setListenerOrientation(listenerOrientation, new Vector3f(0,1,0));
        soundDriver.setListenerPosition(listenerPosition);
    }

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

Another problem in JOALSoundDriverImpl.java is:
1  
2  
  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

-ari
Pages: [1]
 

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 (20 views)
2014-08-19 09:29:53

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

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

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

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

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

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

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

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

BurntPizza (64 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!