Git Product home page Git Product logo

pyobjexplorer's Introduction

pyOBJExplorer

Explore 3D visualization of Wavefront OBJ models with pyOBJParser, a showcase of how to integrate VPython and pyOBJParser. pyOBJExplorer offers an intuitive and straightforward solution, allowing users to delve into the intricate details of textures, materials, and geometries within OBJ files.

VPython (Visual Python)

VPython is a lightweight and simple Python library for creating interactive 3D visualizations and simulations, often used in education to teach concepts like physics and computer science. Testing Wavefront OBJ files larger than 10 MB for simulation is not recommended.

OBJExplorer

Following files is included

  • Explorer.py The main file to run. It can also be executed from the command line with a specified OBJ file.
  • WavefrontOBJ.py source: pyOBJParser
  • WavefrontMTL.py source: pyOBJParser
  • Triangulate.py source: pyTriangulate

Dependencies

Install vpython

pip install vpython

Usage

From the command line, simply enter 'explorer.py' followed by the file name.
Please ensure to close the browser upon completion to restore command line control.

python Explorer.py .\objFiles\rubikcube.obj

rubikcube
Rubik's cube with standard color

python Explorer.py -w .\objFiles\rubikcube.obj

rubikcube
Rubik's cube with wireframe

python Explorer.py -b .\objFiles\drill.obj

rubikcube
Drill with texture and axis align bounding box

VPython Controls Guide

Mouse controls only

  • Rotate: Click and drag with the right mouse button to rotate the scene.
  • Zoom: Scroll the middle mouse wheel to zoom in and out.

Mouse Controls and Keyboard

  • Rotate: Ctrl + click and drag with the left mouse button to rotate the scene.
  • Pan: Shift + click and drag with the left mouse button to pan the scene.

License

This software is released under the MIT License terms.

pyobjexplorer's People

Contributors

stefanjohnsen avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.