POV-Ray : Newsgroups : povray.general : Sound in 3d space? Server Time
1 Nov 2024 17:19:54 EDT (-0400)
  Sound in 3d space? (Message 1 to 10 of 11)  
Goto Latest 10 Messages Next 1 Messages >>>
From: Rune
Subject: Sound in 3d space?
Date: 16 Aug 2004 05:55:49
Message: <412084a5@news.povray.org>
I'd like to have sound effects in my animations. I'd like it to be stereo
sound. I'd like to specify a point in 3d space from where a sound effect is
emitted. This point, as well as the camera, may move *while* the sound is
playing, and it should result in corresponding change in loudness and pan
(left/right) of the sound. I need hundreds of such sounds in my scene, so
doing it manually is not an option.

Is there some way to do it automatically?

I could do a lot of conversions myself, such as converting the 3d points to
panning and loudness values. The thing I can't do is to generate a sound
file from some input description format.

The input sounds would just be mono sound files in some format.

Are there any freeware tools that could do what I want?

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: Daniel Hulme
Subject: Re: Sound in 3d space?
Date: 16 Aug 2004 06:19:02
Message: <20040816111901.2d8b88ff@dh286.pem.cam.ac.uk>
> Are there any freeware tools that could do what I want?
If you're willing to do a bit of coding, the OpenAL library could be
what you're looking for. OpenAL wants to be an audio version of OpenGL,
and is designed for sticking sounds in a 3D space with a movable
listener. You could write a quick app that loops around, creating a load
of sound sources where you want them, gets OpenAL to do its thing (while
moving stuff around as desired), outputting the whole thing to a file.

I think this would be the easiest way; I'm not aware of any sound
editing tools that allow you to script that sort of thing, though they
may be out there somewhere. Maybe Blender has a feature like that? It
uses OpenAL somewhere, and it seems like the sort of feature the game
development kit might have.

Daniel

-- 
A most peculiar man    With the windows closed      And Mrs Reardon says
He died last Saturday  So he'd never wake up  He has a brother somewhere
He turned on the gas   To his silent world   Who should be notified soon
And he went to sleep   And his tiny room    .oO( http://sad.istic.org/ )


Post a reply to this message

From: Rune
Subject: Re: Sound in 3d space?
Date: 16 Aug 2004 06:37:35
Message: <41208e6f$1@news.povray.org>
Daniel Hulme wrote:
> If you're willing to do a bit of coding, the OpenAL library could be
> what you're looking for.

I can only code in Java. OpenAL is a "library"... What does it mean? What
language(s) is it for? How would I use it? It seems to be dependent on
specific hardware? I'm not sure I'd know where to start... :(

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: Daniel Hulme
Subject: Re: Sound in 3d space?
Date: 16 Aug 2004 06:47:18
Message: <20040816114717.2141c79d@dh286.pem.cam.ac.uk>
> What language(s) is it for?
It is for C, but bindings may exist for other languages.

> It seems to be dependent on specific hardware?
I don't think it is.

If you wouldn't know what to do with a library and your only experience
of programming is in Java, this probably isn't the best solution for
you. Blender might still be worth a look; maybe someone else around here
knows more about its capabilities, or even better, about a tool that
does specifically this job.

Sorry I couldn't be of more help,
Daniel

-- 
A most peculiar man    With the windows closed      And Mrs Reardon says
He died last Saturday  So he'd never wake up  He has a brother somewhere
He turned on the gas   To his silent world   Who should be notified soon
And he went to sleep   And his tiny room    .oO( http://sad.istic.org/ )


Post a reply to this message

From: Rune
Subject: Re: Sound in 3d space?
Date: 16 Aug 2004 07:04:37
Message: <412094c5$1@news.povray.org>
Daniel Hulme wrote:
> If you wouldn't know what to do with a library and your only
> experience of programming is in Java, this probably isn't the best
> solution for you.

That's what I'm thinking.

> Blender might still be worth a look

Wouldn't it require that the animation is made in Blender in the first
place, or that the sounds are attached to 3d objects in Blender or
something? I'll try to have a look anyway.

> Sorry I couldn't be of more help,

I appreciate your effort. :)

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: Sound in 3d space?
Date: 16 Aug 2004 10:32:37
Message: <Xns9547A849D5568seed7@news.povray.org>
in news:41208e6f$1@news.povray.org Rune wrote:

> I can only code in Java. OpenAL is a "library"... 

There is a java language binding for OpenAL, this means you can keep 
programming Java and use OpenAL:
https://joal.dev.java.net/


A more complex option would be to use CSound http://www.csounds.com/ 
This is a software synthesiser that is controlled through its own 
language, like we use SDL for POV-Ray. It has the option to read 
soundfiles and manipulate them any way you want including spatial 
effects. But it is hard to use if you're not familliar with all the 
musical terms.

A non-free but cheap option could be to use QSound 
http://www.qsound.com/2002/ 
They have a tool that to put a sound in certain position in space 
http://www.3dsoundstore.com/www-3dsoundstore-com/product-qcreator.asp 
But I doubt that it can be used for more than one sound at a time. It is 
one of the best "spatial enhancers", for what can be done with their 
technology listen to "Amused to Death" by "Roger Waters"

Ingo


Post a reply to this message

From: Rune
Subject: Re: Sound in 3d space?
Date: 16 Aug 2004 16:02:53
Message: <412112ed$1@news.povray.org>
ingo wrote:
> There is a java language binding for OpenAL, this means you can keep
> programming Java and use OpenAL:
> https://joal.dev.java.net/

This is interesting. Right now I can't get it to work though, since it can't
"find" the library. I've placed it in the working directory as well as in
d:\windows, d:\windows\system and d:\windows\system32 but to no avail. I
can't find a solution on the net either. :/

> A more complex option would be to use CSound http://www.csounds.com/

This does look rather complex.

> A non-free but cheap option could be to use QSound
> http://www.qsound.com/2002/
> They have a tool that to put a sound in certain position in space
> http://www.3dsoundstore.com/www-3dsoundstore-com/product-qcreator.asp
> But I doubt that it can be used for more than one sound at a time.

I might look into this later.

Thanks a lot for the links!

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: Sound in 3d space?
Date: 16 Aug 2004 16:10:48
Message: <Xns9547E1A027EC0seed7@news.povray.org>
in news:412112ed$1@news.povray.org Rune wrote:

> I
> can't find a solution on the net either. :/
> 

A guess from my side, as I don't use Java, don't you have to tell Java 
where to find modules or classes by setting the 'classpath'
http://java.sun.com/j2se/1.3/docs/tooldocs/win32/classpath.html


Ingo


Post a reply to this message

From: Rune
Subject: Re: Sound in 3d space?
Date: 17 Aug 2004 10:48:47
Message: <41221acf$1@news.povray.org>
ingo wrote:
> in news:412112ed$1@news.povray.org Rune wrote:
>
>> I can't find a solution on the net either. :/

It seems it not so simple. I've been looking at loads of web-pages and have
now found that I need to replace my OpenAL file with a newer version. But
the newer version is nowhere to be found anymore. See this discussion,
especially at the end:
http://www.javagaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=JOAL;action=display;num=1077014844

*sigh*

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: Tor Olav Kristensen
Subject: Re: Sound in 3d space?
Date: 17 Aug 2004 11:12:14
Message: <4122204e$1@news.povray.org>
Rune wrote:
> ingo wrote:
> 
>>in news:412112ed$1@news.povray.org Rune wrote:
>>
>>
>>>I can't find a solution on the net either. :/
> 
> 
> It seems it not so simple. I've been looking at loads of web-pages and have
> now found that I need to replace my OpenAL file with a newer version. But
> the newer version is nowhere to be found anymore. See this discussion,
> especially at the end:
>
http://www.javagaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=JOAL;action=display;num=1077014844

Is this:

http://developer.creative.com/articles/article.asp?cat=1&sbcat=31&top=38&aid=45

the SDK you are looking for ?

Or is that an older version of the SDK ?
(The page was updated in April this year. )

-- 
Tor Olav
http://subcube.net
http://subcube.com


Post a reply to this message

Goto Latest 10 Messages Next 1 Messages >>>

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