HTML5 Canvas
Written by: Simon Sarris
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Web Driver
  3. MVVM
  4. REST
  5. ADO.NET
  1. HTML5
  2. Ajax
  3. jQuery Selectors
  4. CSS Part 1
  5. Git

Link Details

Link 147082 thumbnail
User 111696 avatar

By bloid
via learnjavafx.typepad.com
Published: Jan 07 2009 / 15:34

The cube uses the PerspectiveTransform effect to do faux-3D, and was running at around 10 frames per second. I asked Stephen Chin if he could tune it up a bit, and he sent me back a modified program that consistently achieves 60+ FPS on my dual core 2.4 GHz Vista machine. In a later post Stephen and I will point out the optimization techniques used, but for now I wanted to give you a Java Web Start link to try it out:
  • 20
  • 0
  • 1641
  • 0

Comments

Add your comment
User 152955 avatar

Gregg Bolinger replied ago:

0 votes Vote down Vote up Reply

Mmmmm, spinning cubes. See a lot of those in RIAs do we?

User 254157 avatar

Jim Weaver replied ago:

0 votes Vote down Vote up Reply

Good to hear from you, Gregg! This uses PerspectiveTransform which for now is the way in JavaFX to simulate 3D. I do see a lot of use of perspective in RIA. Also, I wanted to highlight performance, as my prior experience (in a former post on the presentation cube) was that the PerspectiveTransform was expensive in terms of CPU cycles. By the way, I'd be interested on what your Acceleration Type, FPS, and machine are, as I want to give feedback to the JavaFX team on performance. That's going to be a critical factor in the RIAs that users will come to expect.

Thanks again, and I do remember fondly the hospitality extended to me in the Java Ranch book giveaway. That was much appreciated!

Thanks,
Jim Weaver
http://JavaFXpert.com

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.