Determining when SkyBox is loaded

Software: Away3D 4.x

Donny, Jr. Member
Posted: 04 April 2012 01:45 AM   Total Posts: 34

Hi all,

I’m loading a SkyBox on iOS with large textures. Is there any way to notify when the SkyBox becomes visible as there’s a decent delay while the textures upload to gpu.

   

Avatar
kurono, Sr. Member
Posted: 04 April 2012 02:22 AM   Total Posts: 103   [ # 1 ]

Assume, your skybox stored as “skyBox”. Then in your onEnterFrame loop listen for skyBox initialization. After adding to scene, stop listening

if (skyBox{
view
.scene.addChild(skyBox);

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X