Hi
How would you guys do to make a transluscent Cube in Away3d ?
I’ve tried some simple things, but stuff like myCube.alpha=.2 or myCube.blendMode=“whatever” doesn’t seem to work ?
Also, another noob question : how do you delete a particular face of a Cube (to make, say, a box) ?
Thanks!
make a transluscent Cube - delete a face of a CubeSoftware: Away3D 3.x |
||
achim, Newbie
Posted: 18 June 2011 02:16 PM Total Posts: 20 |
||
theMightyAtom, Sr. Member
Posted: 18 June 2011 02:45 PM Total Posts: 669 [ # 1 ] Try material.alpha = 0.2; Rather then delete a face, you could construct your box using five planes. |
||
|
||
theMightyAtom, Sr. Member
Posted: 18 June 2011 04:54 PM Total Posts: 669 [ # 3 ] Well, if you use the 5 planes idea, yes! |
||
achim, Newbie
Posted: 18 June 2011 05:03 PM Total Posts: 20 [ # 4 ] Thanks. |
||
theMightyAtom, Sr. Member
Posted: 18 June 2011 05:12 PM Total Posts: 669 [ # 5 ] If I were you I would make a copy of the Cube.as, and call it MyCube.as (remembering to rename the class and constructor), then you can edit that to function just how you like, and you will get an insight into how to build your own primitives in Away3D. |
||
|
||
|
||
|
||
az, Newbie
Posted: 25 November 2011 03:57 AM Total Posts: 1 [ # 9 ] i have been mapping a transparent png file to the face of a cube to get this effect. this works dynamically, but it’s probably not the best solution processor-wise - very simple code-wise |