Package eu.svjatoslav.sixth.e3d.examples
Class OctreeDemo
java.lang.Object
eu.svjatoslav.sixth.e3d.gui.humaninput.WorldNavigationUserInputTracker
eu.svjatoslav.sixth.e3d.examples.OctreeDemo
- All Implemented Interfaces:
eu.svjatoslav.sixth.e3d.gui.FrameListener,eu.svjatoslav.sixth.e3d.gui.humaninput.KeyboardInputHandler
public class OctreeDemo
extends eu.svjatoslav.sixth.e3d.gui.humaninput.WorldNavigationUserInputTracker
Demo showing volumetric octree rendering with raytracing capability.
Creates a 3D scene with various geometric shapes stored in an octree data structure.
Press 'r' to render the current view using software raytracing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleankeyPressed(KeyEvent event, eu.svjatoslav.sixth.e3d.gui.ViewPanel viewPanel) Handles keyboard input for triggering raytracing.static voidEntry point for the octree demo.Methods inherited from class eu.svjatoslav.sixth.e3d.gui.humaninput.WorldNavigationUserInputTracker
focusLost, focusReceived, keyReleased, onFrame
-
Constructor Details
-
OctreeDemo
public OctreeDemo()Creates a new OctreeDemo instance.
-
-
Method Details
-
main
Entry point for the octree demo.- Parameters:
args- command line arguments (ignored)
-
keyPressed
Handles keyboard input for triggering raytracing.- Specified by:
keyPressedin interfaceeu.svjatoslav.sixth.e3d.gui.humaninput.KeyboardInputHandler- Overrides:
keyPressedin classeu.svjatoslav.sixth.e3d.gui.humaninput.WorldNavigationUserInputTracker- Parameters:
event- the key eventviewPanel- the view panel- Returns:
- true if the event was consumed
-