Skip to content

jaredcasarez/trax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trax

Python Panda3D GitHub Repo Size GitHub Last Commit GitHub

A Python module for track design and management with 3D visualization, built with the Panda3D Panda3D Framework

Track models supplied by Michal Fanta on Printables (under the Creative Commons Attribution-NonCommercial License)

Brio tracks

City Streets

Demo

Features

  • Track Management: Create, edit, and manage railway tracks with various types (straight, curved, elevated, switches, crossings)
  • 3D Visualization: Interactive 3D editor with camera controls
  • Collision Detection: Robust collision detection for automatic linking
  • GUI Interface: User-friendly graphical interface for track design
  • State Management: Save and load track configurations
  • Export Functionality: Export BOM for 3D printing

Project Structure

brio/
├── controls/          # Camera and selection controls
├── gui/              # GUI components (file browser, gallery, properties)
├── models/           # Data models (track, table)
├── state/            # State management and export
├── tools/            # Specialized tools (collision editor)
├── assets/           # Track models, textures, fonts, icons
│   └── models/
        ├── brio/         # Brio track pieces
        │   ├── Straight/    # Straight track pieces
        │   ├── Curved/      # Curved track pieces
        │   ├── Elevated/    # Elevated/bridge tracks
        │   ├── Crossing/    # Track crossings
        │   └── Switches/    # Track switches
        └── citystreets/     # City street pieces
            ├── Straight/    # Straight street pieces
            ├── Curved/      # Curved street pieces
            ├── Rail/        # Railway/street pieces
            ├── Crossing/    # Street crossings
            └── Roundabout/  # Street roundabout pieces
└── main.py           # Main application entry point

Installation

git clone https://github.com/jaredcasarez/trax
pip install ./trax

Usage

In the terminal (in a new session, if just installed), run:

trax

Requirements

  • Python 3.7+
  • Panda3D (for 3D graphics and physics)
  • panda3d-simplepbr (lighting and rendering)

About

A Python package for brio-style railway track design and management with 3D visualization.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages