Vladimír Vondruš
5ef7bd26e7
Trade: improve MaterialData type mismatch assertions.
...
Followup to 26a0bf94ff where it was done
for MeshData, forgot that this class suffers from the same issue.
5 years ago
Vladimír Vondruš
ebfbfcbb73
Trade: doc++
5 years ago
Vladimír Vondruš
bdc36e5d7a
SceneGraph: properly decompose reflection in TRS transforms.
...
The test (that started asserting instead of failing after previous
commit) now passes.
5 years ago
Vladimír Vondruš
3697125c7d
Math: disallow reflections in {Complex,Quaternion}::fromMatrix().
...
And update docs in Matrix[34]::rotation() and related functions to note
this. This is a breaking change that may cause existing code to start
asserting.
5 years ago
Vladimír Vondruš
1f55165941
SceneGraph: test that TRS transforms properly decompose reflection.
...
They do not.
5 years ago
Vladimír Vondruš
bd53b2ed1a
Math: doc++
5 years ago
Vladimír Vondruš
87d8b33dbe
Math: test QR and SVD with rotation and scaling instead of shear.
...
QR gives a reasonable result this time, SVD gives kinda the same thing
but with the actual rotation in U instead of V.
5 years ago
Vladimír Vondruš
e9f2101b15
Math: added Distance::pointPoint() and Intersection::pointSphere().
...
Those add nothing of value as they only wrap trivial code, but make the
operations easier to discover, and that's what matters.
5 years ago
Vladimír Vondruš
f9661fe402
Math: add castInto() variants for UnsignedLong/Long.
...
There's now 24 overloads for unsigned types and 24 for signed types,
which is all possible combinations. Not adding an ability to cast
between signed and unsigned as I'm not sure what should be done there.
5 years ago
Vladimír Vondruš
781c5c3e08
Trade: doc++
5 years ago
Vladimír Vondruš
d09e91cac8
external: avoid crashes on eglGetString() returning a nullptr.
5 years ago
Vladimír Vondruš
b79bc18219
doc: updated credits and changelog.
5 years ago
Hans Loeblich
bd8284324f
doc: suggest dpkg-buildpackage --no-sign for a smoother experience.
...
Otherwise it ends with an error message which leads people to think the
package wasn't built.
5 years ago
Vladimír Vondruš
fcfcabcaa9
Doc++
...
Some silly stupidities.
5 years ago
Vladimír Vondruš
2caa3e501e
doc: TinyGltfImporter can be thought of as pretty much caveat-less.
5 years ago
Vladimír Vondruš
9b41947dbc
Trade: doc++
5 years ago
William JCM
dbec10dbee
GL: typo.
5 years ago
Vladimír Vondruš
813d82717f
Trade: no need to export this helper.
5 years ago
Vladimír Vondruš
25320af545
Trade: pass strided views by const&.
...
Those have 3 pointers at least, my limit for passing by value is trivial
copyability and two pointers. I hope that reflects the actual HW at
least vaguely, heh.
5 years ago
Vladimír Vondruš
2b2b7d5f2f
Trade: provide a clear doc snippet for AbstractImporter::openData().
...
The snippet with callbacks was too heavyweight for this kind of
operation and workflow with in-memory data may be non-obvious to some
users.
5 years ago
Vladimír Vondruš
5c06eecde8
Trade: actually, do it like this.
5 years ago
Vladimír Vondruš
bf6caece50
Trade: fix MeshData range checks for array attributes.
...
And add a comment explaining why we don't check the pointer for empty
meshes -- otherwise empty interleaved meshes would fail with stuff like
Trade::MeshData: attribute 0 [0xc:0xc] is not contained in passed
vertexData array [0x0:0x0]
which ... helps nobody.
5 years ago
Vladimír Vondruš
b4666a2194
Trade: improve tests for MeshData index/attribute view range checks.
...
Found a bug with attribute array size not being taken into account. It
triggers now.
5 years ago
Vladimír Vondruš
2059b2b164
Trade: doc++
5 years ago
Vladimír Vondruš
093957a6ed
Trade: no need to zero-init memory in MeshData::*AsArray() helpers.
...
It's all going to get overwritten by the data anyway, so this just
unnecessarily hurts perf.
5 years ago
Vladimír Vondruš
3eb5f887d0
Trade: move a helper definition above where it's used first.
5 years ago
Vladimír Vondruš
cc8d88cbb1
Trade: move a test case to where it fits better.
5 years ago
Vladimír Vondruš
206c4d7a9e
Trade: no need to type that much.
5 years ago
Vladimír Vondruš
26a0bf94ff
Trade: improve MeshData type mismatch assertions.
...
We *do* know what type the user requested, so why not print it as well.
And for the array access the message was especially lazy.
5 years ago
Vladimír Vondruš
7a91b56aa1
Trade: test all MeshData mutable/array attribute assertion variants.
5 years ago
Vladimír Vondruš
c904cd0599
Trade: properly propagate array size from MeshData::attributeData().
...
The test now passes again.
5 years ago
Vladimír Vondruš
f4da3d78cc
Trade: merge MeshData array attribute tests with the main test.
...
Because otherwise we don't properly test all cases. Case in point --
attributeData(UnsignedInt) wasn't correctly propagating the array size,
causing the new tests to fail. Fix in the next commit.
5 years ago
Vladimír Vondruš
0ba5f33f73
Trade: consistent terminology in an assert message.
5 years ago
Vladimír Vondruš
343fc8794d
Trade: don't need to delegate trivial things.
5 years ago
Vladimír Vondruš
c24a762e15
Trade: not sure what's up with this silly temporary.
...
Some places have it, some don't. It's shorter without.
5 years ago
Vladimír Vondruš
2b8d9c7e74
Trade: internal API was named in an outdated way.
...
Long ago, during one of the few initial MeshData iterations. there was
no VertexFormat, but rather Trade::MeshAttributeType. I managed to get
rid of it mostly, except this place.
5 years ago
Vladimír Vondruš
fe57f23e12
Trade: const++
5 years ago
Vladimír Vondruš
e1d62fb154
Trade: typos.
5 years ago
Vladimír Vondruš
46a6724198
Trade: doc++
5 years ago
Vladimír Vondruš
03b7adf71b
imageconverter: some examples of how to use the new functionality.
...
Originally I wanted to show how to convert a JPEG to an EXR directly,
however after trying and miserably failing to implement that inside
OpenExrImageConverter I realized the plugin is definitely not the place
where to perform such conversion. So this will have to wait until
there's some proper API in TextureTools or somewhere.
5 years ago
Vladimír Vondruš
77b979041b
imageconverter: ability to extract layers again.
5 years ago
Vladimír Vondruš
5d4342f1c1
imageconverter: implicitly import and convert all image levels.
...
In case of --layers and --levels this only works if the input images
have a single level, otherwise --level has to be set. The internal
implementation would be too complex otherwise. As a consequence,
combining a set of 2D mipmapped images into a 3D mipmapped image means
one first has to combine particular 2D image levels to 3D levels and
then combine all 3D levels to a 3D mipmapped image, it can't be done in
a single step and it also can't be done by first combining levels and
then layers.
5 years ago
Vladimír Vondruš
e017ba135c
imageconverter: ability to combine multiple levels together.
...
I still have to figure out the interactions between --layers and
--levels and how to implicitly handle conversion of multi-level files.
5 years ago
Vladimír Vondruš
b83099a8c6
imageconverter: ability to combine multiple image layers together.
...
Hey, this was fun, after all!
5 years ago
Vladimír Vondruš
c3213cff9b
imageconverter: print the input filename in each error message.
...
In preparation for support of multiple input files.
5 years ago
Vladimír Vondruš
7a072c59c2
imageconverter: ability to convert also 1D and 3D images.
...
As well as a proper, graceful and helpful diagnostic for images and
levels out of bounds. Before the thing just asserted and died.
5 years ago
Vladimír Vondruš
7702c579a5
imageconverter: shorten the argument help a bit.
5 years ago
Vladimír Vondruš
36b7446a6a
Trade: add docs about multi-level image conversion.
5 years ago
Vladimír Vondruš
f989630a09
AnyImageImporter: test 3D image loading code path.
...
Using the fresh new OpenExrImporter cubemap support.
5 years ago
Vladimír Vondruš
3e8627e688
AnyImageImporter: test detection of Basis file data as well.
...
Hnngh, why did I have the file there at all, then?
5 years ago