A simple 3D wireframe renderer that loads OBJ files and renders them to TGA/PNG images.
- OBJ file loading (vertices and faces)
- Wireframe rendering using Bresenham's line algorithm
- TGA image output with automatic PNG conversion
- Automatic scaling and positioning
- WSL-to-Windows GUI integration
make clean && make
./main models/house.obj
# Render and auto-open in Windows (WSL)
./render.sh house.obj
# View rendered image in Windows
./view.sh output/output.png
# Open output folder in Windows Explorer
./open_folder.sh
# Show help
./help.sh
house.obj
- A simple house with roofpyramid.obj
- A triangular pyramidtest.obj
- A basic cube
- Images are saved to the
output/
directory - Both TGA and PNG formats are generated
- Default resolution: 800x600 pixels
The project includes scripts for seamless integration with Windows when running in WSL:
- Automatic Windows path conversion
- PowerShell integration for opening files
- Windows Explorer integration
- Fallback methods for different Windows versions
- C++ compiler (g++)
- Make
- ImageMagick (for PNG conversion)
- WSL (for Windows integration features)
MIT License - Feel free to use and modify as needed.