Sorry that I don't have a better advise than the FlyingGuns code, but maybe let me guide your focus to the following places in FlyingGuns:
This is the definition of the
SkyBox geometry which is added to the scenegraph like that
(from
TerrainGroup):
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| private void addSkyBox() { SkyBox box = new SkyBox( mBaseURL ); Background bg = new Background( ); bg.setApplicationBounds( Universe.GLOBAL_BOUNDS ); bg.setGeometry( box ); bg.setCollidable( false ); bg.setPickable( false ); this.addChild( bg ); } |
It's really not difficult. Just the backgrounds geometry has to fit into a unit sphere! Thats important.