rem..om
cf1ff27234
- Fixed the way handedness/parity is computed in the tangent binormal generator
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10663 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
a67786c58e
fixed issue when saving a mesh in hw skinning mode was not restoring the buffers.
...
restored the code to enforce BoneIndex and BoneWeight to be in the heap for software anim because it was failing on android, until I find a proper solution
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10659 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
68fa1b7084
Hadrware skinning buffers are now not saved along the other buffers in a j3o file.
...
They are created when loading the model.
This was causing issue when loading j3o files saved before the change
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10658 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
2acbdf9f84
Hardware Skinning now uses its own bone index and bone weight buffers. The vertex buffers are initialized empty when the model is loaded and placed in the cache.
...
They are populated only if hardware skinning is used with the model.
BoneIndex and BoneWeight buffers are now always CpuOnly and only used for Software Skinning.
Some enhancement could be done to save memory by not generating the bindPose buffers if hardware skinning is used as it doesn't need them.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10657 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
daa3ceee1d
Matrix3f has now a normalize(Matrix3f store) and a normalizeLocal() method
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10649 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
130ddbdfd2
SpotLigth: the cosine of the inner and outer angle of a spotlight are packed in the same float to send it to the shader (to save some varryings). This imples that their precision is no more than 0.001. This was producing wrong lighting for very close angles because the cosine were equals.
...
There is now a check that ensure that the outer cos is lower than the inner cos.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10648 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
4c4e235e61
BatchNode now uses absolute world transforsm to update the underlying batch mesh, instead of computing the offset from next frame.
...
The real geometry mesh data is now used as a bind pose.
This avoids errors accumulations over time in some case and is less expensive.
See this post for the original issue http://hub.jmonkeyengine.org/forum/topic/batchnode-bug/
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10647 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
Zer..om
9b6bd1fdc4
Fixed a bug where attempting to collide with an empty mesh (0 vertices) would throw an exception rather than returning 0 results.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10643 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
sha..RD
dec182b13f
* Fixed assertion error bug in NativeObjectManager.deleteAllObjects()
...
* Fixed ID collision bug in NativeObjectManager by introducing NativeObject.getUniqueId()
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10637 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
sha..RD
04196e40ea
* When deleting native object, avoid using toString() for logging
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10632 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
sha..RD
7ecc8790a4
* Added overview / explanation on what Material.render() does
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10631 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
sha..RD
efa80e0e2d
* Fix syntax error
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10619 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
sha..RD
d6fbd97482
* Add NativeObject.dispose() which deletes the object from GL driver, and if UNSAFE=true, also native buffers.
...
* Rename NativeObjectManager.registerForCleanup() -> registerObject() so that its not confused with enqueueUnusedObject()
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10618 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
sha..RD
bf2a663022
* Remove deprecated fields from shader class
...
* Add package private deleteNativeBuffers() in NativeObject (usage TBD)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10617 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
iwg..om
e727928731
Android: Refactor AndroidAudioRenderer into an interface with 2 implementations (current MediaPlayer/SoundPool and new OpenAL Soft). Added AppSetting that allows AndroidHarness to switch the audio renderer (default is still MediaPlayer/SoundPool).
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10615 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
Kae..pl
7610bfb7aa
Bugfix: fixes to strip box indices and normals computation.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10612 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
e2d1a08838
ChaseCamera input binding name constants are now public
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10594 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
eb44d866b7
Fixed the number of components of the Line shape index buffer.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10589 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
Sha..om
e4478dc65c
* SkeletonControl: Update targets and materials only for the first camera in which a model is rendered.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10586 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
b93715f66b
SkeletonControl made some cleanup, removed old comments
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10579 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
a3fe5860cc
SkeletonControl gatheres target on render instead of on update
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10578 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
517f621871
Fix for issue 592 : SkeletonControl does not track changes to materials or spatials
...
https://code.google.com/p/jmonkeyengine/issues/detail?id=592#makechanges
- Went the update targets and materials on each update, in practive it doesn't have a noticeable impact on performance.
- Changed the way target meshes and materials were stored (arrays), for respectively a SafearrayList and a HashSet. This avoid instancing and copying arrays on each frames.
- Also removed targets and materials from serialization as we don't care to save or load them now that they are gathered on each frame.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10577 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
4f3319f049
ShaderNodes : generated shaders are now cached by the assetManager to avoid generating a new shader for already loaded materials. This saves memory and avoids a lot of shader switches at render time.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10575 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
f8faebb79e
ShaderNodes : Array types are now properly supported and array size can be driven by an int constant or an int define
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10571 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
ShA..Rd
06c4dcd7f7
* Fix issue 574 (by extending JFrame instead of JDialog)
...
* Fix issue 561 by throwing exception on invalid values
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10570 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
ShA..Rd
6e021b4504
* Fix issue 584 and issue 562 (minor typos)
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10569 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
ShA..Rd
ada98f7033
* AppState documentation improvements according to issue 589
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10565 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
ShA..Rd
fbac631160
* TextureArray constructor ensures all images passed to it have the same format and dimensions, otherwise an IllegalArgumentException is thrown
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10562 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
9b33c7c851
Removed debugging system out from animChannel
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10559 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
sha..RD
0f21f19735
* Mesh.prepareForAnim() is now much smarter about what to do. It won't convert the buffers unless absolutely necessary and apply the proper usages to the buffers as needed.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10555 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
sha..RD
281f9b6c20
* Fix various issues with HW skinning state in SkeletonControl. setHardwareSkinningPreferred(boolean) can be used to request HW skinning, and isHardwareSkinningUsed() to see if its actually being used or not.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10550 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
sha..RD
b0f2e17db2
* List of native objects in NativeObjectManager is now a HashSet instead of an ArrayList, for faster add/remove calls
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10549 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
44a77537ce
Fixed HWSkinning initialization that was not properly falling back to software when HW skinning was not available
...
Still not a functional implementation
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10547 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
Sha..om
3195940994
* Fixed issue 590 (Uniform.setVector4Length() re-allocating buffer even when not needed)
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10544 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
Sha..om
c972861331
* Fixed issue 583 (Matrix4f.multAcross() not working correctly)
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10543 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
bre..om
2b9f2dc7b3
removed sysout from AnimChannel
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10540 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
eb5525e581
Hardware Skinning first commit, still non functionnal as no material implements it. also it's disabled by default in the skeleton control
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10537 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
Kae..pl
f8c256d127
Feature: added scale retreive methods to Matrix4f.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10534 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
PSp..om
e7aa7eb627
Modified maxLocal and minLocal to return 'this' to
...
match other methods.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10532 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
74a91559aa
Shadows Fixed issue where the new stabilization code was making black bandings when no object was in a split.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10519 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
85b4605229
Shadows Fixed issue where Edge filtereing was not properly initialized and was causing a crash when compiling the shader
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10518 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
Zer..om
9c91d8c8e1
Fixed a bug where if you started a new animation from the animation complete callback of another animation no event was triggered at the end of the new animation.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10516 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
b5014c5fbc
Implemented stable shadows for DirectionalLightShadowRenderer
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10515 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
Zer..om
4d16f05f23
Fixed a bug in AnimChannel which would cause it to keep repeatedly issuing Animation Complete callbacks every frame once the animation did complete rather than issueing one once each time the animation completed.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10509 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
PSp..om
a62a2d0299
Added some methods for bulk-attaching a bunch
...
of app states at once. This is useful when
attaching several app states from a different
thread because there is a guarantee that they
all get initialized together before any of their
update() methods are called.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10504 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
Zer..om
ceba00624a
Changed node to spatial in the getChild javadoc to be more correct.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10499 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
Zer..om
75d861eae1
Added javadoc to getChild to explain that its really getDescendant
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10498 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
723e3c0e30
Commit patch from abies that drastically reduce the garbage creation when switching techniques. It also reduce grabage collection for the AbdtractShadowRenderer.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10497 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
0186a20983
Fixed issue where the BAtchNode was throwing an ArrayIndexOutOfBound exception when batch was called twice in a row
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10496 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
05e080100e
Added support for int arrays uniforms. thanks to abies.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10495 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago