297 Commits

Author SHA1 Message Date
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
rem..om
3378222dfa Ragdoll :
- New test with sinbad
- Added bone selection for building the collision shapes
- Moved Radoll classes to proper package

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7236 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-12 12:35:10 +00:00
rem..om
14e4b79170 Changed Camera.setViewPort(float,float,float,float) to not call onViewPortChage 4 times.
thanks to Lutherion http://jmonkeyengine.org/groups/development-discussion-jme3/forum/topic/possible-bug-with-viewport-on-camera/#post-124630

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7235 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-12 11:29:56 +00:00
sha..rd
7f7fc50ab5 * Increased buffering for streaming audio from ~250 ms to 1000 ms.
* Reduced audio thread update from 100 fps to 20 fps (why was it 100 anyway??)

Result: Music stuttering dramatically reduced.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7226 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-11 00:57:18 +00:00
sha..rd
2979a26984 * Added support for up to 8 texture coordinates
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7225 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-10 21:15:33 +00:00
rem..om
77acf77428 Fixed NPE in setBoneAttachement in SkeletonControl.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7221 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-08 20:54:53 +00:00
PSp..om
f9c321e6e9 Reduced the scope of the synchronized block to something
more reasonable (rather than essentially encompassing the
entire application if you build your app around AppStates)
but the realy benefit is now the app states can add/remove
other app states without random oddness happening.
...and it's ever so slightly more efficient now, too.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7220 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-08 03:55:57 +00:00
sha..rd
3778400635 * More errors sent to Application.handleError()
* Application.handleError now stops by default to prevent process from lingering on
 * Made sleeps in LwjglCanvas slightly longer to prevent hogging 100% cpu
 * Renamed elephant skeletonxml to skeleton.xml
 * Compressed HoverTank textures and removed high-res versions
 * Compressed Tree textures

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7203 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-06 19:58:16 +00:00
sha..rd
6c776e7bb3 * Got rid of ADPCM stuff that didn't even work
* Fixed bug in WAVLoader causing it to fail if the file had extra bytes at the end

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7201 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-04-06 03:22:51 +00:00