Changesets: DarkRadiant

ase_importer fa47412c

04.04.2021 14:00

greebo


Details Diff
0005576: Parsing ASE files using the old C code is functional now, except for the shader name. Affected Issues
0005576
mod - radiantcore/model/import/AseModel.cpp Diff File
mod - radiantcore/model/import/AseModel.h Diff File

master cda42e96

04.04.2021 13:47

orbweaver


Details Diff
Fix inaccuracy in Vector3 getLength()/getLengthSquared()

Although our Vector3 is double precision, for some reason getLength() and
getLengthSquared() were forcing everything to float precision.

getLengthSquared() now operates in the native T type (this will work even for a
hypothetical BasicVector3<int>, since it's just multiplication and addition),
and is implemented as the dot product of the vector with itself for simplicity.

getLength() now returns double, since std::sqrt() always returns a double
anyway so there is no point in converting it at this point.

This allows the VectorLength unit test to compare for exact equality rather
than using an epsilon (the same calculation on the same compiler with the same
FPU should give consistent results).
mod - libs/math/Vector3.h Diff File
mod - test/math/Vector.cpp Diff File

ase_importer 072a7124

04.04.2021 13:42

greebo


Details Diff
0005576: Place the old parser code inside AseModel::CreateFromStream() and get it to compile. Loader is not able to submit triangles yet, the adapter is missing.
mod - radiantcore/model/import/AseModel.cpp Diff File
mod - radiantcore/model/import/AseModel.h Diff File
mod - radiantcore/model/import/AseModelLoader.cpp Diff File

ase_importer d5025a36

04.04.2021 13:42

greebo


Details Diff
0005576: Place the old parser code inside AseModel::CreateFromStream() and get it to compile. Loader is not able to submit triangles yet, the adapter is missing. Affected Issues
0005576
mod - radiantcore/model/import/AseModel.cpp Diff File
mod - radiantcore/model/import/AseModel.h Diff File
mod - radiantcore/model/import/AseModelLoader.cpp Diff File

master 57622537

04.04.2021 13:26

orbweaver


Details Diff
Test and de-member Vector3 componentwise product
mod - libs/math/Vector3.h Diff File
mod - test/math/Vector.cpp Diff File

master d795d57d

04.04.2021 12:56

orbweaver


Details Diff
Vector3 subtraction operators are non-members

Also reimplemented in-place addition, subtraction and multiplication to call
the non-in-place operators, rather than using separate code.
mod - libs/math/Vector3.h Diff File
mod - test/math/Vector.cpp Diff File

master 6e990ff6

04.04.2021 12:36

orbweaver


Details Diff
Move Matrix test functions into a separate suite

Having a single MathTest suite made sense when there were relatively few tests,
but it is unwieldy now that there are dozens.
mod - test/math/Matrix4.cpp Diff File

master 71c0050c

04.04.2021 12:32

orbweaver


Details Diff
Simplify Vector3 addition operators

Operators are now non-member functions, and no longer have a separate template
type for the second vector (this would prevent adding a BasicVector3<double> to
a BasicVector3<float>, but it does not seem that we have any code which needs
to do this).
mod - libs/math/Vector3.h Diff File
mod - test/math/Vector.cpp Diff File

master 72450cf6

04.04.2021 12:17

orbweaver


Details Diff
Remove unused Vector3::isValid()
mod - libs/math/Vector3.h Diff File

master 92b0103a

04.04.2021 12:05

orbweaver


Details Diff
Improve and test Vector3 scalar multiplication

operator* is now a non-member function, and can apply the multiplication in
either order (v*s or s*v).
mod - libs/math/Vector4.h Diff File
mod - test/math/Vector.cpp Diff File

master 820ee776

04.04.2021 11:49

orbweaver


Details Diff
Rename test/math/Vector3.cpp to Vector.cpp

File includes test for vectors of various sizes, not just Vector3.
mod - test/CMakeLists.txt Diff File

ase_importer 142122d2

04.04.2021 11:44

greebo


Details Diff
0005576: A StaticModelSurface has to be constructed with non-empty vertex and index data.
Add a new constructor accepting the rvalue-refs of the vertex and index vectors, and move the PicoModel-specific conversion code to PicoModelLoader which will create the suitable data structures before passing them to the move constructor. Prepare the AseModelLoader to use the same pattern.
mod - radiantcore/model/StaticModelSurface.cpp Diff File
mod - radiantcore/model/StaticModelSurface.h Diff File
mod - radiantcore/model/import/AseModel.cpp Diff File
mod - radiantcore/model/import/AseModel.h Diff File
mod - radiantcore/model/import/AseModelLoader.cpp Diff File
mod - radiantcore/model/picomodel/PicoModelLoader.cpp Diff File

ase_importer d8845d73

04.04.2021 11:44

greebo


Details Diff
0005576: A StaticModelSurface has to be constructed with non-empty vertex and index data.
Add a new constructor accepting the rvalue-refs of the vertex and index vectors, and move the PicoModel-specific conversion code to PicoModelLoader which will create the suitable data structures before passing them to the move constructor. Prepare the AseModelLoader to use the same pattern.
Affected Issues
0005576
mod - radiantcore/model/StaticModelSurface.cpp Diff File
mod - radiantcore/model/StaticModelSurface.h Diff File
mod - radiantcore/model/import/AseModel.cpp Diff File
mod - radiantcore/model/import/AseModel.h Diff File
mod - radiantcore/model/import/AseModelLoader.cpp Diff File
mod - radiantcore/model/picomodel/PicoModelLoader.cpp Diff File

ase_importer 80391e45

04.04.2021 10:59

greebo


Details Diff
0005576: Remove picomodel references from AseModelLoader.
mod - radiantcore/model/import/AseModelLoader.cpp Diff File

ase_importer 9cccf6b2

04.04.2021 10:59

greebo


Details Diff
0005576: Remove picomodel references from AseModelLoader. Affected Issues
0005576
mod - radiantcore/model/import/AseModelLoader.cpp Diff File

ase_importer 7537c3cc

04.04.2021 10:56

greebo


Details Diff
0005576: Moving pico-to-staticsurface conversion code to PicoModelLoader.
mod - radiantcore/model/StaticModelSurface.cpp Diff File
mod - radiantcore/model/StaticModelSurface.h Diff File
mod - radiantcore/model/import/AseModel.cpp Diff File
add - radiantcore/model/import/AseModel.h Diff File
mod - radiantcore/model/import/AseModelLoader.cpp Diff File
mod - radiantcore/model/picomodel/PicoModelLoader.cpp Diff File
mod - radiantcore/model/picomodel/PicoModelLoader.h Diff File
mod - tools/msvc/DarkRadiantCore.vcxproj Diff File
mod - tools/msvc/DarkRadiantCore.vcxproj.filters Diff File

ase_importer 4d507417

04.04.2021 10:56

greebo


Details Diff
0005576: Moving pico-to-staticsurface conversion code to PicoModelLoader. Affected Issues
0005576
mod - radiantcore/model/StaticModelSurface.cpp Diff File
mod - radiantcore/model/StaticModelSurface.h Diff File
mod - radiantcore/model/import/AseModel.cpp Diff File
add - radiantcore/model/import/AseModel.h Diff File
mod - radiantcore/model/import/AseModelLoader.cpp Diff File
mod - radiantcore/model/picomodel/PicoModelLoader.cpp Diff File
mod - radiantcore/model/picomodel/PicoModelLoader.h Diff File
mod - tools/msvc/DarkRadiantCore.vcxproj Diff File
mod - tools/msvc/DarkRadiantCore.vcxproj.filters Diff File

ase_importer 3885e8bf

04.04.2021 08:24

greebo


Details Diff
0005576: Move the pm_ase.c code to a C++ source file, fix a few compilation errors. No ASE parsing possible at this point.
mod - radiantcore/CMakeLists.txt Diff File
mod - radiantcore/model/import/AseModelLoader.cpp Diff File
mod - tools/msvc/DarkRadiantCore.vcxproj Diff File
mod - tools/msvc/DarkRadiantCore.vcxproj.filters Diff File

ase_importer daf8333d

04.04.2021 08:24

greebo


Details Diff
0005576: Move the pm_ase.c code to a C++ source file, fix a few compilation errors. No ASE parsing possible at this point. Affected Issues
0005576
mod - radiantcore/CMakeLists.txt Diff File
mod - radiantcore/model/import/AseModelLoader.cpp Diff File
mod - tools/msvc/DarkRadiantCore.vcxproj Diff File
mod - tools/msvc/DarkRadiantCore.vcxproj.filters Diff File

ase_importer 87927f7f

04.04.2021 08:23

greebo


Details Diff
0005576: Add const-ness
mod - radiantcore/model/picomodel/lib/picointernal.c Diff File
mod - radiantcore/model/picomodel/lib/picointernal.h Diff File

ase_importer 670e724b

04.04.2021 08:23

greebo


Details Diff
0005576: Add const-ness Affected Issues
0005576
mod - radiantcore/model/picomodel/lib/picointernal.c Diff File
mod - radiantcore/model/picomodel/lib/picointernal.h Diff File

ase_importer 8d98db1a

04.04.2021 07:34

greebo


Details Diff
0005576: Move StaticModel from model/picomodel/ to to its parent folder
mod - radiantcore/CMakeLists.txt Diff File
mod - radiantcore/model/import/AseModelLoader.cpp Diff File
mod - radiantcore/model/picomodel/PicoModelLoader.cpp Diff File
mod - radiantcore/model/picomodel/PicoModelLoader.h Diff File
mod - tools/msvc/DarkRadiantCore.vcxproj Diff File
mod - tools/msvc/DarkRadiantCore.vcxproj.filters Diff File

ase_importer 1577f7ba

04.04.2021 07:34

greebo


Details Diff
0005576: Move StaticModel from model/picomodel/ to to its parent folder Affected Issues
0005576
mod - radiantcore/CMakeLists.txt Diff File
mod - radiantcore/model/import/AseModelLoader.cpp Diff File
mod - radiantcore/model/import/ModelImporterBase.cpp Diff File
mod - radiantcore/model/picomodel/PicoModelLoader.cpp Diff File
mod - radiantcore/model/picomodel/PicoModelLoader.h Diff File
mod - tools/msvc/DarkRadiantCore.vcxproj Diff File
mod - tools/msvc/DarkRadiantCore.vcxproj.filters Diff File

ase_importer ed51de45

04.04.2021 07:32

greebo


Details Diff
0005576: Move some files from models/picomodel/ to the more generic models/import/
mod - radiantcore/CMakeLists.txt Diff File
mod - radiantcore/model/picomodel/PicoModelLoader.h Diff File
mod - radiantcore/model/picomodel/PicoModelModule.h Diff File
mod - tools/msvc/DarkRadiantCore.vcxproj Diff File
mod - tools/msvc/DarkRadiantCore.vcxproj.filters Diff File

ase_importer 73adffef

04.04.2021 07:32

greebo


Details Diff
0005576: Move some files from models/picomodel/ to the more generic models/import/ Affected Issues
0005576
mod - radiantcore/CMakeLists.txt Diff File
mod - radiantcore/model/picomodel/PicoModelLoader.h Diff File
mod - radiantcore/model/picomodel/PicoModelModule.h Diff File
mod - tools/msvc/DarkRadiantCore.vcxproj Diff File
mod - tools/msvc/DarkRadiantCore.vcxproj.filters Diff File
 First  Prev  1 2 3 ... 30 ... 60 ... 90 ... 120 ... 137 138 139 140 141 142 143 ... 150 ... 180 ... 210 ... 240 ... 261 262 263  Next  Last