Skybox Opacity

Software: Away3D 4.x

lechatpotte, Newbie
Posted: 29 February 2012 10:22 AM   Total Posts: 4

Hi everyone,

I’m stucked on a problem which seems to be sooo simple…
How can you set an alpha value to a skybox (or his material) ?

In my project I have to switch between a “reality view” (1st skybox) and a “synthesis view” (2nd skybox) with a slider which updates the opacity of the 2nd skybox from 0 to 1.

But I don’t found where I can change the transparency of a such object !

Thanks…

   

riffraff, Newbie
Posted: 29 February 2012 02:45 PM   Total Posts: 9   [ # 1 ]

Hi,
After looking at SkyBox sources (i.e. SkyBoxPass::getFragmentCode()) I have reason to believe that:
1. SkyBox doesn’t support any kind of transparency.
2. There is only one instance of SkyBox possible at any time.

Greetings

   

Avatar
loth, Sr. Member
Posted: 01 March 2012 09:48 PM   Total Posts: 236   [ # 2 ]

hello you can use simple cube over skybox
change alpha of this cube
delete old skybox and create new one

   

rationsauce, Newbie
Posted: 29 July 2012 07:47 PM   Total Posts: 1   [ # 3 ]

Hey there,

I am also in need of this function. I’m currently doing a game where the character/player is inside of an aquarium inside of a room. The room uses the skyboxmaterial(not a problem) but so is the aquarium. The problem occurs when I want to set the skyboxmaterial for the aquarium at an opacity of half or etc. If there isn’t a function for this then I’ll have to resort to using planes/2Dtextures and set the opacity individually.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X