Translate Java 3D coordinates to 2D screen coordinates
I'm working with a Java 3D application called "Walrus" that is used to display directed graphs. The code already has a feature to highlight a node and draw label adjacent in graph given its screen coordinates.
Upon rotating the screen, the node is no more highlighted.
What I have is the node coordinates in 3D. I need to draw label to it.
Code for highlight using 3D coordinates
Point3d p = new Point3d();
PointArray array = new PointArray(1, PointArray.COORDINATES);
1. How can I draw Label with 3D coordinates( Raster graphics throws error Renderer: Error creating immediate mode Canvas3D graphics context )
2. How can I convert 3D coordinates to 2D screen and use existing code to draw label at 2D screen point