Commit Graph

87 Commits

Author SHA1 Message Date
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
Michael Bayne 929dd438b8 The viewer is only in tests/.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@80 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-16 23:38:06 +00:00
Michael Bayne afaa0153b6 If we don't have xml-writer avoid compiling all the XML scene crap (and
unfortunately also the Miso Viewer).


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@79 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-16 23:34:01 +00:00
Michael Bayne 81cd97edc7 New libs.dir business.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@78 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-16 23:13:21 +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
Michael Bayne a8e1855207 Use distlib.dir.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@76 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-16 21:26:58 +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 434c5f86c2 Probably only need one of those.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@69 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-01 02:17:22 +00:00
Andrzej Kapolka a7c56949aa Translation for camera position option.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@68 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-11-01 02:10:39 +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
Michael Bayne a2f36abd2b These are not in the shared library directory but rather the project's
top-level library directory. Probably we need an alias for that but lib/ will
do for now.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@60 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-19 01:27:07 +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
Michael Bayne 95500d74f3 Use project.dir.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@55 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-13 23:59:04 +00:00
Michael Bayne b95a59c35c Updated snapshot target.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@54 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-13 22:43:08 +00:00
Michael Bayne 79901ef5e2 Added proper 'snapshot' target.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@53 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-13 22:34:05 +00:00
Michael Bayne 53e5b66308 Out with obsolete file.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@52 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-13 22:29:34 +00:00
Michael Bayne a40a420bf6 Define our library dependencies in an includable project XML file.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@51 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-13 22:25:42 +00:00
Michael Bayne 69277175c8 Build file changes to make Nenya work with the new build world order.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@50 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-10-13 02:13:51 +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