javafx-3d

3D surface JavaFX

时光毁灭记忆、已成空白 提交于 2021-02-19 05:32:25
问题 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 object TraingleMesh and then have to add points by using method mesh.getPoints.addAll(...); but.. my Function<Double, Double> after using apply method does not help me at all, cuz the first argument has to be array float type, not double variable after

3D surface JavaFX

て烟熏妆下的殇ゞ 提交于 2021-02-19 05:32:14
问题 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 object TraingleMesh and then have to add points by using method mesh.getPoints.addAll(...); but.. my Function<Double, Double> after using apply method does not help me at all, cuz the first argument has to be array float type, not double variable after

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

六月ゝ 毕业季﹏ 提交于 2021-02-10 22:51:50
问题 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 false. This was done for maximum compatibility with the Parallel Camera. The Perspective Camera behaves correctly when camera.setNearClip() and camera.setFarClip() are called. The Parallel Camera does not appear to respond to camera.setNearClip() and

Use 2D Text into 3D scenes in JavaFX results in blurry texts

浪尽此生 提交于 2021-02-08 06:34:50
问题 I'm trying to display various Text objects inside a 3D scene The problem is that when i zoom close to the text it looks very blurry. Here's a screenshot from my app Question: how can i improve the graphic quality of the text on the screen? I've tried setting cache as in JavaFX 2D text with background in 3D scene because it seemed to improve graphics quality on the answer screenshots but it did not help me in my case. Below is a compileable example stripped down form my app. It just create

JavaFX 3D Colouring faces … again

混江龙づ霸主 提交于 2020-05-13 04:55:14
问题 I studied this question, but I still don't get it. The shortest possible code below shows a Pyramid totally grey, whereas I try to give the 6 triangles making up the pyramid different colors. So ... why don't these colors show up? Note that I borrowed the getTexCoords().addAll(..) statement from that question, but clearly I still am doing something wrong. Is it the uv mapping ? What is that anyway? I have seen a topological explanation ( sphere <-> map ), but what has that got to do with

JavaFX 3D Colouring faces … again

笑着哭i 提交于 2020-05-13 04:50:58
问题 I studied this question, but I still don't get it. The shortest possible code below shows a Pyramid totally grey, whereas I try to give the 6 triangles making up the pyramid different colors. So ... why don't these colors show up? Note that I borrowed the getTexCoords().addAll(..) statement from that question, but clearly I still am doing something wrong. Is it the uv mapping ? What is that anyway? I have seen a topological explanation ( sphere <-> map ), but what has that got to do with

How to create a Video Wall like in the JavaFX 2.0 demo?

谁说我不能喝 提交于 2020-02-20 06:01:11
问题 How do you create a video wall like in the JavaFX 2.0 demo here: https://www.youtube.com/watch?v=UXSmJYFrulY#t=411 For a start it doesn't have to be videos, it can be images as well. All I'd like to have is to place the nodes like they are in the video, i. e. in a curved shape like the insides of a cylinder or a sphere. Or is the source of that demo available somewhere? Thank you very much. 回答1: I researched and found a very awesome site with the relevant information: http://paulbourke.net

How to render 3D text in JavaFX?

最后都变了- 提交于 2020-01-23 07:36:11
问题 I'm making my first JavaFX project and I need to render some 3D text. I already put a PerspectiveCamera and I display a text node but it has a Z-dimension of 0 and I don't know how to change this. Thanks in advance! 回答1: Have a look at the FXyz project. It already contains a Text3DMesh class that will allow you generating a 3D mesh for any string and font you need. Under the hood there is a complex process of converting (2D) Text to Path, Delaunay triangulation and mesh extrusion. As a result