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

JavaFX 3D text rotation

I am a newcomer to javaFX-3D and I want to view simple 3D shapes with labels, such as node numbers etc. I've started from oracle's MoleculeSampleApp and I am trying to add text. Thus far I have arrived at this: Axes with text The text has been added…
TM00
  • 1,330
  • 1
  • 14
  • 26
0
votes
1 answer

Memory leaks when creating animations using JavaFX-3D

I built a JavaFX(8) 3D application, which reads data from some file and renders it on some scene. For rendering an object, I use: graphicsContainer.getChildren().add(some3dObject); When I comment out this line, for disabling the rendering, I have…
SomethingSomething
  • 11,491
  • 17
  • 68
  • 126
0
votes
2 answers

Equivalent for `gluLookAt()` in JavaFX-3D

I'm trying to implement an easy and intuitive way to control the camera direction, in an application I built using JavaFX 8 + 3D. In OpenGL, there is a simple function, named gluLookAt(), which enables to easily define from which point to look and…
SomethingSomething
  • 11,491
  • 17
  • 68
  • 126
0
votes
1 answer

Rotate object around center in Javafx

My application read obj file using interactive mesh library and save it it in meshview. What I want is to rotate the object around its center. Right now my code displays the object but when I rotate it, it is rotated around some point which cause…
0
votes
1 answer

JavaFX: Perspective camera on custom widget

I am trying to create a "custom widget" (extends HBox) which renders 3D graphics. The problem is that all the examples I see for setting the camera, show how to do it on the main "scene", which belongs to the main window. I don't want any relation…
SomethingSomething
  • 11,491
  • 17
  • 68
  • 126
0
votes
1 answer

How to get closed 3D mesh after difference operation using JavaFX, JCSG and FXyz?

I am using JCSG libraries to cut 3D object, but after difference operation resultant 3D mesh is not completely closed i.e. many edges of the cutting surface are open, they didn't belong to any triangle. I am using below source code to cut 3D…
PrashantP
  • 182
  • 1
  • 12
0
votes
1 answer

Can I place 3D geometry objects in a JavaFXCollection?

I have a few 3D geometrical objects like sphere, Tube, Cube etc. I am generating using usual way of using classes like Sphere, Cylinder,Box etc inside FXML based-menu in a FXMLcontroller. This means object box1 is local to @FXMLmakeCube sort of…
vegaonline
  • 43
  • 10
0
votes
1 answer

javafx 3d Meshview rotation

i want to rotate the shaft of the motor , but have not managed to get the desired behavior. the rotation i am getting is this one. this is the code i am using where shaft is the MeshView i want to rotate: Model3D motor = new…
user2288753
  • 35
  • 2
  • 5
0
votes
1 answer

Listen for transformation changes

Is there way to listen for transformation changes? I'd like to get notified when for example a cube has turned. Especially I'am interested in getLocalToSceneTransform. Here is my try: @Override public void start(Stage primaryStage) throws Exception…
Vertex
  • 2,682
  • 3
  • 29
  • 43
0
votes
1 answer

JavaFX: Rotated pane in the x-Axis or y-Axis doesn't render completly

Rotating a Pane around the z-axis (pointing outwards the screen) works just fine, however rotating it around the y-axis or x-axis in a 3D scene doesn't render it completly. For example: BoderPane b = new BorderPane(); b.getTransforms().add(new…
Terran
  • 1,091
  • 18
  • 29
0
votes
1 answer

Import STL file in JavaFX

My problem is that I am trying to import a 3D model from an STL file to a JavaFX application. I followed the code in this link How to create 3d shape from STL in JavaFX 8? and it's only working with the jewel file mentioned there, but I've tried…
0
votes
2 answers

Torus 3d in javaFX 2.x

I've Stage which is divided by Split Panel, and I wants on the right pane create a 3D torus. First: I don't know what can I create torus. Second: I don't know on what kind of obiect can I create this Torus. Pane enough? Please for help.
user1825271
  • 69
  • 1
  • 6
-1
votes
1 answer

JavaFX 3D perspective camera movement

So now, thanks to help from my earlier question, and the very helpful answer from the user "trashgod" (more appropriately pronounced "javafxgod", in my case), I have been able to make much progress on the actual model I was trying to build with…
-1
votes
1 answer

JavaFX 3D - Scene Camera Issues, SubScene Errors, and MeshViews not Visible

I will try to be as brief as possible while providing enough info so that someone might be able to help point me in the right direction. I am trying to add a 3D scene to the center or a borderpane that will contain a set of meshviews that I read…
user3064141
  • 407
  • 4
  • 17
-1
votes
1 answer

add label line javafx

I am looking to add a text of my scale and add arrows in the corner of my line in javafx. thank you.
1 2 3
13
14