Sounds
Flux Studio 101 ] Begin ] Box Cyl Cone ] Pyramid ] Sculpted Surface Vase ] Revolution ] Square One ] Basics ] DEF/USE ] Colors ] Textured Box ] [ Sounds ] Anchor ] InLines ] Easy Animation ] Background ] A painting? ] Bath Tub ] Glossary ]

 

How do I add sounds to my Flux Studio Avatar?

    Flux Studio is a VRML97 authoring and animation application. This page explains how to use Flux Studio to create an avatar or object that makes a noise when it is clicked on.

    IMPORTANT NOTE: When dealing with sounds please remember that it should be a very small file so you should use tricks like halving the sample rate, converting from 16-bit to 8-bit, trimming all the silence at the beginning and end, etc... what ever you can do to make the file smaller. In other words, if someone clicks on your avatar/object and does not hear a sound for 3 minutes, they will probably not know what was responsible for the sound when they do hear it. Also, try to avoid continuously looping sounds. Although you may think they are neat, others might not like noise that they have no control over. I think sounds should be activated by "the other guy". This is the kind of sound that this tutorial shows how to make.

    To add sounds to an avatar, you get a WAV or midi file, and add a sound node to your avatar, then add a touch sensor to trigger off the sound when your avatar is clicked on.

  1. Create an avatar or import one from some other source. You can just use a box for a test case.

  2. OK, let's add a sound. Someone at Cybertown called Ginoha asked for a GingerBread Avatar, in this example I add sound to the avatar I created for her. This avatar is a simple extrusion which looks like this...

    gingerbread.jpg (68342 bytes)

  3. In Flux Studio click on the Sound Icon sound_icon.png (842 bytes)then click on the model of your avatar (this puts the sound node on the avatar).

  4. You will see this sound node added to the "scene tree" hierarchy. Double click on it to see the sound properties.

    tree1.jpg (21114 bytes)

  5. In the sound properties window, type in the name of your WAV file (Blaxxun does not support au or aiff or...) I used the Voyetra Sound Software on my PC and my loving wife to record a short phrase, "Hahaha, catch me if you can". As mentioned above, the resulting file was way to big, so I cut the sample rate in half twice and converted from 16bit to 8bit. The original 123KB file was whittled down to 15KB. I made it as small as I could with out degrading the quality so bad you could not understand it. Here is the smaller file, can you tell the difference in quality? I'll bet you can tell the difference in download time. In the multi-user world speed is often more important than quality.

        Mr. Phillip, I do not have cool sound software on my computer   8^(   Do not worry, go to your favorite web search engine and search for WAV. You will find a bunch of sounds. Remember to choose wisely Grasshopper, smaller is better in the 28.8 modem world.

    soundprop.jpg (24387 bytes)

        You may also notice two ways of specifying the name of the sound file. The first way is great for testing. It is a relative path that looks for the file in the same directory as the VRML file. The other method specifies a secondary path to the file located somewhere on the web. This allows you to test at home on your desktop, as well as having an absolute path to a URL on the web for the rest of the world.

  6. Next you need to add something to trigger the sound. Hit the Create Sensor Icon sensor_icon.png (620 bytes), and click on your avatar. You are adding this "trigger" or sensor node to your avatar. You will also see that this Sensor Node is added to the scene tree. Double click on the TouchSensor Node to see its property panel.

    tree2.jpg (22248 bytes)

  7. Under the sensor tab click on the Add Trigger button. Then, click on the Sound Node in the scene tree. You will notice that the trigger list is updated with "Trigger Node Sound: Sound1" and "Trigger Type: Start at Beginning". You may also notice that the sensor we've just added is called a "Touch Sensor". This means that when someone mouse clicks, or touches the avatar or object, this sensor will trigger the sound node to play.

    touchsensor.jpg (21480 bytes)

  8. Save your work and hit the Launch Browser Icon browser_icon.png (1177 bytes). Click on your avatar and listen closely. Did it work? Do you have the volume turned up enough? Stand up and take a bow!

    Sorry, you need a VRML plugin.

For extra credit: Try different types of sensors such as a touch or visibility sensor. They will trigger off the sound when someone gets close to the object or only when they can see the object.

Back ] Home ] Up ] Next ]