Hi,
I had the same problem, and your fix worked for me too. In my case it
was a Sprite2D but the problem was the same.
However, this presented another problem when the sprite was behind the
camera, but still the bounding sphere was (partially) inside the
frustum. The sprites then showed up upside down in strange ways. I
made an ugly fix for this in the primitives function in
SpriteProjector just like so before the call to consumer.primitive:
if (_view.camera.lens.getPerspective(_screenVertices[2])<0)
return;
It's really ugly though, hope someone knowledgeable reads this and
feels like showing a bit of love..
-- Mikael
On Nov 4, 12:05 am, inEar <[email protected]> wrote:
> After learning howfrustumis spelled (and some brief understanding
> about it) I realize that clipping is not the cause for the problem. It
> seems that boundingRadius is 0 when the projection and culling is
> calculated. I came up with dirty workaround for my problem though. For
> now I add a "setter" for boundingRadius-property on Object3d, and set
> it manually. Wish a had some more understanding about the calculation
> of the boundingbox.
>
> / Einar
>
> On 1 Nov, 22:19, inEar <[email protected]> wrote:
>
> > My first post, so hallo everyone! I'm trying to animate some
> > MovieClipSprites that's moving towards the camera. Why is the objects
> > not drawn when the pivot point is outside my scene bounding box when I
> > use FrustumClipping. Isn't there a check for the boundaries of the
> >sprite? When no clipping-method is selected the objects is visible but
> > of course performance dies.
>
> > I have tried to dynamically set the align to "top" or "bottom" and
> > reposition the movieclip while the camera is tilting, but without
> > success. Does the FrustrumClipping-method calculate the boundingbox in
> > a different way for MovieClipSprites? Maybe I can disable clipping for
> > these objects? I hope you can point me in the right direction.
>
> > Here is an example of that, try to look down, and I'll see what I
> > mean:http://www.inear.se/pointer/
>
> > / Einar