119 Commits

Author SHA1 Message Date
Nehon
ad03eab01d Fix an issue with material adpater 2017-08-31 21:39:54 +02:00
Nehon
1bdebd5505 Added support for attachment nodes.
JME now supports byte buffers for index buffer
2017-08-31 21:39:54 +02:00
Nehon
d6c74dbf37 Added camera support 2017-08-31 21:39:54 +02:00
Nehon
f14acf305b Added support for extensions, implemented PBR spec gloss extension 2017-08-31 21:39:54 +02:00
Nehon
e9869e5298 Added support for base64 embed data and Images 2017-08-31 21:39:54 +02:00
Nehon
285d6bb86c Pad data when animation doesn't start at 0. 2017-08-31 21:39:54 +02:00
Nehon
94277ac286 Model can now be loaded keeping the specific pose of the skeleton in the file. 2017-08-31 21:39:54 +02:00
Nehon
de78c8deb6 Properly Read and use inverseBindMatrices for skeleton bind pose. 2017-08-31 21:39:54 +02:00
Nehon
225afd0f92 Compute the 4 more weighted bone index for skin animation when there are several Joint buffers for a mesh. 2017-08-31 21:39:54 +02:00
Nehon
911d8d77ef Actually commit the right file... 2017-08-31 21:39:54 +02:00
Nehon
4d78a5aef8 Gltf: all demo case of bone animation are now covered.
Though, this put in light a bug in our animation system that needs more work to get fixed.
2017-08-31 21:39:54 +02:00
Nehon
ea6c406979 Implemented bone animation. This is still in WIP state, currently working for the most simple cases. 2017-08-31 21:39:54 +02:00
Nehon
d7b2e08d95 Spatial tracks now can keep a reference to the spatial they apply to. This allows to group multiples spatial tracks in a single animation. 2017-08-31 21:39:54 +02:00
Rémy Bouquet
6b3093aa3e GLTF: armature loading. 2017-08-31 21:39:54 +02:00
Nehon
42aec10020 Gltf Spatial animation loading 2017-08-31 21:39:54 +02:00
Nehon
4daa0b5d9b Generates mikkt space tangents when a geometry has no tangent bufer but uses a material with a normal map 2017-08-31 21:39:54 +02:00
Nehon
40c4f7936d Implemented texture loading and PBR metalness/roughness pipeline support
Fixed  some mesh loading issues.
2017-08-31 21:39:54 +02:00
Nehon
3bbfabed5e Gltf: added support for PBR colored material 2017-08-31 21:39:54 +02:00
Nehon
7951f5a987 Gltf loader can load mesh data and scene structure. 2017-08-31 21:39:54 +02:00
empirephoenix
4663258904 Merge pull request #535 from papaspace/custom-blend-func
Added RenderState.BlendMode.Custom
2016-12-07 13:00:21 +01:00
MeFisto94
10a80b4352 Fixes #566 - XML Serialization handles empty buffers properly now. 2016-10-31 10:24:25 +01:00
Michael Braunstingl
d39b780fa5 Added RenderState.BlendMode.Custom
BlendMode.Custom allows glBlendFuncSeparate() calls.
2016-07-24 12:40:45 +02:00
empirephoenix
2c1fd47a67 Merge pull request #477 from riccardobl/fix_topic35663_issue
Ogre importer: Fix for material sharing
2016-05-18 11:41:52 +02:00
Nehon
5de286e291 Better j3md export test 2016-05-10 17:45:54 +02:00
Nehon
8d01c5a26f MatDef is not Savable anymore. Kind of reverted previous commit and implemented and very straight forward exporter for J3mds that doesn't use the Savable process of jme3 since it's designed to save the whole graph and not only subparts of it like materials and material defs. The API stays the same though 2016-05-10 13:06:04 +02:00
Nehon
81053352ac initial and partial implementation of a j3md exporter with test 2016-05-09 17:08:32 +02:00
Eirenliel Allier
681b2101dc Fix building with JRE 1.7 2016-04-26 11:21:34 +03:00
Eirenliel Allier
794932104b Fix compatibility with Java 7 2016-04-26 11:12:37 +03:00
Eirenliel Allier
4b6be2a789 FBX Importer cleanup 2016-04-26 10:16:03 +03:00
Eirenliel Allier
f65dd517c9 Reworked original FBX importer 2016-04-26 10:10:26 +03:00
Riccardo Balbo
70ef220c2b Fix material sharing 2016-04-18 11:52:06 +02:00
Kirill Vainer
3f5cc4963e FBX: use new loader by default 2016-04-10 23:20:41 -04:00
Kirill Vainer
876015ab47 deprecate alpha test / point sprite 2016-04-10 12:09:36 -04:00
Nehon
493855bac9 LineWidth is now a RenderState parameter, One can change the lineWidth used to render a mesh wireframe or a mesh in Lines mode by using material.getAdditionalRenderState().setLineWidth(value) 2016-03-20 21:36:28 +01:00
Nehon
107123820b Fixed material exporting NPE when the additionalRenderState is null 2016-03-17 14:04:48 +01:00
Nehon
e0ffff3af0 Better test for material loading, also ensured that the J3MExporter writes UTF-8 files 2016-03-11 21:27:46 +01:00
Nehon
3245c9ac89 Silence test...anyway who does tests? 2016-03-11 18:58:53 +01:00
Nehon
d1e707feb0 Testing something so the Test can properly Test the Test I want it to Test 2016-03-11 18:36:53 +01:00
Nehon
bcea9bfe51 Better regex testing in TestMaterialWrite 2016-03-11 18:16:48 +01:00
Nehon
5e6d2e8ca3 J3MExporter : allows to save Materials to j3m files.
Added proper test in jme3-plugins
2016-03-11 17:45:29 +01:00
Kirill Vainer
b4baaadc79 JmeExporter: remove useless return 2015-05-03 15:59:32 -04:00
Kirill Vainer
ed2be5e542 FBX: new FBX importer (not yet enabled - old importer still used by default)
Still needs work:
 * Skeletal animation (many issues with transform hierarchies)
 * N-gons triangulation (only quads supported at the moment)
 * Light & Camera importing
 * Z-up to Y-up correction
 * Morph animation
2015-04-19 18:08:28 -04:00
Kirill Vainer
6f29772862 FBX: fix build error due to rename 2015-04-19 13:42:25 -04:00
Kirill Vainer
0a5b68983e FBX: Rename FBX -> Fbx. Support FBX 6.x IDs in FbxDump. 2015-04-19 13:33:43 -04:00
shadowislord
ba8349a0cf FBX: ContentTextureKey to disable cache
FBXDump remove useless import
2015-04-19 13:24:44 -04:00
shadowislord
d55a859240 FBXLoader: add class to dump FBX binary files as text 2015-02-28 19:07:20 -05:00
shadowislord
47e1c336e6 XMLImporter: make sure to close stream if exception occurs 2015-02-28 18:29:38 -05:00
shadowislord
d3b71cd946 OgreXML material loading: some material state was not reset, causing it to leak to other models 2015-02-24 22:09:57 -05:00
shadowislord
9759e24961 OgreXML materials: inherit more parameters from TextureKey
Allows modifying the key in a AssetLoadListener to modify the anisotropic filter
2015-02-21 15:40:42 -05:00
shadowislord
85bba59541 OgreXML: Use the placeholder texture for missing textures 2015-02-21 15:35:07 -05:00