Skip to content

StormFox23/SimpleRender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleRender

A simple 3D wireframe renderer that loads OBJ files and renders them to TGA/PNG images.

Features

  • 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

Building

make clean && make

Usage

Basic Usage

./main models/house.obj

Convenient Scripts

# 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

Models Included

  • house.obj - A simple house with roof
  • pyramid.obj - A triangular pyramid
  • test.obj - A basic cube

Output

  • Images are saved to the output/ directory
  • Both TGA and PNG formats are generated
  • Default resolution: 800x600 pixels

WSL Integration

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

Requirements

  • C++ compiler (g++)
  • Make
  • ImageMagick (for PNG conversion)
  • WSL (for Windows integration features)

License

MIT License - Feel free to use and modify as needed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published