The javafx tag has no usage guidance.
0
votes
1answer
51 views
Rotations of a Rubik's cube
I made a Rubik's cube by arranging smaller cubes. Now I want to apply animations to it. For that I am choosing to use the Rotate class and set the angle of rotation and the axis of rotation,like this
...
0
votes
1answer
23 views
Rotation of a cube
I came across the statement "rotation about a pivot and an axis" in javafx. The axis is defined byPoint3D and the pivotX, pivotY and pivotZ are of double type. I could not form a relation about what ...
0
votes
0answers
10 views
Adding nodes to group
I add some nodes to a Group object(say ob1) and apply transformation to the group object.
After that if I the same nodes to a new Group object(say ob2) are the nodes placed at new position after the ...
0
votes
0answers
49 views
Applying animations to 2x2 Rubik's cube
I built a 2x2 Rubik's cube with javafx and my next goal is to apply animations to it. For that I need to keep track of the individual cubes. But I could not find one. Then I simply set up four Group ...
1
vote
1answer
36 views
How to calculate texture coordinates for a cube?
I was reading about texture mapping on 3D shapes in javafx where I came across this code,
static TriangleMesh createMesh(float w, float h, float d) {
if (w * h * d == 0) {
return null;
}
float hw = w ...
1
vote
0answers
37 views
how to get rid of blurred and overlaping 3d shapes in javafx
I actually wanted to build a 2x2 rubiks cube. As the Box class in javafx doesn't provide the feature of building a cube with different colours on different faces, I chose to build the cubes using ...
1
vote
1answer
26 views
How do you rotate all the objects around the camera?
If I'm correct, the way that you can "look around" in an environment is that you rotate all the objects around the camera. This is the code that I've created using JavaFX 3D. So what's the algorithm?
...
0
votes
1answer
17 views
Setting the cursor's location in JavaFX
Is there a way to set the cursor's location in JavaFX while the window is in focus? I've searched the possibility of the Scene's cursor object, but that leads to a dead end.