Commit Graph

3578 Commits

Author SHA1 Message Date
Michael Bayne 77adfc15ec Revamped the basic Presents client to support attempts to connect to the server
on multiple ports, falling back from one to the next as appropriate.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4158 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-30 22:12:15 +00:00
Andrzej Kapolka 3a7fe70124 Clear out original-to-copy mapping after creating copy so that we don't
prevent the last copy from being garbage collected.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4156 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-30 16:09:14 +00:00
Andrzej Kapolka e04f7eb1f8 Unbind buffer from source before we attempt to delete it, allow
re-resolving clips waiting to be unloaded.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4155 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-29 02:53:50 +00:00
Andrzej Kapolka 86fd2c05ae Use a gray background for contrast in the model viewer.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4149 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-25 20:12:20 +00:00
Andrzej Kapolka 4415b88e60 Keep track of the number of bound sources in ClipBuffer so that we don't
try to delete a buffer that's still bound to a source.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4147 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-24 22:35:17 +00:00
Ray Greenwell 26c928fc45 Use the valueOf factory methods pretty much everywhere.
These are the preferred way to get instances of Boolean, Byte,
Short, Character, Integer, Long, Float, and Double object.
It's always made sense for Boolean objects, and with 1.5 these factory
methods were blessed as the proper way to get instances unless one
absolutely needed a distinct object.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4145 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-24 01:24:24 +00:00
Ray Greenwell 96f3d8e58e Avoid pointless usage of a server class. The first clue should have been
that it was a server class... ;)


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4142 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-23 23:16:14 +00:00
Ray Greenwell 412c02cbaa Whoops! I forgot to check in the new StageLocation class,
also added a log error message to my equals() logic error checking.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4141 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-23 22:12:30 +00:00
Ray Greenwell 99a97622a6 Refactored things so that the whirled.spot Location class is merely an
interface and specific games can define their own concept of a location.
Portal and SceneLocation now both have a Location instance within them.
All the whirled stuff is happy not knowing the details of the Location even
though it manages portals and other such goodies. The 'stage' stuff
does need to know, and yohoho uses the new StageLocation class
that is essentially identical to the old 'Location'.

SceneLocation previously extended Location, and there were a lot of places
where they were used somewhat interchangeably, or a SceneLocation and
a regular Location were compared. This shouldn't be done anymore and I've
left in code that should dump stack if it occurs, so that we can spot
these logic errors at runtime.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4140 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-23 21:44:05 +00:00
Ray Greenwell 869641562d Removed unneeded line.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4139 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-23 21:34:40 +00:00
Michael Bayne 1e5b2bd08d Allow an offset to be specified for not-quite centered windows.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4138 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-23 01:02:49 +00:00
Michael Bayne b13b1a54a4 Type the occupantInfo DSet.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4137 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-22 22:50:39 +00:00
Michael Bayne e9294b4a3d Fixed bug with argument handling.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4136 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-22 17:27:40 +00:00
Michael Bayne 9d6c809533 Allow the set of ports to be specified for the rejector.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4135 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-22 16:52:59 +00:00
Michael Bayne bece90c4a3 Added getRecentFrameRate().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4134 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-20 19:43:49 +00:00
Ray Greenwell fb10d38232 Nixed pointless method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4132 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-19 23:23:39 +00:00
Michael Bayne 98bbe02560 Don't freak out preloading clips if the manager failed to initialize.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4130 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-19 05:11:40 +00:00
Michael Bayne da4e12771f A few twiddlings:
- set up the playerStatus array before gameWillStart() so that we can properly
  note players that abandon ship before the game is going;
- fixed some raw collection usage;
- fixed some assumptions about IN_PLAY being the only state that means a game
  is in play.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4127 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-19 01:56:54 +00:00
Andrzej Kapolka 8de54d537c Update state when buffers are processed so that we know when streams
end.  Added an isPlaying method to check state.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4125 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-18 20:55:45 +00:00
Michael Bayne 9d84542e49 Add support for a base gain level to be applied to all sound effects.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4124 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-17 19:05:39 +00:00
Mark Johnson 048338efa4 Pulled out functionality to allow overriding.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4123 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-17 00:46:56 +00:00
Andrzej Kapolka 0224c33c45 Update streams in reverse order so that they can dispose of themselves
safely.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4116 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-15 04:04:06 +00:00
Michael Bayne bd8d25b6dd Added arrow key actions for panning the camera as well.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4115 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-13 03:36:45 +00:00
Andrzej Kapolka a9567278ea Added ability to perform simple file queueing.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4112 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-11 02:09:54 +00:00
Andrzej Kapolka 790ddafb30 On second thought, cancel that; since we're not unbinding and rebinding,
there's no point in keeping the data buffers around.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4111 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-11 00:01:42 +00:00
Andrzej Kapolka 10c6d854f5 Added support for Ogg clips, which are decompressed when bound.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4110 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-10 23:44:11 +00:00
Andrzej Kapolka b804f12d5d Basic mechanisms for fading in and out.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4109 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-10 21:12:44 +00:00
Andrzej Kapolka e732fe48aa Added support for streaming Ogg files. Cross-fading still to come.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4107 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-10 19:47:40 +00:00
Andrzej Kapolka 8e42599c6d Added method to fast-forward animations, beginnings of support for model
variants.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4102 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-08 23:30:07 +00:00
Andrzej Kapolka bfa0dd1749 Added light rotation dialog to model viewer.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4101 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-08 21:48:43 +00:00
Michael Bayne 05fe7f8679 Don't choke if getFrequency() returns 0. We may want to check for that
specifically as this doesn't do the right thing for something like 50fps, but
does anyone actually use less than 60?


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4097 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-08 20:58:48 +00:00
Andrzej Kapolka f59fbac2f4 Instead of 60, try using the refresh rate as the target FPS.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4096 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-08 18:06:24 +00:00
Michael Bayne b31556e388 We need to dispose() our clip buffers on the main thread.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4095 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-08 16:51:48 +00:00
Michael Bayne f07c7307c9 Cope if something in the underlying sound system freaks out.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4094 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-05 23:26:33 +00:00
Andrzej Kapolka c8fa910ffe Notify listeners that the old animation was cancelled when we start a
new one.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4093 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-05 22:17:36 +00:00
Mike Thomas 053c1bfe31 Use paint instead of getSnapshot on underlying mirages in composite mirage as it might save us creating an image object.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4092 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-05 01:30:14 +00:00
Mike Thomas 81d26ec622 Dispose of graphics object when done in getSnapshot, and use simpler version of drawImage.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4091 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-05 00:17:42 +00:00
Mike Thomas 2b98453e38 New type of mirage that simply draws a list of mirages one on top of the other(s).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4090 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-04 23:41:41 +00:00
Michael Bayne dac87ee10b Type-safety!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4089 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-04 05:35:19 +00:00
Mark Johnson edd74d4014 Removed debug logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4088 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-04 00:39:46 +00:00
Mark Johnson 47ac305684 Allow the moveTo used while recovering from a failure to get the place
object in the SceneDirector to be overriden.  The ZoneDirector needs to 
inform its listeners when a zone change is made during this failure 
case.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4087 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-04 00:37:54 +00:00
Andrzej Kapolka 3db1f2837f Set log file redirect before initializing.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4086 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-03 21:55:42 +00:00
Andrzej Kapolka 491caeae20 Moved model compile method from Ant task to an application class to
avoid referring to Ant classes in the client jars.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4085 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-03 21:29:38 +00:00
Andrzej Kapolka 66a97a25c4 Write viewer output to a log file.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4084 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-03 20:51:03 +00:00
Andrzej Kapolka f3bb8d93db Copy the animation list when cloning.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4083 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-03 00:04:41 +00:00
Andrzej Kapolka b4eacdbf0e Further low-level tweaking.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4082 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-02 23:06:38 +00:00
Andrzej Kapolka 2728af5059 Skinning optimizations: order vertices by weight groups, compute mesh
space bone transforms only once per mesh per bone (rather than each time 
the bone appears in a weight group), low level fiddling.  Also changed 
the exporters to export everything, regardless of what's selected.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4081 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-02 04:27:49 +00:00
Andrzej Kapolka 28659209cd Instead of computing model bounds after loading, compute them at compile
time and store them with the model.  For skinned meshes, run through 
every frame of every animation as they're compiled in order to find the 
bounding volume that encloses every deformation.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4080 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-05-02 00:17:20 +00:00
Michael Bayne 0699eb3d1c Added a standard mechanism for customizing the AccessController on a
PlaceObject. Created a default AccessController that is slightly more strict
than the CrowdServer-wide default in that it only allows place occupants to
subscribe to a PlaceObject (a motivated and resourceful player could otherwise
listen in on place chat everywhere in the game if they so desired; with a
custom client, of course).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4079 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-30 19:16:05 +00:00
Andrzej Kapolka 2df0c56f2a Various performance tweaks: cull nodes with no mesh children, allow
locking the transforms and bounds of models whose positions will not 
change, skip/postpone updates for models that aren't in view.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4078 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-29 03:24:15 +00:00