home dev games gallery work
Lewpen.com»Research & Development»3D Graphics»Java 3D Engine»Box & Reflective Tetrahedron

Box & Reflective Tetrahedron

Using a BSP tree for reflections and object intersection
Applet failed to run. No Java plug-in was found.
This was built for efficiency with a single-class binary space tree implementation. The tree is stored in flattened, fixed size arrays for optimal performance - no expensive memory allocation and object creation or deletion.
The render buffer is a byte array which is displayed using a MemoryImageSource and an IndexColorModel (this is 256 colours).

Files

Raytrace.java 40,705 bytes
Source Code Browser
Related Articles

3D Engine with scene graph and cartoon rendering style

Games

The Dodge Game
Flatspace

2-Player Games:

Quake 2D
Meteora

Puzzle Games:

Mini Tetris
Sudoku Solver

Development

3D Graphics:

3D Graphics Articles
WebGL Examples
OpenGL Examples
Flash 3D Engine
Java 3D Engine

Development:

Programming Articles
Game Development Examples

Work

Portfolio
Clients
Startups & Projects
Expertise

Links

CubeLogix Studios
PHP Charts & Graphs
Local Legends Football