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

How to render 3D graphics properly

I was trying to make a rubiks cube in javafx an ended up with a very bad model as given in this Image. I am giving my source for code for this, where I have used RectangleBuilder class to create rectangles and transformed in 3d. To fix the graphics…
2
votes
2 answers

How to create fog in JavaFX 3D?

I am developping a game, in JavaFX 3D, in which the player is running down a long road. There are items and obstacles coming his way. The point is: now the objects just appear out of nowhere if they enter my clipping distance. Therefore I want to…
2
votes
1 answer

javafx 3d performance large data set

I have a data set which compromises of the order of a million cuboids. I render it as a single node, using TriangleMesh. This seems OK, rotation is fast. But I also want to do slicing of it, so I implemented code to recalculate the faces and apply…
2
votes
1 answer

Why is the diffuse map not applied to my MeshView?

Problem I'd like to apply a diffuse map to a MeshView. When I apply a Material with the diffuse map to the MeshView, it's not visible. The same material applied to a Box however is visible. Question What do I have to do to apply a diffuse map to a…
Roland
  • 18,114
  • 12
  • 62
  • 93
2
votes
2 answers

How to fill a JavaFX Sphere with two Colors

How can I fill in JavaFX a 3D Sphere with a linear gradient like a 2d Circle? I work with the JavaFX Scene Builder.
FoldFence
  • 2,674
  • 4
  • 33
  • 57
2
votes
1 answer

Place MeshVIew in Scene

I want to display a 3D figures on a MeshView in JavaFX. Since I want to build a simple model viewer I created tabs for clarity. One of them contains a group (meshGroup) where I add a SubScene (with the MeshView in a group) on runtime. I'm not able…
No3x
  • 470
  • 1
  • 8
  • 28
2
votes
1 answer

How to "add" two Triangle Meshes together in javafx?

I am making a 3D model of the volume generated by two functions: one as the base (in intersection of the x-axis), and the other as the height of the volume.This is achieved by approximating the volume of small parts, drawing that mesh, then adding…
2
votes
1 answer

Export JavaFX model to STL file

I would like to generate some shapes in JavaFX and export it to STL format for 3D printing. Is there a library out there to help with the export?
user
  • 375
  • 1
  • 4
  • 15
2
votes
1 answer

javafx 3d export/import to/from fxml is incorrect or incomplete

I have created a simple model of a box and created a color interpolation image using a texture map. I exported the model to fxml using the code found at FXML export code I have a jpeg of the colored model I tried to export and the resulting…
bluemonkey
  • 41
  • 1
  • 5
2
votes
2 answers

MouseEntered/Exited not fired when hovering over adjacent nodes

I have two javafx.scene.shape.Box instances which are placed right adjacent to each other: I would like to be notified whenever the picked node changes, i.e. whenever the mouse is entering or exiting the red or blue node. Moving the mouse from…
Rahel Lüthy
  • 6,837
  • 3
  • 36
  • 51
2
votes
4 answers

Your active platform is: default_platform, but the corresponding property "platforms.default_platform.home" is not found

Im currently developing JavaFX applications. I used Netbeans 7.4 before but now I switch to Netbeans 8.0.2. After running my project with the new IDE, an error occured saying: C:\projects\client\QueueBoard\nbproject\build-impl.xml:87: The J2SE…
The Well
  • 876
  • 1
  • 9
  • 22
2
votes
0 answers

JavaFX Rolling cylinder on meshview with

What approach should I take to animate rolling of cylinder on custom meshview in JavaFx? Is there any sample (opensource) already available for this purpose? Some kinematics or physics package to support javafx ?
zhivko
  • 53
  • 1
  • 1
  • 5
2
votes
2 answers

How to create a Video Wall like in the JavaFX 2.0 demo?

How do you create a video wall like in the JavaFX 2.0 demo here: https://www.youtube.com/watch?v=UXSmJYFrulY#t=411 For a start it doesn't have to be videos, it can be images as well. All I'd like to have is to place the nodes like they are in the…
Roland
  • 18,114
  • 12
  • 62
  • 93
2
votes
1 answer

Pick a 3D Node in JavaFX from screen coordinates

Is there a way to pick a 3D node on the JFX scene with screen coordinates ? Knowing that I am not using the Mouse, but use a Custom Touch Handler (Not the JFX Touch events). What I've tried: Emulate a MouseEvent from the Touch Handler and fire the…
panton
  • 21
  • 3
2
votes
1 answer

JavaFX 2D shapes in 3D space

I know that if I rotate an object, which extends javafx.scene.shape.Shape, I can transform it into 3D space, even though it was primarily designed to be in 2D (at least as far as I know). Let's say I have a 3D scene (perspective camera and depth…
beatngu13
  • 7,201
  • 6
  • 37
  • 66