524 Commits

Author SHA1 Message Date
rem..om
fafd79e5d3 - Added textureArray support (thanks to phate666)
- Added a testcase and test materials to use them

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8551 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-30 20:31:33 +00:00
rem..om
83f3b2b1a3 - BatchNode now use a temp float array and bulk put data into the floatbuffer instad of iterative puts. (it's faster)
- Spatials have now a BatchHint (Inherit, Never,Always) to know if they should be batched or not (use is the same as cullHint)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8550 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-30 19:25:33 +00:00
rem..om
9bf315fbcf Fixed silly copy/paste mistake in LightNode
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8543 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-29 09:17:16 +00:00
PSp..om
b13809bba3 Fixed the line segment extents so that it doesn't act twice
as long as it's supposed to be.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8542 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-29 09:13:29 +00:00
sha..rd
bd5620bf16 * Camera.update() now uses TempVars instead of allocation
* IntMap now contains a resettable iterator instead of allocating a new one each time. As a downside, The same IntMap cannot be iterated recursively

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8541 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-29 05:16:50 +00:00
sha..rd
c590b8d054 * Small javadoc additions in Application
* Fix animation not working for Blender 2.5+ Ogre3D models 

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8538 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-29 03:00:10 +00:00
sha..rd
b3f9e87bf1 * package.html files now comply with HTML 4.01 standards
* SimpleApplication now computes FPS by counting frames instead of using Timer.getFrameRate()

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8534 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-28 00:49:07 +00:00
rem..om
64bc0298b2 Fixed a timing issue in MotionTrack when used as a control
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8533 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-26 18:59:12 +00:00
rem..om
2a0c4ed10f Null checked additionalRenderState when loading a material
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8532 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-26 15:10:53 +00:00
rem..om
cc7701aa0d - InpuManager : Updated cursor pos on click, so that non android touch events can properly update cursor position.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8531 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-26 15:09:12 +00:00
sha..rd
e93993364a * Fixed issue where additional render states in material would always have apply*** flags set to true, added workaround for old versions of material
* RenderState now exports/imports apply*** flags

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8529 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-26 03:30:17 +00:00
rem..om
7193c0b2d3 Batching :
- BatchNode can now batch a scene graph with several materials. It creates a batch by material
- Added a SimpleBatchNode that batch only geometries (no sub node graph) for better performances
- removed RF_REFRESHBATCH from Spatial as it's no longer needed
- changed test cases a bit

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8527 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-25 16:46:25 +00:00
PSp..om
cf18f48182 Internal surgery to AppStateManager to provide more
consistent app state lifecycle, fix some state transition
related bugs, and stop confusing users... well, at least
confusing them less hopefully.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8524 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-24 21:14:25 +00:00
PSp..om
2a65ca4cb7 Added a setTimer() method for switching the default
Timer implementation.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8523 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-24 19:31:50 +00:00
sha..rd
36b6ab3286 * Prevent crash in Animation if no tracks are set on animation
* Ogre3D .material files will still load even if a single texture is not found
 * Show any exceptions that occur in material loading (if any are thrown)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8519 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-23 21:03:39 +00:00
sky..ok
dae6ef534b Javadoc fixes for com.jme3.math.Triangle
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8517 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-23 18:20:14 +00:00
sky..ok
73fb54b4b6 Documentation fixes for BatchNode: Improved Javadoc and inclusion of license header
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8514 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-23 06:29:10 +00:00
rem..om
58a2bf8af9 - Deprecated PositionTrack, RotationTrack, ScaleTrack as they should be replaced by spatial animation.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8501 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-22 12:51:20 +00:00
rem..om
feeedfa682 - Removed old batching classes (GeometryBatch and BatchedGeometries) as they are no longer needed
- removed the test cases too

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8500 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-22 08:20:53 +00:00
sha..rd
ffce10b8da * Added AwtPanel.attachTo() argument that allows attaching panel to main framebuffer instead of replacing it on the viewports
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8481 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-21 23:01:34 +00:00
rem..om
62a02fb6f4 - Dynamic Batching
- Forgot the temp vars

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8479 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-21 22:26:03 +00:00
rem..om
63b62269e8 - Dynamic Batching
- Added a BatchNode that can batch geometries in its sub graph
- added support for matching to Geometry
- created propper test cases
- added a refresh flag to spatial RF_REFRESHBATCH to refresh the batch only when needed

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8478 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-21 21:47:12 +00:00
nor..67
3ff2771a69 - add backengineered JmeVersion to fix build
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8476 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-21 12:01:02 +00:00
PSp..om
d2579343b2 Make BitmapFont's calculation of line width match
BitmapText's version.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8475 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-21 09:07:27 +00:00
PSp..om
1e59de25ee Took out the unbaking of kerning because it _does_
affect all subsequent cursor positions unlike xOffset.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8474 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-21 08:53:02 +00:00
PSp..om
68c2fea479 The last change neglected the first character which
has special treatment for its x0 setting but still
requires that the xAdvance be adjusted to account
for accumulated xOffset.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8473 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-21 08:44:25 +00:00
PSp..om
ee2f44f340 Fixed some really odd text advance behavior that
caused letters and characters to overlap each other.
Basically, the offset was being included in the next
chars position... and it shouldn't be.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8472 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-21 08:27:09 +00:00
nor..67
b6492e958e - change spatial warning on update state to include hint to threading problems
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8467 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-20 12:44:11 +00:00
rem..om
444223b905 - Excluded spatials that have a cullHint.Always from shadow queues
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8466 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-19 21:02:03 +00:00
sky..ok
84116c85f8 Created clickable links out of http mentions in all jME3 Javadoc
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8465 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-19 20:23:39 +00:00
sky..ok
1095a1fb62 Created clickable links out of http mentions in Camera Javadoc
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8464 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-19 19:50:07 +00:00
rem..om
854b4a00c0 - used tempVars for path interpolation instead of temp attributes
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8463 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-19 18:42:05 +00:00
sky..ok
83fd9107c9 Fix for broken Javadoc in Material
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8462 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-19 15:33:13 +00:00
rem..om
e9556fad0a - used back system timer for cinematics, whatever it is :D
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8453 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-18 22:10:41 +00:00
sky..ok
8a4d2cbdd0 Fix for strange character encoding in Box Javadoc
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8451 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-18 21:14:52 +00:00
sky..ok
2ee53936fd Fix for incorrect Javadoc in Box
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8450 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-18 21:12:53 +00:00
rem..om
be6259e5ba - fixed bad time calculation on cinematics
- Used a nano timer for precision
- javadoc'ed a bit

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8443 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-18 19:01:09 +00:00
rem..om
d4c69da2a1 - removed deprecated usage of audioRenderer in soundTrack
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8434 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-17 21:29:39 +00:00
rem..om
319ccc62b4 - added a pause method to AudioNode
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8433 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-17 21:27:09 +00:00
rem..om
298c052d24 - Use quaternions and slerp for rotation track
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8432 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-17 20:55:38 +00:00
nor..67
cfc6036bf2 - cleanup after Kirill-Bomb
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8426 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-17 09:41:10 +00:00
sha..rd
1fb4a9be00 * Apply fix for cylinder normal generation
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8425 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-17 02:19:16 +00:00
sha..rd
55bfc5f0cf * Update to LWJGL 2.8.1
* Audio system to use new NativeObject class for managing audio buffers and filters
 * Formatting for AndroidAudioRenderer
 * Changed AndroidAudioData to match new NativeObject class
 * AudioNode now serializes the audio key as "audio_key" instead "key"
 

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8423 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-17 01:33:42 +00:00
sha..rd
107380afc1 * Moved GLObjectManager to util, it is now NativeObjectManager and can be used to manage collection of any native object
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8422 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-17 01:26:31 +00:00
sha..rd
bb52601e4e * Gutted out SpatialAnimation
* Fix crash in TestObjectAnimation**

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8420 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-16 23:28:48 +00:00
sha..rd
e3366f14b8 Animation system revamp
* Track is no longer generic and doesn't need to be
 * Removed implementation specific methods from Track 
 * Animation class no longer casts the track to a specific type to call setTime(). The specific Track.setTime() implementation makes the appropriate operations.
 * TempVars instance is now passed down from the AnimControl to the tracks to get rid of all temp members in the tracks 
 * Misc docs and comment changes
 * J3O files that reference BoneAnimation or SpatialAnimation class are automatically redirected to Animation class
 * MeshAnimation, previously unused, is now completely obsolete and has been deleted 
 * PoseTrack, previously unused, is now deprecated until pose loading support is added 
 * Proper formatting for SpatialTrack

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8419 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-16 23:15:55 +00:00
Sha..om
30e1128a57 * Remove silly allocation of triangle per BIH node. Use temp vars instead
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8388 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-14 14:37:05 +00:00
sha..rd
0372a5ed6d * Add lighting support to OpenGL1 renderer
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8387 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-13 04:04:33 +00:00
sha..rd
5feebef7c5 * AwtMouseInput event queue is now synchronized like it should be
* TangentBinormalGenerator no longer writes binormal buffers. Instead it writes the W coordinate of the tangent based on the binormal's sign. Should fix "normal map seams" type problems

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8385 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-11 01:07:15 +00:00
nor..67
c79968463d - fix Animation loading by using arraycopy..
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8375 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-10-10 15:04:18 +00:00