Andrzej Kapolka
dc4b721198
Added a method to create a shader state using Files and preprocessor
...
definitions.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@159 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-26 19:33:01 +00:00
Michael Bayne
b6f5317ad2
More header patrol.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@158 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-24 00:38:17 +00:00
Andrzej Kapolka
a09600c969
Disable fog on meshes using additive blending.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@156 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-17 00:10:03 +00:00
Andrzej Kapolka
15a4d1d075
Use apply, rather than load, to ensure that JME remembers the current
...
texture state.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@151 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-07 23:52:11 +00:00
Michael Bayne
8df7f7e0b3
Support (but don't require) compiling to a custom destination directory.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@150 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-07 18:44:17 +00:00
Michael Bayne
aa9f74eed8
Use equals() to assuage code analysis tools that don't know that we assign
...
localType in the local VM and are careful to use the exact same instance.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@149 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-06 06:05:27 +00:00
Andrzej Kapolka
dddf409ad7
Fixed NPE.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@142 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-02 01:36:17 +00:00
Mark Johnson
a32f3a65e5
The % operator in Java is not a modulo operator but a remainder
...
operator. As such, the result can be negative. I've added a check to
prevent our next frame index from becoming negative.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@141 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-01 23:01:46 +00:00
Andrzej Kapolka
a8e905f419
Added "emissive" and "additive" flags for model bits.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@140 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-01 22:48:03 +00:00
Andrzej Kapolka
7f36e60353
Added a translation controller.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@139 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-01 21:54:53 +00:00
Andrzej Kapolka
60abc93638
Specify the default repeat type as a parameter; model animations should
...
not loop by default.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@138 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-01 20:03:00 +00:00
Andrzej Kapolka
7cdebe1912
Added a billboard model controller.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@137 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-02-01 19:31:55 +00:00
Andrzej Kapolka
fb8f4ce0a8
Fixed a bug with the texture controllers and moved some shared code into
...
a utility class.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@132 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-01-31 22:05:46 +00:00
Andrzej Kapolka
1bdce080ae
Assume that we start at the first frame.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@130 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-01-31 03:55:34 +00:00
Andrzej Kapolka
1cba0183f9
Added texture translation and animation controllers.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@129 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-01-31 03:41:26 +00:00
Michael Bayne
12f8cabd90
Config -> PrefsConfig where appropriate.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@125 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-01-31 00:49:05 +00:00
Dave Hoover
120e9c0db9
Actually substitute keywords (these files are chock full of stale $Id$ tags)
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@119 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-01-24 00:22:12 +00:00
Mark Johnson
86645aa41e
Let's remove the path controller when we cancel our move
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@111 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-01-19 18:14:43 +00:00
Andrzej Kapolka
154ce35b3a
When stopping animation, make sure to update the meshes if the model was
...
outside the view frustum on the last update.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@109 ed5b42cb-e716-0410-a449-f6a68f950b19
2007-01-02 19:06:34 +00:00
Andrzej Kapolka
8c346c4f4f
Don't set the other texture buffers for cards that don't support
...
multi-texturing.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@100 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-19 02:22:03 +00:00
Michael Bayne
871e38149b
Added a new slider mode.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@99 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-19 01:55:53 +00:00
Michael Bayne
bf6eb30ef6
Whoops added scale caching to the wrong method.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@98 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-18 04:24:23 +00:00
Michael Bayne
7b47faa5ed
Make it easy to scale a BImage when loading it.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@97 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-12-17 23:31:10 +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
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
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
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
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
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
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
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
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
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
Andrzej Kapolka
22b867bb61
Use the average of the three triangle vertices (rather than the first
...
vertex) to compute the depth used for sorting. There are still annoying
artifacts, but I've already spent too much time exploring all the ways
to sort these things.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@31 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-08-24 23:27:42 +00:00
Andrzej Kapolka
f8c230df6f
Added option to depth-sort the triangles in transparent meshes. I tried
...
to optimize this, and seems reasonably fast, but not fast enough to
enable it for all transparent meshes. Hopefully the artists can improve
performance by merging meshes together, and we can strike a happy
balance between sorting by mesh and sorting by triangles.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@29 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-08-23 23:14:38 +00:00
Andrzej Kapolka
4a4f9755c8
Exclude animation transform targets when locking immobile models.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@28 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-08-22 22:20:47 +00:00
Andrzej Kapolka
a6aab0c177
Added options for specifying the filter and mipmap parameters for model
...
textures, as well as for using an emissive map.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@27 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-08-22 20:23:42 +00:00