Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

TriangleMesh rendering problem

849958Aug 7 2014 — edited Oct 16 2014

Hi everyone,

I'm new to JavaFX and I'm exploring its 3D capabilities, and in particular the TriangleMesh visualisation.

I have developed a very basic application, based on the Molecule Sample Application provided in the examples, that read a mesh file generated by an external tool (Gmsh) and displays it. Pretty basic.

My problem is that the rendering is not what I expected (see attachement)

Capture d’écran 2014-08-07 à 15.13.05.png

My guess is that I got something wrong with the texture coordinates or the triangles orientation.

- I don't what to have textures attached to my meshes. These are 3D meshes used for scientific simulation purposes. I thus have set all texCoords to 0.

- I don't control the orientation of my triangles, they are generated by Gmsh. Their orientation is also not interesting for my end users so I would like to display all triangles the same way. I used the meshView.setCullFace(CullFace.NONE); method.

Can anyone help?

Thanks in advance,

Ben

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 12 2014
Added on Aug 7 2014
10 comments
3,550 views