Play with Space - JavaFX
Tuesday Mar 17, 2009
Spring season is about to come and one can feel the coldness in air. Last week, I went to my home and that week was quite good for my sample writing. Able to finish some of my pending job.
Back to JavaFX Samples, last week I saw a nice sample written in flash about the ball motion in 3-D space. I try to implement that idea in JavaFX. Code is little dirty, so I will post it later.
This is how it looks (animation is important) :
To watch the animation, please launch this JNLP. 
I hope, you will enjoy it !
1. There are 4 polygon, which covers the space, looks like a cricket net practice place :).
2. Launch button will give motion to ball, since the motion is not restored, pressing it again will not work.
3. var scale = z0 / (z0 + z); Scaling with proper value will provide the Z-Camera.
4. Gaussian Blur for shadow, which translate in 2-D and with same timeline.
--
Change in Blog : Adding source code :
1. Main File
2. Ball Throw
This will allow you to relaunch the animation.
















Looks great! :)
Thank you :)