Home » Developing U++ » UppHub » XForm3D library for U++ (A lightweight, software-based 3D transformation library for U++)
XForm3D library for U++ [message #61654] |
Sun, 20 April 2025 13:19  |
Oblivion
Messages: 1202 Registered: August 2007
|
Senior Contributor |
|
|
Hi,
I hereby announce the immediate availability of Xform3D package.
What is Xform3d?
Xform3D is a software-based, lightweight 3D transformation library for U++, focused on providing essential matrix math and geometric tools for 3D graphics applications.
It includes a templated 4×4 matrix class and basic support for 3D point manipulation, with a design optimized for row-major, left-handed coordinate systems.
## Features
- Templated Matrix Class (`Matrix4_`): A generic 4×4 matrix supporting translation, scaling, rotation (axis-aligned), perspective, and frustum projection.
- Row-Major Layout with Left-Handed Coordinates:** Matches typical 3D rendering setups for clarity and compatibility.
- Basic 3D Geometry (`Point3_`, `Point4_`): Simple 3D point/vector classes with support for `Null` value handling and homogeneous coordinates.
## Examples
|:-----------------|:---------------------------------------------------------------------------------|
| `Teapot3D` | Example code rendering the famous Utah teapot model, using Xform3D and Painter. |
As a side note: I created this library to be the base of Upp::Sculptor, a Painter-based 3D rendering library I was planning to release. (It is in queue.)
Therefore it is best utilized by Painter. If you look at the example code, you'll see that the Painter integration can be amazingly simple (for simple stuff, of course).
I also plan to vectorize (simd/avx1-2) the matrix math.
Screenshot from Teapot3D:

Best regards,
Oblivion
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Sun, 20 April 2025 13:20] Report message to a moderator
|
|
|
Re: XForm3D library for U++ [message #61656 is a reply to message #61654] |
Sun, 20 April 2025 19:32  |
Didier
Messages: 725 Registered: November 2008 Location: France
|
Contributor |
|
|
I tried you're xform3D package the firts time you published it on the forum.
It's amazing how short the code is for such a complexe fonction 👍
As for vectorisation, you can use clang options that help you rely on auto vectorisation: compile messages are very useful to find out why a loop isn't vectorizef 😉
|
|
|
Goto Forum:
Current Time: Fri Apr 25 07:59:30 CEST 2025
Total time taken to generate the page: 0.00463 seconds
|