Unit III VR Programming
Unit III VR Programming
JAVA 3D:
• Java 3D is a toolkit (library) that lets programmers use the
Java language to create and display 3D graphics and
virtual environments on the screen.
• It helps in building VR applications, games, and
simulations.
3. Unity 3D
• Popular game engine with strong VR support.
• Uses C# scripting.
• Works with Oculus, HTC Vive, PlayStation VR, etc.
• Has built-in tools for physics, animation, sound, and
networking.
• Ideal for games, simulations, training, and education.
4. Unreal Engine
• High-end game engine by Epic Games.
• Uses C++ and Blueprints (visual scripting).
• Known for realistic graphics.
• Supports VR platforms natively.
• Used in AAA games, architecture, film, and medical VR.
6. WebXR
• JavaScript API for VR and AR in web browsers.
• No need to install apps.
• Works on mobile and desktop VR devices.
• Good for lightweight and accessible VR experiences.
8. A-Frame
• Web framework for building VR using HTML + JavaScript.
• Built on Three.js.
• Easy to use for beginners.
• Works with WebXR in browsers.
9. OpenSceneGraph
• High-performance 3D graphics toolkit.
• Used in flight simulation and scientific applications.
• C++ based, open-source.
• Can be used for VR with additional plugins.
Language
Mainly C/C++ Java
Used
Designed for 3D
Specially designed for
Purpose graphics in Java
VR and simulation
applications
Requires low-level
Easier with high-level
Ease of Use coding and VR
Java programming
hardware setup
Works mostly on
Platform Cross-platform (runs
Windows and UNIX
Support wherever Java runs)
systems
Supports many VR
Device Limited direct support
hardware (HMDs,
Support for VR hardware
gloves, trackers)
Feature /
WTK (World ToolKit) Java 3D
Point
Optimized for
Graphics Supports high-quality
simulation; moderate
Quality 3D rendering
graphics
Hierarchical, but
Strict tree-based scene
Structure Type more flexible and
graph
procedural
Requires more
Easier due to ready-to-use
Ease of Use manual coding and
node classes
management
Programmer has to
Scene Java 3D handles transform
manage
Management hierarchy automatically
transforms, events
Feature / WTK (World
Java 3D
Aspect ToolKit)
In WTK:
• WTK does not strictly enforce node types like Java 3D.
• You manually create objects (room, table, book) and
attach behaviors.
Code-style Concept:
room = wtk_create_object();
table = wtk_create_object();
book = wtk_create_object();
2. What is a toolkit?
A toolkit is a collection of tools, libraries, and functions that
help developers build applications like VR systems, 3D models,
or user interfaces.
THE ENDs