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 correctly obtain screen coordinates of 3D shape after rotation

I need to be able to select a number of shapes in my 3d model by drawing a rectangular region, and all shapes that lie in that region are selected. I can draw the region and select the nodes for if there is only an x or y rotation. But most…
jambit
  • 313
  • 1
  • 8
2
votes
1 answer

Why does a 3d model render differently in a SubScene than in Scene

Rendered with flag set to true, camera set to the subscene, and then rotated: Xylophone rendered in SubScene: Xylophone rendered in Scene: Using Oracle's Xylophone 3D example, I have encountered a curious problem. (Xylophone.java) When it is…
J. Dean
  • 21
  • 3
2
votes
1 answer

Use 2D Text into 3D scenes in JavaFX results in blurry texts

I'm trying to display various Text objects inside a 3D scene The problem is that when i zoom close to the text it looks very blurry. Here's a screenshot from my app Question: how can i improve the graphic quality of the text on the screen? I've…
Henri Augusto
  • 309
  • 3
  • 14
2
votes
1 answer

javafx 3D Box, translation displayed is not what is expected

I'm currently working on a project and I should display 3D boxes on a Pane and I'm using javafx 3D for that. First I draw a big box, called container in my project and create a camera. Then with buttons added to the scene I draw other smaller boxes…
J.Peshev
  • 23
  • 3
2
votes
2 answers

JAVA FX 3D Light

Hi I'm trying to make the sun moon and earth. I came out and they are moving around each other in 3 planes. I have problems with light. When the moon comes to the ground, it does not darken and when the moon is between the sun and the earth, it does…
Yaroslav Malyk
  • 409
  • 5
  • 15
2
votes
2 answers

javafx 3d coloring each vertex in triangle mesh with specific color

Iam working on a triangle mesh for which i need to color each vertext with a specific color. I followed the example provided here Using texture for triangle mesh without having to read/write an image file which helped a lot, but i am stuck with…
Mohd Safi
  • 65
  • 5
2
votes
1 answer

Static 2D text over 3D scene in javafx java

My goal is to overlay 2D text over a 3d scene in javafx as seen in Using a subscene is not a valid choice as I want the 3d model to be able to take up the entire space on the screen. I tried adding a label to the scene and turning depth buffering…
Kilian
  • 1,540
  • 16
  • 28
2
votes
0 answers

How convert a java mesh object to MeshView

I develop a java application to generate a 3D object as a .obj file. I would like to visualize this object in a viewer3D of my application before exporting it but I only have a java object containing a list of faces and vertices of my 3D object.…
DevLoots
  • 747
  • 1
  • 6
  • 21
2
votes
1 answer

applying texture to mesh in javafx

I was having trouble applying a texture to a mesh using JavaFX and FXyz 0.1.1. I found this question and even with the detailed answer there could not figure it out. I started over from scratch, copying the code from the answer exactly and the…
sdp0et
  • 23
  • 3
2
votes
2 answers

javafx Shape3D with border

I'm making application with huge mass of 3D shapes and I need them fully transparent and with border. I tried find any way to apply border to Shape3D, specifically to Box and Sphere but I can't find anything. So my questions are: Is there any way…
J. Doe
  • 21
  • 4
2
votes
2 answers

3D Scatter Chart JavaFX: How to show legend and measures near axis

Looking this post, I've tried to implement in javaFX, with many difficulties, a Scatter Chart 3D where the grid is my x,y and z axis and the spheres are my points. How Can I put a legend, axis labels and the range numbers along the axis? I can use…
2
votes
1 answer

What is use of getNormals() method in TriangleMesh JavaFX

I am currently working of JavaFX 3D application and come across getNormals() method in TriangleMesh class. As in TriangleMesh class is used to create user defined Java FX 3D obejct and in that getPoints() is used to add PointsgetFaces() is used to…
PrashantP
  • 182
  • 1
  • 12
2
votes
2 answers

JavaFX TriangleMesh rendering incorrectly

I built an OBJ to JavaFX triangle mesh parser and imported the monkey head sample model from blender but it doesn't render correctly. It almost seems to have a wallhack like effect. This link has the obj I'm trying to import as well as a video…
Scoopta
  • 987
  • 1
  • 9
  • 22
2
votes
2 answers

How can I add 3D surface to the AnchorPane

How Can I add 3D surface to the view.fxml, there is not "thing" on the Scene Builder panel like surface. My scene builder hierarchy looks like : And ss of app - like we can see got something on the left top corner, the surface should be on the…
yerpy
  • 1,366
  • 3
  • 17
  • 44
2
votes
1 answer

Create Shape For TextField in JavaFX With Css

I need to create this shape for TextField using CSS But I only managed to create the following UI: How can I create text field like Sample Pic?
Kianoush
  • 43
  • 8