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
1
vote
0 answers

setOnMouseClicked doesnt work after enabling depth buffer on subscene

For a project I need a click listener on a 3D Object. After enabling the depth buffer in my subscene the listener doesn't work anymore. boolean enableDepthBuffer = Platform.isSupported(ConditionalFeature.SCENE3D); subScene = new SubScene(graphPane,…
Buttahbrot
  • 11
  • 1
  • 1
1
vote
1 answer

JavaFX 3D: Transforming Cylinder to defined start and end points

Suppose that I want a Cylinder to start in some 3D point and to end in some other 3D point. As far as I know, the way to do that, is to compute the Euclidian distance between the 2 points and to create a Cylinder with the same length. Then, the…
SomethingSomething
  • 11,491
  • 17
  • 68
  • 126
1
vote
1 answer

SurfacePlotMesh (FXyz) constructor arguments

I would like to know if I am correct with understanding the constructor argument as a Function function. My function which I have used for 1D charts based on the applying the variables after every step on the x axis, but there is…
yerpy
  • 1,366
  • 3
  • 17
  • 44
1
vote
1 answer

"X3D" : isn't display any thing when use the ElevationGrid

I use this example but the problem isn't display any thing when use the ElevationGrid but when use others example for example all shapes its work normal can anybody have any information's or suggestions to me because i must draw the terrain "earth"?…
zaid
  • 11
  • 3
1
vote
2 answers

JavaFX Depth Testing in 3d Scene leading to Z-fighting

I've created an app that takes DTED positional data and creates a basic contour mesh. With depth testing enabled this works fine and I don't have issues simply rendering the terrain. The problem I've run into is that when I place objects on the…
Sparkfizt
  • 113
  • 1
  • 8
1
vote
0 answers

Javafx get font style for a given font

I want to get font style(bold, italics...) for the given fonts. Currently i am getting the font list in a combobox using javafx.scene.text.Font.getFamilies() and now I want to get font style for each font, like that in notepad. can any one guide me…
1
vote
1 answer

Positioning of 3d boxes in JavaFx

I'm a beginner in JavaFx 3d modelling. I'm trying to create a 3d-model of boxes in a room. I have the dimensions of the boxes and the coords from the front-left-bottom corner of every box. I've tried to set the coords with setTranslateX(), but the…
holzfeli
  • 35
  • 7
1
vote
1 answer

Convert JavaFX Node, Group or Shape3D to Mesh

Is there any possible way to convert JavaFX Node, Group, or Shape3D to Mesh? I need this to export my scene to '.obj' and the only exporter I found (in FXyz library) requires Mesh.
kcpr
  • 1,055
  • 1
  • 12
  • 28
1
vote
0 answers

Questions for TriangulateMesh of F(X)yz library

I 'm using the TriangulateMesh class to create a figure with its coordinates. There are some property to mark the lines that form the shape with greater thickness. When used DrawMode in LINE mode is possible to hide the hypotenuse. Thanks to all
1
vote
0 answers

how to control Javafx scalafx FXyz 3D shapes

I have the following test code where I have a ClothMesh (from FXyz lib) that I can drag, rotate and drag my circle handles. All works well, FXyz is great. Now I want to use SegmentedSphereMesh, it mostly work except that my circle handles are 2D…
workingdog
  • 43
  • 4
1
vote
0 answers

How to fix shading on arbitrary JavaFX TriangleMeshes?

So I love JavaFX for its 2d functionality, and was excited to try the 2d features. Unfortunately, in trying to load arbitrary triangle meshes, I keep getting results like this: Is this just the reality of the JavaFX shading algorithm? Or is my…
Andy
  • 93
  • 1
  • 4
1
vote
1 answer

How to make a hole in a mesh using JavaFX JCSG and FXyz

I'm trying to understand the JCSG library by using the following test code, where I take the difference between a FXyz mesh/cloth and a sphere to create a hole in the mesh so as to display the underlying mesh image. Is it possible to do this, if…
workingdog
  • 43
  • 4
1
vote
1 answer

clipping of MeshView scalafx/javafx

I have the following test code, where I try to clip a MeshView with a circle. I also tried putting the meshView into a group then clipping that, but this result in a black circle. Is there a way to clip a MeshView, preferably without putting it…
workingdog
  • 43
  • 4
1
vote
1 answer

JavaFX 3D rotations

My problems are: the below code is based on the "MolecularSampleApp" from the oracle tutorial site, but very much simplified. It only shows a box and a red sphere for orientation purpose. The sequence of rotations is around x-axis then y-axis and…
bronkowitz
  • 131
  • 1
  • 5
1
vote
1 answer

JavaFX 3D TriangleMesh with transparency

I have a texture I want to use for a TriangleMesh (it's a simple cube). Some parts of the texture are transparent. When I put the texture on the mesh, it's black. Is there a possibility to change that? I would like to make it transparent. Appreciate…
leyren
  • 524
  • 6
  • 20