Disappearing SkyBox

Software: Away3D 4.x

yogishpuri, Newbie
Posted: 10 September 2013 08:37 AM   Total Posts: 4

Hi,

I made some modifications in example Basic_Shading.as from away3d-examples-fp11-4.1.4-gold.
I added SkyBox to scene and shadowMethod to planeMaterial.

Here, without shadowMethod everything is working properly:
http://away_test.reflexuniversity.eu/ok/

And here:
http://away_test.reflexuniversity.eu/bug/
I added this line of code: ( line 214 )
planeMaterial.shadowMethod = new SoftShadowMapMethod(light2);
Now, when i am dragging from top to bottom, skybox disappear and then appear again.

So my question is, am i doing something wrong?

Modified example is in attachment.

 

File Attachments
Basic_Shading.as  (File Size: 11KB - Downloads: 688)
   

John Brookes, Moderator
Posted: 10 September 2013 10:51 AM   Total Posts: 732   [ # 1 ]

Looks like a bug.
For some reason the update of the cameraController has issues when a light is a shadow light.

Your example works when you set
eg
cameraController.yFactor = 1;

or if you turn off autoUpdate on the HoverController
eg
cameraController.autoUpdate = false;
//enterFrame
cameraController.update();

SUbmit a bug on Github
https://github.com/away3d/away3d-core-fp11/issues?state=open

   

yogishpuri, Newbie
Posted: 10 September 2013 04:31 PM   Total Posts: 4   [ # 2 ]

Thanks for your fast answer smile

Your solution works fine.

I posted this issue on Gitbub…

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X