297 Commits

Author SHA1 Message Date
sha..rd
3bd4146f4b * Prevent shader leaks
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7891 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-21 15:23:16 +00:00
rem..om
6c4a13ddde Uniforms : fixed clearValues to not assign references.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7890 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-21 15:22:45 +00:00
PSp..om
1e8dea8eba Made the methods called from the audio thread final because
no good can come from overriding them.  Also made those
variables volatile so that other threads are guaranteed to
see the right values.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7874 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-17 21:55:29 +00:00
PSp..om
287bc0167c Added an AudioContext to hold the thread local audio
renderer as set by the application update().  a) this
ensures that the audio node must be updated on the render
thread like everything else, b) it means that audio node
doesn't need to juggle its own reference to AudioRenderer
since from the right thread it can always get at it.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7873 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-17 21:24:11 +00:00
Sha..om
a5d00fd003 * Fixed NullPointerException when loading old materials that used wireframe.j3md
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7865 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-16 17:14:47 +00:00
PSp..om
bb18399b6d Made the math classes (most of them) java.io.Serializable
since it's harmless and makes these math classes more useful
as general data structures.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7860 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-15 00:23:21 +00:00
PSp..om
dd5d56ab42 Return the base color for BitmapText.getColor() because
other things make less sense... though no answer is
exactly "right".


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7859 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-14 11:23:04 +00:00
PSp..om
349c9d9e4a Modified to use the new SafeArrayList for children and controls.
This means it is possible for a control to modify its own
node hierarchy in a way that might have caused random skipping
at best and index out of bounds exceptions at worse.
Also, users can iterate over children and detach them at the
same time using standard for each constructs.
Performance is the same for me though I'd expected it to be
at least slightly faster given that most inner loops now use
direct array access.  My scenes must not exploit this much.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7857 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-13 08:01:39 +00:00
PSp..om
11ab79a766 Added a custom array-based List class that buffers modifications
in such a way that the list can be modified while being iterated.
Furthermore, it exposes the raw array "snapshot" for iteration
simplifying some code elsewhere.
I've left comments in the code as to some beneficial mods that
could be made for the target use-cases.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7856 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-13 07:55:34 +00:00
sha..rd
b8826716b1 * Fixed syntax error in ModifierHelper
* Other minor fixes

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7855 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-13 00:30:57 +00:00
sha..rd
80ac165e67 * Removed evil code
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7846 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-09 20:08:22 +00:00
sha..rd
a24becee32 * Replaced all usages of ByteBuffer.allocateDirect() with BufferUtils.create***Buffer() so that memory can be tracked
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7845 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-09 20:02:39 +00:00
bre..ns
feef9dc6d5 * added an UpdateControl so you can easily enqueue tasks into jme's update loop
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7832 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-06 04:07:43 +00:00
sha..rd
f8df2f00cc * Fixed syntax errors and crashes with shadow processor and filters
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7831 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-06 01:40:42 +00:00
Sha..om
b2c7849355 * Added stereo 3D to AppSettings
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7822 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-05 14:14:11 +00:00
sha..rd
235646f38f * Minor shader formatting
* Particles now have proper glow
 * Fixed bug where references to static variables would stay in ParticleEmitter and particleInfluencer, causing havoc
 * Fixed warning in InputManager when using ScreenshotAppState
 * TestEverything now uses TangentBinormalGenerator, since before there was no tangents for the floor

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7821 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-05 03:47:29 +00:00
bre..ns
1a78dd200c removed unused geomap classes, replaced with single GeoMap class (part 1 of 2 part commit, blasted netbeans)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7819 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-04 23:40:38 +00:00
sha..rd
87737f96e0 * Fix BillboardControl "Spatial was not updated before rendering" crash
* Add F5 key to hide FPS/stats

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7813 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-03 00:09:21 +00:00
sha..rd
f41584e966 * Applied abies fix to Sky rotation
* Blender importer now puts transparent materials in the transparent queue bucket
 * Blender importer creates RGBA8 textures as a result of blending
 * Blender importer - all textures are now mipmapped by default 
 * Lighting shader now supports lightmap
 * Fixed GLSL 1.5 warnings
 * Ogre3D materials now use glow color as emissive color 
 * MaterialLoader will now only load first texture unit instead of last
 * All XML loaders are now namespace aware by default so that android can properly load XML

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7792 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-07-01 00:33:39 +00:00
rem..om
7cb3ca4712 FilterPostProcessor : better init of the filter stack in the read method
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7782 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-29 21:45:58 +00:00
rem..om
e42ab8f0c1 SkeletonControl : added a call to super.setSpatial in setSpatial
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7781 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-29 20:55:38 +00:00
rem..om
cc7110d4f5 Removed Annotations for filters
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7761 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-28 16:43:28 +00:00
rem..om
e1338dfea3 engine
- created a FilterParmeter annotation to use reflection (java.util.reflection) to display filter's properties in the editor
- using WaterFilter() empty constructor will now use the first scene of the viewport as the reflection scene (the water reflection), and use the direction of the first directional light found in this scene.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7757 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-27 21:38:26 +00:00
sha..rd
8523bcb46c * Fix ArrayIndexOutOfBoundsException in TempVars
* Rename project name in ANT script to "jMonkeyEngine3"

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7751 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-26 21:17:45 +00:00
sha..rd
826c285551 * XMLImporter can now read version numbers from XML J3O
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7736 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-25 23:49:18 +00:00
sha..rd
a43e52a384 * XMLImporter can now read directly from file
* XML representation of savable now writes version (no reading yet)
 * Initial attempt of fixing "frozen after app restart" bug
 * Fixed NVIDIA shininess bug (!!!) - No longer need to set m_Shininess on materials!

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7734 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-25 23:26:48 +00:00
sha..rd
9f7d5410b7 * Tried to fix NVIDIA shininess==0 bug (again!)
* MTL loader now properly follows spec regarding initial values of colors
 * TangentBinormalGenerator now throws proper exception on missing normals

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7730 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-25 19:27:23 +00:00
sha..rd
951d9fe23a J3O incompatibility issues fixed
* When loading models with SimpleTextured/WireColor/SolidColor materials 
 * When loading Unshaded material with spelling error "SeperateTexCoord" instead of "SeparateTexCoord"
 * Also fixed issue with loading animated models

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7729 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-25 18:47:20 +00:00
sha..rd
4dffbc95f5 * Forgot to commit this file
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7728 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-25 17:59:34 +00:00
sha..rd
348b1d638a * Fixed Blender loader crash when "Image" texture mode is specified but actual image is not selected
* Replaced oracle proprietary exception with UnsupportedOperationException
 * Shared Geometry Patch - Still need detection mechanism for old versions!
 * Binary/J3O format will now write signature and version
 * Binary/J3O format now has version numbers for exported class hierarchies
 * Fix crash in TestHoveringTank
 * ListMap now uses backing array and a map - increased lookup performance for uniforms/matparams and faster iteration too. Only insertion became slower

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7726 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-25 05:25:32 +00:00
nor..67
d21d74a110 - instantiate assetManager when deserializing FilterPostProcessor
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7710 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-23 20:48:13 +00:00
nor..67
d6f7ebc89c - add getFilterIterator to FilterPostProcessor
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7695 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-23 12:32:46 +00:00
rem..om
413f2b1e48 Implemented a new TempVars system, temp vars can now be requested without conflict.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7692 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-22 19:27:55 +00:00
Kae..pl
38eb3de309 Clone method added to BoneAnimation.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7688 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-22 17:18:52 +00:00
Kae..pl
542559738d Bugfix: constructor with 'scales' argument did not store it.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7683 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-21 18:57:27 +00:00
sha..rd
c410fae0a6 * Plane.normal is now created by default and set instead of using references
* TerrainTestModifyHeight now uses mouse left/right buttons to raise/lower height

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7674 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-19 19:39:09 +00:00
sha..rd
ba88539817 * Improved performance of Matrix3/4f.fillFloatBuffer() by writing to an array first
* Initial javadoc for com.jme3.collision

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7672 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-19 19:17:14 +00:00
sha..rd
8c69c7d205 * Shader now has accelerated access to attribute by using IntMap
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7671 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-19 19:14:27 +00:00
sha..rd
31027a0b2c * Some javadoc for Mesh
* Added Mesh.getIndicesAsList() for easy access to triangle data
 * Added UserData.JME_PHYSICSIGNORE to indicate to physics engine that geometry should be excluded from collision shape generation
 * Physics engine now supports all possible mesh formats (non-indexed, triangle strip, etc)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7670 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-19 19:12:45 +00:00
sha..rd
c727d3e006 * Fixed crash in TestCinematic
* Fixed crash in LightList.sort()
 * Removed usage of Arrays.copyOf() in BitmapFont, so Android can run it
 * Formatted OGLESShaderRenderer

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7668 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-19 00:23:19 +00:00
sha..rd
a6300ba55b * Initial docs for com.jme3.scene.debug, com.jme3.scene.shape, com.jme3.scene.control
* Javadocs for com.jme3.scene.mesh
 * Formatting for com.jme3.terrain classes
 * Terrain updating thread now called "jME3 Terrain Thread"

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7667 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-18 21:05:04 +00:00
sha..rd
d62952a16e * Little bit of docs for RenderQueue
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7666 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-18 20:57:54 +00:00
sha..rd
f9b0a56c90 * Javadocs for com.jme3.renderer.queue
* Javadocs for com.jme3.renderer

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7665 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-18 20:51:31 +00:00
sha..rd
8a9e717ca9 * Small fixes in DDSLoader
* Moved ImageFlipper to core-plugins 

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7664 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-18 20:49:31 +00:00
sha..rd
c6d887cf5a * Javadocs for com.jme3.scene
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7663 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-18 19:01:30 +00:00
sha..rd
88a5109865 * Optimization to prevent garbage generation by replacing Arrays.sort() with SortUtil.msort()
* Replaced "evil" code from SortUtil.msort() with "good" code


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7662 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-18 18:28:11 +00:00
sha..rd
f9079171f1 * Optimization to prevent allocation of IntMap$Iterator in Renderer.renderMesh()
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7661 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-18 17:09:11 +00:00
rem..om
bc2de8626d Fixed material reading with new prefixedName in MatParam
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7657 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-18 10:02:32 +00:00
sha..rd
447fd87d2c * Fixed heavy string allocation in Technique/MatParam due to m_ prefix workaround
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7656 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-18 06:45:06 +00:00
rem..om
be366b5b53 FilterPostProcessor fixed resizing issue with canvas
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7654 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-06-17 22:26:41 +00:00