Quick Start¶
This guide will get you viewing W3D models in minutes.
Running the Viewer¶
After building the project, launch the viewer:
Loading a Model¶
Using the GUI¶
- Launch the viewer without arguments
- The File Browser panel opens automatically
- Navigate to your W3D files
- Click a
.w3dfile to load it
Using Command Line¶
Load a model directly:
With custom texture path:
Basic Navigation¶
Once a model is loaded:
| Action | Control |
|---|---|
| Rotate camera | Left mouse drag |
| Zoom in/out | Mouse scroll wheel |
| Pan camera | Middle mouse drag |
Understanding the Interface¶
The viewer has several UI panels:
Viewport Window¶
The main 3D view showing your model. This is where you interact with the camera.
Model Info Panel¶
Displays information about the loaded model:
- Mesh count and names
- Vertex/triangle counts
- Texture information
- Bone hierarchy
Animation Panel¶
If the model has animations:
- Play/pause animation
- Adjust playback speed
- Select different animations
- Scrub through timeline
LOD Panel¶
For models with multiple LOD levels:
- View available LOD levels
- Force specific LOD level
- See LOD switching thresholds
Console Window¶
Shows debug output and loading messages. Useful for troubleshooting.
Example Workflow¶
-
Launch the viewer
-
Open a model using the file browser
-
Explore the model
- Rotate with left mouse drag
- Zoom with scroll wheel
-
Check the Model Info panel for details
-
Play animations (if available)
- Open the Animation panel
- Select an animation from the dropdown
-
Click Play
-
Inspect LOD levels
- Open the LOD panel
- Toggle between LOD levels
Obtaining W3D Files¶
W3D files come from Command & Conquer: Generals and Zero Hour:
- Locate your game installation directory
- Look in the
Datafolder - W3D files may be inside
.bigarchives - Use a BIG extractor tool to access individual files
Legal Notice
Ensure you own a legitimate copy of the game. W3D files are copyrighted by Electronic Arts.
Debug Mode¶
Enable verbose output for troubleshooting:
This prints detailed information about:
- File parsing progress
- Chunk types encountered
- Texture loading status
- Any warnings or errors
Next Steps¶
- Learn more about navigation controls
- Explore the user interface
- Understand the W3D format