Re: MISC: Inlined Sound Support

Chris Marrin ([email protected])
Mon, 17 Apr 1995 22:27:57 -0700


On Apr 14, 4:50pm, Gavin Bell wrote:
> Subject: Re: MISC: Inlined Sound Support
> How about this:
>
> PointSound {
> fields [ SFVec3f position, SFFloat radiusOfEffect, SFFloat volume,
> SFString url ]
>
> position 0 0 0
> radiusOfEffect 100.0
> volume 0.5
> url "http://iuma.com/Samples/HappyBirthday.aiff"
> }

I like all this except for the "radiusOfEffect" field. The volume field
should suffice. Knowing the volume, using a falloff based on attenuation
at sea level or something, and deciding how quiet the sound has to be to
cut it off, the browser can compute a culling cube. The radius would be
useful if you're trying to simulate sound transmission on another planet
but I don't think we need that right now...

-- 
chris marrin                     ,,.                        
Silicon Graphics, Inc.        ,`` 1$`
(415) 390-5367             ,|`   ,$`
[email protected]           b`    ,P`                           ,,.
                        mP     b"                            , 1$'
        ,.`           ,b`    ,`                              :$$' 
     ,|`             mP    ,`                                             ,mm
   ,b"              b"   ,`                ,mm      m$$    ,m          ,,`P$$
  m$`             ,b`  .` ,mm          ,.`'|$P   ,|"1$`  ,b$P       ,,`   :$1
 b$`             ,$: :,`` |$$       ,:`    $$` ,|` ,$$,,`"$$      .`      :$|
b$|            _m$`,:`    :$1    ,:`      ,$Pm|`    `    :$$,..;"'        |$:
P$b,      _;b$$b$1"       |$$ ,,``       ,$$"             ``'             $$
 ```"```'"    b$P         `""`           ""`                             ,P`
             `"`                                              '$$b,,...-'

"As a general rule, don't solve puzzles that open portals to Hell." - excerpt from "A Horror Movie Character's Survival Guide"