Hi savagelook,

i saw this example before...and it is easy to understand. But i wasn´t
able to copy paste for tryout.
I thought, that the rendering problems may already been fixed.

So the reason why i can´t see anything is not a wrong setup, i guess?
Was it working once or is the ReflectivePlane new to away3d ?

Here is what i call a "most simple example". You can copy+paste it
into frame 1 of the flash IDE:

// --- comments: if you replace this line "var primitive2 = new
ReflectivePlane(view);" by a casual plane "var primitive2 = new
Plane();" then you will see the setup.

import away3d.materials.WireColorMaterial;
import away3d.containers.View3D;
import away3d.primitives.*;

var view:View3D = new View3D({x:stage.stageWidth/2,
y:stage.stageHeight/2});
addChild(view);

        // Setup the sphere
        var primitive1 = new GeodesicSphere();
        primitive1.material = new WireColorMaterial(0xFFCC00);;
        primitive1.y = 100;

        // Setup reflective plane
        var primitive2 = new ReflectivePlane(view);
        primitive2.y = -100;
        primitive2.width = primitive2.height = 500;
        primitive2.rotationX = 15;

        // add stuff to the scene
        view.scene.addChild(primitive1);
        view.scene.addChild(primitive2);

        // Enter frame handler (make things move)
        addEventListener(Event.ENTER_FRAME, onEnterFrame);

function onEnterFrame(event:Event):void {
        view.render();
        primitive1.rotationX += 1;
        primitive1.rotationY -= 1;
}



On 1 Dez., 19:37, savagelook <[email protected]> wrote:
> Darcey has a 
> tutorial:http://www.allforthecode.co.uk/aftc/forum/user/modules/forum/article....
>
> But it has the same problem I've had.  It inexplicably will not render
> the scene on occaison.  I can't seem to figure out why.
>
> On Dec 1, 12:49 pm, fab4ce <[email protected]> wrote:
>
> > Hi,
>
> > i couldn´t find any simple example of the ReflectivePlane.
>
> > When i was trying this class (in away 2.5.2) it made everything in the
> > scene disappear.
> > I found out that when i scale the output window of the Flash IDE,
> > things are becoming visible while scaling. If i change it to a casual
> > Plane everything works normal, the plane is positioned and displayed
> > correct.
>
> > Maybe i´m doing something wrong with the rendering of this special
> > plane?
>
> > I would like to see the most simple use of it (with
> > wireframeMaterial), please.

Reply via email to