Commit Graph

107 Commits

Author SHA1 Message Date
Michael Bayne 9195817853 Ray will be proud of my micro-optimizery.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3943 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-14 02:24:07 +00:00
Michael Bayne 2aca17ee08 Have the WindowSlider wait two frames before starting to slide the window onto
the screen. In general the first frame is thrown off by the time it takes to
construct the window (which may be substantial) and the second might take a
while laying it out. After that though, we can smoothly slide things onto the
screen, and so we do.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3942 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-14 02:22:18 +00:00
Andrzej Kapolka 7a567e4adb Make the geometry node render to the opaque queue by default;
otherwise, everything under it will inherit the "SKIP" mode, 
which bypasses the render queues.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3940 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-14 01:43:07 +00:00
Michael Bayne 3f5aed3555 Let the vsync limit our frame rate instead of trying to do it by hand.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3934 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-09 23:54:26 +00:00
Andrzej Kapolka 3163825b29 For low frame rates, deal with moving over more than one leg per
update.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3923 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-08 01:40:09 +00:00
Andrzej Kapolka af8408fe5d Added an optional pan to SwingPath.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3919 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-07 22:46:28 +00:00
Andrzej Kapolka 162440ed7e Record the frame time as the different between the last and current
frames.  JME's timer was using a running average: good for calculating 
frame rates, bad for updates.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3906 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-02 21:40:57 +00:00
Andrzej Kapolka 69da887537 Added a method to disable limits in CameraHandler and an optional second
swing axis to SwingPath.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3902 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-02 01:02:03 +00:00
Andrzej Kapolka 50e36adb6b Make sure cameraIsMoving returns false for the callbacks at the end of a
camera path.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3875 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-22 01:22:28 +00:00
Andrzej Kapolka 7d46f81392 The problem was that setQuad was being called in the second constructor
after updateRenderState in the third constructor, so the quad's render 
state didn't include the alpha state.  I changed it so that 
updateRenderState is called in setQuad.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3859 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-15 22:19:36 +00:00
Michael Bayne bbc4dcad31 Added toString() to TimeFunction; moved AlphaState onto the quad being faded
rather than the node containing the quad, which shouldn't really make a
difference.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3858 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-15 21:01:39 +00:00
Michael Bayne ad7e4f6be6 Added a helper class for sliding windows onto and off of the screen. Modified
the fade effect to automatically remove itself when it's done.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3847 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-10 04:45:12 +00:00
Michael Bayne 132dad93d2 Added a mechanism to skip to the end of the current camera path. It's sort of a
hack in that it just fakes an update to the path as if 100 seconds had elapsed,
but that essentially does just what we want and is so simple.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3845 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-10 02:24:58 +00:00
Andrzej Kapolka fe47f6a478 Float.MIN_VALUE is the smallest positive value, not the smallest
negative value.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3841 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-08 00:03:28 +00:00
Andrzej Kapolka 4849d344e1 Added optional target orientation to PanPath.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3840 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-07 22:37:40 +00:00
Andrzej Kapolka 44bc8722eb Removed redundant call to onFrameChange.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3839 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-07 21:45:08 +00:00
Andrzej Kapolka 593ee3a54d Added an explicit axis parameter (as opposed to using the up vector at
each time step) to avoid camera roll.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3838 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-07 21:43:26 +00:00
Michael Bayne d822c597b3 Allow the FadeInOutEffect to be used on arbitrary quads.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3837 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-07 01:33:46 +00:00
Michael Bayne e9be71fdf2 JME uses a separate Z order to determine how to sort ortho geometry.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3836 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-06 02:33:16 +00:00
Michael Bayne 6f90df64f8 Added getFrameTime().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3835 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-06 02:32:42 +00:00
Michael Bayne 965b44d253 Updated standard source header. Created a time function mechanism that can be
used to easily plug in different methods of smoothly varying a value over time.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3834 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-06 01:40:44 +00:00
Michael Bayne f749460fe7 Minor rearrangement.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3833 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-05 23:08:55 +00:00
Michael Bayne 12a4f4bb7e Oops, we need to be able to add and remove observers.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3831 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-04 03:30:44 +00:00
Michael Bayne 428afd4ca0 Add support for being notified when a camera path is complete.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3830 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-02-04 03:24:44 +00:00
Andrzej Kapolka 56b985beb4 Added a method to reset the camera's orientation.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3826 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-31 00:05:34 +00:00
Andrzej Kapolka 63b4a49773 Added a tension parameter to control the sharpness of the curve.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3825 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-30 19:50:10 +00:00
Andrzej Kapolka e81084a588 Added spline path for camera.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3823 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-28 01:35:08 +00:00
Michael Bayne 3dde8d448a Fix up the way we create our display to play nicely with the JmeCanvasApp.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3821 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-25 20:31:47 +00:00
Michael Bayne 573125d3d1 Use the standard chat command handling instead of hacking in our own support.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3807 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-18 19:39:34 +00:00
Andrzej Kapolka 2ef4dc2a22 Added methods to set animation repeat type in addition to active
state and speed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3800 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-01-04 23:08:48 +00:00
Michael Bayne 1918b8adac Had grammatical beans above the frank.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3799 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-21 23:25:41 +00:00
Michael Bayne 6180e15b5f Created a full-screen fade in out effect. I ended up deciding not to do
anything special for full-screen effects. They will be added to the interface
node and should set their z order to a positive value to render above the UI
and a negative value to render below it. Otherwise we don't really need to
impose a whole lot of structure.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3798 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-21 23:25:07 +00:00
Michael Bayne 3ac76f7d9e Added showingStatistics().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3797 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-21 19:46:34 +00:00
Michael Bayne 82bcdc13f9 Allow statistics to be toggled on and off at runtime.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3796 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-12-21 19:41:07 +00:00
Andrzej Kapolka 91aacbf8a8 Scratch that; go back to using computeRotation.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3762 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-16 03:36:29 +00:00
Andrzej Kapolka 696c790585 Something is wacky with PathUtil.computeRotation, but I can't figure out
what.  Having tried various tweaks with no success, I finally punted and 
changed LineSegmentPath to use computeAxisRotation.  I also fixed the 
order of cross products in that method and got rid of a redundant cross 
product.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3761 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-16 02:28:25 +00:00
Michael Bayne 672368ff92 Created a path for panning the camera.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3759 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-11 03:00:12 +00:00
Michael Bayne 3c91e33f04 Fixed booched formatting.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3757 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-10 02:53:02 +00:00
Michael Bayne 26511ab165 Added fancy new mode for limiting the camera pan wherein we calculate the
intersection of the frustum with the ground plane and restrict that rectangle
to the interior of the desired region.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3756 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-10 02:40:33 +00:00
Andrzej Kapolka e30ef0d8f6 Make sure the camera handler is created in canvas apps.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3754 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-09 22:49:37 +00:00
Michael Bayne 4a1b366cd8 Provide the camera handler rather than the camera.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3753 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-09 22:34:15 +00:00
Michael Bayne 35caa3a79f Revamped camera handling. We now have a camera handler through which all camera
manipulations pass. It can then ensure that the camera remains within zoom and
pan boundaries and is generally in the right place. It also handles camera
paths, which adjust the camera through the handler. The input handler now has
no camera logic but simply wires up camera manipulations to input mechanisms
which is much cleaner.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3752 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-09 22:30:02 +00:00
Michael Bayne 86abf1675f A bunch of business related to moving the camera along paths. Also repackaged
camera handling stuff into com.threerings.jme.camera.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3751 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-09 20:01:28 +00:00
Michael Bayne 6dc12423ee Don't send empty chat requests.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3750 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-09 07:32:35 +00:00
Michael Bayne 596d2a4708 blank() -> isBlank().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3749 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-09 04:00:16 +00:00
Andrzej Kapolka 365634146c Added tool/task to build sphere maps from cube maps.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3748 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-07 02:20:13 +00:00
Michael Bayne c733a47eb4 Whoops, missed an obsolete import.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3744 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-02 00:19:29 +00:00
Michael Bayne 74912c63c8 Updates to work with refactored JME input handling.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3743 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-11-02 00:01:26 +00:00
Michael Bayne 484c3ff86d Wrapped long line.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3710 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-26 00:11:02 +00:00
Michael Bayne c9bd489c0b Had the beans above the frank.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3705 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-21 02:19:53 +00:00