Commit Graph

239 Commits

Author SHA1 Message Date
Ray Greenwell ab892bcd9d Handles some boilerplate functionality.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@239 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-10 23:46:34 +00:00
Andrzej Kapolka fd192268c3 Try using shorts rather than bytes for bone indices.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@238 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-10 23:21:15 +00:00
Andrzej Kapolka 8a0168760f Much work to reconfigure shaders automatically based on the model's
current JME state set.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@237 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-10 20:35:27 +00:00
Andrzej Kapolka 1d8f04c43a Prepend the #version directive before compiling the shader.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@236 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-10 01:31:42 +00:00
Andrzej Kapolka e5db96b963 Ignore cull mode when we're generating frames to morph between.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@235 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-10 01:07:54 +00:00
Michael Bayne 2e0678877b Use the hacky PerfTimer if available and fall back to the NanoTimer if we're
running in a sandbox.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@234 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-09 21:53:42 +00:00
Dave Hoover 20fe53d07f Did I leave the stove on?
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@233 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-09 20:11:02 +00:00
Andrzej Kapolka 45df6d814b Use VBOs for vertices, indices when using shaders; multiply vertices by
weights even if we only have one weight per vertex.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@232 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-09 19:51:32 +00:00
Michael Bayne 0024a02067 Wow, the media framework gets into a bad way if it's forced to use the
inaccurate System.currentTimeMillis() timer. Fortuately Sun introduced
System.nanoTime() in 1.5 which provides civilized timing information, so we can
use that instead of sun.misc.Perf which is unavailable in an applet sandbox. We
will need to go in and try to cope as best we can with currentTimeMillis() if
we want to support unsigned play in JDK 1.4 or earlier. We'll do that later.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@231 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-09 19:22:10 +00:00
Andrzej Kapolka ef35b37648 We need to create a new array when we're *not* using shaders.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@230 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-08 01:56:53 +00:00
Andrzej Kapolka 742dc30f9e Basic support for skinning with GLSL shaders. Still need to work out
how to handle different lighting arrangements and complex materials 
(e.g., the metal effect for the Iron Plate).


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@229 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-08 01:50:07 +00:00
Mike Thomas 8a2e67831e Also need to cope with non-component _root in BackFrameManager
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@228 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-04 23:14:26 +00:00
Michael Bayne 2c6fdf5d94 Cope if our ManagedRoot is not a component.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@227 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-04 23:08:08 +00:00
Andrzej Kapolka 3401bbf3bf Don't skin what you can't see.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@226 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-04 01:25:40 +00:00
Ray Greenwell d43eabc156 We should be removing ourselves from our parent when we're finished.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@225 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-04 00:41:32 +00:00
Andrzej Kapolka bb54ec1888 Optimize vertex order for cache usage and use a better data structure to
(re)index vertices.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@224 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-04 00:39:54 +00:00
Michael Bayne 095c718244 Render to the applet instead of its parent window since that doesn't work.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@223 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-03 22:56:29 +00:00
Michael Bayne ab6252cee7 Widened. Added getMirage(String).
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@222 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-03 21:13:32 +00:00
Andrzej Kapolka 277b62bd52 Don't merge meshes where, in any animation, one is visible and the other
isn't.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@221 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-02 18:19:09 +00:00
Ray Greenwell a855fa8340 Comment fixup.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@220 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-02 00:13:29 +00:00
Ray Greenwell 330a99f337 Added isContentInitialized(), which should be used to help differentiate
between an MsoySprite that does not have any WhirledControl subclass in it
and those that do, but are just not yet fully loaded.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@219 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-02 00:10:00 +00:00
Andrzej Kapolka 072926f814 Merge meshes in animated models by finding ones that maintain the same
relative position throughout all animations.  Also, don't include 
transforms in the animations for nodes that never move.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@218 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-01 23:36:23 +00:00
Ray Greenwell 86298ca832 I've decided I like setCallback() better than setFunction().
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@217 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-05-01 16:32:27 +00:00
Ray Greenwell 353d7213d0 Bugfix for animations that complete instantly.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@216 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-27 23:06:32 +00:00
Andrzej Kapolka 250670e699 Default to using S3TC texture compression.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@215 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-27 20:48:48 +00:00
Ray Greenwell 1d04c51070 Use TextFieldUtil.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@214 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-27 01:28:28 +00:00
Ray Greenwell f50613a913 Utility methods to attempt to make initializing a TextField easier.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@213 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-27 01:27:54 +00:00
Ray Greenwell fb1eb6026b Call updateAnimation() immediately on any starting animation.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@212 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-27 00:51:50 +00:00
Ray Greenwell 5f83a3bbcf Revamping animations to be based off of ENTER_FRAME rather than
using a rapidly-expiring Timer. Cleaned up some other bits.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@211 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-26 23:52:25 +00:00
Robert Zubeck 79c388a906 Basic 3D vector library.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@210 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-25 23:13:16 +00:00
Ray Greenwell c48aa541e8 Added hook for subclasses to initialize things prior to loading a new
piece of media.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@209 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-24 23:25:03 +00:00
Ray Greenwell 74d0b7286b More text animations, these are capable of animating each character.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@208 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-24 22:56:26 +00:00
Ray Greenwell 03e3b1b91c Some fixups. I think I'm going to want to refactor this so
that there are util methods for creating nice textfields, and then
generic animation classes for floating anything. This can then become
a convenience class that marries the two.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@207 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-24 22:55:29 +00:00
Ray Greenwell 476334e5ee It's ok to BE null, it just can't be set to null.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@206 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-24 21:28:49 +00:00
Ray Greenwell 97ff4caa41 Working towards some easy-to-use score animation type things.
Actionscript's lack of method overloading sucks. I can't have more
than one constructor, and factory methods will have to have different names.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@205 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-24 21:22:54 +00:00
Nathan Curtis b77c72220e Rather than break out a general purpose matrix algebra class that may not be needed anywhere else,
just compress those huge unneccessary functions into a couple of sensible loops for this 
specific case.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@204 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-23 22:04:03 +00:00
Nathan Curtis f6060d95af bring the functionality from UD's HueFilter into FilterUtil. I need to test this with UD to make
sure it works, and then these matrix functions should probably be put into a separate lib class 
(perhaps a new narya com.threerings.util.Matrix?)


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@203 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-23 18:44:02 +00:00
Ray Greenwell 54290011ae Properly document our event.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@202 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-19 23:12:53 +00:00
Andrzej Kapolka 488d47262b Where possible, merge meshes with identical attributes.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@201 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-18 21:06:08 +00:00
Michael Bayne f7cb60407e Nix the flexlib.swc from Nenya. We're going to need this in Whirled as well now
and we don't have a fancy system for enumerating shared dependencies like we do
for Java, and such a thing wouldn't really work or make sense given the way
ActionScript is compiled anyway.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@200 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-16 22:55:35 +00:00
Ray Greenwell 8c01691397 Finished off FilterUtil.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@199 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-14 03:42:11 +00:00
Michael Bayne c8ee262b7f Added popLeftwards. Only really useful for menus without submenus.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@198 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-14 01:45:04 +00:00
Ray Greenwell a3b441fcaa Partial implementation of FilterUtil.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@197 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-14 00:17:18 +00:00
Ray Greenwell 97a7ebcab3 Removed import that turned out not to be necessary. I was so prepared
for this to be complicated!


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@196 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-12 23:54:04 +00:00
Ray Greenwell a8a3295f26 Conveniently, it appears that the extra events generated by key repeat
are all KEY_DOWN events.
So holding down a key in flash generates: DOWN, DOWN, DOWN, ... UP.
In Java, we get DOWN, UP, DOWN, UP ...

Made a little helper class that can be used to block the extra DOWN events.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@195 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-12 23:49:29 +00:00
Ray Greenwell 54fd9e0df4 Moved Mike's artvatar Button utility class here, make it a little more customizable.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@194 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-12 22:03:04 +00:00
Nathan Curtis ab19cb897e Do something sensible when people set the width on this control
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@193 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-11 22:11:58 +00:00
Robert Zubeck 2291510909 A Shape is lighter than a Sprite.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@192 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-10 00:27:13 +00:00
Robert Zubeck 1eef72d9da Adding a mask and changing some colors inside the ScrollBox.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@191 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-09 23:31:22 +00:00
Michael Bayne 47d8ed1d63 Allow a custom dispatcher to be provided because the default (dispatching on
the stage) only routes commands to the global controller, bypassing the
controller for the current place view.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@190 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-04-08 02:42:16 +00:00