Search code examples
javajava-3d

Java3d. How to increase range of sight?


If I create a simple application where I can fly over a plain I can only see a little of the plain. The engine only renders in a certain radius around the camera. Everything that's beyond appears in the background colour. So it feels like being in a fog where my range of sight is only a couple of meters.

How do I increase that range of sight?


Solution

  • javax.media.j3d.View.setFrontClipDistance(double distance)
    

    More data found here: http://download.java.net/media/java3d/javadoc/1.3.2/javax/media/j3d/View.html