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

Union, intersection and difference between JavaFX 3D objects

Is there any way to perform Boolean operations like union, intersections and difference between JavaFX 3D objects, let's say for example between a Sphere instance, a Cylinder instance, and a Box instance. JavaFX 2D objects which inherit from Shape…
Jean-Baptiste-B
  • 325
  • 1
  • 3
  • 9
5
votes
1 answer

JavafX 8 3D Z Order. Overlapping shape behaviour is wrong.

I have a JavaFX 3D scene with a bunch of boxes and spheres added at random locations. It seems like the depth order is all wrong and I'm not sure why. I have tried to use myNode.setDepthTest(DepthTest.ENABLE) but that doesn't seem to help. I've…
Jamie Macaulay
  • 794
  • 6
  • 20
5
votes
2 answers

JavaFX 8 - How to set NearClip and FarClip on a Parallel Camera?

I am part of a team building an application that manipulates a visual model using JavaFX 8 3D. We use both a Perspective Camera and a Parallel Camera. The Perspective Camera is working as expected. It is currently working with isEyeAtCameraZero…
4
votes
1 answer

How to change between wireframe and solid in javafx

3d software allow user to change draw mode dinamically. It can be implemented on javafx ?
Giovanni Contreras
  • 2,345
  • 1
  • 13
  • 22
4
votes
1 answer

JavaFX 3d Sphere - texture mapping saving proportions?

I am trying to have a JavaFX 3D Sphere, textured with a texture of the earth. The texture is this one (from Wikipedia, an equirectangular projection): The sphere is rendered as follows: You can clearly see that, at the poles, the texture is not…
Dario
  • 86
  • 4
4
votes
1 answer

How to animate texture coordinates in javafx

Is there some kind of animation for liquid surfaces that mimics waves by animating uvcoordinates like in the picture below? Can this method be recreated in the JavaFX framework?
Giovanni Contreras
  • 2,345
  • 1
  • 13
  • 22
4
votes
1 answer

Shapekeys from blender to javafx

Animating shapekeys is a way to animate a mesh without an armature modifier (shapekeys). like this is there a way to export this animation in javafx?
Giovanni Contreras
  • 2,345
  • 1
  • 13
  • 22
4
votes
1 answer

Painting difuse texture in javafx?

Is there a way to paint a 3d texture on a 3d surface like blender ?
Giovanni Contreras
  • 2,345
  • 1
  • 13
  • 22
4
votes
1 answer

Most simple rotate camera via mouse not working

Okay, this is driving me crazy. The documentation is pretty weak, the example application from Oracle is very weird, with a huge convoluted helper class, and even the questions about it on here have no answers! I've largely followed and simplified…
4
votes
1 answer

javafx 3d sphere partial texture

I am trying to draw a texture on a sphere with JavaFX (16). I add the material with the texture but the texture is stretched to the whole surface. It is possible to set the texture on only a portion of the surface? Like the image below (not mine,…
Alberto
  • 1,569
  • 1
  • 22
  • 41
4
votes
1 answer

JavaFX SubScene setFill

I'm trying to set the background of a SubScene as an image, but when I do, this happens: This is the code: public void start(Stage stage) throws Exception { PerspectiveCamera camera = new PerspectiveCamera(true); Group model = new Group(new…
4
votes
2 answers

Moving in 3D Space using mouse along with keyboard [JavaFX3D]

Introduction: First of all, i should say that i am quite a newbie when it comes to 3D Graphics in programming, generally.. so i would need some more explenation on how things work if possible [...] Problem: My Problem is, that i don't know How using…
Giorgos Xou
  • 1,461
  • 1
  • 13
  • 32
4
votes
1 answer

How to get 2D coordinates on window for 3D object in javafx

In javafx if we have 2D HUD (made of Pane and then out of it we create SubScene object for 2D Hud) and 3D SubScene and inside 3D scene we have some object with coordinates (x,y,z) - how can we get 2D coordinates in our HUD of the object if it is in…
4
votes
0 answers

Box Scaling in JavaFX 3D improperly reflects light

My goal is to reproduce a gif in JavaFX. Everything is great, except for when changing so many box heights at once, it slows the machine down. I have decided to remedy this by scaling by the y axis instead of altering the height so they can be…
4
votes
1 answer

javafx shape3d texturing: Don't strectch the image

I'm working now with javafx to build a maze and I want the walls to be textured with some seamless texture (that can be repeated). The maze is randomly generated so I don't know the size of any walls. I started by using a PhongMaterial with the…
nobrakal
  • 43
  • 6
1
2
3
13 14