Download presentation
Presentation is loading. Please wait.
1
Java 3D Pablo Figueroa University of Alberta http://www.cs.ualberta.ca/~pfiguero/english/ April 2000
2
Contents Introduction What is java 3D API concepts Some demos API details Summary More resources
3
Introduction: What and Why? What? Represent 3D geometry Interact with 3D information Why? Application specific reasons: Design Architectural walkthroughs Analysis of 3D data
4
Introduction: Examples Macy’s fashion show http://www.excitextreme.com/fashion/ Interactive animations (cult3d) http://www.cult3d.com/gallery/references/index.html
5
Introduction: Examples (2)
6
Introduction: Examples (3)
7
Introduction: Solutions APIs OpenGL, Open Inventor, Performer, Java 3D 3D modeling tools 3D Studio Max, Maya, … VR environments WTK, DIVE, … App. specific tools Cult3D, Character Studio, Rodin, …
8
What Is Java 3D? Java API for 3D geometry description Platform independent File-format independent A scene graph API Describe the intended use of the model: Modifiable vs. static objects Selectable vs. background objects Abstract device model
9
API Concepts Scene graph Shape (geometry, appearance, texture) Transforms Lights Sound Behavior Rendering model
10
Concepts: Scene Graph Objects are described as a hierarchy of nodes: Leafs: shapes, lights, sounds, behaviors Intermediate: transformations, groups Group Switch Ordered Shared
11
Concepts: Scene Graph (2)
12
Concepts: Shape Geometry Some primitives Box, Cone, Cylinder, Sphere Indexed face sets Coordinates, normals, colors per vertex, texture coordinates per vertex Appearance Color, material, texture Point, line, and polygon appearance
13
Concepts: Transforms All geometry coordinates are defined relative to (0,0,0) Translation Rotation In radians Scaling
14
Concepts: Lights Based on the Phong model At least one light in the environment Several types: Ambient, directional, point, spot Attributes: Color, influencing bounds Uses material attributes: diffuse, ambient, specular, emissive colors
15
Concepts: Sound Spatially located sound information Several sounds Soundscape (aural environment) Types: Background, point, cone Attributes: Volume, loop parameters, scheduling region, active flag, distance gain (point and cone)
16
Concepts: Behavior Actions in the world: Object animation Input processing Picking Collisions Level Of Detail (LOD) Interpolations
17
Concepts: Behavior (2) General attributes: Scheduling region Wake up conditions View position, transform state, collision, other behavior’s state, AWT events, time interval, sensors Interpolator classes: Position, PositionPath, Rotation, Color, Transparency, RotPosScalePath
18
Example: SimpleSounds An extension of HelloUniverse A cube 3 sounds 2 behaviors: rotate the cube, play sounds
19
SimpleSounds (2) sound1:PointSound TransformationGroup ColorCube RotationInterpolator BackgroundSound BranchGroup sound2:PointSound SimpleSoundsBehavior
20
SimpleSounds (3)
21
Demos From the distribution ObjLoad Loads geometry in format.obj AWTInteraction 2D interface widgets with 3D worlds TickTockCollision Behaviors, collision detection
22
Demos (2) From the website YouBuildIt Author environment Astro3D (Astronomy Visualization Tool) Navigation + Collaboration Particles Particle-based system
23
API Details Rendering model Immediate Retained Compiled-retained Hi-resolution coordinates 256-bit fixed-point numbers (hundred-billion light years – protons)
24
API Details (2) Scene graph in detail: objects
25
API Details (3) Scene graph in detail: View model
26
API Details (4) Devices Standard API for keyboard and mouse New model for input devices InputDevice Interface Sensors Math library Tuples, angles, quaternions, matrices
27
API Details (5) Capability bits User’s intention for each part of the scene. Used for compilation purposes Read/write Transformations, geometry, path, … Collision bounds Sound data
28
API Details (6) Cloning groups in the scene graph:
29
Summary 3D, scene-graph based API Compilation capability for performance Integration of other input devices View modeling allows VR apps. Sun, Windows, Linux, and SGI implementations
30
Summary (2) http://java.sun.com/products/java-media/3D/collateral/j3dclass.html
31
More Resources Java 3D site http://java.sun.com/products/java-media/3D/ Java 3D related stories http://java.sun.com/features/#3d Java 3D tutorial http://java.sun.com/products/java-media/3D/collateral/#tutorial Java One 99 presentation http://java.sun.com/products/java- media/3D/collateral/j3d_javaone.pdf http://java.sun.com/products/java- media/3D/collateral/j3d_javaone.pdf Java Technology Roadshow http://java.sun.com/products/java-media/3D/collateral/j3d_clas.pdf
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.