Commit Graph

72 Commits

Author SHA1 Message Date
Mark Johnson d2aabbcfae Added the ability to stop and reclaim all the sources without fully
disposing the sound group.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@94 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-14 23:00:21 +00:00
Dave Hoover 11f82ff097 Add hooks so that other fringers can muck around with tiles to
do art swapish stuff.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@93 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-13 21:53:10 +00:00
Michael Bayne 23f305aa81 Make the first sentence not overlong so as to play nicely with javadoc.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@92 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-05 07:00:42 +00:00
Michael Bayne 20021d7eab Fixed typo.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@91 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-05 06:59:48 +00:00
Michael Bayne 4ae22890bf Use our surprisingly handy new method.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@90 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-05 06:58:04 +00:00
Michael Bayne cd97adf00b Track bounds changes for our underlying sprite in such a way that we dirty
things properly if they do. Simply stealing our target sprite's _bounds will
not result in the necessary calls to addDirtyRegion() if they change due to
calls to setLocation() on our (now unmanaged) target sprite.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@89 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-05 06:52:54 +00:00
Michael Bayne 7850123988 Factored some duplicated code into a shared method that can be used to easily
and efficiently dirty old and new bounds when our bounds change.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@88 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-05 06:51:41 +00:00
Michael Bayne 8286ef88c4 Patch to BobbleAnimation (which we don't seem to use anywhere) from nvanderh.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@87 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-05 06:25:23 +00:00
Michael Bayne 562b1f11ab Patch from nvanderh: handle dirtying properly if our bounds change between
frames.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@86 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-05 06:21:33 +00:00
Mike Thomas e74970ac1e Also need to adjust the path to find localized resource files if we come through the getResource/getImageResource calls that pass us a resource set.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@85 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-02 01:41:28 +00:00
Andrzej Kapolka 227108e7fa Cope with the sad bastards who have only one texture unit.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@84 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-01 20:06:59 +00:00
Mike Thomas 5fda18ef31 Add two features our multi-locale yohoho is going to need:
- Ability to set a locale prefix in which to search for locale-specific images.
- Ability to clear the image cache (we want to do this when we switch locales, otherwise we end up with wrong-language images cached.)


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@83 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-01 18:49:09 +00:00
Michael Bayne 4c61406ea8 Moved Bang's handy ImageCache into our handy JME extensions library.
Note: This marks my official conversion to a 100 character line width. We've
been experimenting with it on MetaSOY for a while now and it reduces wrapping
by what feels to be a substantial amount. We also tried 120 which ended up
feeling too wide.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@82 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-26 00:11:30 +00:00
Andrzej Kapolka 8fc51080a8 OK, that wasn't so hard. Enable all of the "quick compare" flags, which
force states to be reapplied for every batch when disabled.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@81 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-17 00:16:59 +00:00
Andrzej Kapolka cfe8c0f2df Updated to reflect changes in JME and changed hashCode to hash on the
node name instead of the identity, to ensure consistent ordering.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@77 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-16 23:11:27 +00:00
Mark Johnson c8d5239edc Handle the clear command in a ChatView
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@75 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-09 01:01:51 +00:00
Mike Thomas 20922a1cf1 Rather than getting the tile count from the raw image each time (as TileSet.getTileCount does for certain tilesets), keep a copy of the number of tiles we're counting.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@74 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-08 19:11:16 +00:00
Andrzej Kapolka 46616164f4 Use utility method ArrayUtil.copy.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@73 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-08 03:07:19 +00:00
Ray Greenwell 95cc9ea2ef Java 1.6 includes a javax.swing.GroupLayout, so be specific about the
things we're importing from samskivert.
(Our style nowadays is to always explicitely specify imports.)


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@72 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-07 23:56:07 +00:00
Andrzej Kapolka 09627624c6 Switch to using JME's serialization mechanism, which promises a degree
of version safety (meaning we won't necessarily have to recompile all 
the models when we add a new field) and should help avoid the frequent 
binary changes to which Java serialization is prone.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@71 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-07 03:14:35 +00:00
Michael Bayne 04a833f169 Obscure password information when we log URLs.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@70 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-06 23:57:45 +00:00
Andrzej Kapolka 261bc3a9ee Added option to show camera position.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@67 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-01 02:09:06 +00:00
Mark Johnson 61b8e6792a Added the ability to check if a sound is currently playing.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@66 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-27 18:33:24 +00:00
Michael Bayne db91a42b05 More juicy fallthrough bug finding.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@65 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-26 23:09:43 +00:00
Andrzej Kapolka e1c864ff46 Fixed NPE in model variant handling.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@64 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-24 20:59:25 +00:00
Andrzej Kapolka 3f2885496e Switched attribute name from "radpersec" to "velocity".
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@63 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-20 18:43:18 +00:00
Andrzej Kapolka 7ea2db3111 Updated to match new version of JME.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@62 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-19 18:35:35 +00:00
Mark Johnson 4175ec61da Let's allow crop mask images to be optional as well
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@61 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-19 18:29:28 +00:00
Andrzej Kapolka 41d9f206d5 Moved the Max exporters here to live with the model code.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@59 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-18 00:14:16 +00:00
Mark Johnson 7bf691a518 Protect against negative bounds sizes.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@58 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-17 21:09:24 +00:00
Mark Johnson 2c9eb850da Composite masks after generating the shadows so we can mask the shadows
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@57 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-17 20:41:23 +00:00
Andrzej Kapolka 0dc6586e6a For models with locked transforms (i.e., props), don't bother trying to
keep the world bound up-to-date; it won't change, and updateWorldVectors 
has no effect.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@56 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-14 00:49:23 +00:00
Andrzej Kapolka fd06ed1481 Added support for model variants: subconfigurations with different
textures, etc., that share the same mesh and animations.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@49 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-11 18:42:48 +00:00
Michael Bayne 3d6aa4cd15 Do the right thing with localtype.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@48 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-11 00:44:30 +00:00
Michael Bayne 4206ecd4a7 Implement the new ChatDisplay interface.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@47 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-10 21:50:26 +00:00
Andrzej Kapolka c6f1691bb7 OK, in this case the problem existed mostly between my keyboard and my
chair.  I better get that fixed.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@46 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-09 21:43:49 +00:00
Andrzej Kapolka 37e93d30c7 Rather than trying to invert the model transform, just recompute the
bounds after temporarily setting the transform to identity.  I think 
there are still issues with JME's bounding volume transformations, but 
they seem to err on the side of larger bounding volumes.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@45 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-09 18:53:41 +00:00
Michael Bayne ead4e4d89d Don't freak out if we're reinitialized. Just replace the resource manager
reference and leave the same Handler registered.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@44 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-06 21:00:18 +00:00
Michael Bayne 24b2d86f64 It turns out that we can just let our normal RepaintManager stuff repaint the
applet. We don't need to do the same restore from back buffer stuff we do for a
ManagedJFrame.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@43 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-06 20:14:01 +00:00
Andrzej Kapolka a1a7e349bb Don't use Matrix4f.invert; something broke when I updated JME, and the
bounds weren't being recorded correctly (hence they were interpreted as 
out of view when they weren't, and the models failed to appear).


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@42 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-09-11 17:25:41 +00:00
Andrzej Kapolka 8eaf39b4f5 Cope with null list when attempting to remove overlays.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@41 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-08-29 20:44:32 +00:00
Andrzej Kapolka 164e646a16 Added a visitor class for performing operations on all instances of
Spatial-derived classes in a scene graph.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@40 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-08-29 20:12:11 +00:00
Ray Greenwell bb05bd3f3f Use the samskivert Predicate.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@39 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-08-28 18:39:13 +00:00
Mark Johnson af2f554940 A simple interpolating cubic spline path that assumes that all the
points on either the x or y axis are equal and will interpolate the z 
values.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@38 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-08-25 18:30:33 +00:00
Michael Bayne a529163528 Whoops, fixed typo.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@37 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-08-25 05:05:43 +00:00
Michael Bayne dd7c611975 Various sandbox related fallbacks.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@36 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-08-25 05:04:59 +00:00
Michael Bayne 8d67918087 Missed a spot.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@35 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-08-25 00:56:35 +00:00
Andrzej Kapolka 8fd0175a06 Copy alpha threshold to clones.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@34 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-08-25 00:43:37 +00:00
Andrzej Kapolka 1eff736540 Added options for alpha testing.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@33 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-08-25 00:39:45 +00:00
Michael Bayne 9ed3f62af7 Some further FrameManager wrangling and a proper bridge for managed applets.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@32 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-08-25 00:34:18 +00:00