155 Commits

Author SHA1 Message Date
rem..om
cacfc6b71a Properly use bitmasks on camera for checking culling ( to avoid checking against a plane if the parent node is already on the positive side of it) making culling faster
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7492 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-14 14:05:50 +00:00
sha..rd
3430cd93d1 * Prevent UnsupportedOperationException when using LightMode SinglePass
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7491 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-13 22:52:04 +00:00
rem..om
db62445d7e Post process filters :
- Fixed Apsect ratio issue with multiviews

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7486 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-11 17:24:21 +00:00
rem..om
792f44cf9f Post process filters :
- re-implemented multiview filters another way (filters are now correctly rendered to the size of the viewport, and that's much faster)
- fixed an issue the was messing the filter render when using setEnabled on a filter prior FilterProcessor init
- fixed a deprecated m_ mat in WaterFilter

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7476 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-09 17:00:17 +00:00
sha..rd
a28c2622d9 * Revert back to fixed ortho matrix calculation
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7470 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-08 18:21:48 +00:00
rem..om
8e5832f975 Set z scale to 0 in orthoMatrix as it was before
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7467 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-08 13:49:24 +00:00
sha..rd
4fbaecc5db * Added Javadoc for Picture, FrameBuffer, Image.Format, and AppSettings
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7466 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-07 23:57:24 +00:00
sha..rd
deae399075 * Fixed exception in Mesh.setInterleaved
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7464 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-07 20:07:42 +00:00
sha..rd
5bf644ff90 * Made MTLLoader more compatible
* Fixed bug where MTLLoader would skip lines
 * Fixed exception in Mesh.setInterleaved

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7463 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-07 20:05:43 +00:00
rem..om
7938b776de - Fixed crash in Curve class when building indexbuffer
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7462 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-07 07:49:11 +00:00
sha..rd
bef4a77169 * Fixed viewport location bug in RenderManager
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7461 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-07 05:48:44 +00:00
sha..rd
fb11b4b3ed * Fixed exception in SkyFactory
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7460 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-07 00:02:14 +00:00
rem..om
083333ac6e - Fixed viewPort positioning and scaling for ortho cam and added multiple gui viewports to TestMultiViews
- Filters can now be added to multiple viewports, added a TestMultiViewsFilters

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7457 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-06 23:08:10 +00:00
sha..rd
6b537307fd * Deprecated ViewPort.setClearEnabled, since we have separate clear flags for each channel in the framebuffer
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7455 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-06 01:50:47 +00:00
nor..67
8406f0058e Kirill: Better fix for mac issue
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7448 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-05 01:35:38 +00:00
Sha..om
5d4c279467 * Removed argument check in Mesh.setBuffer() since now its done in VertexBuffer.setupData()
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7436 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-04 15:41:58 +00:00
Sha..om
b56c700023 * Added null checks in setupData()
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7435 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-04 15:40:21 +00:00
sha..rd
344efe544a * Added check in SkyFactory to ensure the images can be used in a cubemap
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7434 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-04 13:46:15 +00:00
sha..rd
52e3da57f8 * Added check in Mesh.setBuffer() for components argument to be between 1 and 4
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7423 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-04 00:39:07 +00:00
sha..rd
1a3823b6aa * Set AppSettings.setRenderer() to LWJGL_OpenGL_ANY to choose renderer based on capabilities of video card.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7385 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-01 23:40:56 +00:00
sha..rd
3ed2824cc3 * Sorting ID now reset properly when shader or texture changed
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7377 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-05-01 04:48:10 +00:00
sha..rd
0d0454f248 * Canvas is now using pbuffer workaround, allowing renderer to acquire renderer capabilities even if the canvas is not visible yet.
* Handling of context destruction is now handled individually for displays and canvases.
For canvas, this allows it to destroy the pbuffer in addition to the display.
 * VertexBuffer now has better detection for data size changes, might prevent GL errors in certain cases. NOTE: VertexBuffer.updateData() is generally more stable than VertexBuffer.setUpdateNeeded(). Refrain from using setUpdateNeeded() .. its an internal call anyway. Using it directly could cause GL errors.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7374 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-30 23:10:25 +00:00
sha..rd
dcf3f3c061 * Fixed bug in RenderImageJme Texture constructor that would not take into account width/height
* MatParam toString() method will now display value

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7368 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-29 23:52:11 +00:00
nor..67
f6757c73fc - add empty constructore to AudioNode to reenable serialization (temp fix)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7362 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-29 21:44:14 +00:00
Sha..om
d6df196a2a * J3O embedded textures now supported. All textures without a TextureKey set will have their image data directly saved in the J3O file.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7355 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-28 20:36:28 +00:00
sha..rd
f640e5de21 * Added javadoc to AudioNode
* Added methods play(), playInstance() and stop() to AudioNode

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7334 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-27 17:45:57 +00:00
sha..rd
6196de22f7 * Removed all deprecated classes, methods, and fields
* AudioNode now takes AudioRenderer in its constructor to allow audio.play() functionality

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7333 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-27 16:45:01 +00:00
sha..rd
33dac750d7 * Fix for jMonkeyPlatform "100% CPU usage" bug
* Deprecate Quaternion.normalize() as it does not follow naming convention


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7332 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-27 16:02:09 +00:00
rem..om
609d975965 Fixed a hack in Bone class for the ragdoll, so Kirill can sleep again.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7303 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-24 21:12:19 +00:00
rem..om
6c2eba12ec Fixed double TempVars locking in skeleton and bone when computing skinning matrices, thanks to cyuczieekc
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7301 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-24 08:45:35 +00:00
sha..rd
4698e13644 * Fixed IllegalArgumentException in Camera.setGuiBounding
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7298 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-23 23:05:45 +00:00
sha..rd
e6b11e8013 * Fixed yet another bug with transforms, this time in Spatial.worldToLocal
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7296 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-23 20:19:19 +00:00
sha..rd
a06ce4ebcd * Fixed issue where scene graphs with non-uniform scales would give incorrect result
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7291 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-23 03:05:06 +00:00
sha..rd
bfe772dd71 * Animated models won't be updated unless they are in the camera frustum ... Hopefully this won't break anything
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7290 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-23 02:03:21 +00:00
sha..rd
1ace200526 * Actually fixed the setSpatial(null) bug now ..
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7289 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-23 01:28:32 +00:00
sha..rd
8aa7468370 * Removed deprecated methods from AnimControl
* Fixed bug where AnimControl would crash on setSpatial(null)
 * Mesh will deserialize lod levels list using arraycopy now
 * Renamed shorthands "ar" and "manager" to their Application equivalents in AudioApp 

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7287 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-23 01:02:07 +00:00
jos..om
9cc223c507 RenderState support for two sided Stencil Buffer operations (in order to support Shadow Volumes in the future)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7286 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-22 21:10:27 +00:00
sha..rd
7d6167c0dc * Added Renderer.invalidateState() to reset the render context
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7280 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-20 20:18:41 +00:00
sha..rd
e9e64c7cb7 * Removed deprecated AnimControl constructor
* Moved bind pose generation to Mesh away from Ogre loader as its a fairly common operation for animation loaders
 * Added TestCustomAnim test which demonstrates how to generate an animated model from scratch

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7277 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-20 17:41:47 +00:00
rem..om
75fa331345 - added LightNode
- used tempVars to avoid Vector3f and Quaternion instancing in update method of CameraControl.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7275 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-20 17:21:08 +00:00
sha..rd
9088d6230d * Added Camera.lookAtDirection()
* Added docs for Camera.containsGui()

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7268 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-20 14:00:43 +00:00
sha..rd
67dd48aae7 * Camera.setDirection() now deprecated since it doesn't do the thing most people expect it
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7266 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-20 13:53:16 +00:00
sha..rd
f2f6246e43 * Moved Screenshots to Desktop Source Package since it uses BufferedImage
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7265 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-20 01:08:25 +00:00
sha..rd
190767e7be * Fixed bug with Spatial.localToWorld() and Spatial.worldToLocal() not using checkDoTransformUpdate()
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7263 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-20 00:18:32 +00:00
rem..om
0539f1971a - ChaseCamera's attributes are now protected
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7249 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-17 08:18:04 +00:00
rem..om
062861beea ChaseCamera : added a setUpVector method.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7246 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-16 07:45:26 +00:00
PSp..om
255fe9f9c9 Turned the magic input mapping strings into constants to
make it easier to unbind them if desired.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7242 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-14 03:43:02 +00:00
sha..rd
d729da9e78 * @SuppressWarnings("fallthrough") to prevent warnings
* Fixed rest of the warnings

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7241 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-14 03:37:05 +00:00
sha..rd
7dd3d52e9e * Removed many deprecated methods and classes
* Fixed various small issues detected by code analyzer

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7240 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-14 03:19:11 +00:00
sha..rd
efb9792c95 * Better toString() methods for Image and Texture
* OGGLoader no longer fails if file length less than number of expected samples

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7237 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-13 04:55:43 +00:00