Skip to main content

Screen Transitions

4 replies [Last post]
psychostud
Offline
Joined: 2005-11-02
Points: 0

Please let me know if i can acheive the followng use- case using scenegraph. .

I have a screen which i have divded into states like screenState1, screenState2.
I wish to animate the transition between them, with some animations running sequentially(eg: Move & Then dissolve ) and some running parallely(eg : Zoom and fadout at the same time).

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Jim Graham

Sorry to take a bit to get back to you on this, but your question was a
little incomplete. The Scenegraph Project is targeted at Rich Internet
Apps and animations, but the question really is what level of automation
you are looking for.

You can do any of that with Scenario, but you can do any of that with
Java, and you can do any of that with Assembly language. It just
depends on how much code you want to write. You'd have to look at the
Scenario APIs yourself and decide how close they are to automating these
tasks. They are definitely targeted at those kinds of abilities (as you
can see from the demos on the demo page), but some pieces you are
looking for may be more manual than you are expecting.

We have animation APIs which can animate custom "TimingTarget" instances
and which can easily be pointed at BeansProperty-compatible values like
translation and scale attributes to move components around. The
animations can be composed using Timeline objects in whatever scheduling
order you desire. You have to write some code here, but on the order of
1 or 2 lines of code for each property you want to animate. If you
group the objects appropriately then you can reduce the number of
properties which have to be scheduled for animation.

As far as managing the layouts, we don't really have a concept like the
Swing/AWT LayoutManager objects in the Scenegraph project yet, but that
is on the current wish list. We are also aware that such a mechanism
should play well with animations, but the work on how to do that is TBD.

If you are asking if there is a one-line call you can make to do all of
this, I don't think there is, and I'm not sure what that API would look
like without more specific input. If you have some suggestions on API,
it would be good to describe what you are looking for in a little more
depth (pseudo-code example code for instance).

If you are asking if there is a nice GUI front end where you can draw
objects over here, and then move them about and then click on a button
to output code to animate them from position A to position B, then we
aren't targeting those kinds of tools in the near future at the
Scenegraph Project level, but the FX Script technology is looking to
have tools like that in the very near future...

...jim

scenario@javadesktop.org wrote:
> Please let me know if i can acheive the followng use- case using scenegraph. .
>
> I have a screen which i have divded into states like screenState1, screenState2.
> I wish to animate the transition between them, with some animations running sequentially(eg: Move & Then dissolve ) and some running parallely(eg : Zoom and fadout at the same time).
> [Message sent by forum member 'psychostud' (psychostud)]
>
> http://forums.java.net/jive/thread.jspa?messageID=278067
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@scenegraph.dev.java.net
> For additional commands, e-mail: dev-help@scenegraph.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@scenegraph.dev.java.net
For additional commands, e-mail: dev-help@scenegraph.dev.java.net

psychostud
Offline
Joined: 2005-11-02
Points: 0

Jim ,
Sorry if i didnt make my question clear enough... Basically i would like to achieve something similar to what was being done by the animatedTransitions project by chet . That project not being supported any longer for obvious reasons.

Basically i would like to animated whenevr a component is added(fadein)/removed(fadeout) or updated or moved. Scengraph seems to heavily deal with corodinates and lack layouts. Maybe a few examples where we deal with core swing components would make the api clearer

Message was edited by: psychostud

Amy Fowler

We agree there needs to be a layout mechanism for scene graph that is
capable of supporting
animated transitions without having to use the imaging tricks required
in Chet's animated transitions
library for Swing (for which I was once also a customer of, btw).
Scene graph nodes are inherently
capable of supporting these transition effects, but as you point out,
right now we provide no help
in laying out nodes within the scene.

We're starting to look at this in the context of both scene-graph and
JavaFX (which relies on scene-graph),
so stay tuned.

Aim

On Jun 10, 2008, at 10:48 AM, scenario@javadesktop.org wrote:

> Jim ,
> Sorry if i didnt make my question clear enough... Basically i
> would like to achieve something similar to what was being done by
> the animatedTransitions project by chet . That project not being
> supported any longer for obvious reasons.
>
> Basically i would like to animated whenevr a component is
> added(fadein)/removed(fadeout) or updated or moved. Scengraph seems
> to heavily deal with corodinates and lack layouts. Maybe a few
> exampled where we deal with core swing components would make the api
> clearer
> [Message sent by forum member 'psychostud' (psychostud)]
>
> http://forums.java.net/jive/thread.jspa?messageID=279494
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@scenegraph.dev.java.net
> For additional commands, e-mail: dev-help@scenegraph.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@scenegraph.dev.java.net
For additional commands, e-mail: dev-help@scenegraph.dev.java.net

psychostud
Offline
Joined: 2005-11-02
Points: 0

It seems the SUN Engineers are just tooo busy to answer my question, All i can say it is very disappointing not to get any reply from the core development team.