- 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
- 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
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
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
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
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
* 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
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
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
* 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
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
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