LouiZeForum
Would you like to react to this message? Create an account in a few clicks or log in to continue.
LouiZeForum

3D vrml
 
HomeHome  SearchSearch  Latest imagesLatest images  RegisterRegister  Log in  3Dchats / forums3Dchats / forums  
Le Deal du moment :
Aliexpress : codes promo valables sur tout le site
Voir le deal

 

 Son , Sound

Go down 
AuthorMessage
alain
fondateur
fondateur
alain


Number of posts : 23529
Localisation : Dompierre sur Veyle ,France
Registration date : 2005-04-19

Son , Sound Empty
PostSubject: Son , Sound   Son , Sound EmptySat 27 Jan - 10:31

peter le cochon wrote:


1_ Yes, mp3 as a movie texture works.

2_ mp3 as an audio clip works on some vrml viewers too (not blaxx)

3_ movie texture can't be spatialized, nor can it's volume be controlled by script (may be the pitch can, but dunno)

4_ neither audioClip nor movieTexture can reproduce streaming audio/video



Ne pas mettre les mp3 en Audioclip ,

Code:
  DEF Sound1 Sound {
      intensity 1.000
      priority 0.000
      minBack 10.000
      minFront 10.000
      maxBack 500.000
      maxFront 500.000
      source DEF AClip_Sound1 AudioClip {
        url [
        "Satie.mp3"
        "http://site.voila.fr/isa37/Satie.mp3"
        ]
        pitch 1.000
        loop FALSE
        startTime -1
        stopTime 0
      }
      }
    ]
    }


mais en MovieTexture :


Code:
Shape {
       appearance   Appearance {
          material   Material {
            diffuseColor .6 .6 .6
      
          }    texture DEF diams MovieTexture  {   url
              "diamsparamour.mp3"    loop FALSE  }  }
       geometry   Box { size .01 01 01}
   }
}
ROUTE    Sensor1.touchTime TO diams  .startTime

ex :


http://dumenieu.free.fr/vrml/zik/diamsparamour.wrl
Back to top Go down
 
Son , Sound
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
LouiZeForum :: ARTS :: 3D art :: Script-
Jump to: