1

Recently I've found that all of my scene objects are in left-handed coordinates, but Java 3D uses right-hand coordinates. There is a solution: flipping the scene Z-axis and reverting the triangles winding order. But this will be a horrible mess. It seems that if I can somehow flip the view horizontally it will do the job needed. How can I achieve this? Applying Transform3D somewhere, some kind of offscreen rendering or...?

VLAZ
  • 26,331
  • 9
  • 49
  • 67
WindRider
  • 11,958
  • 6
  • 50
  • 57

1 Answers1

0

You can try changing the view by rotating it on the Z axis by 180 degrees. This is assuming your using a SimpleUniverse.

Transform3D transform = new Transform3D();
transform.rotZ(Math.PI);
transform.setTranslation(vector);
univ.getViewingPlatform().getViewPlatformTransform().setTransform(transform);
TheLQ
  • 14,830
  • 14
  • 69
  • 107