|
| 1 | +# VKC Node Draco |
| 2 | +This component provides Draco compression functionality to reduce 3D model file sizes and improve loading times. |
| 3 | +Draco is a compression technology for 3D geometry developed by Google that can efficiently compress mesh data to significantly reduce file sizes. |
| 4 | + |
| 5 | +!!! note "About this guide" |
| 6 | + This guide explains the basic usage and settings of VKC Node Draco. For detailed performance optimization information, please refer to [World Optimization](../WorldOptimization/WorldOptimization.en.md). |
| 7 | + |
| 8 | +## Property List |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | +| Category | Label | Function | |
| 13 | +| ---- | ---- | ---- | |
| 14 | +| Compression | Compression Level | Sets the Draco compression level. Higher values improve compression ratio but may reduce quality. | |
| 15 | +| | Position Quantization | Sets the quantization level for vertex positions. Smaller values improve precision. | |
| 16 | +| | Normal Quantization | Sets the quantization level for normal vectors. | |
| 17 | +| | UV Quantization | Sets the quantization level for texture coordinates. | |
| 18 | +| | Color Quantization | Sets the quantization level for vertex colors. | |
| 19 | +| Quality | Preserve Quality | Sets whether to preserve original quality as much as possible during compression. | |
| 20 | +| Performance | Enable GPU Decompression | Enables high-speed decompression using GPU. Improves performance on compatible devices. | |
| 21 | + |
| 22 | +!!! tip "Balance between compression level and quality" |
| 23 | + Higher compression levels result in smaller file sizes but may reduce model precision. |
| 24 | + It's important to find the right balance for your use case. |
| 25 | + |
| 26 | +### Draco Details |
| 27 | + |
| 28 | +#### 1. **About Compression Levels** |
| 29 | +Draco compression allows you to set compression levels in the range of 0-10. |
| 30 | + |
| 31 | +- **Level 0-3**: Low compression, high quality - suitable for models where precision is critical |
| 32 | +- **Level 4-6**: Medium compression, balanced - recommended for general use |
| 33 | +- **Level 7-10**: High compression, low quality - when file size is the top priority |
| 34 | + |
| 35 | +#### 2. **Quantization Parameters** |
| 36 | +Each quantization parameter controls the precision of the corresponding data type. |
| 37 | + |
| 38 | +| Parameter | Recommended Value | Use Case | |
| 39 | +| ---- | ---- | ---- | |
| 40 | +| Position Quantization | 14 | General models | |
| 41 | +| Normal Quantization | 10 | Models using normal maps | |
| 42 | +| UV Quantization | 12 | Textured models | |
| 43 | +| Color Quantization | 8 | Models using vertex colors | |
| 44 | + |
| 45 | +#### 3. **Performance Considerations** |
| 46 | +- **File Size**: Typically reducible to 10-30% of original size |
| 47 | +- **Loading Time**: Significantly reduced loading times, especially in mobile environments, due to smaller file sizes |
| 48 | +- **Memory Usage**: Memory usage during decompression is approximately equivalent to the original model |
| 49 | +- **Decompression Process**: Enabling GPU decompression improves decompression speed on compatible devices |
| 50 | + |
| 51 | +!!! warning "About compatibility" |
| 52 | + Draco decompression may not be supported on older devices or browsers. |
| 53 | + Please verify operation in your target environment. |
| 54 | + |
| 55 | +## Usage |
| 56 | + |
| 57 | +### Basic Setup Steps |
| 58 | +1. Add VKC Node Draco component to GameObject containing 3D model |
| 59 | +2. Set compression level according to your use case |
| 60 | +3. Adjust quantization parameters as needed |
| 61 | +4. Draco compression is automatically applied during build |
| 62 | + |
| 63 | +### Performance Optimization Tips |
| 64 | +- Compression levels 6-8 are recommended for mobile environments |
| 65 | +- Compression levels 3-5 are recommended for desktop environments focusing on quality |
| 66 | +- More complex geometry achieves higher compression efficiency |
| 67 | +- Combining with texture size optimization creates synergistic effects |
| 68 | + |
| 69 | +!!! note "Best Practices" |
| 70 | + Draco compression only affects 3D model geometry. |
| 71 | + For texture file compression, please refer to [Texture Compression](../WorldOptimization/TextureCompression.en.md). |
0 commit comments