OpenGL with Java 3D
Download
Report
Transcript OpenGL with Java 3D
3D Development In
Java
CCNY Capstone Project
By: Peter Giang
Introduction
Java APIs
Java 3D
What is Java3D ?
SceneGraph
JOGL
Wrapper for OpenGL
2
Java 3D
3
Java3D is a low
level 3D scenegraph based
graphics
programming
API for the java
language.
J3D provides a
3D rendering
API for the Java
language, but
at the same
time it may use
OpenGL to do
the interface to
the hardware
Java 3D
Java 3D available for
Direct 3D and OpenGL
High level language
using OpenGL and
Direct 3D to render
3D graphics
4
Java 3D
>Intro Into API Design
SceneGraphs
5
6
Java3D
> Computation and Design using
SceneGraph concept
> Use Hardware Accelerated libraries to
render
7
JOGL
First There Was OpenGL
Low Level API interface with
Hardware Acceleration
Can’t do anything without a
window to store your graphics
Introduction of GLUT to make
window creation simpler
OOP with OpenGL ? JOGL
8
JOGL
> provide full access to OpenGL through
a friendly Java API
> Sun and Silicon Graphics (SGI)
supported
> Support full access to OpenGL
methods through JNI
> Requires Java2 Standard Edition 1.4
and above
9
JOGL
> Different API Structure
> hardware-supported 3D graphics to
applications written in Java
10
Java3D and JOGL
Java3D natively supports import of
VRML, 3DS through Loaders
Use of Java Media Framework to allow
streaming videos
Planar Texture Mapping
11
Resources
> http://www.cs.brown.edu/exploratorie
s/freeSoftware/catalogs/repositoryAp
plets.html
(Texture Mappings for 2D Maps)
> https://jogl-demos.dev.java.net/
12