The javafx tag has no usage guidance.
0
votes
0answers
18 views
import 3D model using javafx
I'm currently working on importing a 3D model (obj file) using JavaFX.
first, i read the obj file and save its content in float arrays (vertices, normals, textures) and integer array for (faces).
...
0
votes
1answer
65 views
JavaFX snake game AI
I am trying to add an AI simulated snake to my snake game that a player can play against. So far I think I do get the concept of how to do certain things but snake should be able to find the nearest ...
0
votes
0answers
49 views
How to create 3d model from obj file?
Goodmorning everyone,
i want to create my obj loader in javafx application.
first, i used blender to extract obj file from 3d object and i got the file and wrote application with classes include ...
0
votes
1answer
98 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
68 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
11 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
97 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
168 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
1answer
131 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
231 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
34 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.