Scene Graph API on the NetBeans Platform

Stone age experiments with the brand new Scene Graph API on the NetBeans Platform. Stone age in the sense that I'm just doing whatever I find in code completion to make what I need to work succeed. Okay, stone age people didn't have code completion. Never mind, bad rambling comparison. Anyway, not very finely finetuned, but I have a wandering monk, departing from the square on the left when I click it, and then moving to the right of the IDE, at which point "he" stops. Then I click him and he returns from whence he came:

Not only stone age methods were used, but also the end result is pretty pointless. However, the larger lesson is that I think the Scene Graph API is going to be useful in combination with the Visual Library API, or separate from it, whatever makes sense. For example, if you want tight integration with the NetBeans Platform, you won't use the Scene Graph API, because it has no connection with the Nodes API, unlike the Visual Library API. (So, you're not going to be able to integrate with a NetBeans Property Sheet, for example.) On the other hand, it does have a concept of "nodes", so at least there is a sharing of terminology. (Perhaps "false friends", but perhaps the basis of a merger.) However, I imagine that animation and timing framework related activities are handled better in the Scene Graph API. So, my guess is that one will be able to mix and match. Note also Josh's thoughts at the end of this article, where he imagines a future where the Visual Library API will be underpinned by the Scene Graph API. That makes sense to me and sounds like it would be the best of both worlds.

PS: In case you're wondering why I chose a monk—I wanted to use an image of a person. However, my knowledge of this API is currently microscopic, hence I knew I wouldn't be able to manage the movement of the person's legs. "Without that, it would look weird and incomplete", I thought. So, I decided to cheat. I googled for a picture of a monk, because I anticipated the picture would include a robe that would reach down over the shoes, so that the whole lack-of-authentic-leg-movement-animation-thing wouldn't be an eyesore. But I couldn't find a monk with the requisite robe length, so I gave up and went with this one, because of the white background... And, so, anyway, that's how it ended up being a monk. Pity he's got a bad habit.

Comments:

It makes absolutely sense, as the Visual Library can be used for many creative things.

Posted by Fabrizio Giudici on December 12, 2007 at 06:49 PM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
12
13
14
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today