3d Object (Cube) Concept to Code Part 2

After all I am near to Christmas, My hands are shaking so cold: P. Today I’m writing about the post of how to create a 3d cube box in JavaFX. Well I’ve you have already read my previous post of how to create Cube in JavaFX using the technique I’ve described.

 

We’ll create here one function which can create a cube box using parameter of width. Even if we create a 3D in JavaFX, The Object will not look like a real 3D because there is absence of good Camera stuffs class. But hope these things will arrive very soon.

Here is the JavaFX function which can create the Cube3D

After making this function for cube you can invoke this function and you will get the instance of StackPane. This way we can actually create 3D Cube.

A simple demo of Cube is given below


Source Code: CubeDemo

Have a good day and Merry Christmas 2012 🙂

3 thoughts on “3d Object (Cube) Concept to Code Part 2”

  1. Pingback: Java desktop links of the week, December 31 | Jonathan Giles

  2. Pingback: Java desktop links of the week, December 31 – Jonathan Giles

Leave a Reply