Questions tagged [javafx-3d]

The JavaFX 3D graphics APIs provide a general purpose three-dimensional graphics library for the JavaFX platform.

JavaFX is a set of graphics and media packages that enables developers to design, create, test, debug, and deploy rich client applications that operate consistently across diverse platforms.

The JavaFX 3D graphics APIs provide a general purpose three-dimensional graphics library for the JavaFX platform. They are supported by JavaFX 8, which is part of the JDK 8.

Since 2008 improvements to Java 3D were put on hold in favor of a 3D scene graph for JavaFX (Use java-3d tag for questions related to Java 3D).

Links:

Books about JavaFX 3D:

Personal blogs, by people, who write about JavaFX 3D:

Projects, complementing and extending basic functionality of JavaFX 3D:

Videos about JavaFX 3D:

196 questions
2
votes
2 answers

Line3D in JavaFX

I am asking about drawing a line in the 3D as I want to draw lines between 3D Points. I somehow confused about finding Point3D class but no Line3D or Plane3D.
Ali Zein
  • 113
  • 2
  • 9
1
vote
0 answers

JavaFX use Nearest Texture Sampling on Material

As a small easter-egg in a school project I'm trying to add a simple Minecraft-Clone into a JavaFX-UI programme. While the rendering and technology is working absolutely fine, troubles are appearing due to the texture sampling. Because everything is…
Robbe
  • 111
  • 3
1
vote
1 answer

How do I get the clicked Box in JavaFX 3d

I've got a problem with my JavaFX 3D application. My application creates a grid consisting of different boxes. The data used for the boxes are from the harry potter books, which are transferred to nodes and then to boxes. Every box symbolizes one…
Bashan
  • 11
  • 1
1
vote
0 answers

TriangleMesh Texture Coordinates are not interpolated as expected

I have a TriangleMesh with a texture/diffuse map that is a 1024x1024 texture which is fully black except the last 3 lines which are filled with red, green and blue. I gave each vertex of each triangle a constant V value (either 1021, 1022 or 1023)…
Suic
  • 433
  • 1
  • 3
  • 9
1
vote
0 answers

javafx multiple rotations on 3d node not aligning (Rubiks cube project)

I'm attempting to create a rubiks cube simulator using JavaFX and am having issues with rotating more than one face which causes issues with conflicting parts of the cube. Starting up the fxml file: the cube is imported via different .dae files…
luk3
  • 11
  • 1
1
vote
0 answers

Implementing a 3D transform gizmo using JavaFX

My goal is to create a simple translation and rotation gizmo in JavaFX. There are plenty of examples of how this can be implemented in C++ (e.g. https://nelari.us/post/gizmos/). But I am having trouble translating this code into JavaFX. Mainly…
1
vote
1 answer

Error when creating an object TriangulatedMesh

I want to create a figure in the form of the letter T When I create an object with these points, the exception drops Has anyone come across this? I use FXyz3D final List points = new ArrayList<>(//I am trying to create an array of points…
tmp20
  • 113
  • 6
1
vote
1 answer

Javafx 3D disapear in split pane

I developed a 3d plotting tool (so-called A; which is a subscene). I want to put this subscene in a Split Pane (B). The problem is a part of my scene disappears (when I rotate the plot some parts appear). as you can see below: trauncated…
1
vote
1 answer

How do I get a JavaFX camera orbit an object like a satelite?

In JavaFX, I want to add a camera that orbits around an object like a satellite. I want the orbit to move along a horizontal and vertical line around the object. I also want the camera to always be pointed at the object in the center of the…
Kalle H.
  • 11
  • 1
1
vote
1 answer

JavaFX 3D - Is it possible to change the width of Line in DrawMode.Line?

I would like to change the linewidth of any mesh with DrawMode.LINE, but I don't know if it is possible. I added some code for reference. @Override public void start(Stage primaryStage) throws Exception{ PerspectiveCamera camera= new…
1
vote
0 answers

JavaFX 3D: get rid of overlapping surface color noise

In JavaFX, when accidentally two surfaces of two shapes are overlapping, their rendering is somehow dirty, trying to use both materials. I tried to avoid it by adding 1 pixel extra height of one of the shapes which works as long as I don't zoom out…
Balage1551
  • 1,037
  • 1
  • 10
  • 28
1
vote
0 answers

Getting a Point3D from a Sphere in Javafx3D

I'm having some trouble working out how to get a Point3D from a shape in javafx 3d. I'd like to get a Point3D object with an X, Y and Z from my sphere which has been rotated on two axis and translated. However there is no sphere.getX, sphere.getY,…
nickynw
  • 35
  • 5
1
vote
0 answers

JavaFX Rubik Cube - cubie selection

I am trying to build a Rubiks Cube from scratch as my first real app using JavaFx. In the Moves class Im selecting Boxes from ObservableList based on position. The problem is that the Box.getTranslate dosent update so when I try to move the front…
1
vote
0 answers

Node drifts of after 3D rotation in JavaFx

I get the x- and y-orientation from an RFID-Tag and want to animate the movement in a JavaFX application. It's my first java project so I'm sorry if there are stupid mistakes. I rotate an box-node in the way of this and this thread. Two pictures of…
MrH Punkt
  • 33
  • 3
1
vote
0 answers

Improving Transparency & Lighting in JavaFx 3d shapes

In JavaFx if transparency is applied to a shape, it doesn't gives proper transparency effect, until there is any other shape behind it. for example, this sphere has some transparency but it appears only bright (not transparent) where as, if any…
BitKnight
  • 149
  • 7