Commit Graph

52 Commits

Author SHA1 Message Date
Michael Bayne fd05f9aad5 com.jme.bui -> com.jmex.bui.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3686 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-23 18:56:36 +00:00
Michael Bayne ef65ee5644 Do things in a way more amenable to subclassing.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3684 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-08-22 18:30:07 +00:00
Michael Bayne 03411cbd9c Various renamery.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3650 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-07-14 03:54:11 +00:00
Michael Bayne 9002162b86 These should be instance local.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3636 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-29 02:20:34 +00:00
Michael Bayne 8e5d5c665f Use the default type if none is specified.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3635 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-29 02:05:56 +00:00
Michael Bayne dd3bc4f8e7 Fail gracefully if we're missing a tile source image.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3634 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-28 21:36:45 +00:00
Michael Bayne ced6c5b826 Optimized the fringe tile creation process (we only create the graphics
context once and use it to stamp all fringe fragments).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3633 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-28 21:19:38 +00:00
Michael Bayne 4c3a6fa88a Looks like we're staying in the jme package as OpenGL's inverted y axis
has asserted its nefarious influence. Also modified the code to render the
fringe image on top of the original source image as we need a single
ground texture, not two images to be rendered one atop the other.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3631 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-28 21:07:06 +00:00
Michael Bayne 7a830949a1 Frank <-> beans.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3630 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-28 18:40:02 +00:00
Michael Bayne 613dd3633e Converted the fringing code into a more generic form that works directly
on buffered images and is not tied to the tile system or the image
manager. This could probably even move into the media.tile package.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3629 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-28 18:28:22 +00:00
Michael Bayne b52e20864d Added requestFocus().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3627 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-27 21:05:01 +00:00
Michael Bayne 879a0e25e7 Bound the camera into the pan limits on every operation that changes its
location.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3626 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-27 18:44:36 +00:00
Michael Bayne 12853f5600 Disable the FPS display until we have some way to turn it on and off.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3625 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-24 22:35:08 +00:00
Michael Bayne c38b75ae9a Allow for event driven rotation.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3623 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-24 21:45:44 +00:00
Michael Bayne d22b510867 Ixnay on the verbose logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3621 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-24 00:21:38 +00:00
Michael Bayne f3dec66a8d More geometric jockeying that you can shake a stick at. The
LineSegmentPath now orients sprites along the path (and even handles an
arbitrary notion of "forward" for the sprite).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3620 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-23 21:12:17 +00:00
Michael Bayne 2bf5936317 Fixed the orienting ballistic path, though it doesn't properly handle
arbitrarily oriented sprites. They currently have to "point" toward (1, 0,
0) as that is the direction that will be aligned with the velocity.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3619 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-23 03:49:18 +00:00
Michael Bayne 8ef2a508c9 Created a specialization of the ballistic path that orients the sprite in
the direction of motion as it traverses the path.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3614 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-22 20:21:45 +00:00
Michael Bayne dfa9216b89 Do dat math!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3612 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-22 18:50:38 +00:00
Michael Bayne 6fbdc4e568 Created a path for ballistic motion and an associated test. Yay for
physics.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3610 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-22 18:26:54 +00:00
Michael Bayne d7fd2f5f67 Resize our OpenGL display when the canvas is resized.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3606 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-20 18:57:18 +00:00
Michael Bayne 83d077b1fa Make them thar useful methods publicly available.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3605 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-18 03:04:04 +00:00
Michael Bayne 1f9d28aa59 A bunch of fiddling to support running JME in an AWT canvas.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3601 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-16 00:04:09 +00:00
Michael Bayne 78d96849b1 Created an ant task for converting models to JME format.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3589 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-06-08 00:03:24 +00:00
Michael Bayne c6ceb654e4 We can do all we need with the DummyDisplaySystem. Eventually I'll be able
to turn this into an ant task.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3584 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-31 23:14:51 +00:00
Michael Bayne 5a4df194ec Added some methods for controlling animations within a sprite.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3583 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-31 23:14:08 +00:00
Michael Bayne 919790557f Removed debug logging.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3575 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-24 20:32:16 +00:00
Michael Bayne 862ff8a9eb Catch Throwable because LWJGL kindly throws errors during initialization
in addition to exceptions. Yay!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3574 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-24 17:55:52 +00:00
Michael Bayne 56deaa4982 Catch errors when initializing OpenGL and allow them to be displayed to
the user.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3573 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-24 17:48:10 +00:00
Michael Bayne cf3a6e0a91 Allow the reading of the display configuration to be overridden.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3571 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-24 02:14:55 +00:00
Michael Bayne a66f06bd3b Added ability to limit the camera's panning; cleaned up input and mouse
handler creation.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3568 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-19 18:02:07 +00:00
Michael Bayne 6d3f4c2465 Created LineSegmentPath fixed bug with path completion.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3567 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-19 00:21:28 +00:00
Michael Bayne 19ad750acf A simple standalone converter into JME model format.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3565 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-18 00:00:46 +00:00
Michael Bayne fcc517c3bf Use a much larger frustum and don't set up the camera handler to exit our
application. We'll do that ourselves thanksverymuch.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3564 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-17 22:46:41 +00:00
Michael Bayne 5c48cd2a1f The font is no longer included with JME, so we'll stick it here.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3562 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-17 22:45:43 +00:00
Michael Bayne 7a00cd44bf Allow "escape to exit" functionality to be disabled.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3557 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-16 22:35:56 +00:00
Michael Bayne b6a8c2be58 Use a more sensible log name; removed unused import.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3556 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-16 22:08:55 +00:00
Michael Bayne 3722bc3697 Updates to work with new BUI auto-attach/detach.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3550 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-12 22:23:55 +00:00
Michael Bayne 677455e5d7 Use colors.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3549 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-12 22:23:34 +00:00
Michael Bayne 8dec58c227 Don't rotate our scrolling vectors unless we're orbiting the camera.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3541 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-04 02:21:53 +00:00
Michael Bayne 4aa4419c9c Provide a way to zoom the camera in and out programmatically, added keys
to roll the camera forward and back.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3540 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-03 23:45:01 +00:00
Michael Bayne 2caef9416e Created a simple straight line path, made paths actually work.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3539 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-03 22:48:33 +00:00
Michael Bayne d6e4fe20c3 Use vsync, we don't like the tearing.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3536 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-03 02:39:13 +00:00
Michael Bayne 78d32af2f9 Separate our scene graph into user interface and geometry, reflect that in
the services we make available via the context. Added a sprite and path
framework not wildly unlike that in media but based around the JME
primitives.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3532 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-01 23:42:46 +00:00
Michael Bayne 6c5dc815eb addChild() -> add().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3531 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-05-01 16:16:35 +00:00
Michael Bayne 357ed12b9f Switched the chat view and test app over to BUI. Modifide the build script
to create a narya-jme.jar file.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3529 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-04-29 03:24:07 +00:00
Michael Bayne 84d7d7a611 More slow progress toward a test application that does chat to a Crowd
server. It looks like I'm going to have to write my own user interface
toolkit for JME as nothing exists for any Java-based GL library or engine
and precious few toolkits exist in C++. Yay!


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3519 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-04-21 04:40:12 +00:00
Michael Bayne 06899b8b7a Further massaging of the JME base application; started in on a chat client
that will run in happy 3D land.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3515 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-04-21 00:23:41 +00:00
Michael Bayne b1e8d60d18 More juicy delicious 3D bits.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3514 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-04-20 23:31:14 +00:00
Michael Bayne 3b36c61046 More JME wirey uppy bits.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3513 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-04-20 23:09:38 +00:00