Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to rotate gradient along with sides of 3D cube in Flash - actionscript 3.0
    primarykey
    data
    text
    <p>Hello I got goal to achieve, 3d cube manipulated with mouse with gradient filling on each wall.</p> <p>I found some source codes coresponding to gradients and 3d rotating cube but here is the problem:</p> <p>When i put these two things together the effect looks like the cube was a wireframe with transparency to some gradient background hidden behind the first plane solid black background. Gradient always stays still.</p> <p>Method which rotates/displays cube got at input three parameters rotx .roty, rotz i'd like to make use of it and apply it to gradients displayed on each side. gradient got own matrix but i don't have a clue how and when manipulate this gradient to get desired effect - i mean transform/rotate gradient in way ro look like it is painted on side of cube and tranform along to it 3d position. I guess that each side should have separate gradient matrix dor each side but what to do to transform this matrix to fit along with rotx,roty, i rotz. Can anyone help me?</p> <p>here is source for gradient <a href="http://snipplr.com/view.php?codeview&amp;id=7050" rel="nofollow noreferrer">http://snipplr.com/view.php?codeview&amp;id=7050</a></p> <p>and site where you can get cube fla file <a href="http://www.flashandmath.com/flashcs4/cs4simple3d/index.html" rel="nofollow noreferrer">http://www.flashandmath.com/flashcs4/cs4simple3d/index.html</a></p> <p>and here is code of .fla file from link above with my modifications</p> <p><a href="http://pastebin.com/fdc431a4" rel="nofollow noreferrer">http://pastebin.com/fdc431a4</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload