Commit Graph

3620 Commits

Author SHA1 Message Date
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
Ray Greenwell a7bb7bb4dd Changed the SpotScene parser to handle the new Portal, and to cope
with Location subclasses as easily as possible. Subclassing the ruleset
and returning a different instance for Location should do the trick.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4077 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-28 21:27:11 +00:00
Mike Thomas e2057d362d Add overridable function to potentially allow games to start up even without any humans present if they wish. Defaults to NOT allow that behavior.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4076 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-28 20:40:04 +00:00
Michael Bayne b2896dc7ff Minna daisuki type safety.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4075 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-28 18:29:46 +00:00
Andrzej Kapolka ecee4e292e Various tweaks, plus prune nodes with no geometry descendants that
aren't used as bones in models.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4074 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-28 04:21:30 +00:00
Andrzej Kapolka 33ab4146c8 Misc. fixes, added random texture selection to models.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4073 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-28 01:47:49 +00:00
Ray Greenwell d8f7e48cbf Allow whirled.spot.data.Location to be extended so that games
with 3d coordinate systems (or that track additional location information
besides orientation) can just drop in their new Location class.
Refactored Portal to contain a Location object rather than duplicate
the fields, so that Portals can work unchanged with a 3d coordinate system.

Note: I haven't yet updated SpotSceneRuleSet.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4072 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-28 01:34:02 +00:00
Michael Bayne a3679b0bfd Allow a custom root node to be created.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4071 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-27 22:47:01 +00:00
Michael Bayne bb19beb053 Cope more gracefully when we can't access the sound device.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4070 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-27 22:24:38 +00:00
Mark Johnson 3cd66e17ad If everyone leaves, but the game was in play, put the game into game
over state, not cancelled.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4069 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-27 02:33:04 +00:00
Ray Greenwell 461e109462 Fixed error in the SpeakHandler that mdb checked in: the service
should not be propogated. If someone chooses crew chat but then enters
a /speak command, it indicates that they want to break out of the crew
chat channel.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4068 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-27 01:53:40 +00:00
Ray Greenwell 42622d73cd Fixup.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4067 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-27 01:26:56 +00:00
Andrzej Kapolka e20ec412f1 Fixes for cases where there's no texture, DisplaySystem.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4066 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-26 22:38:46 +00:00
Ray Greenwell e1c9d4bc53 Better fix for parsing error.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4065 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-26 21:37:28 +00:00
Ray Greenwell 481722188d Removed some unneeded casts now that the _entries array
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4064 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-26 21:32:09 +00:00
Andrzej Kapolka e6ac65fd11 Fixed texture wrapping, meshes as bones, wrap/cycle mixup.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4063 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-26 21:06:03 +00:00
Mark Johnson 6436dc704c If there is no message component then just leave it null instead of
having substring throw an exception.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4062 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-26 20:46:02 +00:00
Andrzej Kapolka 762e85dd44 Strip path information from textures in model files, recenter meshes
about their bounding volume centers.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4061 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-26 19:31:13 +00:00
Andrzej Kapolka 01caf5cca6 Revised exporter coordinate systems, updated emitter positioning.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4060 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-26 02:59:55 +00:00
Michael Bayne 0e27af2af4 Because we defined DSet as parameterized on <E extends DSet.Entry> it rewrites
all generic references to E as DSet.Entry rather than Object which is what I
was assuming. So when I write:

(E[])new Object[...]

that gets rewritten to:

(Entry[])new Object[...]

which causes le freakout. We need to use Entry[] everywhere, which we happened
to be doing for everything except toArray().

I rewrote things to use E[] everywhere now that I know it will get rewritten to
Entry[]. I thought it was going to get rewritten to Object[] before so I didn't
genericize that stuff.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4059 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-26 02:13:10 +00:00
Ray Greenwell ad9a3e54e3 Updated some bits.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4058 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-26 00:47:49 +00:00
Andrzej Kapolka 8d87138d2a JME's multAcross was multiplying by the transpose. Added a method to
multiply normals by the rotation submatrix instead.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4057 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-25 18:48:11 +00:00
Andrzej Kapolka d8c2645346 Added options for showing normals, bounds, and pivot axes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4056 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-25 03:23:43 +00:00
Andrzej Kapolka 60591a85ee Attach meshes under nodes so that they can be used as parents.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4055 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-25 02:26:07 +00:00
Michael Bayne 918d38a3b1 Implement Iterable. Whee!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4054 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-25 02:07:32 +00:00
Mike Thomas c313fb63b9 I'm about to commit a fix so that this doesn't happen anymore... but if it does, I want to see it in the logs...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4053 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-25 00:49:58 +00:00
Andrzej Kapolka 2f1a10c911 Export back face culling flag, textures, and transparency flag.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4052 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-24 22:07:47 +00:00
Michael Bayne a4c7ecb5e3 Made DSet (sort of) type safe. To be really really typesafe DSet.Entry would
have to be parameterized on the type of the Comparable that is returned by
getKey(), but that turns out to be a twisty maze of generics that is not
obvious to me how to express using Java's generics syntax and it opens up
various cans of worms that I don't have time to solve right now. So we'll
settle for the DSet itself being parameterized on the Entry class and the Entry
class being non-type safe.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4051 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-24 22:02:48 +00:00
Andrzej Kapolka e5496065dc Updates for emission handling.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4050 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-24 18:08:44 +00:00
Michael Bayne d2f61ad735 Revamped game cancellation handling a bit and modified handlePartialNoShow() to
cancel rather than start a game if zero humans showed up.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4049 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-24 02:34:31 +00:00
Ray Greenwell 6ddcb0c40e Remove trailing blank line I added when I was fighting with svn.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4048 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-21 23:45:59 +00:00
Ray Greenwell 177f996427 Tidied up the tell handler a bit:
- fixed quoted name parsing to not choke if the first token is just a quote.
- also fixed to not choke if the user types the message using some
  non-space whitespace characters.
- fixed history mistell erasing for multi-word usernames.
- use quotes in the history line only if the user used quotes.
- added hooks for easy subclassing


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4047 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-21 23:25:58 +00:00
Andrzej Kapolka f6608ea528 Merging the procedural animation controllers and emitters into Model
functionality, so that they will be visible in the model viewer.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4046 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-21 23:10:23 +00:00
Michael Bayne 7ce2b38ad5 Allow rendering and updating to be enabled or disabled separately.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4045 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-21 23:03:12 +00:00
Michael Bayne 429f11d7b7 Allow our target FPS to be set and for rendering to be disabled entirely. I'm
either going to slow the target FPS to 1 (easy) when we're loading models or
disable it entirely except when we want to update the loading marquee (pesky)
once I determine for sure whether or not the 1 FPS method does the trick.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4044 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-21 21:54:08 +00:00
Michael Bayne 9e02d7a1ad JORA refactor.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4043 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-21 21:27:31 +00:00
Michael Bayne 00a84fb80a Mogrify broadcasts like other chat.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4042 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-21 08:11:30 +00:00
Michael Bayne 69e84fa9fb Added broadcast handler. Fixed bug in tell handler. Wired both up.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4041 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-21 07:55:30 +00:00
Michael Bayne 11412c9602 Implemented a standard /tell handler.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4040 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-21 07:43:38 +00:00
Michael Bayne 6a56d42079 Use an LWJGL support function to cap our frame rate at 60 when we're not
visible and can't rely on the vsync doing it for us.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4039 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-20 18:36:14 +00:00
Andrzej Kapolka d544f127a4 Added object offsets to exporters, converted tabs to spaces, added
method to get model nodes anywhere in the hierarchy by name, update 
model bounds in SkinMesh after deforming mesh.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4038 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-20 02:04:56 +00:00
Ray Greenwell 6bf2506f50 Array.indexOf() turns out to be there, just not documented.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4037 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-19 21:02:38 +00:00
Michael Bayne e0395bc0fc Removed extraneous whitespace.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4036 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-19 02:40:05 +00:00