Media Section Index
How can I be notified when a rendering error occurs?
You should register a RenderingErrorListener with your VirtualUniverse. The registration method is static. When the error occurs, you're sent a RenderingError to find out what the problem is.more
What are the different sound classes that come with the Java 3D API?
There are three sound-related classes: BackgroundSound for an ambient sound, PointSound for a sound whose source is located at a particular point, and ConeSound for a PointSound aimed in a particu...more
What is JOAL?
JOAL is the Java API wrapper for OpenAL, the open audio library, a cross-platform library for 3D or 2D sound. For more information, visit https://joal.dev.java.net/.more
From where do I get the Java 3D source?
You download the source via CVS from the three separate subprojects:
j3d-core (https://j3d-core.dev.java.net/)
j3d-core-utils (https://j3d-core-utils.dev.java.net/)
vecmath (https://vecmath.dev....more
How can I turn my Java 3D application into a cross-platform screensaver?
java.net offers early access to the SaverBeans Screensaver SDK (https://jdic.dev.java.net/documentation/incubator/screensaver/ for just such a purpose. It doesn't work on the Mac, but does work on...more
What is JOGL?
JOGL is the Java Binding for the OpenGL API, formed from JSR-231 (http://jcp.org/en/jsr/detail?id=231). The project homepage is https://jogl.dev.java.net/.more
What is JOGL?
JOGL is the Java Binding for the OpenGL API, formed from JSR-231 (http://jcp.org/en/jsr/detail?id=231. The project homepage is https://jogl.dev.java.net/.more
What is LWJGL?
LWJGL is the Lightweight Java Game Library found at http://lwjgl.org/. It offers an alternative to the Java 3D API that goes after the J2ME space.
What platforms are supported for the Java 3D API?
Windows (x86)
Linux (x86)
Linux (AMD64)
Linux (Power PC)
Linux (IA64 Itanium)
Mac OS X (Universal, requires JSR-231/JOGL)
Solaris (SPARC)
Solaris (x86)
more
How do I play a MIDI file using the Mobile Media API (MMAPI)?
Player player = Manager.createPlayer("http://example.com/example.midi");
player.start();
Is it possible to adjust the tempo when playing back a MIDI file using the Mobile Media API?
That would be with the TempoControl. Get it from the Player and call the setTempo() method, passing in a value for the number of milli-beats per minute.more
Using the Mobile Media API, how do you generate a tone?
The Manager has a static playTone() method to generate tones. You can also create a Manager.TONE_DEVICE_LOCATOR player object with Player player = Manager.createPlayer(Manager.TONE_DEVICE_LOCATOR)...more
Using the Mobile Media API, how do you play a sound file that comes in the JAR?
You need to know the mime type of the audio file and pass it as a stream to the Player object.
InputStream is = getClass().getResourceAsStream("/example.wav");
Player player = Manager.createPlaye...more
Using the Mobile Media API, how do you play a video?
This is similar to playing an audio file but requires you to get the control to display the video on. You need to see the results, not just hear them.
InputStream is = getClass().getResourceAsStr...more
Using the Mobile Media API, how do you take a picture?
Use the locator string of "capture://video" to create the Player, then get the VideoControl for the viewfinder, and finally VideoControl.getSnapshot(String type) to take the picture.