What is it?
The TouchSensor node is a trigger event activated by the user through a mouse click or drag. The TouchSensor causes an animation or sound file to launch. For more details about this node, check out the VRML 2.0 Spec.

Create the scene and add Cameras

1) First create a scene with all the objects, materials and NavigationInfo that are needed. Decide which parts will be moving and animate those objects.

2) Next it is a good idea to add at least one 'Camera' which will be a 'Viewpoint' in the VRML file, but the file will still work without Viewpoints. NOTE: The more Viewpoints the better in VRML files. The different browsers have various navigation abilities and restraints, therefore the Viewpoints are the one consistent way the user can view the file.

3) To add a Camera, go to the Creation panel/press the 'Camera' button and Choose 'Target' as the Object Type.

4) With your mouse, drag the Camera in the 'Top' viewport and stretch it out.

5) To view what the Camera is seeing, go to the Perspective viewport and press 'c' on the keyboard. And there you are from the Cameras point of view.

6) The Camera is easy to adjust with the Move and Rotate buttons, so test them out.

7) Also it is good to name your Cameras. The Camera name is what the user sees in the VRML browser as the name of the Viewpoint. Otherwise it will default to Camera01, Camera02 etc. Which is pretty boring, if you have a great viewpoint to show off.

8) Viewpoints help tell a story in the VRML file, because you can lead the viewer to ideal viewing points of the model which they might not otherwise explore.

How to implement a TouchSensor into a MAX file:

9) Go to the 'Creation' panel and choose 'Helpers' Under 'Helpers' use the pull down the menu and choose VRML 2.0. Then choose the Object Type 'TouchSensor'.

10) Then go to your scene and drag the mouse anywhere. You will see an icon that signals to you that you have placed the TouchSensor.

11) Select the Pick Trigger Objects button and pick the object that you want the user to click to start an animation or sound file (note: the trigger can be any object).

12) Select with your mouse OR press the keyboard letter 'H'. The selected objects will appear in the 'Pick Trigger Objects' box. And don't forget to turn off the 'Pick Objects' button by pressing it again.

13) And you must select Pick Action Object. Here choose the animated pieces of geometry, cameras, lights or sound files. Select in the same way as above.

14) Make sure the Enabled box is checked.

15) In the Icon Size box, you can designate a larger or smaller icon size for the TouchSensor node---but this is only for the MAX file and has no bearing on the VRML file.

16) Now you have entered all possible information for the 'TouchSensor' node. If you need to go back, after leaving the Creation panel, and alter any of the parameters, then go to the 'Modify' panel and adjust.

17) Now you have implemented a TouchSensor into your file.

18) To check, go to the 'Selection' menu! NOTE: You can name your TouchSensor in MAX in the 'Name' field.

19) You may also want to implement a TimeSensor. A TimeSensor is needed if you want the animation or sound to start immediatly on loading the file, loop or if the events should stop at specified times.
How to Export MAX files to VRML:

20) Now Skinny on over to 'File' and choose 'Export'. The Exporter knows that you are referring to the file that is open and requests that you name your file.

21) So first choose '.wrl' filetype Then name your file, i.e. 'SuchAndSuch.wrl'

22) Suggestion: Because you might need to go back to the MAX file and adjust part of your world, it is a good idea to keep the filename between to two files the same.
23) Check out a more elaborate sample file that demonstrates the TouchSensor.