Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (541)
Games in Android Showcase (133)
games submitted by our members
Games in WIP (604)
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  
  sound space dispose  (Read 864 times)
0 Members and 1 Guest are viewing this topic.
Offline aNt

Senior Devvie




AFK


« Posted 2004-02-12 05:56:39 »

hello all

i have ported fmod to java over the last few days and im plaining to put it into xith3d Smiley as u would exspect.

now fmod has its own loading audio and managing stuff built in. and it kicks openal. but i am running into a few problems with simple tests before i try and get things embeded to a nice driver for xith3d. [fmod wont need the SoundBuffer hope that wont upset things]

i have a model on screen and move towards the model using the lookat (all ok here). now when the model gets to the edge of the screen its:

1  
      Vector3f q1 = bTransGroup.getVworldBounds().getCenter();


the sounds location nologer updates. i take it this is because its being cleaned up from rendering. but its location is lost to me. i no its still updateing because when i move the view backwards the model comes back into view at the correct steps.

also the object flashs out of view to soon. as if its like half off the view area then dissapers in a flash (looks bad).

so i would exspect i need to look deeper into the objects transforms. any pointers to these little things would be cool. i exspect its working ok in the other drivers but its hard to tell at this time. the rolloff / fade of the sound in xith seems to have problems at the moment.

we will have it sorted mind Smiley
Offline princec

« JGO Spiffy Duke »


Medals: 439
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #1 - Posted 2004-03-25 09:31:46 »

Hey aNT, I don't suppose you'd care to keep your wrapper distinct from Xith... we're really interested in it in its own right to tack on to LWJGL as the "pro's" audio system of choice. OpenAL is still pretty immature and knackered...

Cas Smiley

Offline Yuri Vl. Gushchin

Senior Devvie




Speak Java!


« Reply #2 - Posted 2004-03-26 09:27:07 »

Would be great to have a testcase.

As of sound activation, check View.setSoundActivationRadius(...) and related code in View.java.

Problem you experience may be caused by the fact that you have your sound added to a group, and scene traversal stops not on the sound, but at higher layer - Xith does not traverse subtree when the parent's bounds are out of vew.

What you can do is to use setIgnoreBounds(true) on all the groups above your Sound node to enforce then to be traversed even if they are out of screen. Do this only for groups, so you don't get serious performance impact on rendering (shapes will still be out of rendering).

Yuri

Yuri Vl. Gushchin
JProof Group
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline aNt

Senior Devvie




AFK


« Reply #3 - Posted 2004-03-26 10:04:00 »

we i have a fully working fmod wrapper now. all seems ok. i'm thinking of dumping part of the way fmod handles volume in 3d and coding a nicer one myself. i want streams to work with a nicer max-min distance on sound nodes. But on the whole, eveything fmod can do u can now call in Java.

xith- yer i will try and look into this when i have a new soundObject. then post stuff up. i keep getting lost in the implementing into xith3d (me just not as cool as u dudes).

also need to get me camera working so it makes sence whats the sound is doing.. getting there (see other topic) Smiley.

audio is me bag- 3d is a headfunk.
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.

BurntPizza (8 views)
2014-12-27 22:38:51

Mr.CodeIt (13 views)
2014-12-27 04:03:04

TheDudeFromCI (17 views)
2014-12-27 02:14:49

Mr.CodeIt (25 views)
2014-12-23 03:34:11

rwatson462 (56 views)
2014-12-15 09:26:44

Mr.CodeIt (46 views)
2014-12-14 19:50:38

BurntPizza (92 views)
2014-12-09 22:41:13

BurntPizza (113 views)
2014-12-08 04:46:31

JscottyBieshaar (86 views)
2014-12-05 12:39:02

SHC (97 views)
2014-12-03 16:27:13
How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21

Resources for WIP games
by kpars
2014-12-18 10:26:14

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