530 Commits

Author SHA1 Message Date
Sha..rd
f3528f8d6e * BufferUtils.destroyDirectBuffer() will only look up methods once
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9207 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-25 22:00:17 +00:00
Sha..rd
ea0617fa81 * Added new uniform binding WorldMatrixInverseTranspose (thanks kwando)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9197 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-25 01:35:40 +00:00
nor..67
9978684407 - move effects and networking to separate jar files
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9189 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-24 12:16:33 +00:00
PSp..om
f07446e0d4 Added an accessor for the stats view object.
Necessary if you want to move these things around
to different places on the screen.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9184 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-21 04:44:58 +00:00
rem..om
03da8d5316 BatchNode enhancements :
- batching after adding a new geometry only does an incremental batch instead of rebatching all geometries
- there is now a getOffsetIndex(geometry) method that returns the index of the first vertex of the geometry in the batch.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9176 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-18 11:22:07 +00:00
rem..om
60479107bb Removed some unused variable and method in MotionPath
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9169 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-17 09:59:37 +00:00
rem..om
9836918a07 Cinematic changes :
- more consistency in the way to handle time
- Complete refactoring of MotionPath interpolation (simpler and way faster)
- Time seeking should now work correctly.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9168 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-17 09:57:41 +00:00
PSp..om
72561e7a8b Made the app-states taking constructor more defensive
so that it can be called with null in various ways
without throwing NPEs.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9167 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-17 04:20:14 +00:00
PSp..om
dac2de12c6 Moved the debug key handling to its own app state.
Also fixed a bug in some SimpleApplication subclasses
that expect access to the guiFont and fpsText from
simpleInit.  This is why some believe protected fields
are the work of the devil. ;)


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9166 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-17 04:11:21 +00:00
PSp..om
c084f0a025 FlyByCamera modified to check if its mappings exist
before unregistering them.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9165 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-17 03:57:23 +00:00
PSp..om
e7f0a5ad91 Since input manager throws an exception when trying
to delete non-existent mappings, and since I'm loathe
to change this behavior even though I kind of don't
agree with it...
instead, I've added a hasMapping() method so that
callers can avoid deleting non-existant mappings
without having to do all of their own book-keeping.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9164 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-17 03:56:41 +00:00
PSp..om
d440f70d92 SimpleApp now uses FlyCamAppState to manage its
camera (by default).  If the app state doesn't
exist then the camera doesn't get created.  Due
to the volume of apps that will expect a working
camera in simpleInit(), it wasn't possible to
do this as a purely separate app state.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9163 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-17 02:17:44 +00:00
PSp..om
0c835eae80 Modified fly cam to be a little more resilient
in the face of being called before it sees an
input manager.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9162 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-17 02:14:03 +00:00
PSp..om
fef809b3f0 Removing some empty methods that I left in by
mistake.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9161 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-17 01:40:48 +00:00
PSp..om
f9ab14b751 Added a method to unregister from the input manager.
Untested and incomplete because some things can't
be undone.  Better than nothing.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9160 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-17 01:34:48 +00:00
PSp..om
4c18bfaecb Moved the stats view stuff out into an app state
that is added automatically as part of simple app
construction.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9159 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-17 01:12:10 +00:00
PSp..om
a2043b3ded Modified to tracks its enabled state so that it
can really be disabled.  I will move the 
statistics.clearFrame() on my next commit.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9158 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-17 01:05:50 +00:00
PSp..om
05a88493a8 Added an accessor for Timer.
Moved the creation of the state manager into
the constructor.  Logically it should exist
as early as possible.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9157 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-17 00:19:13 +00:00
Sha..rd
4721c944a2 * Minor warning fix in BoundingBox, BIHTree
* Fix BoundingSphere, calculation was bugged due to TempVars sharing 
 * Add BoundingSphere vs. Triangle collision
 * Delete Natives class from core as it was moved to desktop previously 
 * Parser classes now use whitespace instead of " " for splitting
 * Bone.getAttachmentsNode() no longer public due to misuse in user code

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9151 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-15 04:21:51 +00:00
Sha..rd
8c0e5ad541 * Removed useless null check in Plane
* Moved Natives class to desktop source package

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9150 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-15 02:00:56 +00:00
PSp..om
65f8dbf6ae For the cases where a define has not actually
changed, don't reload the shader.  This prevents
a lot of extra work from being done.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9139 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-07 11:04:46 +00:00
PSp..om
1f0a77de26 Modified the define list to only recompile if
values have changed.  Also, it returns a boolean
for set and remove on whether a change actually
occurred.  This will be used by my next commit
to give a performance boost.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9138 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-07 11:03:53 +00:00
Sha..om
b0cff4343e * Fix View -> Model space for ViewProjectionMatrix
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9137 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-07 02:40:04 +00:00
Sha..om
b53a825d35 * Prevent crash when material technique has no world bindings defined. Fixes issue 454
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9129 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-02 18:08:06 +00:00
PSp..om
4edf262021 Fixed FloatBuffer support as well as other
buffers that are views of other buffers and
follow the same conventions.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9127 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-02-01 22:59:36 +00:00
Sha..om
c576a12f83 i fixed the problem, are you happy now mark?
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9124 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-31 21:38:33 +00:00
rem..om
bfa243a619 PssmShadowRenderer now have a contructor that takes a material as a parameter to override the post shadow material
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9123 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-30 23:04:09 +00:00
rem..om
0c5e5341bd Time in cinematic is now computed by stacking tpf
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9122 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-30 21:15:28 +00:00
PSp..om
ebb2fca18f Renamed the destroyByteBuffer method to destroyDirectBuffer
because it more appropriately says what it does and this is
a relatively new method.  After changing it to work with
any direct buffer it seemed inappropriately named.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9121 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-30 10:49:40 +00:00
PSp..om
9ecaf0b96e Expand the destroyByteBuffer() call to take any
Buffer and do a safety check for isDirect().
This should let it free FloatBuffers, etc.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9120 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-30 10:37:30 +00:00
Sha..rd
b1d4c36fd7 * InputManager fix syntax error
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9119 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-29 18:19:32 +00:00
Sha..rd
db4188c797 * InputManager will throw exception if joysticks are disabled instead of returning null
* Allow use of negative program IDs in LwjglRenderer (will continue instead of crashing for "Invalid ID received from driver" errors)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9116 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-28 06:19:51 +00:00
rem..om
e1d4d66877 BatchNode now correctly accounts for tangents buffer. (the initial copy of the buffer was only accounting for 3 components instead of 4).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9107 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-22 10:50:03 +00:00
rem..om
33b6bcb20c BatchNode now use bulk copy for untransformed buffers like GeometryBatchFactory
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9103 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-19 20:02:00 +00:00
rem..om
4c7e271606 Fixed Garnaout issue with cinematic \o/
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9102 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-19 19:42:27 +00:00
PSp..om
1545a83abb Implemented a more efficient way of bulk copying
a vertex buffer's elements to another.
Also modified copyElement to call the new copyElements
call with a size of 1... since they were nearly identical
minus the * len mods.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9100 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-19 06:21:25 +00:00
PSp..om
606b676d69 Modified so that read-only operations will not
clobber each other if done from other threads
and provided a way to safely access the whole
buffer if only read-only access is required.
Round 1 of a fix for GeometryBatchFactory...


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9098 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-19 05:57:43 +00:00
nor..67
1cede40383 - make AssetConfig more robust when loading assetmanager config from file
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9074 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-16 00:24:30 +00:00
Sha..rd
22c28bf39a * Remove error message when loading old j3o with TerrainPatch
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9072 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 23:54:05 +00:00
Sha..rd
9dfe1b12f3 * New J3O format version: fixed incorrect serialization of savable versions for certain class hierarchies
* XML import/export now supports global format version 

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9070 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 23:17:10 +00:00
Sha..rd
e7eba5b155 * Fixed error in TerrainPatch loading
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9067 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 22:08:49 +00:00
Sha..rd
96bde02de6 * Fix compile error in FrameBuffer, setRefreshNeeded() -> setUpdateNeeded()
* LwjglRenderer - Will only upload buffers that are used by a shader 

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9066 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 21:01:41 +00:00
nor..67
1dab3c2172 - fix svn
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9054 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 05:09:39 +00:00
Sha..om
b0b3f1b55e * FrameBuffer.setTargetIndex() will set refresh needed on FrameBuffer
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9049 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-15 04:23:48 +00:00
Sha..om
fc5c7d06d2 * Prevent constant exception in FrameBuffer.setTargetIndex()
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9034 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-14 23:45:10 +00:00
bre..ns
981356539a javadoc spelling fix thanks @bortreb
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9017 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-10 19:25:27 +00:00
Sha..om
ba15cc68ca * determinate -> determinant in Matrix3f
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9016 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-10 14:51:52 +00:00
Sha..rd
95efa5b2ff * Mesh.extractVertexData() will copy max weights per vert as well, this is needed for animation to work
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9011 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-09 04:38:16 +00:00
Sha..rd
64d9c60142 * BIHTree will exit early if ray limit is lower than the farthest collision point with the model's bound
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9010 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-09 04:37:11 +00:00
Sha..rd
77252b4304 * Geometry will now automatically de-share VertexBuffers if it detects it
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9004 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2012-01-08 23:43:30 +00:00