away3d/away3d-core-fp11 — Issue #233: skybox flickers/disappears at certain camera angles.
Author: rafalkamraj
Created: 2012-03-02 09:55:22+00:00
State: open

Away4 Beta,
SkyBox disappears or flickers at certain camera angles, e.g.:
x = 0, y = 45, z = 0,
x = 0, y = -45, z = 0,
and so on.

camera's lens.far = 2000, lens.near = 10,

Probably skybox is too big and falls out of frustum.

PS. in opengl the correct recipe for skybox is to:
1. draw it independently in camera space with custom frustum (only znear is important to keep aspect and fov of original scene camera)
2. and with certain size to avoid clipping with near and far planes,
3. and with zRange set to (1,1) to generate zets as far as possible(if avoiding overdraw is so important that we must render skybox as last opaque object in scene).

hope this helps.