Commit Graph

25 Commits

Author SHA1 Message Date
Michael Bayne 51c01493f2 Type safety, redundant case removal, other cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@490 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-09 11:39:45 +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 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
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
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
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
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 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 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 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
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
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
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 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
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 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 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
Andrzej Kapolka f87f335ca7 Added the ability to render meshes in multiple passes with different
render states.  Cleaned up some formatting.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@25 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-08-11 21:46:21 +00:00
Andrzej Kapolka 44ddf2f72e Copy sphere map setting to instances.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@12 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-07-09 00:47:15 +00:00
Andrzej Kapolka 7baf533076 Added an option to use textures as sphere maps (this will require
recompiling the models).


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@9 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-06-28 01:53:09 +00:00
Michael Bayne c2117ee86d Behold, Nenya, Ring of Water and repository for our media and animation related
goodies, both Java 2D and LWJGL/JME 3D.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1 ed5b42cb-e716-0410-a449-f6a68f950b19
2006-06-23 18:07:28 +00:00