Overview
Voxy World Gen V2 integrates seamlessly with Voxy, a high-performance LOD (Level of Detail) renderer for Minecraft. This integration automatically ingests generated chunks into Voxy’s rendering system, enabling seamless distant terrain visualization.What is Voxy?
Voxy is a Minecraft mod that renders distant terrain at lower levels of detail, allowing you to see much farther than vanilla render distance without sacrificing performance. Voxy World Gen V2 automatically feeds generated chunks to Voxy so that distant areas appear immediately without manual loading.Integration Architecture
The integration uses a reflection-based approach to maintain compatibility across different Voxy versions without hard dependencies. This design allows Voxy World Gen V2 to work whether or not Voxy is installed.Detection and Initialization
The integration automatically detects Voxy at runtime:The integration attempts initialization on first use. If Voxy is not installed, the integration gracefully disables itself with no performance impact.
Integration Methods
Chunk Ingestion
The primary integration point uses Voxy’s chunk ingestion API:Method Handle Resolution
The integration searches for Voxy’s ingestion method using multiple common method names:Raw Ingestion API
For advanced use cases, the integration also provides direct section-level ingestion:- Processes chunks section-by-section
- Skips empty sections for better performance
- Provides lighting data to Voxy
- Used by specialized generators like Tellus integration
Raw ingestion is primarily used internally by the Tellus integration for direct voxel data injection.
Automatic Ingestion Workflow
Here’s how chunks flow from generation to Voxy rendering:Chunk Generation
Voxy World Gen V2 generates a chunk in response to player movement or explicit requests.
Checking Integration Status
You can verify if Voxy integration is active:Implementation Details
Method Handles vs Direct Calls
The integration uses Java’sMethodHandle API instead of direct method calls:
- No compile-time dependency on Voxy
- Faster invocation than standard reflection
- Type-safe method binding
- Automatic exception wrapping
Service Instance Binding
The integration automatically detects whether to use static or instance methods:Performance Considerations
Initialization Overhead
Initialization Overhead
Initialization happens only once on first chunk generation. The overhead is negligible (~5-10ms) and doesn’t impact runtime performance.
Ingestion Performance
Ingestion Performance
Method handles are nearly as fast as direct method calls. Each ingestion takes less than 1ms for standard chunks.
Section Filtering
Section Filtering
The raw ingestion API skips empty sections, reducing data transfer by 60-80% in typical worlds.
Troubleshooting
Common Issues
Integration Not Enabling
Integration Not Enabling
Symptoms: Log shows
voxy not present, integration disabledSolutions:- Verify Voxy is installed and loaded
- Check that Voxy version is compatible (requires VoxelIngestService class)
- Ensure both mods are loaded in the same Minecraft instance
Ingestion Errors
Ingestion Errors
Symptoms: Log shows
failed to ingest chunkSolutions:- Update Voxy to the latest version
- Check for conflicting mods
- Report the issue with full error logs
Source Code Reference
The complete integration implementation can be found in:- Lines 21-82: Initialization and method handle resolution
- Lines 84-93: Main chunk ingestion method
- Lines 95-137: Raw section-level ingestion
- Lines 138-141: Integration status check
Related Documentation
Tellus Integration
Learn how Tellus uses raw ingestion for Earth terrain
Configuration
Configure generation radius and LOD behavior
Architecture
Understand the overall system design
Performance
Optimize for large-scale LOD generation