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

How to make the ends of Cylinder transparent in JavaFX

I'm currently trying to make the ends of a Cylinder completely transparent whilst keeping the sides a Material. I'm unsure how to achieve this. This thread mentions it but all the links are broken I think I need to use a clipping plane? Although I…
jameslfc19
  • 1,084
  • 1
  • 10
  • 14
3
votes
1 answer

Convert coordinates from 3D scene to 2D overlay

Similar to How to get 2D coordinates on window for 3D object in javafx but I couldn't get the solution to work. I want to draw a 2d border for a 3d shape or more like its projection. I wrote this example code for reference: import…
Mark
  • 2,167
  • 4
  • 32
  • 64
3
votes
1 answer

What is the most practical way to create coordinate grid with JavaFX 3D?

I would like to create a 3D demo application with JavaFX to visualize movements of points in 3D space and first I need to set up a coordinate grid for visual reference. Unfortunately, I was not able to find a sample code for a grid like in this…
3
votes
1 answer

Apply gradient to sphere object with JavaFX

I'm working in JavaFX for a class, and I'm trying to apply a gradient to a sphere, but (obviously), I can't figure out how to do it. I'm stuck because I know that a sphere is an object, and so it needs to have a material, but (as far as colors go),…
PaulBunion
  • 346
  • 2
  • 18
3
votes
1 answer

JavaFX Rotating Camera Around a Pivot

Last year I posted a similar question, but due to it not being very descriptive and overall a mess I decided to rewrite it completely. I am making a simple 3D editor in JavaFX that has a camera movement similar to Blender or pretty much any other…
Mysterious Wolf
  • 373
  • 1
  • 5
  • 22
3
votes
1 answer

Showing texts over the face of a Box based on the visible area on zooming in/out

I have a sample 3D application (built by taking reference from the Javafx sample 3DViewer) which has a table created by laying out Boxes and Panes: The table is centered wrt (0,0,0) coordinates and camera is at -z position initially. It has the…
Itachi
  • 43
  • 5
3
votes
1 answer

How to add text to each face of a box [JavaFX]

I create a box which I can rotate and what will do ~some action~ when clicked. The problem I'm having is display text on all the faces of this box, for example; 1 on the front, 2 on the top, 3 on the back, 4 on the bottom, 5 on the left and 6 on the…
User123456
  • 69
  • 8
3
votes
1 answer

Javafx: applying image to meshview not working

I am trying to apply the image to my meshview cube with phongmaterial but only the black cube with no colour is showing up on the screen. It used to work with the Box and a cube, but now its not working with them too. And also, Can anyone tell me…
Manik Shakya
  • 135
  • 1
  • 2
  • 6
3
votes
1 answer

JavaFx PerspectiveCamera - fixedEyeAtCameraZero flag - when true, all objects disappear

I want to simulate perspective distortion of boxes and rectangles. My goal is to warp the box and image, as if the camera is being tilted and moved. But I don't really follow how to use the PerspectiveCamera. When I set the fixedEyeAtCameraZero to…
3
votes
3 answers

TriangleMesh - Backside faces are visible

Good Day! I have the following issue. The graphic model is not displayed correctly: some backside faces of the model that should be hidden by the frontside remain visible. Here are some exmples to clarify: (isometry) (issue) This issue comes out…
Peter Slusar
  • 133
  • 6
3
votes
1 answer

How to overlay GUI over 3D scene in JavaFX?

I have a 3D scene in JavaFX and need to overlay GUI over the 3D scene. I have tried adding buttons and text to the scene but they always appear in the 3d view as 3D objects. I have looked around and haven't found how to do it. The only workaround…
lazycody
  • 301
  • 1
  • 3
  • 8
3
votes
1 answer

3D surface JavaFX

I am trying to implement my own 3D surface animation in JavaFX but i do not understand everything like it should works, could someone help me with understanding which should go where ? Already know that to build Mesh by using class need class…
yerpy
  • 1,366
  • 3
  • 17
  • 44
3
votes
1 answer

How to make depth buffer work for sub scene in JavaFX

I've created sub scene to display 3D objects and I've got some issue with depth buffer presented below. Spheres are same size of course. In fxml file I've got and subScene.isDepthBuffer() returns…
kcpr
  • 1,055
  • 1
  • 12
  • 28
3
votes
1 answer

Position of PerspectiveCamera in JavaFX 8

Here is the code: import javafx.animation.Animation; import javafx.animation.RotateTransition; import javafx.application.Application; import javafx.scene.Group; import javafx.scene.PerspectiveCamera; import javafx.scene.PointLight; import…
qed
  • 22,298
  • 21
  • 125
  • 196
3
votes
3 answers

Drawing 3d surfaces in JavaFX

How to draw 3d graphs in JavaFX using a mathematical equation, basically 2 variable functions, for example: z=2xy and other 3D figures? Is there any way to do it in JavaFX or do I need another Java library for that.
user3478710
  • 47
  • 1
  • 3