Sam Hocevar
38733fade7
math: move the matrix-to-quaternion code to a global header.
This lets us use the code for non-float variable types. I also got
rid of the mat4-to-quat code so that users are forced to use the
mat3-to-quat code and possibly discover places where their code is
suboptimal.
9 jaren geleden
Benjamin ‘Touky’ Huet
2170b89b11
MultiScene: Phase 4: Added SceneDisplay class to have multiple windows + implementation with SDL. Not with the others.
9 jaren geleden
Benjamin ‘Touky’ Huet
0e09074d33
Revamped Game/Draw groups to split stuff and help spreading tick
9 jaren geleden
Benjamin ‘Touky’ Huet
a89dac5c30
Fixed some stuff and added some small tweaks
10 jaren geleden
Sam Hocevar
cd988786b9
build: reorganise includes so that we can use precompiled headers later.
10 jaren geleden
Sam Hocevar
fe665f85b4
base: strip core.h from its contents and put it in public/private headers.
10 jaren geleden
Sam Hocevar
da6b3d5cd0
scenegraph: Entity::TickDraw() now provides a reference to the current
scene so that g_scene can be deprecated later.
10 jaren geleden
Sam Hocevar
8443733a08
math: add GLSL-inherited degrees() and radians() conversion functions.
10 jaren geleden
Benjamin ‘Touky’ Huet
725919089e
small camera fix
10 jaren geleden
Sam Hocevar
b91c177125
camera: const correctness for all getters.
11 jaren geleden
Sam Hocevar
5f3ad5cc15
math: add constant vectors vec2::zero, vec2::axis_x, etc.
11 jaren geleden
Benjamin ‘Touky’ Huet
60b7f05572
Camera : Fixed CTor
11 jaren geleden
Benjamin ‘Touky’ Huet
0a7dc44a67
Added MessageService : Basic & Naive Message logging.
Camera & vector.cpp : Fixed shifted_perspective crash with almost zero FOV.
11 jaren geleden
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
11 jaren geleden
Sam Hocevar
6adf553806
math: implement vec3::toeuler_* for Tait-Bryan angles.
11 jaren geleden
Benjamin ‘Touky’ Huet
afefed080b
Camera : Added useage tweak.
11 jaren geleden
Lolbot
16cbaaa1a3
fixed 3 files out of 2793:
- removed 58 CR characters
- removed 8 trailing whitespaces
- replaced 2 tabs with spaces
- fixed 1 svn:eol-style properties
11 jaren geleden
Benjamin ‘Touky’ Huet
3778159bdc
added camera unit test.
11 jaren geleden
Benjamin ‘Touky’ Huet
876f62228c
btphystest : added new camera functions. Added funny camera stuff for cat simulation.
11 jaren geleden
Sam Hocevar
16a620d537
scene: start refactoring the camera code; we now have a stack of cameras
in the scene where we can push and pop cameras.
11 jaren geleden
Benjamin ‘Touky’ Huet
7a051f9455
Added MeshViewer new project, its goal being to have a program capable of previewing a mesh from an outer source (.txt, js, etc ...) in order to speed up mesh creation.
Added RadialJitter("rj") to EasyMesh parser.
12 jaren geleden
Benjamin ‘Touky’ Huet
c7219ff1dd
New year copyright update.
12 jaren geleden
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
12 jaren geleden
jeunathe
4b041ec074
moved endif (toukinade)
12 jaren geleden
Sam Hocevar
bf62a18bab
camera: deactivate WASD code for camera movement.
12 jaren geleden
Benjamin ‘Touky’ Huet
e8d2d8c202
So Character Controller works with a lazy camera logic.
12 jaren geleden
Sam Hocevar
c51b7c14c9
orbital: some improvements to the mesh parser and error reporting.
12 jaren geleden
Benjamin ‘Touky’ Huet
a031bad19c
Added some convenient functions in camera.
12 jaren geleden
Sam Hocevar
440e86eb68
orbital: use both thumb sticks to pilot ships.
12 jaren geleden
Sam Hocevar
2723dabfac
orbital: play with the camera.
12 jaren geleden
Sam Hocevar
da6062de06
core: add methods to set the camera's view matrix.
12 jaren geleden
Sam Hocevar
4934e9dbee
orbital: move ship with arrows.
12 jaren geleden
Sam Hocevar
45bab95127
input: do not let the joystick override the keyboard.
12 jaren geleden
Sam Hocevar
58b3c20b86
input: add core joystick support and bind the SDL input to that.
12 jaren geleden
Sam Hocevar
8f7d28c169
orbital: play with the tanks.
12 jaren geleden
Sam Hocevar
bfada5d920
core: move some of the camera view logic from the Video class to the
Scene and Camera classes.
12 jaren geleden
Sam Hocevar
90bfc79b22
core: tick methods now use seconds, like any sane system.
12 jaren geleden
Sam Hocevar
08fc460668
core: move the Camera class from Orbital to the engine core.
12 jaren geleden