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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba9d24b8a6d2fc1e8b7040b7388f6fe0e96fd25eb26145e2c7662552aedd427b
|
|
| MD5 |
de11ce0f8f78be0b28e831dc96765314
|
|
| BLAKE2b-256 |
35c5b851008392100743880ef91e5f9384a0ba3ec4fd76968301e91f72aeb2a5
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
obj8_to_wavefront_obj-0.0.2.tar.gz -
Subject digest:
ba9d24b8a6d2fc1e8b7040b7388f6fe0e96fd25eb26145e2c7662552aedd427b - Sigstore transparency entry: 1950061402
- Sigstore integration time:
-
Permalink:
isaacbarker/obj8-to-wavefront-obj@78fbe45b59ee20204e5dd1956f185794171db4a1 -
Branch / Tag:
refs/tags/v-0.0.2 - Owner: https://github.com/isaacbarker
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@78fbe45b59ee20204e5dd1956f185794171db4a1 -
Trigger Event:
release
-
Statement type:
File details
Details for the file obj8_to_wavefront_obj-0.0.2-py3-none-any.whl.
File metadata
- Download URL: obj8_to_wavefront_obj-0.0.2-py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
807bbbe41a47098dead107947de7e75f2e7c05bfdb2b883fcfa37edea6ad8c2b
|
|
| MD5 |
60314c5c7c31b8ef4db859730ed7ed5a
|
|
| BLAKE2b-256 |
18d09bc810fa71c992c315426b3a15bc0c19e29322e6f5009077dafb5e998e59
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
obj8_to_wavefront_obj-0.0.2-py3-none-any.whl -
Subject digest:
807bbbe41a47098dead107947de7e75f2e7c05bfdb2b883fcfa37edea6ad8c2b - Sigstore transparency entry: 1950061527
- Sigstore integration time:
-
Permalink:
isaacbarker/obj8-to-wavefront-obj@78fbe45b59ee20204e5dd1956f185794171db4a1 -
Branch / Tag:
refs/tags/v-0.0.2 - Owner: https://github.com/isaacbarker
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@78fbe45b59ee20204e5dd1956f185794171db4a1 -
Trigger Event:
release
-
Statement type: