Commit Graph

92 Commits

Author SHA1 Message Date
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
Michael Bayne 103e145f1d Updated to reflect changes to JME.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3704 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-21 02:11:37 +00:00
Michael Bayne 77a28c401c Added isRotating(); changed the default camera velocity to be in line with
the other velocities.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3700 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-09 00:42:15 +00:00
Michael Bayne 456444da26 Added support for smoothly rotating the camera.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3699 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-09-08 23:45:51 +00:00
Michael Bayne 91576fcfd3 Life is a lot easier if our observers are notified in the order they are
registered rather than in reverse. I'd like to make this change to
media.AbstractMedia as well but no doubt zillions of things depend on the
current notification ordering for that package.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3691 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-25 22:12:07 +00:00
Michael Bayne ca04c00c44 Big chat revamp to migrate various useful things from Yohoho like /command
handling, chat history support and chat mogrification into the base
framework.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3690 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-24 21:59:50 +00:00
Michael Bayne fd05f9aad5 com.jme.bui -> com.jmex.bui.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3686 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-23 18:56:36 +00:00
Michael Bayne ef65ee5644 Do things in a way more amenable to subclassing.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3684 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-22 18:30:07 +00:00
Michael Bayne 03411cbd9c Various renamery.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3650 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-14 03:54:11 +00:00
Michael Bayne 9002162b86 These should be instance local.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3636 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-29 02:20:34 +00:00
Michael Bayne 8e5d5c665f Use the default type if none is specified.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3635 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-29 02:05:56 +00:00
Michael Bayne dd3bc4f8e7 Fail gracefully if we're missing a tile source image.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3634 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-28 21:36:45 +00:00
Michael Bayne ced6c5b826 Optimized the fringe tile creation process (we only create the graphics
context once and use it to stamp all fringe fragments).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3633 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-28 21:19:38 +00:00
Michael Bayne 4c3a6fa88a Looks like we're staying in the jme package as OpenGL's inverted y axis
has asserted its nefarious influence. Also modified the code to render the
fringe image on top of the original source image as we need a single
ground texture, not two images to be rendered one atop the other.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3631 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-28 21:07:06 +00:00
Michael Bayne 7a830949a1 Frank <-> beans.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3630 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-28 18:40:02 +00:00
Michael Bayne 613dd3633e Converted the fringing code into a more generic form that works directly
on buffered images and is not tied to the tile system or the image
manager. This could probably even move into the media.tile package.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3629 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-28 18:28:22 +00:00