Sam Hocevar
f791b672ed
misc: lots of compilation fixes for Visual Studio (related to mediocre
support for enable_if and other template metaprogramming techniques),
for Clang (related to static const template class member initialisation)
and for GCC (related to forward declaration of non-int enum classes).
pirms 10 gadiem
Sam Hocevar
a07844682e
build: remove dead PS3 code.
pirms 10 gadiem
Sam Hocevar
efe8e1d051
math: allow to build real numbers from 64-bit integers.
pirms 10 gadiem
Sam Hocevar
cd988786b9
build: reorganise includes so that we can use precompiled headers later.
pirms 10 gadiem
Sam Hocevar
97cdc17ae1
math: add outer product for matrices and vectors.
pirms 10 gadiem
Sam Hocevar
a46afd6ed5
math: make cofactor computation and matrix inversion simpler and more generic.
pirms 10 gadiem
Sam Hocevar
f7a8d5079b
math: disable a few unused operators (for integer quaternions, for instance).
pirms 10 gadiem
Sam Hocevar
62f7068516
math: move code from vector.cpp to matrix.cpp and transform.cpp.
pirms 10 gadiem
Sam Hocevar
ffa21ed0d0
misc: disable all 16-bit float vectors when using Visual Studio.
pirms 10 gadiem
Sam Hocevar
4f28047fc4
math: refactor more shit, I have no idea what I’m doing.
pirms 10 gadiem
Sam Hocevar
52cd11358e
math: finish renaming matrix<> to mat<>.
pirms 10 gadiem
Sam Hocevar
7a28671dee
math: get rid of the base_vec* classes (thanks to relaxed unions), rename
MASK to SWIZZLE in the vector templates, rename matrix<> to mat<> for
consistency, implement transposition for all matrix sizes, make matrix
columns private and only accessible through operator[].
pirms 10 gadiem
Sam Hocevar
ad9a388e80
misc: remove 100% of the "using namespace std;" madness.
pirms 10 gadiem
Sam Hocevar
12aaff89e3
base: huge refactor in vector.h; GCC compilation times down by 50%.
pirms 10 gadiem
Sam Hocevar
fe665f85b4
base: strip core.h from its contents and put it in public/private headers.
pirms 10 gadiem
Benjamin ‘Touky’ Huet
60887138ff
Added tostring to vectors, similar to printf, but with tostring.
pirms 10 gadiem
Benjamin ‘Touky’ Huet
5f12e3ebc1
operator bis repetitas ....
pirms 10 gadiem
Benjamin ‘Touky’ Huet
115bd31b0e
Learn your fucking operators, you dumbass !!!!!
pirms 10 gadiem
Sam Hocevar
cdfb4e7abf
math: fix a few compilation warnings.
pirms 10 gadiem
Benjamin ‘Touky’ Huet
fd4cb5e350
Added debug stuff
pirms 10 gadiem
Sam Hocevar
76740f77bc
math: remove some vector constants that were a bit too specific.
pirms 10 gadiem
Benjamin ‘Touky’ Huet
98eb66b6c8
geomerty cleanup & tweak
pirms 11 gadiem
Benjamin ‘Touky’ Huet
c753233291
geom tweaks
pirms 11 gadiem
Benjamin ‘Touky’ Huet
b2bdb1972f
Several name tweaks here and there.
pirms 11 gadiem
Sam Hocevar
cb62b52ce6
math: add quat::axis() and quat::angle() to retrieve axis and angle from a
quaternion, improve quat::rotate(vec3, vec3) to gracefully handle corner
cases, and add unit tests for all of these.
pirms 11 gadiem
Benjamin ‘Touky’ Huet
b7fc1953ab
Some names tweaks
Added workbench, for personnal experimentation.
pirms 11 gadiem
Sam Hocevar
8443733a08
math: add GLSL-inherited degrees() and radians() conversion functions.
pirms 11 gadiem
Benjamin ‘Touky’ Huet
03474adceb
Added custom vector constants for more usefulness
pirms 11 gadiem
Benjamin ‘Touky’ Huet
88a4859287
Added Test Point in Frustum
pirms 11 gadiem
Sam Hocevar
2bbc0d965a
math: fix broken translation in lookat() function.
pirms 11 gadiem
Sam Hocevar
7cf2a85ae0
math: make mat4::lookat nicer to read.
pirms 11 gadiem
Sam Hocevar
2291ce5d1e
math: add mat2::identity, etc. as global constants.
pirms 11 gadiem
Sam Hocevar
3b62246ef8
math: minor rework in the Euler angles conversion.
pirms 11 gadiem
Benjamin ‘Touky’ Huet
747da72c44
Input : Small refactor, for clarity, easiness and beautification.
Constants : Added minus one.
pirms 11 gadiem
Benjamin ‘Touky’ Huet
2b4dc175ee
Vector classes : added one (for consistency)
SceneSetup : Added ClearColor command
EZMesh : Added Dup[ ... ] command && cgs command syntax refactor
MViewer : Tweak & dictionnary.js updates
pirms 11 gadiem
Sam Hocevar
5f3ad5cc15
math: add constant vectors vec2::zero, vec2::axis_x, etc.
pirms 11 gadiem
Benjamin ‘Touky’ Huet
0a7dc44a67
Added MessageService : Basic & Naive Message logging.
Camera & vector.cpp : Fixed shifted_perspective crash with almost zero FOV.
pirms 11 gadiem
Sam Hocevar
353d0a4417
math: last pass (hopefully) at the quaternion/euler conversions.
pirms 11 gadiem
Sam Hocevar
d5d73330e8
math: more quaternion to Euler angles fixes, plus unit tests.
pirms 11 gadiem
Sam Hocevar
9ecd579593
math: fix quaternion to euler conversion and add unit tests.
pirms 11 gadiem
Benjamin ‘Touky’ Huet
04556dea8b
mat4 : removed useless ortho(). Fixed shifted_perspective so it actually works.
numeric : Added SmoothClamp & swap
camera : fixed target&up issues and added screen-scale factor.
touky_demo : correct camera integration & first pass on uro refactor. Also added Makefile to vcproj
pirms 11 gadiem
Sam Hocevar
58ec9dd582
math: add lol::sq() square function and simplify quaternion conversions.
pirms 11 gadiem
Sam Hocevar
6adf553806
math: implement vec3::toeuler_* for Tait-Bryan angles.
pirms 11 gadiem
Sam Hocevar
f193bc2caa
scene: break text rendering again so that 2D games work properly...
pirms 11 gadiem
Benjamin ‘Touky’ Huet
876f62228c
btphystest : added new camera functions. Added funny camera stuff for cat simulation.
pirms 11 gadiem
Sam Hocevar
7fa84cdf36
math: remove debug code.
pirms 11 gadiem
Sam Hocevar
c6e453fe5c
math: add unit tests for quat::rotate(vec3, vec3).
pirms 11 gadiem
Sam Hocevar
af6deb15a2
math: create a quaternion from two vectors.
pirms 11 gadiem
Benjamin ‘Touky’ Huet
181334f5ad
Added shifted_perspective for easier camera handling.
MeshViewer : Camera update and small object tweak.
ortho to perspective transition is now perfect.
pirms 11 gadiem
Sam Hocevar
d8c6d4c198
doc: add some comments in vector.cpp functions.
pirms 11 gadiem