Questions tagged [fxyz3d]

FXyz3D is an open source JavaFX 3D Visualization and Component Library

FXyz3D is an open source JavaFX 3D Visualization and Component Library.

Main features:

  • Extension of 3D JavaFX shapes
  • Textured 3D shapes
  • Components

Repository: https://github.com/FXyz/FXyz

Issues: https://github.com/FXyz/FXyz/issues

Use via Maven:

<dependency>
  <groupId>org.fxyz3d</groupId>
  <artifactId>fxyz3d</artifactId>
  <version>0.3.0</version>
  <type>pom</type>
</dependency>

Use via Gradle:

dependencies {
    compile 'org.fxyz3d:fxyz3d:0.3.0'
}
10 questions
5
votes
2 answers

FileSystemNotFoundException while running JAR (Fxyz3d library)

I built a quite fat JavaFX application (the JAR is about 128 MB) and I got no problem in running in through IntelliJ. But when I run it from the terminal my 3D model loaders (Fxyz3d library) launch this exception. Exception in thread "JavaFX…
anonymflaco
  • 158
  • 1
  • 10
4
votes
1 answer

How to get 2D scene coordinates of a 3D object in JavaFX

I'm trying the create a 3D subscene with objects being labelled using Label objects in a 2D overlay. I've seen similar questions to mine on this subject, and they all point to using the Node.localToScene method on the node to be labelled in the 3D…
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…
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…
2
votes
0 answers

Gouraud Shading in JavaFX

Each face has 3 colors (one for each vertex). I want to use Gouraud shading to blend these colors. So far, I have taken some inspiration from the FXyz library. My current approach uses the setTextureModeVertices3D from the FXyz library. But this…
2
votes
1 answer

Problem with adding multiple triangle meshes to a scene in javafx

I hope someone can help me with this problem. I am using javafx and triangle mesh to construct a sphere-like object out of triangles (like a football). The different tiles of the shape are distinguished by color but I want to add lines between the…
Erdbeer0815
  • 155
  • 8
1
vote
0 answers

How do I set fxyz3d shape materials so they work?

How do I specify a material for an fxyz3d shape? When I add to a JavaFX Group of 3D objects the fxyz3d node Cone cone = new Cone(coneFacets, coneRadius, coneHeight); cone.setMaterial(Materials.redMaterial()); it turns every shape in that…
SteveVZZZ
  • 71
  • 4
1
vote
0 answers

Implementing a 3D transform gizmo using JavaFX

My goal is to create a simple translation and rotation gizmo in JavaFX. There are plenty of examples of how this can be implemented in C++ (e.g. https://nelari.us/post/gizmos/). But I am having trouble translating this code into JavaFX. Mainly…
1
vote
0 answers

Convert Trianglemesh to FXyz PolygonMesh Javafx

I'm using the FXyz library to import models (obj format) into my program as Trianglemeshes. I would like to convert these Trianglemesh objects into PolygonMeshes so that they may be used as SkinningMeshes. Is there a specific workflow for this…
0
votes
0 answers

FXyz set color of faces according to their height

I have a n x n terrain height array which has values from -0.5 to 1, where 0 is sea level. I have generated this array using simplex noise and want to display it using FXyz in Java. With the following code I can correctly display the array, but I…
gozzomain
  • 105
  • 1
  • 6