This allow to have shadows that fully works with partially transparent objects (like trees).
If a material does not have the postShadow technique, the renderer uses the fallback material (like before).
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9279 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
* AppSettings now supports custom user settings
* Add test case TestCustomAppSettings to test custom user settings
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9276 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
interface since no engine uses of Control will ever call
these methods. The functionality is still left in
AbstractControl which makes more sense since it is up
to the control implementation to enable or disable itself
as it sees fit.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9268 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
- Added flag to enable rotating down when zoomed out.
- Added getter/setter to enable/query if down rotation is only on "close view" (zoomed-in).
- Javadoc for certain method clearly explaining the "angles" are in radian.
Note:
To enable down rotation when zoomed out, you have to call setDownRotateOnCloseViewOnly with FALSE and also set a minimum radian with setMinVerticalRotation(radian) as it is by default to 0.
Ex:
chaseCam.setDownRotateOnCloseViewOnly(false);
chaseCam.setMinVerticalRotation(FastMath.DEG_TO_RAD * - 90);
This would enable rotation when zoomed-out down to -90 degrees, effectively having the camera looking up to its tied spatial.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9247 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
method that can be overridden by subclasses.
This isn't really complicated enough to move to
an app state and the fact that the field is
exposed is already sort of "unclean" anyway.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9240 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
* Correct small typo in UniformBinding
* Make IntMap.iterator() make new iterator each time
* Prevent TangentBinormalGenerator from crashing when it encounters some mesh without texcoord/normal buffers
* AWTLoader now properly fails when AWT can't load the image instead of returning null
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9219 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
drain method is really doing... only simplified.
I don't trust my eyes enough to make such a core
change without co-verification. :)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9218 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
reset even if the developer has overridden simpleUpdate().
As long Application's stateManager is run, the stats will
get reset no matter how many views there are or if they
are disabled or not.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9213 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
- 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