Skip to main content

A hxa library for python

Project description

A python implementaion for the HxA file format

This is an implementaion of the HxA 3D asset format. The HxA file format was invented by Eskil Steenberg in an effort to have a 3D file format you could implemented in a day with out much hassle.

If you want an overiew of HxA I recomend checking Eskil's Original Video here: https://youtu.be/watch?v=jlNSbSutPZE

Also checkout the original HxA repo and C implementation herehere: https://github.com/quelsolaar/HxA

This library was modeled after gingerbill's odin implementation of hxa which can be found here: https://github.com/odin-lang/Odin/tree/master/core/encoding/hxa

Installation

This library is being hosted on PYPI so you can install it by simply using

pip install hxapy

You can test if everything is working import the library and give the hxa.triangle() function ago

from hxapy import hxa
triangle = hxa.triangle()
hxa.write_to_file("path/to/file.hxa", triangle)

If the program spits out a file you are good to go.

Usage

This library was made to help with the creation of HxA exporters and importers for popular DCC tools. Eskil's original C implementation (and collection of converters) were great at demoing the format but wasnt great for tool integration. I'm hoping that by providing a way to use the HxA format in native python it would help to etablish a larger ecosystem of tools and addons around the format.

0.1.0 checklist

  • The basic "in-memory" class composition of the file.
  • writing to a file
  • reading from a file - (Open a PR if you need this ASAP, otherwise I'll be working on a blender exporter first)

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

hxapy-0.0.12.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

hxapy-0.0.12-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file hxapy-0.0.12.tar.gz.

File metadata

  • Download URL: hxapy-0.0.12.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for hxapy-0.0.12.tar.gz
Algorithm Hash digest
SHA256 ca6bec4dcbd24975466706992531b12b97169aebd75fe7312b209248445f3e20
MD5 afbaee5128c50df7c40ce1c59d9d5df5
BLAKE2b-256 ab60f37d0f110e6811335957a2e605cec0af556148a836ae703d15bb3aec095b

See more details on using hashes here.

File details

Details for the file hxapy-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: hxapy-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for hxapy-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 8e85a4ddf045caf3613ba0c558e2656e8c4f1e9395de0e5dda7cf072f8c757f3
MD5 004a66d2a70634f7eba7d53a2ccfca93
BLAKE2b-256 7c482cdf4af30f9ee8ae81441afe18e40788afe25cc1e6ecf970d909e033fb9d

See more details on using hashes here.

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