hey themightyatom

essentially, the view defaults to a 'no clipping' state as anything
outside the bounds of the stage is invisible anyway, and you may as
well apply clipping to invisible triangles....

there already exists a clipping parameter in the view constructor - is
this what you were originally having trouble with?

glad the solution worked for you!

Rob


On Sat, Oct 31, 2009 at 11:27 AM, themightyatom
<[email protected]> wrote:
> I should just add for anyone reading this later, the method Rob
> describes is alot more  effeicient than using a mask, which I'd
> otherwise resorted to.
> While masking works, this way the render engine draws less triangles,
> which makes it run even faster.
>
> On Oct 31, 12:22 pm, themightyatom <[email protected]> wrote:
>> Thanks Rob,
>>
>> I'd tried with a clipping object, and it gave me wild artifacts in the
>> skybox.
>> Maybe this was due to setting the z axis aswell? I will experiment.
>>
>> I've just tried it your alternative way and it works perfectly.
>>
>> As a feature request, would it be an idea to add this as an (optional)
>> argument to the View constructor,
>> with default to no clipping?
>>
>> Cheers,
>>
>> PS
>>
>> On Oct 30, 4:50 pm, Rob Bateman <[email protected]> wrote:
>>
>> > the dimension of the viewport in both Away3D and Away3D Lite is
>> > determined by the clipping property on the view:
>>
>> >                         view.clipping.minX = -400;
>> >                         view.clipping.minY = -300;
>> >                         view.clipping.maxX = 400;
>> >                         view.clipping.maxY = 300;
>>
>> > this can be set diredtly (as above) or set by creating a new clipping
>> > object (the default is RectangleClipping) and resetting clipping on
>> > the view instance
>>
>> > Rob
>>
>> > On Fri, Oct 30, 2009 at 1:37 PM, tain <[email protected]> wrote:
>>
>> > > in worst case, you can mask it, so no, it doesnt have to be full flash
>> > > window size.
>>
>> > > regards
>>
>> > > On Oct 30, 12:13 pm, themightyatom <[email protected]> wrote:
>> > >> cheers,
>>
>> > >> PS
>>
>> > --
>> > Rob Bateman
>> > Flash Development & Consultancy
>>
>> > [email protected]
>



-- 
Rob Bateman
Flash Development & Consultancy

[email protected]
www.infiniteturtles.co.uk
www.away3d.com

Reply via email to