rem..om
f8c466f329
Merged revision 10799 from trunk
...
(Fixed an issue where HW skinnings buffer were causing an exception when loading a mesh)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/branches/3.0final@10805 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
jul..se
b7042af8ce
Switches to JOGL 2.0.2, reverts my mistake
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10742 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
jul..se
e877d1f8c9
Switches to JOGL 2.0.2
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10741 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
07477b0be8
cloneForSpatial in LodControl now properly calls super.cloneForSpatial
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10740 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
b61192d71e
Formated LodControl before fixing a cloning issue
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10739 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
b577a6c336
Fixed an issue with multiple shadow renderers.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10735 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
55b2afde82
Made the DebugKeysAppState output something that you just have to copy paste into your code when outputing the position and rotation of the camera.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10733 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
roo..li
82324a385e
replaced a thrown exception with a logger warning
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10712 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
aa325fc854
Fixed an issue with where one couldn't have several Shadow renderers in the same scene
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10710 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
cb90159e81
- TangentBinormalGenerator : not joining the similar vertices for computing tangents when not splitting mirrored vertices seems to yeild worse artifacts than before.
...
I reintroduced the joining. That produces wrong lighting anyway, but at least it's consistent with what we had before.
after 3.0, I'll default the split mirrored vertice behaviour.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10700 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
e373d160d9
- put back previous API for TangentBinormalGenerator generate method
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10699 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
a1533a407b
- TangentBinormalGenerator now splits vertices with mirrored uvs. This is an optional operation.
...
It fixes the issue in this thread : http://hub.jmonkeyengine.org/forum/topic/normalmapslighting-issue/
Next step is to split vertices that have triangles with heavily rotated tangent spaces.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10698 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
93aa3cd37b
- Fixed issue introduced in last change of Mesh write method. Hardware Skinning buffers were not properly ignored at save time in some rare cases, and were causing a crash
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10697 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
Zer..om
e58d47c28d
Reverted previous change. Use geometry.center() instead.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10696 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
Zer..om
81d7a145a7
Added the ability to create a quad with the origin at the center.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10695 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
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