POV-Ray : Newsgroups : povray.general : POV-Ray 3D Sound System Server Time
2 Aug 2024 20:21:25 EDT (-0400)
  POV-Ray 3D Sound System (Message 21 to 30 of 40)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Rune
Subject: Re: POV-Ray 3D Sound System
Date: 19 Sep 2004 18:54:22
Message: <414e0e1e@news.povray.org>
Rune wrote:
> //               time         source                  sound
> sound_point_play(impact_time, concat("",particle_id), BoingSound)

Oops, I mean str(particle_id,0,0) instead of concat("",particle_id) ;)

Rune
-- 
3D images and anims, include files, tutorials and more:
rune|vision:  http://runevision.com
POV-Ray Ring: http://webring.povray.co.uk


Post a reply to this message

From: ingo
Subject: Re: POV-Ray 3D Sound System
Date: 21 Sep 2004 05:12:04
Message: <Xns956B71F178193seed7@news.povray.org>
in news:414e0d46@news.povray.org Rune wrote:

> ...but there can be lots of other reasons to change gain and pitch
> than just to simulate distance and doppler effect. For example I want
> my hovercraft to rise from the ground and into the air, and while
> doing this the sound of the engine rises both in volume (=gain) and
> in pitch. I can easily control this from within my POV-Ray file.

That's a dissapointment, OpenAL only knows about location and velocity, 
not acceleration. Hmmm, so for other effects one has to come up with one's 
own way to control pitch/gain. 

> What's left for the sound-file you propose? 

Sounds, source attributes, listener attributes, maybe buffer attributes, 
everything except spatial data, triggers (state) and the frame stuff.

Ingo


Post a reply to this message

From: Rune
Subject: Re: POV-Ray 3D Sound System
Date: 21 Sep 2004 10:08:43
Message: <415035eb$1@news.povray.org>
ingo wrote:
>> What's left for the sound-file you propose?
>
> Sounds, source attributes, listener attributes, maybe buffer
> attributes, everything except spatial data, triggers (state) and the
> frame stuff.

I'm not sure what attributes you mean. With pitch and gain categorized as
"frame stuff" there really is not much left. OpenAL is pretty simple. It
automatically controls doppler effect and distance-related loudness, but
besides that one have to specify things manually. It also doesn't handle
phase, delay, fade-in or fade-out or other effects.

Still, having access to OpenAL's sound rendering is superior to what has
been available to POV-Ray animators before and creative minds can do a lot
with it.

It may sound like I've only been objecting to suggestions and ideas in this
discussion, but the truth is that I've leaned a lot from the discussion and
I've also changed some aspects of the design of the system based on the
things we've discussed.

So thanks for all the feedback, Ingo, Tim and others!

I'm working on a better demo scene now while improving the system slightly
at the same time, and after that I'll release the first version.

Rune
-- 
3D images and anims, include files, tutorials and more:
rune|vision:  http://runevision.com
POV-Ray Ring: http://webring.povray.co.uk


Post a reply to this message

From: Tim Nikias
Subject: Re: POV-Ray 3D Sound System
Date: 21 Sep 2004 11:17:58
Message: <41504626@news.povray.org>
> So thanks for all the feedback, Ingo, Tim and others!

No problem, always a pleasure participating in these groups. :-)

> I'm working on a better demo scene now while improving the system slightly
> at the same time, and after that I'll release the first version.

Great, looking forward to testing it! This time, we won't have to switch
speakers, right? :-P

Regards,
Tim

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

From: ingo
Subject: Re: POV-Ray 3D Sound System
Date: 21 Sep 2004 13:57:23
Message: <Xns956BCB01836E3seed7@news.povray.org>
in news:415035eb$1@news.povray.org Rune wrote:

> I'm not sure what attributes you mean. 

Well indeed there isn't much in OpenAL to specify, the only one left would 
be directionality.
 
> It may sound like I've only been objecting to suggestions and ideas
> in this discussion,

Don't worry about that :) I've stoped trying to convince people in 
discussions many years ago, I only see it as an excange of idea's.

> I'm working on a better demo scene now {...]

Looking forward to it.

Ingo


Post a reply to this message

From: Rune
Subject: Re: POV-Ray 3D Sound System
Date: 21 Sep 2004 15:44:45
Message: <415084ad$1@news.povray.org>
ingo wrote:
> Well indeed there isn't much in OpenAL to specify, the only one left
> would be directionality.

Yes, which I'd also prefer could be changed from frame to frame... ;)

But in order to be able to release the initial version of the system faster,
directionality won't be supported in the first version - or rather the
0.0001'th version.

Rune
-- 
3D images and anims, include files, tutorials and more:
rune|vision:  http://runevision.com
POV-Ray Ring: http://webring.povray.co.uk


Post a reply to this message

From: Rune
Subject: Re: POV-Ray 3D Sound System
Date: 21 Sep 2004 15:49:14
Message: <415085ba@news.povray.org>
Tim Nikias wrote:
> Great, looking forward to testing it! This time, we won't have to
> switch speakers, right? :-P

Nope, that one's fixed. :)

Rune
-- 
3D images and anims, include files, tutorials and more:
rune|vision:  http://runevision.com
POV-Ray Ring: http://webring.povray.co.uk


Post a reply to this message

From: Rune
Subject: POV-Ray 3D Sound System - update
Date: 26 Sep 2004 06:50:37
Message: <41569efd@news.povray.org>
I'm having major problems getting anywhere with the sound system. This is
caused by a bug in OpenAL or JOAL.

Basically, since OpenAL operates with a limited amount of simultaneous
sources - and it's quite few - I have to be able to dynamically create and
delete sources so that they're only used when needed. However, when I try to
dynamically do that, Java crashes...

For anyone interested I posted a thread about it in this forum:
http://www.javagaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=JOAL;action=display;num=1096154724

Not sure what to do now... :(

Rune
-- 
3D images and anims, include files, tutorials and more:
rune|vision:  http://runevision.com
POV-Ray Ring: http://webring.povray.co.uk


Post a reply to this message

From: Tim Nikias
Subject: Re: POV-Ray 3D Sound System - update
Date: 26 Sep 2004 07:41:22
Message: <4156aae2$1@news.povray.org>
I've just had a very rough, first look at it. I'm no expert in Java, much
less OpenAL and JOAL (never used latter two), but it might be some issue
with the arrays which isn't liked. E.g. arrays are initialized with a
certain amount of indices, and the problem might be that when you try to
remove a source, JOAL/OpenAL tries to remove an index. But that's highly
guess work.

Have you tried using linked lists instead of arrays? Or maybe just a few
objects for starters, to check if it'll work at all?

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

From: Rune
Subject: Re: POV-Ray 3D Sound System - update
Date: 26 Sep 2004 08:07:03
Message: <4156b0e7@news.povray.org>
Tim Nikias wrote:
> E.g. arrays are initialized with a certain amount of indices,
> and the problem might be that when you try to remove a source,
> JOAL/OpenAL tries to remove an index. But that's highly guess work.
>
> Have you tried using linked lists instead of arrays? Or maybe just a
> few objects for starters, to check if it'll work at all?

In one of my tests I'm using neither arrays nor lists, just two variables to
store the ID's for the two sources. Well, each source requires an integer
array as one of the parameters, but I use one 1-element array for each of
the two sources. These arrays can't be replaced with linked lists, since
it's something internal in JOAL that I have no control over.

Rune
-- 
3D images and anims, include files, tutorials and more:
rune|vision:  http://runevision.com
POV-Ray Ring: http://webring.povray.co.uk


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.