Skip to main content

A simple python script used to bulk convert X-Plane OBJ8 files with .dds/.png textures to wavefront .obj and .mtl textures.

Project description

X-Plane OBJ8 to Wavefront .obj standard

Converts X-Plane OBJ8 (.obj) files detailed here (https://developer.x-plane.com/article/obj8-file-format-specification) to Wavefront (.obj) files for use in cases outside simulation (https://en.wikipedia.org/wiki/Wavefront_.obj_file), specifically designed for converting simple meshes in CSL or Model Matching Libraries quickly.

Usage

To use the library simply install using pip install obj8-to-wavefront-obj. Then import the package and use the following function:

    from obj8_to_wavefront_obj import obj8_2_wavefront
    
    input_file_path = "input.obj"
    output_file_path = "output.obj"
    
    obj8_2_wavefront(input_file_path, output_file_path, relative_path=True)

The relative_path field determines if the outputted .mtl and texture will be referenced by their full path or just their relative path. The default value is True.

What is supported?

  • VT, TEXTURE, TRIS and IDX commands
  • .dds and .png textures with simple .mtl conversion, where the texture covers the entire mesh

What isn't supported

  • ANIMATION & TEXTURE_LIT commands
  • Multiple textures

For examples of the results of using this tool see isaacbarker/bluebell-csl-wavefront-obj

DO NOT USE THIS SCRIPT ON COPYRIGHTED CONTENT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

obj8_to_wavefront_obj-0.0.2.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

obj8_to_wavefront_obj-0.0.2-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file obj8_to_wavefront_obj-0.0.2.tar.gz.

File metadata

  • Download URL: obj8_to_wavefront_obj-0.0.2.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for obj8_to_wavefront_obj-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ba9d24b8a6d2fc1e8b7040b7388f6fe0e96fd25eb26145e2c7662552aedd427b
MD5 de11ce0f8f78be0b28e831dc96765314
BLAKE2b-256 35c5b851008392100743880ef91e5f9384a0ba3ec4fd76968301e91f72aeb2a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for obj8_to_wavefront_obj-0.0.2.tar.gz:

Publisher: python-publish.yml on isaacbarker/obj8-to-wavefront-obj

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file obj8_to_wavefront_obj-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for obj8_to_wavefront_obj-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 807bbbe41a47098dead107947de7e75f2e7c05bfdb2b883fcfa37edea6ad8c2b
MD5 60314c5c7c31b8ef4db859730ed7ed5a
BLAKE2b-256 18d09bc810fa71c992c315426b3a15bc0c19e29322e6f5009077dafb5e998e59

See more details on using hashes here.

Provenance

The following attestation bundles were made for obj8_to_wavefront_obj-0.0.2-py3-none-any.whl:

Publisher: python-publish.yml on isaacbarker/obj8-to-wavefront-obj

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page