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
PSp..om
0998f47847
Enabled/disable statistics with the view. This
...
prevents stats from being collected unless they
are viewed.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10493 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
PSp..om
ff5d121038
Allow the Statistics collection to be enabled and
...
disabled. It turns out that this generates a measurable
amount of garbage per frame... partially due to a change
I made elsewhere. It used to be that the frame values
were never cleared unless the stats were displayed...
thus the HashSets were always populated with the old
frames' values. When I added a default app state to
clear them every frame the hashsets regrow every time
and generate ~1 meg of garbage every 15 seconds. Not
a lot but unnecessary.
I think this way is more explicit and we no longer
rely on a side-effect.
A related change will be checked in for the StatsView
to properly enable/disable collection.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10492 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
e92172d2b7
Fixed issue in BufferUtils where quaternion and verctor4f were initialized with 3 zeros in the buffer instead of 4.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10491 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
cffb44f3d0
Fixed zoomSensitivity in chaseCamera, removed the zoomSpeed.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10490 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
f773bbdd38
DefaultImageRaster : attempt to fix NPE when the raster is initialized with an Image that has not been rendered yet.
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10477 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
voi..om
23c1fddf8f
Added support to upload/modify sub texture to Renderer interface introducing a new method:
...
public void modifyTexture(Texture tex, Image pixels, int x, int y);
Implementations added for LWJGL and JOGL. LWJGL seems to work. JOGL is untestet. Android implementation needs to be done by someone else (but is already prepared for).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10462 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
7a79d7160e
Reverted accidental commit of GeometryList
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10442 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
55d065ab78
Shader Nodes implementation :
...
Core system
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10432 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
304878c712
Fixed issue where effect and audio tracks were looping even if they shouldn't
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10429 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
rem..om
e296b717b7
Commit Paul's MemoryUtils to JME3 util package
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10426 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
nor..67
5746d0be4d
- fix some dependencies for AudioNode
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10418 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago
nor..67
7b4f4b8678
- remove some unnecessary methods from AudioSource interface
...
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10417 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
12 years ago