Commit Graph

5272 Commits

Author SHA1 Message Date
Lynix a1a1a3da0c Replaced mesh material system
Former-commit-id: 1a3f2e0a80211a17838f29e5c0b0fc9def89d30a
2012-11-27 21:45:00 +01:00
Lynix 5d9bf5ed7b (SubMesh) Renamed GetSkinIndex to GetMaterialIndex
Former-commit-id: 7d28e3baa39342234495c9637e7e4886ffdc4b5a
2012-11-27 21:44:32 +01:00
Lynix 626cebfffa Fixed debug include
Former-commit-id: e902beda6826a88d9e59da889817ad40c4b35746
2012-11-27 21:37:41 +01:00
Lynix f48b9ba370 (Material) Added methods to loads and get default
Former-commit-id: 9169e84208b0cddbe698daa9286c8b7eb6a8244c
2012-11-27 21:37:14 +01:00
Lynix 64601a72e7 Fixed ResourceLoader bad stream pos after recover
Former-commit-id: d7c7bb33e055ca44ca5690294b504d6ccb644dde
2012-11-27 21:36:04 +01:00
Lynix 4fbe508960 Removed debug error when copying a matrix
Former-commit-id: 60c57643b5a520abe96fdca83f2d0c28f3bc1f11
2012-11-27 20:25:14 +01:00
Lynix f1b1d2c7a2 Fixed sndfile loader not unregistred
Former-commit-id: 3531101229796dce479412732fdc921c644e1b9b
2012-11-25 19:38:32 +01:00
Lynix 38c1cf2ad0 Added Texture-to-Material loader
Former-commit-id: 789185ca38b4a995c67dfd054306cb920ca56b74
2012-11-25 19:33:58 +01:00
Lynix 18baa6b8c1 Fixed typo
Former-commit-id: 4254892b447457b57cf9657f87ecf32a1ec899fe
2012-11-25 16:12:57 +01:00
Lynix 7f6003085f Fixed 3D module
Former-commit-id: 91b5980f101ab55ce9313e80cbf3ece8c0da9b0f
2012-11-25 16:12:30 +01:00
Lynix ebd4512614 Fixed 3D module building
Former-commit-id: 14f2b8a787f7c316ca039a119d731f2843467acf
2012-11-25 15:09:31 +01:00
Lynix b662bca33d Added Material class
Former-commit-id: db16249b1ecbfdc59ecdca709cb75f4bf1b6d10b
2012-11-25 14:32:19 +01:00
Lynix d3c027e29c Added 3D engine
Former-commit-id: 2e1ea34ac98e25cb27fed050b46b68de4d2d8131
2012-11-24 18:34:49 +01:00
Lynix da2963e1c1 Removed unused forward declaration
Former-commit-id: e32abcef8cf0314a4c020a1b3e6c2f36c6ce9e30
2012-11-24 17:40:28 +01:00
Lynix f1d87484a6 Fixed spaces
Former-commit-id: dde1253c93db44ba0d418c290e1e1f963b97eb0a
2012-11-24 10:15:39 +01:00
Lynix 42de28c037 Shader constructor no longer throw an exception
Former-commit-id: f66607a019bd8498623e350b9a4399d7b2028d1f
2012-11-24 10:15:24 +01:00
Lynix 20be46e866 Made mesh animating/skinning constant
Since it doesn't change any of the mesh proprieties


Former-commit-id: 47eb21f234570d6ffe3af542029f2086744944b0
2012-11-23 21:16:14 +01:00
Lynix 9cec8c3a4b Fixed typo
Former-commit-id: 3de64e02311033aa54524e33d7d136c9c405d3f7
2012-11-23 17:58:22 +01:00
Lynix a132b0a4e1 Fixed some files encoding (Were not UTF-8)
Former-commit-id: a7ceb40bf03381e69ee968f79b732584268493dd
2012-11-23 17:51:03 +01:00
Lynix 158fdbf62b Made inline-assembly more readable
Former-commit-id: 82d94d3c7f314d7d8396c0a73a53d2ffea7b4d3c
2012-11-23 17:48:58 +01:00
Lynix f4591bd331 Removed debug skinning clock
Former-commit-id: ee7dceb2863943952c9c0175fb3a32b136b9f84b
2012-11-22 12:11:26 +01:00
Lynix c1879d6bf9 Fixed Vector3::Make[Forward|Left] not returning
Former-commit-id: be947d6b5c7c1a353fd035f3a5c1c495066ff7ac
2012-11-22 11:44:32 +01:00
Lynix faee0b93b5 Added HardwareInfo class
Former-commit-id: 3db2f8f11d58b4b71b85f749ce2a12dcfff986bc
2012-11-22 11:07:02 +01:00
Lynix e3316c4e10 Fixed SSE warning in debug with GCC
Former-commit-id: 3632988311795547ccf59a66606b3faccff1a1b1
2012-11-22 01:15:58 +01:00
Lynix e6655ef420 Updated utfcpp library
Former-commit-id: fa77cbee9ea9632c326dbcad6f177564b2e7dbf6
2012-11-22 00:06:01 +01:00
Lynix 7a6a63a4b8 Added macros for Intel C++ compiler/x64 platform
Former-commit-id: d2592da3abe140deefae76039992f70c7605f89d
2012-11-21 23:51:41 +01:00
Lynix dba1668011 Fixed SSE2 not being enabled
Former-commit-id: b4b6b3e014bac4dedfe684a30f9729b4c8f03a36
2012-11-21 19:31:16 +01:00
Lynix 70ef422950 Big skeletal animation update
Added MeshInfos demo
Added MD5Mesh/MD5Anim loader support
Added Node class
Fixed ResourceParams not being exported
Added support for skeletal animation
(Animation/Mesh/Joint/SkeletalMesh/Skeleton)
Meshes are now only stored with VertexStruct_XYZ_Normal_UV_Tangent type
Moved Sequence declaration to Sequence.hpp

-Animation:
Renamed Create to Create[Keyframe|Skeletal]

-AxisAlignedBox:
Added Contains method
Added GetCorner method
Added GetCube method
Added Transform method

-Cube/Rect:
Added GetPosition method
Added GetSize method
(Almost) Fixed ExtendTo method
Fixed GetCenter method

-File:
Added GetDirectory static function
Added GetPath method
Renamed GetDirectoryPath method to GetDirectory

-Math module:
Fixed constructor/methods taking a non-const array
GetNormal/Normalize methods now takes an optionnal integer pointer
(returning length)
Made all classes default constructor trivial
Inverse, MakeIdentity, MakeZero, Normalize, Set methods now returns
reference to object

-Matrix4:
Modified methods to avoid copies
Removed COW (Too much overhead)
Removed Concatenate[Affine] static function

-Mesh:
Renamed Create to Create[Keyframe|Skeletal|Static]
Renamed Skin to Material

-MeshParams:
No longer takes declaration argument
Renamed loadAnimations to animated
Storage default to BufferStorage_Hardware if supported and
BufferStorage_Software otherwise

-OpenGL:
Added glGetBooleanv function
Added glIsEnabled function

-Quaternion:
Added ComputeW method
Added Conjugate method

-Renderer:
Added IsEnabled static function
Fixed GetLineWidth function not being static
Removed SetVertexDeclaration

-RenderWindow:
Made CopyTo[Image|Texture] method constant

-Resource
Fixed RemoveResourceListener crash

-ResourceLoader:
Loaders are now used in a LIFO context

-Stream:
Renamed GetLine method to ReadLine

-String:
Fixed Simplified

-Utility module
Added configuration define for strict resource parsing

-VertexBuffer
Now takes a VertexDeclaration pointer

-VertexDeclaration
No longer throw an error when getting a non-existing element


Former-commit-id: f7358c1231d6af48b799d2f24f077a001e16785b
2012-11-21 19:20:32 +01:00
Remi Beges a0b7364eed Added HybridMultiF 3D & 4D
*new constructors for simple noises
*minor bufixes


Former-commit-id: 2f1e9b6b54087e79b3ac52fefc9bbd67fd45c0eb
2012-11-13 19:27:48 +01:00
Lynix 84f73f2b6a Updated global header generator
Now adds include guards


Former-commit-id: bbc67864703910cf21946fd22302efe6a52d8495
2012-11-11 17:57:43 +01:00
Lynix b4e74b6574 Updated readme
Former-commit-id: d7932f5c15a4419cf6af4461373a9ef076a452f0
2012-11-11 17:56:08 +01:00
Remi Beges 8f04f3e6a0 Added FBM 3D & 4D and HybridMultiFractal 2D + cleaned code
this commit will change the scale of values produced by fbm2d. This will
probably not happen again. As a consequence, fbm values will always be
constrained between -1 and 1, but do not perfectly stick to that scale.
There is no easy solution, if the user wants the best dynamic between -1
and 1, he should adjust manually the value by multiplying by a gain slightly superior to 1.


Former-commit-id: ebdba9e9f4bbb972abe355c07ec9f8bce42329b9
2012-11-09 18:38:50 +01:00
Jérôme Leclercq 0ffdad48a8 Added Stream include to Core global include
Former-commit-id: 2901eeac313cde208f82e6995711ce7044a8910b
2012-11-08 14:27:19 +01:00
Jérôme Leclercq 94bb765a77 Added Shader::SendColor(Color)
Former-commit-id: e3af0e2cb75a437304ee274a6123114b41dd7d94
2012-11-08 14:25:48 +01:00
Jérôme Leclercq 7cc520be95 Random changes without any meaning
Former-commit-id: bcae279b389ea9c33afc27ac7f6eded6305fa134
2012-11-08 14:24:00 +01:00
Jérôme Leclercq 6c2bc910d2 Fixed log duplicating to stderr instead of stdout
Former-commit-id: 4eca34d28cd215d5d9a33435375fe9ae90071fb1
2012-11-08 14:22:12 +01:00
Jérôme Leclercq 1b61c97c8d Fixed NzFile::Text not being applied to stream
Former-commit-id: 59416a8ca8d86e9ef41945a168a9cc1e104efe4d
2012-11-08 14:21:40 +01:00
Remi Beges 7bd6202389 Merge remote-tracking branch 'upstream/master'
Former-commit-id: 8fe411f0146d6cc64cf8d32cc4896f7f417f62a5
2012-11-04 18:51:23 +01:00
Lynix 6301bd8f38 Fixed matrices not updated when changing shader
-Ugly fix


Former-commit-id: 19140fcf8966b1db9c2c324f4654db77f6a4aeef
2012-11-03 00:34:12 +01:00
Lynix c82b2510f0 Fixed NULL caracter in shader logs
Former-commit-id: 998033458dce185715f7539167fb88a402a34ff3
2012-11-03 00:15:16 +01:00
Lynix 6b9c88221a Added Shader::IsValid()
Former-commit-id: 829320e4fd92dafb829019d875135ca9b75a3db2
2012-11-02 23:47:09 +01:00
Lynix 9199e60436 Added implicit conversion from AABB to String
Former-commit-id: c41510f4e0527a174d4acb5f8f26f60f4984ce15
2012-11-02 21:50:33 +01:00
Lynix 1b3129868f Added NzRenderer::[Get/Set]LineWidth
Former-commit-id: 827f762294bb67debb2a7faed07b595df2b9d20d
2012-11-01 18:28:49 +01:00
Lynix 5c2f94f953 You can now change the point size
Former-commit-id: b0018b14973d36f822524e8e5b94ba940a63897f
2012-11-01 18:20:15 +01:00
Lynix d5416fb139 Fixed cast
Former-commit-id: 2cbcf9c10c0d2bfd2cf441528ddf712bee80d7bd
2012-10-30 19:24:05 +01:00
Lynix 1d217837cf Added compiler tests and fixed MinGW warnings
Former-commit-id: 550d467e0997065943dc0b18a36d1be0edbb8114
2012-10-30 18:52:38 +01:00
Lynix f1eb859707 Fixed fprintf specifiers
Thanks to Quentin Huot-Marchand


Former-commit-id: 07bb2a1c2a0baaebac42f1664487624f8d39e16c
2012-10-30 17:37:17 +01:00
Lynix 93a1738c55 Optimized VertexDeclaration::GetElement
Former-commit-id: a56498837ae2f6101e0641aab23b2d1d0f9130f3
2012-10-29 10:00:57 +01:00
Lynix 8132812c23 Interpolation factor is now only checked in debug
Former-commit-id: b5cf2b63740a0827403cac7843aca4b820b7687f
2012-10-29 09:59:55 +01:00
Lynix a608aa0e2a Cleaning loader code
Former-commit-id: a34fae25b7e70e1168fa6bfa089d8de991184036
2012-10-29 09:59:18 +01:00