Repository navigation
Getting Started
This guide will help you build, run, and start exploring Voxel Horizon Java Edition.
Minimum:
- OS: Windows 10, macOS 11+, or Linux (Ubuntu 20.04+)
- CPU: Dual-core 2.0+ GHz
- GPU: OpenGL 4.6 compatible (any discrete GPU from ~2015 on)
- RAM: 2GB available
- Disk: 500MB free space
Recommended:
- OS: Windows 11, macOS 12+, or Linux (latest)
- CPU: Quad-core 2.5+ GHz
- GPU: Dedicated graphics card with 2GB+ VRAM
- RAM: 8GB available
- Disk: 2GB free space (for larger worlds)
Required:
- Java 21 or higher (Download)
- Git (for cloning repository)
Optional (for development):
- IntelliJ IDEA or Eclipse (IDEs with Gradle support)
- Gradle 8.5+ (usually bundled with project)
git clone https://github.com/Aizen93/voxel-horizon-java-edition.git
cd voxel-horizon-java-edition# For the latest configurable terrain features
git checkout feature/unreal-engineLinux/macOS:
./gradlew buildWindows:
gradlew.bat buildThis will:
- Download dependencies (LWJGL, JOML, etc.)
- Compile all Java source files
- Run tests (if any)
- Create JAR files in
build/libs/
Expected output:
BUILD SUCCESSFUL in 30s
Check that the build artifacts exist:
ls build/libs/
# Should show: voxel-horizon-java-edition-1.0-SNAPSHOT.jarRun the main application:
./gradlew runRun the 2D biome viewer:
./gradlew runBiomeViewerjava -jar build/libs/voxel-horizon-java-edition-1.0-SNAPSHOT.jar- Open project in IntelliJ IDEA or Eclipse
- Import as Gradle project
- Navigate to
src/main/java/org/aouessar/app/Main.java - Right-click → Run 'Main.main()'
- Window opens: 1280×720 default resolution
- World generation begins: Chunks load around spawn point
- You spawn at: Coordinates near (0, surface_height, 0)
- Camera: Free-flight mode (press G for walking physics)
- Spawn point: Near world origin (0, 0) in blocks
- Spawn height: Automatically set to terrain surface + 10 blocks
- Spawn biome: Random (depends on seed)
| Input | Action |
|---|---|
| W / A / S / D | Move |
| Space | Jump (walk mode) / swim up / ascend (fly) |
| Left Ctrl | Dive (water) / descend (fly) |
| Left Shift | Sprint / fly speed boost |
| G | Toggle physics (walk+gravity+swim) vs free fly (no collision) |
| Mouse | Look around |
| Input | Action |
|---|---|
| LMB / RMB | Break / place blocks (6-block reach, wireframe highlight) |
| 1–9, scroll | Hotbar selection |
| ESC | Pause menu — mouse-driven sliders for live settings, Quit |
| F5 | First person / third person (back) / third person (front) |
| C | Switch avatar (human / elf) |
| T / H | Torch light on-off / show-hide torch model |
| F2 | Screenshot to ./screenshots
|
Mouse sensitivity and fly speed are adjustable live in the ESC menu.
F9 - Teleport to Coordinates:
- Press
F9 - Dialog appears with input fields
- Enter X coordinate (e.g.,
1000) - Enter Z coordinate (e.g.,
-500) - Click "Teleport" or press Enter
- You instantly move to (X, surface, Z)
F10 - Search & Teleport to Biome:
- Press
F10 - Dialog appears with biome dropdown
- Select desired biome (e.g., "JUNGLE")
- Click "Search"
- Progress bar shows search status
- Automatically teleports when biome found
- Pre-warms surrounding regions for smooth experience
Search Algorithm:
- Starts from current position
- Searches in expanding spiral (16-chunk radius increments)
- Checks ~100 positions per radius level
- May take 5-30 seconds depending on biome rarity
- FOV: 75° (default)
- Near plane: 0.1 blocks
- Far plane: 8000 blocks (LOD horizon + fog)
In code (before building):
Edit src/main/java/org/aouessar/shared/EngineConfig.java:
// Single source of truth for the world seed (Main and the 2D
// biome viewer both derive from it):
public static final long WORLD_SEED = 905282311L;Rebuild and run.
View Distance (near-field chunks, no rebuild needed):
# Default is 48; lower = faster generation/less memory
./gradlew run -Pvoxel.radius=16The far-field LOD always extends ~4km regardless of the near radius.
Cache / memory: regions, chunks and meshes evict automatically outside
the view radius — memory scales with voxel.radius (roughly 1-5GB heap at
radius 16, up to ~10GB at radius 48). Give the JVM headroom with
org.gradle.jvmargs or run the jar with -Xmx12g for radius 48.
Live graphics tuning: most quality knobs (SSAO, sun shafts, bloom, shadows, clouds...) are adjustable in-game in the ESC menu — see the Configuration Guide.
Thread Count (CPU usage):
Edit src/main/java/org/aouessar/shared/EngineConfig.java:
// Default: all cores except one
public static final int CPU_WORKERS = Runtime.getRuntime().availableProcessors() - 1;
// Reduce for lower CPU usage:
public static final int CPU_WORKERS = 2;See Configuration Guide for detailed biome customization.
Quick example - Edit src/main/resources/constraints/world_content_v1.json:
{
"biomes": {
"PLAINS": {
"structures": {
"trees": {
"density": 0.30 // Change from 0.15 (doubles trees)
}
}
}
}
}Rebuild and run to see changes.
Oceans:
- Use F10 → Search for "OCEAN" or "DEEP_OCEAN"
- Look for underwater trenches and continental shelves
Mountains:
- Search for "SNOW" biome (often mountainous)
- Or manually explore high Y levels (150+)
Islands:
- Fly over oceans
- Look for small landmasses surrounded by water
Dense Forests:
- Search for "JUNGLE" (densest vegetation)
- Or "FOREST" (spruce trees)
Deserts:
- Search for "DESERT"
- Look for cactus clusters
The default seed 905282311 spawns near a lake basin with hills,
beaches, a snow-capped range to the north-east and cave entrances
within a short flight (probe-verified: meadow holes around (40, -440),
mountainside mouths near (-504, -307), flooded ocean entrances east).
Any seed works — generation is fully deterministic per seed.
Error: Could not find Java 21
Solution:
- Install Java 21 from Adoptium
- Set
JAVA_HOMEenvironment variable - Verify:
java -version(should show 21.x.x)
Error: Could not download dependencies
Solution:
- Check internet connection
- Try again:
./gradlew build --refresh-dependencies - Clear Gradle cache:
rm -rf ~/.gradle/caches/
Error: GLFW error: Could not create window
Solution:
- Update graphics drivers
- Check GPU supports OpenGL 4.6 (driver up to date)
- Try on different GPU if you have multiple (dedicated vs. integrated)
Error: No compatible OpenGL context
Solution:
- Your GPU is too old (pre-2010)
- Use software rendering (slow):
export LIBGL_ALWAYS_SOFTWARE=1
Symptom: Low FPS (< 30)
Solutions:
- Reduce view distance (edit
RendererConfig.java) - Close other applications (free up RAM/CPU)
- Lower window resolution (edit
RendererConfig.java) - Disable VSync (future option)
Symptom: Stuttering/freezing
Solutions:
- Increase cache size (more RAM = fewer reloads)
- Reduce thread count if CPU is overheating
- Check for Java GC pauses: Run with
-XX:+PrintGCDetails
Symptom: Black/missing textures
Solution:
- Verify
atlas.pngexists insrc/main/resources/ - Check console for texture loading errors
- Rebuild project
Symptom: Z-fighting (flickering surfaces)
Solution:
- This is a known issue with coplanar faces
- Will be fixed in future greedy mesher improvements
Symptom: Water rendering incorrectly
Solution:
- Ensure translucent pass is enabled
- Check GPU supports blending
- Update graphics drivers
Purpose: Visualize biome distribution and heightmap
Launch:
./gradlew runBiomeViewerControls:
- Mouse drag: Pan view
- Mouse wheel: Zoom in/out
- G key: Toggle grid overlay
- Click: Show coordinates and biome info
Uses:
- Debug biome generation
- Find biome boundaries
- Verify terrain shapes
- Plan builds (future)
Location: src/main/resources/shaders/
Files:
-
chunk.vert- Vertex shader (position, UV) -
chunk.frag- Fragment shader (texturing, fog) -
sky.vert/sky.frag- Sky dome shaders
Hot Reload: Not supported yet (restart required after changes)
- Explore the world: Use F9/F10 to visit different biomes
- Read the docs: Check out Gameplay Features
- Customize: Edit biome configs, try different seeds
- Contribute: See Contributing to help develop the engine
Found a bug?
- Open an issue: GitHub Issues
- Include: OS, Java version, error logs, steps to reproduce
Have questions?
- Check existing documentation in
/docs/wiki/ - Review project status: Work in Progress
Want to contribute?
- Read Contributing
- Fork the repository
- Submit pull requests
Next: Configuration Guide →