JAVA3D. How to increase the visibility range?

If I create a simple application in which I can fly over the plain, I can only see a little. The engine only works in a certain radius around the camera. Everything that goes beyond the background. So it looks like he's in a fog, where my range is only a couple of meters.

How to increase the visibility range?

+3
source share
3 answers
javax.media.j3d.View.setFrontClipDistance(double distance)

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

+2
source

Sorry if this seems a bit late, but I want to clarify for a future reference the best answer is not entirely correct.

setFrontClipDistance , - , , 0,01 (), , - , 10 , , , .

, , setBackClipDistance, 10 (). 1000, 1000 .

, simpleUnivers, - instanced.

//Create a Simple Universe object using a 3d canvas object you have
SimpleUniverse simpleU = new SimpleUniverse(Your3dCanvasHere);

//add in your compiled branch group
simpleU.addBranchGraph(YourBranchGroupHere);

//Increase the render distance with setBackClipDistance
simpleU.getViewer().getView().setBackClipDistance(1000);
+1

- , Java-3D. OpenGL. OpenGL :

gluPerspective(fieldOfViewY, aspect, near, far);

The far parameter is what you are looking for. OpenGL is more efficient than a processor-based drawing engine because it uses a GPU.

0
source

All Articles