Commit Graph

8341 Commits (c620e9a2ac7db28c6b94a5b6388825783aee2e2b)

Author SHA1 Message Date
Kim Kulling eb8abfa02c
Update .clang-format
Disable tabs.
2020-02-16 12:37:46 +01:00
Marc-Antoine Lortie d9042e4609 Fixed SimpleTexturedOpenGL sample.
Several places in the sample's code were calling Unicode versions of Win32 functions with "multibyte" strings. A few changes were required to fix it.

I added a class "UTFConverter", which handles calls to unicode/multibyte string conversions. This should help minimize the impacts on code change in case C++'s codecvt_utf8 ever changes.

In addition, seveal memory leaks have been found, but these fixes will come in another PR because it goes beyond the scope of this PR.

DevIL.lib was removed in CMakeFiles.txt, as it is unused in the sample.

Here is a list of the changes:

- Fixed MB string calls to Unicode functions.
- Added class UTFConverter to handle string conversions.
- Removed reference to DevIL.lib.
- Fixed compile warnings.
2020-02-15 18:02:12 -05:00
Adrian Iusca 4f44b4d25f
Merge branch 'master' into master 2020-02-15 23:32:40 +02:00
iamAdrianIusca 024b5e60bc Merge remote-tracking branch 'origin/master' 2020-02-15 23:29:26 +02:00
iamAdrianIusca 5c99d6a864 very small changes
- FIND_PACKAGE(DirectX) is already used in the samples and assimp tool cmake files - so is not needed in the main cmake fil
- other small changes
2020-02-15 23:29:04 +02:00
Marc-Antoine Lortie be4fe131d5 Made changes to write compiled binaries to a common directory.
The following changes were tested with the following projects:

- assimp DLL
- unit tests
- tools/assimp_cmd
- tools/assimp viewer
- samples/SimpleOpenGL
- samples/SimpleTexturedDirectx11
- samples/SimpleTexturedOpenGL

For each program listed above, the results were tested when (CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR) is true and false.

Also, the "lib" in SET (CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_HOME_DIRECTORY}/lib") was changed to "bin" to allow DLLs to be written to executables/launchables programs directory.
2020-02-15 13:10:11 -05:00
Kim Kulling a0000e5be4
Merge pull request #3003 from iamAdrianIusca/master
minor code improvements for the obj code
2020-02-15 10:55:26 +01:00
Kim Kulling 00a104efde
Merge branch 'master' into master 2020-02-14 20:58:13 +01:00
Kim Kulling 82beb35b78
Merge pull request #3000 from malortie/search-invalid-textures-missing-texture-types
Added missing texture types when searching for invalid textures.
2020-02-14 20:05:58 +01:00
Kim Kulling bdd5e52176
Merge branch 'master' into search-invalid-textures-missing-texture-types 2020-02-14 18:04:30 +01:00
Justin Carpentier 1e828cb8bb
pkg-config: fix include path 2020-02-14 15:57:06 +01:00
Kim Kulling 1473c6616b
Merge branch 'master' into master 2020-02-14 12:56:14 +01:00
Kim Kulling f7abd61cca
Merge pull request #2986 from bubba/gltf-camera-pos
Use the translation matrix in gltf2 cameras for aiCamera.mPosition
2020-02-14 12:55:36 +01:00
Adrian Iusca d662b25b17
Merge branch 'master' into master 2020-02-14 13:40:15 +02:00
Inho Lee d04df3e7c5 A bug when importing multiple gltf files
meshOffsets are not cleared when importing multiple gltf files
2020-02-14 08:41:55 +01:00
Kim Kulling 523e6c9f73
Merge branch 'master' into gltf-camera-pos 2020-02-14 08:21:54 +01:00
Kim Kulling d5b7ecd2ec
Merge pull request #2995 from runforu/master
Fix: GLTF animation works on RTS not matrix; fix matrix related bug; …
2020-02-14 08:21:29 +01:00
Hui.Du b62bd38c71 Fix: GLTF animation works on RTS not matrix; fix matrix related bug. 2020-02-14 02:11:12 +00:00
Adrian Iusca 56a71f22e1
Merge branch 'master' into master 2020-02-14 01:04:46 +02:00
Kim Kulling a4868a9530
Merge pull request #2985 from ms-maxvollmer/FBXMeshGeometry_checksizes_fix
Fixed size check to use correct value
2020-02-13 21:40:55 +01:00
iamAdrianIusca 25feb77982 more minor changes 2020-02-13 00:38:56 +02:00
iamAdrianIusca 6f1870681b reduced the scope of iStep variable 2020-02-13 00:27:30 +02:00
iamAdrianIusca 24cdb1f221 revert small change 2020-02-13 00:21:04 +02:00
Adrian Iusca 6f53e8b43b
Merge branch 'master' into master 2020-02-13 00:14:20 +02:00
iamAdrianIusca fc4dd6455a minor code improvements for the obj code
- make use of range for loops
- make use of empty() method for the std::vector
- removed unnecessary std::string initialization
- use ' ' instead of " " for the find methods (should be "faster")
- simplified some function
- make use of emplace_back instead of push_back (should be "faster")
- other small changes
2020-02-13 00:10:07 +02:00
Kim Kulling f5af791633
Merge branch 'master' into FBXMeshGeometry_checksizes_fix 2020-02-12 17:58:00 +01:00
Kim Kulling 58b9dcbdc7
Merge pull request #2973 from bztsrc/master
Additional checks on invalid input
2020-02-12 17:22:46 +01:00
Kim Kulling 47fc3f2627
Update M3DImporter.cpp
Fix a memoryleak.
2020-02-12 14:54:00 +01:00
Kim Kulling 1c13c793f0
Merge branch 'master' into master 2020-02-11 22:00:22 +01:00
Kim Kulling aed762acd7
Merge pull request #2971 from ms-maxvollmer/FBXParser_check_inputlength_fix
Check input token length before copy
2020-02-11 21:57:38 +01:00
Marc-Antoine Lortie 50334086cf Added missing texture types when searching for invalid textures. 2020-02-11 11:42:13 -05:00
Kim Kulling 58990d4e3f
Update FBXParser.cpp
add missing brackets.
2020-02-10 23:59:52 +01:00
Kim Kulling 5e979d72c9
Merge branch 'master' into FBXParser_check_inputlength_fix 2020-02-10 23:59:13 +01:00
Kim Kulling c722061f18
Merge pull request #2969 from LoicFr/master
Import/export of embedded texture names for the glTF/glTF2 format
2020-02-10 23:58:40 +01:00
Kim Kulling 471f9b23c9
Merge branch 'master' into master 2020-02-10 21:37:01 +01:00
Kim Kulling c6000db3be
Merge pull request #2994 from iamAdrianIusca/master
Small changes in the CMake file
2020-02-10 21:07:52 +01:00
Kim Kulling d38e541e89
Merge branch 'master' into master 2020-02-09 20:43:12 +01:00
Kim Kulling 91633dc437
Merge pull request #2987 from Frooxius/master
Fixed population of bone armature and node fields for some meshes
2020-02-09 20:42:30 +01:00
iamAdrianIusca ca08cbcb0c - don't include HunterGate.cmake if you don't enable HUNTER package manager
- don't check for DirectX if you don't build the assimp tools or samples
2020-02-09 20:31:06 +02:00
Kim Kulling 8fd053315c
Update ArmaturePopulate.cpp
- Introduce tabs width of 4.
- Add missing brackets
- Use c++ comment blocks
2020-02-09 11:14:42 +01:00
Kim Kulling 407c550240
Merge branch 'master' into master 2020-02-09 11:05:35 +01:00
Kim Kulling 5a674bb464
Merge pull request #2989 from malortie/multiple-texture-type-to-string-definitions
Fixed TextureTypeToString defined multiple times.
2020-02-09 11:05:08 +01:00
Marc-Antoine Lortie 95a7772b5a
Merge branch 'master' into multiple-texture-type-to-string-definitions 2020-02-07 17:37:10 -05:00
Kim Kulling af9705e3d1
Merge branch 'master' into FBXParser_check_inputlength_fix 2020-02-07 11:52:00 +01:00
Kim Kulling 97a6d80cb1
Merge pull request #2990 from assimp/kimkulling-sponoring-update-1
Update FUNDING.yml
2020-02-07 11:51:37 +01:00
Kim Kulling d3a70c73c4
Update FUNDING.yml
Add paypal sponsoring
2020-02-07 10:58:56 +01:00
Tomas Mariancik acf57bdb13
Merge branch 'master' into master 2020-02-06 22:58:19 +01:00
Marc-Antoine Lortie 8c09cd2ef3 Fixed TextureTypeToString defined multiple times.
- Moved TextureTypeToString to it's own file.
- Added new file to CMakeLists.txt.
- Added 6 missing values in TextureTypeToString.
- Added 6 missing aiTextureType enum values in assimp_cmd/Info.cpp.
2020-02-06 13:19:01 -05:00
Kim Kulling 355131e261
Merge pull request #2942 from malortie/hl1-mdl-remove-texture-256-clamping-2
[MDL HL1] Removed texture dimensions limitation.
2020-02-06 17:24:01 +01:00
Kim Kulling b33272b1c8
Merge branch 'master' into hl1-mdl-remove-texture-256-clamping-2 2020-02-06 14:39:09 +01:00