Hello i have error on alphaBlending with .bothSides=true;
full object become transparent
can be usfull for glass
alphaBlending bugSoftware: Away3D 4.x |
||
loth, Sr. Member
Posted: 25 August 2011 10:35 AM Total Posts: 236 |
||
Richard Olsson, Administrator
Posted: 25 August 2011 01:25 PM Total Posts: 1192 [ # 1 ] I’m not sure I understand the issue. Can you explain it a bit more thoroughly, and perhaps post a screenshot? |
||
theMightyAtom, Sr. Member
Posted: 25 August 2011 04:23 PM Total Posts: 669 [ # 2 ] Hi loth, for glass try a reflective material (see examples) https://github.com/away3d/away3d-examples-broomstick/blob/master/src/EnvMapDiffuseTest.as Then use a ColorMaterial as the base, with a low alpha value. bothSides doesn’t work at the moment, if your scene has lights. Good luck! |
||
theMightyAtom, Sr. Member
Posted: 26 August 2011 12:04 PM Total Posts: 669 [ # 3 ] here’s one I prepared earlier….
glass = new ColorMaterial(0x000000, 1); where envMap is a cube map. |