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 hxa

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

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.11.tar.gz (4.5 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.11-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hxapy-0.0.11.tar.gz
  • Upload date:
  • Size: 4.5 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.11.tar.gz
Algorithm Hash digest
SHA256 c8a66901b7ee20241931d39639114b6ae9ea3a325308728a1862df0643eeabb0
MD5 591a2887a29435e79d993f833fc21b6a
BLAKE2b-256 3407805d9c7bd47e58b86f6cca5dd2c205dfa8ef32fe3f4f71d012045a75c7df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hxapy-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 5.6 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.11-py3-none-any.whl
Algorithm Hash digest
SHA256 d9fef302e60c698c0dcb9184583f1a10f576218f776e284c0225a814832286e0
MD5 3c710d85c7070e850aa74e6e4f0f56bd
BLAKE2b-256 d6f322fffd8678a04a95396d764bf2ba307530351e2da7adfa0640a3a5a5b7d2

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