The faces, which far from the camera, disappear when added a sky box to the scene. see the attachments.
And how to control the distance objects display.
Thanks in advanced.
How to control the faces, which far from the camera, do not disappearSoftware: Away3D 4.x |
||
scutterry, Newbie
Posted: 17 August 2012 06:20 AM Total Posts: 17 The faces, which far from the camera, disappear when added a sky box to the scene. see the attachments. And how to control the distance objects display. Thanks in advanced.
|
||
Richard Olsson, Administrator
Posted: 17 August 2012 08:24 AM Total Posts: 1192 [ # 1 ] Change the far setting on your camera’s lens to a larger number. Note that bigger frustums can have negative effects though, so don’t make it too big. You might want to use fogging to gradually fade your objects out instead. The far setting can be reached through myView.camera.lens.far. |
||
|
||
Richard Olsson, Administrator
Posted: 18 August 2012 09:40 AM Total Posts: 1192 [ # 3 ] No, the fog effect has nothing to do with particles. The fog effect is made by first calculating the distance from the camera of every vertex in the fogged meshes in the vertex shader. The fragment shader then interpolates this value for each on-screen pixel of the object, and colors the pixel depending on the distance from the camera. All of this happens on the GPU. |
||
|