COP3252 Advanced Java Programming - PowerPoint PPT Presentation

1 / 9
About This Presentation
Title:

COP3252 Advanced Java Programming

Description:

Addition to Java for displaying three-dimensional graphics ... aif, .aiff (Macintosh AIFF file format) The Java Media Framework ... – PowerPoint PPT presentation

Number of Views:48
Avg rating:3.0/5.0
Slides: 10
Provided by: UoD
Category:

less

Transcript and Presenter's Notes

Title: COP3252 Advanced Java Programming


1
COP3252Advanced Java Programming
  • 27-Mar-08
  • Lecture Set 19
  • Java3D, JMF

2
Java3D
  • Addition to Java for displaying three-dimensional
    graphics
  • Provides a simple interface and is quite rich in
    capabilities
  • Builds on existing DirectX and OpenGL technology
    --- so, programs are decently fast
  • Can incorporate objects from 3D modeling packages
    like TrueSpace and VRML models.

3
Installing/Running Java 3D
  • In addition to the J2SE JDK, you must also
    install the Java 3D extension
  • Latest version 1.5.1
  • Available here http//java.sun.com/javase/techno
    logies/desktop/java3d/

4
Creating a basic 3D program
  • Create a virtual universe to contain your scene.
  • Create a data structure to contain a group of
    objects.
  • Add an object to the group
  • Position the viewer so that they are looking at
    the object
  • Add the group of objects to the universe
  • See Hello3d.java for example

5
Adding light ( making it actually look 3d!)
  • See Ball.java

6
More Information
  • Java3D can be very complicated .
  • Look here http//www.java3d.org/ (where these
    notes were pulled from)
  • and here https//java3d.dev.java.net/

7
The Java Media Framework
  • Allows programmers to create Java applications
    that can play, edit, stream and capture many
    popular media types.
  • Some supported types
  • .avi (Microsoft Audio/Video Interleave)
  • .swf (Macromedia Flash 2 Movies)
  • .spl (Future Splash)
  • .mp3 (MPED Layer 3 Audio)
  • .mid, .midi, .rmi (Musical Intrument Digital
    Interface)
  • .mpeg, .mpg (MPEG-1 Videos)
  • .mov (QuickTime)
  • .au (Sun Audio File)
  • .aif, .aiff (Macintosh AIFF file format)

8
The Java Media Framework
  • Like with Java3D, the JMF is not part of the J2SE
    JDK it is a separate extension.
  • Find it at http//java.sun.com/products/java-med
    ia/jmf/

9
Simple Media Player
  • See MediaPanel.java
  • And MediaTest.java
Write a Comment
User Comments (0)
About PowerShow.com