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
9
votes
1 answer

Why JavaFX (3D) on Raspberry Pi doesn't work, although it should?

I think I've read all available solutions about problems with 3D under JFx on RPi and none of the following suits my needs. I had no problems with 2D applications. But when I try to run 3D program, all the 3D elements are gone. After this…
Karol K
  • 213
  • 2
  • 6
9
votes
2 answers

Rotate a 3D object on 3 axis in JavaFX properly

So the method that I've used so far to rotate objects in JavaFX was that I layered it in 3 groups, each of them with a Rotate attached and locked to a single axis like so: Rotate heading, roll, pitch; Group normalrotate, rollrotate,…
Moff Kalast
  • 1,024
  • 1
  • 12
  • 22
9
votes
3 answers

JavaFX 3D Transparency

I'm looking for a way to render a transparent object in JavaFX 3D. So far, nothing. I found issue https://bugs.openjdk.java.net/browse/JDK-8090548. Is there a workaround or is this just something I can't use? Will I need something besides JavaFX…
CJDood
  • 333
  • 3
  • 7
9
votes
2 answers

JavaFX 8 3D scene intersection point

Is it possible in a JavaFX 8 3D scene to find points along a ray (e.g. PickRay), starting at an arbitrary point in 3D space with some 3D direction vector, where the ray intersects the triangles in a mesh (TriangleMesh inside a MeshView)? I know this…
Rik
  • 351
  • 2
  • 10
8
votes
1 answer

JavaFX Moving 3D objects with mouse on a virtual plane

As I was creating my first 3D game in JavaFX - where you would be able to assemble ships from parts using the mouse. This presents a problem since JAVAFX seems to have no native metods that work for converting PerspectiveCamera screen 2D coordinates…
Moff Kalast
  • 1,024
  • 1
  • 12
  • 22
7
votes
1 answer

How to create such shape using javaFx TriangleMesh?

I need to create this shape. I understand how to create simple shapes such as a cube, but I don’t understand at all how to create such a shape. How to get the right points for these arrays? Please, help TriangleMesh mesh = new TriangleMesh(); …
tmp20
  • 113
  • 6
7
votes
2 answers

How to animate a spinning top?

It's Hanukkah and I'm trying to animate a spinning top (dreidel): I can get it to spin on its own axis. Here is my code: import static javafx.scene.paint.Color.*; import javafx.animation.KeyFrame; import javafx.animation.KeyValue; import…
user1803551
  • 12,965
  • 5
  • 47
  • 74
7
votes
1 answer

How to render 3D text in JavaFX?

I'm making my first JavaFX project and I need to render some 3D text. I already put a PerspectiveCamera and I display a text node but it has a Z-dimension of 0 and I don't know how to change this. Thanks in advance!
codenoob
  • 257
  • 3
  • 15
7
votes
2 answers

Coloring individual triangles in a triangle mesh on javafx

I have a triangle mesh object in JAVAFX and would like to either color individual triangles of the triangle mesh or color individual vertices of each triangle and have the triangle be colored according to an interpolation of the colors of each…
6
votes
2 answers

How to draw text on a sphere in javafx

I want to draw a text onto a sphere in javafx. I try to keep it purely javafx. I'm using a PerspectiveCamera. One option would be to just draw 3D-text (if that exists) touching the sphere and being parallel to the viewer for good readability. The…
jackjuni
  • 69
  • 6
6
votes
1 answer

How to 3D print JavaFX 3D scene?

I have been working on this scientific application in JavaFX. The program basically generates data from an algorithm and visualizes them into spheres that intersect. I would like to 3D print part of this model(the colored shapes). Is there a way…
lazycody
  • 301
  • 1
  • 3
  • 8
6
votes
3 answers

How can I use JavaFX to play video on 3D shape?

I am new to JavaFX and Java. I am wondering how to make a scene on a surface of a cube or any polyhedra? I would like to play video back on the surface of any 3D shape. How could I go about doing this?
leonard
  • 795
  • 1
  • 9
  • 18
6
votes
1 answer

Restricting a 3D object mouse drag movement to a plane in JavaFX

I'm using JavaFX to move 3D cubes around by mouse drag. The cube should stay on the plane spanned by x and z axis. My solution works fairly well, however if I move the cube too fast with my mouse or when it encounters an object with a certain depth…
Terran
  • 1,091
  • 18
  • 29
5
votes
1 answer

JavaFX 3D Colouring faces ... again

I studied this question, but I still don't get it. The shortest possible code below shows a Pyramid totally grey, whereas I try to give the 6 triangles making up the pyramid different colors. So ... why don't these colors show up? Note that I…
M. Kemper
  • 75
  • 5
5
votes
1 answer

JavaFX 8 Z-buffer issue

My problem is with Z-Buffer in JavaFX 3D, it does not seem to work as intended on my machine. I'am aware of questions: Overlapping shapes and ...Z Order... However I do have Z-Buffer enabled, and nodes are still being rendered in the order they are…
el_chupacabra
  • 169
  • 1
  • 2
  • 9
1
2 3
13 14