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

JavaFX animation/View 3d with panes

I've been working in JavaFX for the first time to try to make an app which I can use to demonstrate a simple animation with button controls. To do this I've used a BoarderPane for the primary stage, with both the left,right, and bottom using…
Zed-Log
  • 13
  • 5
1
vote
0 answers

Why are these JavaFX TriangleMesh rendering with dark shadow artifacts?

Solved The solution related to smoothing groups. Within the loadFixedSphereMeshView() method, I added: ... after points array int faceSmoothingGroups[] = { 0, 0, 0, 0, 0, 0, 0, 0 }; ... before faces array and then added: ... after setting the…
redboffin
  • 11
  • 3
1
vote
0 answers

Issue with point lights when on mobile

it seems to me that PointLight do not light the scene properly when running an app on Android. Event though this was coded using Gluon Mobile, it seems to me that this is a javafxport or JavaFX 3D issue. Here's a demo View that demonstrate the…
1
vote
0 answers

Javafx rotating a group with PersepectiveCamera as child rotates camera about its own axes, and not the group node's

Here is my code for my Group which has 3d rotates on it: import javafx.scene.Group; import javafx.scene.transform.Rotate; public class Camera3D extends Group { ControllableCamera camera; Rotate rx = new Rotate(0, Rotate.X_AXIS); Rotate…
1
vote
0 answers

JavaFX get Euler angle from Transform

I'm trying to make some sort of 3D editor, and I'm trying to make an "orbit" tool, much like the one in Blender. Now I'd like to know what the angle is. I used the code provided by José Pereda that can be found here, but I need the angles to be in…
Mysterious Wolf
  • 373
  • 1
  • 5
  • 22
1
vote
1 answer

Absolute scaling of SubScene in JavaFx 3D

I'm looking to model actual distances say measured in centimeters. So the following SubScene containing a simple rectangle has width & height associated with my model distance in cm. The code renders correctly for certain and rectangle size (100…
J.E.Tkaczyk
  • 557
  • 1
  • 8
  • 19
1
vote
0 answers

Javafx - change shape RotateTransition start point

I am trying to rotate multiple spheres around one object in the center and the challenge I am facing now is how to put different start points (maybe angle?) for the shapes so that they all don't start right from the same spot all at once. This is my…
J. Doe
  • 103
  • 1
  • 6
1
vote
0 answers

FXyz3D: How to get started

I have downloaded the FXyz3D package, and got that colourful spiral in no time by copying the code from the GitHub page, but ... what else can I do with this package, which looks interesting? There seems to be no manual... Using FXyz3D, could I…
M. Kemper
  • 75
  • 5
1
vote
1 answer

Javafx imported 3d model incorrectly displayed

I am playing around with the 3d model importers from interactivemesh.org in Javafx. The import of the models in a scene works without error. However, the models are being displayed in a weird way. Some of the faces that are behind other faces are…
1
vote
1 answer

InvocationTargetException caused by NullPointer in basic javafx application

I'm trying to follow this javafx 3d tutorial, however I get the following error (I cleared up several earlier errors by installing 32bit gtk2 packages and libraries), however this issue doesn't seem to be down to that. I have found nothing online…
ollie299792458
  • 222
  • 3
  • 16
1
vote
1 answer

Box 3D JavaFX Rotate

I have two Boxes (Group), and when I rotate, the image displays like this: Display Boxes Rotate Boxes When rotating, the Box (JANELA_MEIO_BOX) is distorted: public class Demo1 extends Application { private PhongMaterial texturedMaterial = new…
1
vote
1 answer

Texturing an Imported Triangle Mesh Javafx

I created a design in blender exported to STL and used the StlModelImporterJFX to import it into my JavaFX program and run it. Everything runs fine, the application works, there is just one thing missing...texture, so basically, I want to take my…
1
vote
1 answer

simple javafx3d white lines when rotate

I am pretty new to javafx 3d and i am wondering why when i rotate this simple 3d car i get to see those white lines between the transitions. please just run my code,it simple ,and tell me what you think my problem is? thanks a lot! public class…
demianr
  • 39
  • 8
1
vote
0 answers

Creating a 3d dice cube in javafx and doing its 3D dice animation

I've implemented a dice cube for a game I am developing with some partners and I am trying to create an animation for the cube. Up until now the only thing I am able to achieve is to Rotate the cube 360 degrees for a duration of 3000 mils I set in…
Tom
  • 343
  • 3
  • 12
1
vote
2 answers

How to make 3D shapes appear correctly with a camera?

I'm trying to get a few shapes to "play nicely" with each other. I have 2 boxes next to each other and a cylinder "on top" of one of the boxes. I put them in a SubScene with a camera that can zoom in and out with a scrolling operation and pan by…
Mark
  • 2,167
  • 4
  • 32
  • 64