Mike Thomas
c483d58683
If we have tiles just off the bottom they can stick up into our screen.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@945 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-10 00:58:02 +00:00
Mike Thomas
e00b8be8d4
We need a separate bitmap because we can only include each bitmap once in the window, but we can go ahead and share the underlying data.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@944 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-10 00:13:50 +00:00
Mike Thomas
c65ee0c562
Let's reorganize our scene tiles into SceneBlocks that we can load and unload as chunks as we move our view around the scene. If this sounds familiar, it's because you've been reading MisoScenePanel.java.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@943 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-09 23:15:20 +00:00
Mike Thomas
141901b2af
The TileUtil.getTileHash function's method for computing a seed was resulting in a lot of very non-random looking vertical and horizontal lines of the same tile, especially around the origin. (0^0 == 1^1 == 2^2 etc) So, let's bit-shift x to make it appear more random.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@942 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-09 00:29:56 +00:00
Mike Thomas
64bbf9f9d8
Rather than loading all the base tiles at once (or really, all the ones in an arbitrary region), we'll load only the ones on-screen. And then if we scroll around, we'll load the others we need.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@941 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-09 00:18:06 +00:00
Mike Thomas
78f64d2c66
We can just take this out entirely for now - I really don't know why it's not finding this, I guess it must not be getting exported to the as3isolib swc even though it's in the source.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@940 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-08 23:43:01 +00:00
Andrzej Kapolka
6abbcfc639
Fix the Shared Libraries build. It looks like the version of as3isolib in
...
extlibs needs to be updated.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@939 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-08 23:19:34 +00:00
Mike Thomas
4fba468590
Change how the Miso view handles the time when we're waiting to load the tilesets - show a loading screen of some type instead of showing the semi-transparent blocks.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@938 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-08 21:53:56 +00:00
Mike Thomas
da88a42716
Use a new, fancy version of the Iso lib scene layout renderer that takes into account a render-priority for use in handling overlapping iso objects. This may want some additional optimization in the future, but we'll see if that's really required.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@937 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-08 17:05:10 +00:00
Mike Thomas
1254841995
Second pass on AS recoloring, fixed a bunch of bugs and tied to tiles/tilesets.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@936 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-07 18:04:52 +00:00
Dave Hoover
91b0a812ba
Line ending happy fun times
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@935 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-06 17:28:12 +00:00
Mike Thomas
75f00f82ec
Checkpoint commit to getting the png recolor code into nenya. This still needs testing and such.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@934 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-03 01:05:08 +00:00
Dave Hoover
7752cca5b0
Document + change name.
...
"keepRawPngs" is a bit confusing since we tend to refer to the
FastImageIO format as "raw"
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@933 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-02 23:20:28 +00:00
Mike Thomas
e3c79a6be8
First pass at getting miso working with actual tiles and tileset data.
...
Still to do:
- Handle tile priorities in ISO sorting.
- Handle recoloring tiles (this may result in annoyingly significant changes to Tile/TileSet API)
- Dynamically loading sections rather than loading all the tiles of a scene.
- Better handling of the state where the scene's not yet loaded.
- Portals.
- Dynamic sizing of the MisoScenePanel
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@932 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-01 22:27:37 +00:00
Mike Thomas
941a6a83b2
Allow a parameter to TileSetBundlerTask to keep the pngs in the bundle instead of converting to raw and trimming them.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@931 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-07-01 22:14:06 +00:00
Dave Hoover
ca9e1aa730
That should be private.
...
If it's public, we try to shadow it in a subclass & wind up
still getting THIS one.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@929 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-06-18 23:40:17 +00:00
Mike Thomas
e42ebae867
It's not drawing the real tile/art assets yet, but handles enough of the model correctly to draw boxes for each base/object tile.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@928 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-06-16 22:56:48 +00:00
Dave Hoover
25ee5e9134
Slay some cyclopian variables.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@927 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-06-15 17:27:02 +00:00
Dave Hoover
2efa35a62d
Whitespace
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@926 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-06-15 17:26:58 +00:00
Mike Thomas
2f634e3a60
Port of the miso scene model and related bits (so, data only, no rendering of any kind yet).
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@923 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-06-08 01:48:12 +00:00
Mike Thomas
e3de56d12a
Change that StreamableHashIntMap into a more standard StreamableHashMap
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@922 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-06-08 01:41:24 +00:00
Dave Hoover
f6ec3f5af4
We require 1.5 now, so rock on!
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@920 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-05-17 20:13:54 +00:00
Dave Hoover
cb15424946
Render debug footprints even if we don't render objects.
...
It's really handy when you've got objects that hide others to be able to
turn off the objects but still get footprints.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@919 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-05-14 18:57:53 +00:00
Dave Hoover
8d54026f63
Whitespace
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@918 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-05-14 18:57:52 +00:00
Dave Hoover
251da6cb22
Varargs
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@917 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-05-14 18:57:51 +00:00
Mike Thomas
209fbfceaf
There's pretty clearly a larger issue here, but this seems to solve the immediate issue - ties in the sort are Really Bad as they lead to inconsistent ordering later on. But note that it's still very possible to end up with ties even with this change.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@916 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-04-22 00:48:03 +00:00
Ray Greenwell
aaddc866e8
I think I can make this class usable for what I want by simply making
...
the Node class public so that I can see where I came from in my Stepper.
The thread non-safety only affects callers of getConsidered(), btw.
If I wasn't pinched for time right now I'd modernize this whole thing
and remove the sucky.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@915 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-04-13 21:44:57 +00:00
Ray Greenwell
24e3afe18f
Some formatting.
...
Whatever: this class needs a kick to the head.
Maybe I should make a new one that isn't singleton and thread-unsafe
like this one.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@914 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-04-13 20:42:26 +00:00
Ray Greenwell
c1ba3f7d18
Allow a Stepper to easily be created that doesn't consider diagonals.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@913 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-04-13 00:34:04 +00:00
Ray Greenwell
69d734863c
Document two gotchas. This is fucked up. Fucking A.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@912 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-04-07 22:32:57 +00:00
Mike Thomas
278696c655
Let's alphabetize those color names in the JComboBoxes.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@908 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-31 18:55:16 +00:00
Dave Hoover
eb3673363e
Button to save out the colorized image
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@907 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-24 22:06:16 +00:00
Dave Hoover
6d5c7af519
Log a stack trace for obscenely huge dirty regions.
...
If we're freaked out enough that we're carping & ignoring it, I want to
be able to actually figure out what's broken.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@906 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-24 01:08:49 +00:00
Michael Bayne
2fd8b7fbaa
Some raw type cleanup.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@904 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-16 23:27:05 +00:00
Michael Bayne
c484d10a48
Fascinating. This class contains both toArray(ArrayList<Integer> lits) and
...
toArray(ArrayList<Float> list) which erase to the same argument types. They
differ in return types which means that the JVM recognizes them as different,
so when the compiler resolved that it needed to call
"toArray(Ljava/util/ArrayList;)[F", it was not a problem that
"toArray(Ljava/util/ArrayList;)[I" also existed.
javac 1.7 is a bit stricter about this sort of thing and issues a concerned
warning message. Since the ArrayList<Integer> version is not used, I'm nixing
it to avoid confusion.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@903 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-16 23:26:27 +00:00
Andrzej Kapolka
4145611b9c
Added method to get color class by id.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@902 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-11 02:03:04 +00:00
Mike Thomas
5920f44e64
It's probably helpful if the clone on the scene model actually clones its ObjectInfo bits.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@901 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-11 00:51:30 +00:00
Mike Thomas
ba3be78a51
Separate out the modes of the recolor tool. There are now three modes - Using Color Class (old All Colorizations mode), Multi-Color (Specify up to 4 recolors), and Manual Recolor (old specifying target color, offsets manually mode).
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@900 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-10 21:41:41 +00:00
Mike Thomas
490dcdfd2b
This was a tad broken - if an animation happened to paint before it ticked, it'd try to paint tile -1 which obviously didn't exist. This change may break any custom sequencers anyone has but seems necessary...
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@899 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-04 01:39:36 +00:00
Dave Hoover
e702a1b33e
Unused import
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@898 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-03 19:06:03 +00:00
Dave Hoover
c83c019a7d
Varargs
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@897 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-03 19:06:02 +00:00
Mike Thomas
52e44de862
Uh.... If we've passed along our temporary/optimization member var _tbounds as a parameter to renderLayer() it's probably best if we don't then try to reuse _tbounds for something else while simultaneously attempting to use that parameter.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@896 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-03 02:06:09 +00:00
Mike Thomas
5e13f471ac
Obscurers can now be told to only include changed regions in their reported obscured rectangle.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@895 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-02 23:00:10 +00:00
Mike Thomas
ac407478d7
Fix a Truly Ancient (TM) bug.
...
The Scene Resolver thread and the dobj/AWT thread both talk to the _blocks map. And if the resolver tried to get while someone else was doing a put(), that put could decide to resize/rearrange the map. Which could result in the resolver not finding its block. Which resulted in annoying missing tile blocks. So - ConcurrentHashMap it up.
Woo!
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@894 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-03-02 18:33:34 +00:00
Dave Hoover
829f812a8a
Provide those constructors, too.
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@893 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-24 01:30:42 +00:00
Dave Hoover
f5fc7672f4
Varags logging
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@892 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-24 01:30:41 +00:00
Dave Hoover
c60e694633
Fix typo
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@891 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-24 01:30:40 +00:00
Dave Hoover
80477e64ba
No, comment, that ISN'T needed
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@890 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-24 01:30:39 +00:00
Dave Hoover
5cfb8d5d0d
Whitespace
...
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@889 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-24 01:30:38 +00:00
Dave Hoover
2fb102fd7b
Convenience wrappers.
...
I've been doing a whole bunch of AnimationSequences and 99% of the time
it's been one of those two stupid simple cases, so make them stupid
simple to do & stop cluttering up my code with extra args to linewrap.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@888 ed5b42cb-e716-0410-a449-f6a68f950b19
2010-02-18 06:42:58 +00:00