Kim Kulling
d279a3cc02
Merge branch 'master' into fix_trivial_warnings
2017-11-03 10:35:02 +01:00
Thomas Lemaire
5b76a31485
fix trivial warnings
...
mainly unused parameter and unused function
some parameters are indeed used in a debug built, I used the
(void)(param) trick
warnings reported by clang 4
2017-11-02 11:13:52 +01:00
Kim Kulling
c666a05e16
Merge pull request #1524 from Matter-and-Form/invalid-texture-coordinates-cleaning-fix
...
Invalid texture coordinates cleaning fix
2017-11-02 10:46:44 +01:00
Kim Kulling
ce7f379aa3
Merge branch 'master' into invalid-texture-coordinates-cleaning-fix
2017-11-01 10:53:43 +01:00
Kim Kulling
62e3ac9b4d
Merge pull request #1525 from daeyun/daeyun-lib-dirs
...
[pyassimp] Search for libassimp.so in LD_LIBRARY_PATH if available.
2017-11-01 10:49:05 +01:00
Daeyun Shin
bf9d319489
Update helper.py
...
Search for libassimp.so in LD_LIBRARY_PATH if available.
2017-10-31 15:43:39 -07:00
Daniel Hritzkiv
e52e44ea07
Formatting
2017-10-31 15:18:08 -04:00
Daniel Hritzkiv
cc4531459f
Set mNumUVComponents to 0 when deleting texture coordinate sets
2017-10-31 15:14:21 -04:00
Kim Kulling
938c02a358
Merge pull request #1523 from assimp/issue_1490
...
closes https://github.com/assimp/assimp/issues/1490 : fix invalid acc…
2017-10-31 15:07:51 +01:00
Kim Kulling
8be196f77d
closes https://github.com/assimp/assimp/issues/1490 : fix invalid access to mesh array when the array is empty.
2017-10-31 14:03:03 +01:00
Kim Kulling
a502560da1
Merge pull request #1520 from assimp/issue_1514
...
Issue 1514
2017-10-31 13:37:23 +01:00
Kim Kulling
af4556d569
only scale the root node because this will rescale all children nodes as well.
2017-10-31 13:08:24 +01:00
Kim Kulling
64ee21024b
Add missing file.
2017-10-31 13:07:07 +01:00
Kim Kulling
ae020281e2
Add unittest
2017-10-31 12:24:32 +01:00
Kim Kulling
bbeb9dd640
Use correct lookup if scaling is enabled.
2017-10-29 23:18:37 +01:00
Kim Kulling
d6f5ad66b2
closes https://github.com/assimp/assimp/issues/1514 : add misisng flag to enable global scaling.
2017-10-29 20:32:44 +01:00
Kim Kulling
f49de6ecfe
closes https://github.com/assimp/assimp/issues/1514 : add postprocess step for scaling
2017-10-29 20:28:59 +01:00
Kim Kulling
89d198399c
Merge pull request #1516 from Matter-and-Form/gltf2-export-roughness-from-shininess-fix
...
[gltf2 export] Fix shininess to roughness conversion
2017-10-27 20:14:23 +02:00
Daniel Hritzkiv
8b73ec7541
Fix shininess to roughness conversion; Add comments
...
Was accidentally flipping to value (1 - x) twice, thus negating the effect.
2017-10-26 11:33:33 -04:00
Kim Kulling
92046319be
Merge pull request #1503 from Matter-and-Form/gltf2-materials
...
glTF2 Material Improvements
2017-10-24 11:08:31 +02:00
Kim Kulling
bfa33b50ad
Merge branch 'master' into gltf2-materials
2017-10-24 10:40:20 +02:00
Kim Kulling
6d98f82440
Merge pull request #1512 from aavenel/safe_atoi_OBJ
...
Raise exception when obj file contains invalid face indice
2017-10-22 09:44:06 +02:00
Alexandre Avenel
cc8374dd80
Return exception when obj file contains invalid face indice
2017-10-21 20:58:00 +02:00
Kim Kulling
aa733d6f77
Merge pull request #1486 from autodesk-forks/adsk-contrib-fix-std-stream-overflow
...
Prevent failing stringstream to crash the export process
2017-10-21 13:34:53 +02:00
ndotl
8cf61c3c89
Merge branch 'master' into adsk-contrib-fix-std-stream-overflow
2017-10-20 15:22:49 +02:00
Daniel Hritzkiv
6e88838602
powf -> pow
...
Fix build errors on linux
2017-10-19 16:21:29 -04:00
Daniel Hritzkiv
40147d253d
Prefer “BLEND” over “MASK” as an alphaMode default
...
“BLEND” is a much nicer alphaMode value (if the hardware supports it – not a steep requirement) than “MASK” as mask is either fully opaque or fully transparent, depending on the alphaCutoff. This matches many other converters’ alphaMode default.
2017-10-19 16:21:29 -04:00
Daniel Hritzkiv
89358458f0
Approximate specularity / glossiness in metallicRoughness materials
...
Before, models (of traditional lighting models) with specularity/glossiness would be completely flat when exported to metallicRoughness. These changes approximate glossiness (as an inverse of roughness, with specular intensity as a multiplier) both reading from gltf2 and writing to gltf2.
2017-10-19 16:21:29 -04:00
Daniel Hritzkiv
a898c1f2d1
SpecularFactor import and export improvements
...
The changes here (which only apply to reading from or writing to pbrSpecularGlossiness) will:
- store and read specular color on `AI_MATKEY_COLOR_SPECULAR ` rather than `AI_MATKEY_GLTF_PBRSPECULARGLOSSINESS_SPECULAR_FACTOR`
- store and read specular texture from `aiTextureType_SPECULAR` rather than `AI_MATKEY_GLTF_PBRSPECULARGLOSSINESS_SPECULARGLOSSINESS_TEXTURE`. Even though pbrSG’s specularGlossiness texture uses the alpha channel for glossiness, it will still work well enough with just the RGB channels of the image
2017-10-19 16:21:29 -04:00
Daniel Hritzkiv
c71790c78d
Diffuse color and diffuse texture import and export improvements
...
These changes do a better of importing and exporting baseColor colors and textures, as well as diffuse colors and textures (in the case of pbrSpecularGlossiness)
- baseColorFactor will be stored on both `$clr.diffuse` and `$mat.gltf.pbrMetallicRoughness.baseColorFactor`, and will be extracted from `$mat.gltf.pbrMetallicRoughness.baseColorFactor` first, and falling back to `$clr.diffuse`. The behaviour for baseColorTexture is similar
- pbrSG’s diffuseFactor will now only be store on `$clr.diffuse` (overwriting any previous assignments to `$clr.diffuse`, e.g. from metallicRoughness’ baseColorFactor, as diffuseFactor is more analogous to diffuse color than baseColor), and will only extract from `$clr.diffuse`
2017-10-19 16:21:16 -04:00
Kim Kulling
dbae8e497d
Merge pull request #1502 from Matter-and-Form/bugfix/gltf1-version
...
Fix output of glTF 1 version string
2017-10-19 21:58:33 +02:00
Daniel Hritzkiv
5eaf083fbd
Fix output of glTF 1 version string
...
Was writing out “\u0001” instead of “1.0” as the data types were incorrect
2017-10-19 12:43:52 -04:00
Kim Kulling
130c25eadb
Merge pull request #1501 from assimp/kimkulling-traviscleanup
...
Update .travis.sh
2017-10-19 10:36:07 +02:00
Kim Kulling
832c1fcc7f
Update .travis.sh
...
Add license info
2017-10-19 09:55:15 +02:00
Kim Kulling
299c34f063
Update .travis.sh
...
Remove dead code.
2017-10-19 09:43:56 +02:00
Kim Kulling
4d30ae5436
Merge pull request #1500 from assimp/kimkulling-doc_path
...
Update Readme.md
2017-10-18 17:29:41 +02:00
ndotl
c49d12cabb
Merge branch 'master' into adsk-contrib-fix-std-stream-overflow
2017-10-18 17:03:43 +02:00
Kim Kulling
4354cce313
Update Readme.md
...
Fix typo.
2017-10-18 15:06:34 +02:00
Kim Kulling
2f56560e3f
Merge pull request #1497 from ihmcrobotics/feature/jassimp-classloader-license
...
Changed license header for IHMC contributions from Apache 2.0 to BSD
2017-10-18 13:54:14 +02:00
ndotl
00e13ccd77
Merge branch 'master' into adsk-contrib-fix-std-stream-overflow
2017-10-18 13:41:09 +02:00
Kim Kulling
b0c435a66e
Merge branch 'master' into feature/jassimp-classloader-license
2017-10-18 09:58:37 +02:00
Kim Kulling
0b2d5de94f
Merge pull request #1496 from aavenel/unitTestObj
...
OBJ : add unit test to validate relative indices
2017-10-18 09:58:10 +02:00
Kim Kulling
85b1181486
Merge branch 'master' into unitTestObj
2017-10-18 09:39:04 +02:00
Kim Kulling
d997ea961a
Merge pull request #1499 from ihmcrobotics/feature/collada-up_axis-api-improvements
...
Add Node metadata to the Jassmip Java API
2017-10-17 20:26:00 +02:00
Doug Stephen
42e2c30b4b
Added helper getters for casting metadata payloads
2017-10-17 11:04:51 -05:00
Doug Stephen
1aa15c8069
Fix header and remove old debug code
2017-10-17 10:35:50 -05:00
Doug Stephen
100fa76a90
Merge remote-tracking branch 'upstream/master' into feature/collada-up_axis-api-improvements
2017-10-17 10:29:03 -05:00
Alexandre Avenel
ff758e4c15
OBJ : add unit test to validate relative indices
2017-10-16 20:35:02 +02:00
Jesper Smith
9d2bcb56c7
Merge remote-tracking branch 'upstream/master' into feature/jassimp-classloader-license
2017-10-16 12:43:35 -05:00
Jesper Smith
82debbf54a
Fixed copyright notice for IHMC jassimp improvements to BSD. Updated README
2017-10-16 12:41:50 -05:00