Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

JavaWorld Daily Brew

3D and Faux 3D

 

Simple Faux 3D effects are common in 2D graphics, however the quality and performance of such effects is limited. Eventually, I want to integrate a true 3D declarative scene graph API into F3. The goal isn't to provide a massively scalable 3D engine, but rather to make it easy to program smaller scale 3D effects with high performance.

In the meantime, since you can call Java from F3 it's possible to directly use GLJPanel in F3 and call JOGL API's directly to mix 2D and 3D effects.

Here's a simple example which contains a 2D rectangle, JButton, and JTextField together with the well-known Gears 3D example in the same F3 canvas:

Source:

Gears.f3

It's also possible to do faux 3D in F3. Here's an example that was inspired by in part by the Flex Display Shelf and partly by the ITunes Movies page. Note ITunes is true 3D, however. The scrollbar and artwork mimic ITunes but the layout is similar to the Flex example.

Source:

DisplayShelf.f3
TiltingPane.f3
ITunesScrollBar.f3